|
1 2010-08-05 Simon Hausmann <simon.hausmann@nokia.com> |
|
2 |
|
3 Reviewed by Laszlo Gombos. |
|
4 |
|
5 [Qt] Temporary files should not be created in the current directory |
|
6 https://bugs.webkit.org/show_bug.cgi?id=43562 |
|
7 |
|
8 Don't create temporary files in the current directory, use QDir::tempPath() |
|
9 instead, as suggested by the QTemporaryFile documentation. |
|
10 |
|
11 * platform/qt/FileSystemQt.cpp: |
|
12 (WebCore::openTemporaryFile): |
|
13 |
|
14 2010-08-05 Simon Hausmann <simon.hausmann@nokia.com> |
|
15 |
|
16 Reviewed by Tor Arne Vestbø. |
|
17 |
|
18 [Qt] Clean up the input method handling |
|
19 https://bugs.webkit.org/show_bug.cgi?id=43545 |
|
20 |
|
21 Changed input method hint interface to be more efficient by setting |
|
22 all hints in one shot, like in QWidget. |
|
23 |
|
24 * platform/qt/QWebPageClient.h: |
|
25 |
|
26 2010-08-04 Abhishek Arya <inferno@chromium.org> |
|
27 |
|
28 Unreviewed. Put missing equivalent js bindings check. |
|
29 |
|
30 Forgot putting js bindings check in http://trac.webkit.org/changeset/64647. This fixes the qt crash. |
|
31 |
|
32 * bindings/js/JSDesktopNotificationsCustom.cpp: |
|
33 (WebCore::JSNotificationCenter::requestPermission): |
|
34 |
|
35 2010-08-03 Abhishek Arya <inferno@chromium.org> |
|
36 |
|
37 Reviewed by Alexey Proskuryakov. |
|
38 |
|
39 Null the script execution context when disconnecting frame in notifications. |
|
40 Make sure that script execution context is valid in notification requestPermission. |
|
41 https://bugs.webkit.org/show_bug.cgi?id=43295 |
|
42 |
|
43 Tests: fast/notifications/notifications-document-close-crash.html |
|
44 |
|
45 * bindings/v8/custom/V8NotificationCenterCustom.cpp: |
|
46 (WebCore::V8NotificationCenter::requestPermissionCallback): |
|
47 * notifications/NotificationCenter.cpp: |
|
48 (WebCore::NotificationCenter::disconnectFrame): |
|
49 |
|
50 2010-08-04 Andreas Kling <andreas.kling@nokia.com> |
|
51 |
|
52 Reviewed by Simon Hausmann. |
|
53 |
|
54 [Qt] Use a QImage for the stroke applier scratch context |
|
55 |
|
56 This avoids leaking a server-side resource on some graphics systems. |
|
57 |
|
58 * platform/graphics/qt/PathQt.cpp: |
|
59 (WebCore::scratchContext): |
|
60 |
|
61 2010-07-21 Grace Kloba <klobag@gmail.com> , Antonio Gomes <tonikitoo@webkit.org> |
|
62 |
|
63 Reviewed by David Hyatt. |
|
64 |
|
65 Enhance the hit testing to take a rectangle instead of a point |
|
66 https://bugs.webkit.org/show_bug.cgi?id=40197 |
|
67 |
|
68 The primary goal of this change is to provide mechanisms for more precise tap |
|
69 actions by the users on mobile devices. |
|
70 |
|
71 Patch extends the hit testing system to work considering a rectangular area |
|
72 as input instead of a point, when applicable. For that, the HitTestResult class |
|
73 was modified to take a padding (IntSize). The padding specifies a fuzzy range for |
|
74 accepting input events in pixels coordinates for both vertical and horizontal |
|
75 orientations. In other words, it tells how much to expand the search rect |
|
76 around a supposed touch point. |
|
77 |
|
78 If it is non-positive padding (e.g. (-1, -1), (5, -1), (0, 0)), hit testing will behavior |
|
79 as the current point based hit testing: methods are no-op'ed to not regress it performance-wise |
|
80 since it is the common behavior. When positive padding is provided, the HitTestResult class will |
|
81 keep record of all nodes that intersect the built up test area. The logic will continue searching |
|
82 when it finds a candidate until the hit test area is fully enclosed by the boundaries of a candidate. |
|
83 The result will be a list of nodes in the z-order they are hit-tested. Caller will decide how |
|
84 to process them. |
|
85 |
|
86 In order to expose the functionality, the patch: |
|
87 |
|
88 - Adds a nodesFromRect method to the Document class, exposing the funcionality |
|
89 to the DOM. Method returns a NodeList with all nodes that intersect the given |
|
90 hit-tested area. |
|
91 - Extends hitTestResultAtPoint method of the EventHandler with an extra 'padding' |
|
92 parameter, defaulting to IntSize(-1, -1). The rect-based hit test is performed when a |
|
93 non-negative padding is passed in. |
|
94 |
|
95 Test: fast/dom/nodesFromRect-basic.html |
|
96 |
|
97 * WebCore.base.exp: |
|
98 * dom/Document.cpp: |
|
99 (WebCore::Document::nodesFromRect): This method exposes the rect based funcionality to |
|
100 the DOM. It works similarly to elementFromPoint, however receiving a rectangular area |
|
101 as input instead of a point, and returning a z-index ordered list of nodes (not elements) |
|
102 whose area intersect the hit test rect. |
|
103 * dom/Document.h: Ditto. |
|
104 * dom/Document.idl: Ditto. |
|
105 * page/EventHandler.cpp: |
|
106 (WebCore::EventHandler::hitTestResultAtPoint): The funcionality is also exposed through this |
|
107 method. Patch adds a additional IntSize parameter to work as the padding area, building up |
|
108 the hit test rect. |
|
109 * page/EventHandler.h: Ditto. |
|
110 * rendering/HitTestResult.cpp: |
|
111 (WebCore::HitTestResult::HitTestResult): Rect based hit test constructor. Receives a |
|
112 padding IntSize as parameter. It can be (0,0). |
|
113 (WebCore::HitTestResult::operator=): Modified to assign the m_rectBasedTestResult as well. |
|
114 (WebCore::HitTestResult::append): Merge to HitTestResult objects in a way that the |
|
115 list node's of both objects get amended. |
|
116 (WebCore::HitTestResult::addNodeToRectBasedTestResult): Adds a given Node to the list of |
|
117 hit nodes. |
|
118 * rendering/HitTestResult.h: |
|
119 (WebCore::HitTestResult::padding): Returns the padding as an IntSize. |
|
120 (WebCore::HitTestResult::isRectBasedTest): Returns if the HitTestResult is rect based or not. |
|
121 (WebCore::HitTestResult::.rectBasedTestResult): Returns the list nodes hit. |
|
122 (WebCore::HitTestResult::rectFromPoint): Returns the hit test rect given the hit test point |
|
123 and padding. |
|
124 * rendering/RenderLayer.cpp: |
|
125 (WebCore::RenderLayer::hitTestLayer): |
|
126 (WebCore::RenderLayer::hitTestList): |
|
127 (WebCore::RenderLayer::hitTestChildLayerColumns): |
|
128 * rendering/EllipsisBox.cpp: |
|
129 (WebCore::EllipsisBox::nodeAtPoint): Method is modified to support rect based hit test extension. |
|
130 Now it not just checks if the boundary of the node being hit-tested contains a hit test point, but |
|
131 instead it checks if the boundary of the node intersects a hit test rect. It is implemented so |
|
132 that the common case (point based hit test) works as previously. |
|
133 * rendering/InlineFlowBox.cpp: |
|
134 (WebCore::InlineFlowBox::nodeAtPoint): Ditto. |
|
135 * rendering/InlineTextBox.cpp: |
|
136 (WebCore::InlineTextBox::nodeAtPoint): Ditto. |
|
137 * rendering/RenderBlock.cpp: |
|
138 (WebCore::RenderBlock::nodeAtPoint): Ditto. |
|
139 (WebCore::RenderBlock::hitTestColumns): Ditto. |
|
140 * rendering/RenderBox.cpp: |
|
141 (WebCore::RenderBox::nodeAtPoint): Ditto. |
|
142 * rendering/RenderImage.cpp: |
|
143 (WebCore::RenderImage::nodeAtPoint): Ditto. |
|
144 * rendering/RenderLineBoxList.cpp: |
|
145 (WebCore::RenderLineBoxList::hitTest): |
|
146 * rendering/RenderSVGRoot.cpp: |
|
147 (WebCore::RenderSVGRoot::nodeAtPoint): Ditto. |
|
148 * rendering/RenderTable.cpp: |
|
149 (WebCore::RenderTable::nodeAtPoint): Ditto. |
|
150 * rendering/RenderTableSection.cpp: |
|
151 (WebCore::RenderTableSection::nodeAtPoint): Ditto. |
|
152 * rendering/RenderWidget.cpp: |
|
153 (WebCore::RenderWidget::nodeAtPoint): Ditto. |
|
154 |
|
155 2010-07-22 Ben Murdoch <benm@google.com> |
|
156 |
|
157 Reviewed by Simon Fraser. |
|
158 |
|
159 Touch events do not affect the :active CSS state |
|
160 https://bugs.webkit.org/show_bug.cgi?id=39493 |
|
161 |
|
162 Clean the code up by using a typedef based on comments |
|
163 post landing of the original patch. |
|
164 |
|
165 No change in functionality so no new tests. |
|
166 |
|
167 * rendering/HitTestRequest.h: Typedef the HitTestRequestType to unsigned. |
|
168 * WebCore.exp.in: Update export signature. |
|
169 * WebCore.order: Ditto. |
|
170 * page/EventHandler.cpp: use the new typedef. |
|
171 * page/EventHandler.h: ditto. |
|
172 |
|
173 |
|
174 2010-07-24 Andreas Kling <andreas.kling@nokia.com> |
|
175 |
|
176 Reviewed by Simon Hausmann. |
|
177 |
|
178 [Qt] tst_QWebFrame::callQtInvokable() fails |
|
179 https://bugs.webkit.org/show_bug.cgi?id=41065 |
|
180 |
|
181 Converting JS objects to QVariantMaps was broken. |
|
182 This is a partial revert of <http://trac.webkit.org/changeset/61478> |
|
183 |
|
184 * bridge/qt/qt_runtime.cpp: |
|
185 (JSC::Bindings::convertValueToQVariant): Remove erroneous crash guard |
|
186 around JSObject::getPropertyNames() |
|
187 |
|
188 2010-07-22 Kim Grönholm <kim.1.gronholm@nokia.com> |
|
189 |
|
190 Reviewed by NOBODY (OOPS!). |
|
191 |
|
192 Generate TransformAction events from touch gestures |
|
193 https://bugs.webkit.org/show_bug.cgi?id=39979 |
|
194 |
|
195 Enabling transformaction events to be generated from multi-touch |
|
196 gestures by adding gesture handling machinery and eventhandler hooks. |
|
197 |
|
198 Test: fast/events/transformaction/basic-transformaction-events.html |
|
199 Tests basic single- and multi-touch sequences and the corresponding |
|
200 TransformAction events that are generated. |
|
201 |
|
202 A manual test can be found from: |
|
203 https://bug-39757-attachments.webkit.org/attachment.cgi?id=57226 |
|
204 |
|
205 * WebCore.pro: |
|
206 * page/EventHandler.cpp: |
|
207 (WebCore::hasTransformActionEventListener): |
|
208 (WebCore::EventHandler::handleTouchEvent): |
|
209 * page/EventHandler.h: |
|
210 * page/TouchGestureHandler.cpp: Added. |
|
211 (WebCore::TouchGestureHandler::TouchGestureHandler): |
|
212 (WebCore::TouchGestureHandler::updateRefreshNeededState): |
|
213 (WebCore::TouchGestureHandler::updateTouchPoints): |
|
214 (WebCore::TouchGestureHandler::reset): |
|
215 (WebCore::TouchGestureHandler::calcAngle): |
|
216 (WebCore::TouchGestureHandler::diffAngle): |
|
217 (WebCore::TouchGestureHandler::calcPos): |
|
218 (WebCore::TouchGestureHandler::calcDistance): |
|
219 * page/TouchGestureHandler.h: Added. |
|
220 (WebCore::TouchGestureHandler::translateX): |
|
221 (WebCore::TouchGestureHandler::translateY): |
|
222 (WebCore::TouchGestureHandler::pos): |
|
223 (WebCore::TouchGestureHandler::screenPos): |
|
224 (WebCore::TouchGestureHandler::scale): |
|
225 (WebCore::TouchGestureHandler::rotate): |
|
226 |
|
227 2010-07-22 Kim Grönholm <kim.1.gronholm@nokia.com> |
|
228 |
|
229 Reviewed by NOBODY (OOPS!). |
|
230 |
|
231 Add TransformActionEvent support |
|
232 https://bugs.webkit.org/show_bug.cgi?id=39757 |
|
233 |
|
234 Added only the necessary TransformAction event interfaces and not e.g. |
|
235 any eventhandler hooks that generate and dispatch them. |
|
236 |
|
237 Test: fast/events/transformaction/create-transformaction-event.html |
|
238 More tests will be added with the machinery that generates and |
|
239 dispatches these events. |
|
240 |
|
241 * Android.derived.jscbindings.mk: |
|
242 * Android.derived.v8bindings.mk: |
|
243 * Android.mk: |
|
244 * CMakeLists.txt: |
|
245 * DerivedSources.cpp: |
|
246 * DerivedSources.make: |
|
247 * GNUmakefile.am: |
|
248 * WebCore.gypi: |
|
249 * WebCore.pri: |
|
250 * WebCore.pro: |
|
251 * bindings/generic/RuntimeEnabledFeatures.cpp: |
|
252 * bindings/generic/RuntimeEnabledFeatures.h: |
|
253 (WebCore::RuntimeEnabledFeatures::transformactionEnabled): |
|
254 (WebCore::RuntimeEnabledFeatures::setTransformActionEnabled): |
|
255 (WebCore::RuntimeEnabledFeatures::ontransformactionstartEnabled): |
|
256 (WebCore::RuntimeEnabledFeatures::ontransformactionupdateEnabled): |
|
257 (WebCore::RuntimeEnabledFeatures::ontransformactionendEnabled): |
|
258 * bindings/js/JSEventCustom.cpp: |
|
259 (WebCore::toJS): |
|
260 * bindings/v8/custom/V8EventCustom.cpp: |
|
261 (WebCore::toV8): |
|
262 * dom/Document.cpp: |
|
263 (WebCore::Document::createEvent): |
|
264 (WebCore::Document::addListenerTypeIfNeeded): |
|
265 * dom/Document.h: |
|
266 (WebCore::Document::): |
|
267 * dom/Document.idl: |
|
268 * dom/Element.h: |
|
269 * dom/Element.idl: |
|
270 * dom/Event.cpp: |
|
271 (WebCore::Event::isTransformActionEvent): |
|
272 (WebCore::Event::fromUserGesture): |
|
273 * dom/Event.h: |
|
274 * dom/EventNames.h: |
|
275 * dom/TransformActionEvent.cpp: Added. |
|
276 (WebCore::TransformActionEvent::TransformActionEvent): |
|
277 (WebCore::TransformActionEvent::initTransformActionEvent): |
|
278 * dom/TransformActionEvent.h: Added. |
|
279 (WebCore::TransformActionEvent::create): |
|
280 (WebCore::TransformActionEvent::translateX): |
|
281 (WebCore::TransformActionEvent::translateY): |
|
282 (WebCore::TransformActionEvent::translateSpeedX): |
|
283 (WebCore::TransformActionEvent::translateSpeedY): |
|
284 (WebCore::TransformActionEvent::scale): |
|
285 (WebCore::TransformActionEvent::scaleSpeed): |
|
286 (WebCore::TransformActionEvent::rotate): |
|
287 (WebCore::TransformActionEvent::rotateSpeed): |
|
288 (WebCore::TransformActionEvent::TransformActionEvent): |
|
289 (WebCore::TransformActionEvent::isTransformActionEvent): |
|
290 * dom/TransformActionEvent.idl: Added. |
|
291 * html/HTMLAttributeNames.in: |
|
292 * html/HTMLElement.cpp: |
|
293 (WebCore::HTMLElement::parseMappedAttribute): |
|
294 * page/DOMWindow.h: |
|
295 * page/DOMWindow.idl: |
|
296 |
|
297 2010-01-07 Laszlo Gombos <laszlo.1.gombos@nokia.com> |
|
298 |
|
299 Reviewed by NOBODY (OOPS!). |
|
300 |
|
301 [RVCT] ACID3 test crash |
|
302 https://bugs.webkit.org/show_bug.cgi?id=33280 |
|
303 |
|
304 Workaround developed by Yongjun Zhang. |
|
305 |
|
306 * dom/Element.cpp: |
|
307 (WebCore::Element::setAttribute): |
|
308 |
|
309 2010-07-22 Kent Tamura <tkent@chromium.org> |
|
310 |
|
311 Reviewed by Darin Adler. |
|
312 |
|
313 Small refactoring for input value sanitization |
|
314 https://bugs.webkit.org/show_bug.cgi?id=42807 |
|
315 |
|
316 Rename some functions to clarify their roles. |
|
317 |
|
318 * dom/InputElement.cpp: |
|
319 (WebCore::replaceEOLAndLimitLength): |
|
320 Renamed from sanitizeUserInputValue(). |
|
321 (WebCore::InputElement::sanitizeValueForTextField): |
|
322 Renamed from sanitizeValue(), and call replaceEOLAndLimitLength() |
|
323 instead of sanitizeUserInputValue(). |
|
324 (WebCore::InputElement::sanitizeUserInputValue): |
|
325 Just call replaceEOLAndLimitLength(). |
|
326 (WebCore::InputElement::updateValueIfNeeded): |
|
327 Use non-static sanitizeValue() for consistency. |
|
328 * dom/InputElement.h: |
|
329 * html/HTMLInputElement.cpp: |
|
330 (WebCore::HTMLInputElement::setInputType): |
|
331 Revert the change of r63876. It is not needed because of the |
|
332 updateValueIfNeeded() change. |
|
333 (WebCore::HTMLInputElement::sanitizeValue): |
|
334 Apply the sanitizeValue() renaming. |
|
335 |
|
336 2010-07-22 Tony Gentilcore <tonyg@chromium.org> |
|
337 |
|
338 Reviewed by Darin Fisher. |
|
339 |
|
340 webkitPerformance.timing.responseEnd should not include document parse time |
|
341 https://bugs.webkit.org/show_bug.cgi?id=42797 |
|
342 |
|
343 No new tests because timing based test would be flaky. |
|
344 |
|
345 * loader/FrameLoader.cpp: |
|
346 (WebCore::FrameLoader::finishedLoading): finishedLoading() is called by the platform at the right time, but didReceiveData() synchronously invokes parsing without returning to the event loop prior to this. So by the time the didFinishLoading() method is executed, parsing is finished. The solution is to move this time to didReceiveData() prior to parsing. |
|
347 * loader/MainResourceLoader.cpp: |
|
348 (WebCore::MainResourceLoader::didReceiveData): Update the time each time didReceiveData() is called. |
|
349 (WebCore::MainResourceLoader::didFinishLoading): When finished, and after parsing, set responseEnd appropriately. |
|
350 * loader/MainResourceLoader.h: |
|
351 * page/Timing.cpp: |
|
352 (WebCore::Timing::resourceLoadTimeRelativeToAbsolute): Now that responseEnd is set correctly, it can be much shorter for very fast loads (like local files). This exposed the fact that this skew check was not tight enough. We need to make sure that the whole range of values from the ResourceLoadTiming API fit within fetchStart-responseEnd, not just that requestTime fits in this range. |
|
353 |
|
354 2010-07-21 Kent Tamura <tkent@chromium.org> |
|
355 |
|
356 Reviewed by Darin Adler. |
|
357 |
|
358 Assertion failure by changing the type of an input element with a |
|
359 non-number value to 'range'. |
|
360 https://bugs.webkit.org/show_bug.cgi?id=42643 |
|
361 |
|
362 Test: fast/forms/input-value-sanitization.html |
|
363 |
|
364 * html/HTMLInputElement.cpp: |
|
365 (WebCore::HTMLInputElement::setInputType): |
|
366 Update the value by HTMLInputElement::sanitizeValue() in a case that |
|
367 storesValueSeparateFromAttribute() state is not changed. |
|
368 |
|
369 2010-07-21 Adam Barth <abarth@webkit.org> |
|
370 |
|
371 Reviewed by Eric Seidel. |
|
372 |
|
373 Implement spec changes for basefont and bgsound |
|
374 https://bugs.webkit.org/show_bug.cgi?id=42792 |
|
375 |
|
376 * html/HTMLTreeBuilder.cpp: |
|
377 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
378 (WebCore::HTMLTreeBuilder::processStartTag): |
|
379 (WebCore::HTMLTreeBuilder::processStartTagForInHead): |
|
380 |
|
381 2010-07-21 Adam Barth <abarth@webkit.org> |
|
382 |
|
383 Reviewed by Eric Seidel. |
|
384 |
|
385 Update a list of tags to match changes in the HTML5 spec |
|
386 https://bugs.webkit.org/show_bug.cgi?id=42791 |
|
387 |
|
388 We need to atomize these strings at some point. |
|
389 |
|
390 * html/HTMLTreeBuilder.cpp: |
|
391 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
392 |
|
393 2010-07-21 Adam Barth <abarth@webkit.org> |
|
394 |
|
395 Reviewed by Eric Seidel. |
|
396 |
|
397 HTMLTreeBuilder needs to update to match new spec behavior for <button> |
|
398 https://bugs.webkit.org/show_bug.cgi?id=42233 |
|
399 |
|
400 The spec has some typos in this area, but this is my best guess for |
|
401 what Ian means. I've filed bugs against the spec for each typo. |
|
402 |
|
403 * html/HTMLElementStack.cpp: |
|
404 (WebCore::HTMLNames::isScopeMarker): |
|
405 (WebCore::HTMLNames::isButtonScopeMarker): |
|
406 (WebCore::HTMLElementStack::inButtonScope): |
|
407 * html/HTMLElementStack.h: |
|
408 * html/HTMLTreeBuilder.cpp: |
|
409 (WebCore::HTMLTreeBuilder::processFakePEndTagIfPInButtonScope): |
|
410 (WebCore::HTMLTreeBuilder::processCloseWhenNestedTag): |
|
411 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
412 (WebCore::HTMLTreeBuilder::processEndTagForInBody): |
|
413 * html/HTMLTreeBuilder.h: |
|
414 |
|
415 2010-07-21 Justin Schuh <jschuh@chromium.org> |
|
416 |
|
417 Reviewed by Oliver Hunt. |
|
418 |
|
419 Prevent DeleteButtonController enable state from changing when not editing |
|
420 https://bugs.webkit.org/show_bug.cgi?id=42659 |
|
421 |
|
422 Test: svg/custom/use-invalid-html.xhtml |
|
423 |
|
424 * dom/ContainerNode.cpp: |
|
425 (WebCore::ContainerNode::cloneChildNodes): |
|
426 |
|
427 2010-07-21 Beth Dakin <bdakin@apple.com> |
|
428 |
|
429 Reviewed by Dan Bernstein. |
|
430 |
|
431 Fix for https://bugs.webkit.org/show_bug.cgi?id=42605 New border- |
|
432 radius path-based drawing code has some issues with corner-joins |
|
433 |
|
434 GraphicsContext::clipConvexPolygon() now takes a boolean parameter |
|
435 indicating whether or not the clip should be antialiased. |
|
436 * platform/graphics/GraphicsContext.h: |
|
437 * platform/graphics/cairo/GraphicsContextCairo.cpp: |
|
438 (WebCore::GraphicsContext::clipConvexPolygon): |
|
439 * platform/graphics/cg/GraphicsContextCG.cpp: |
|
440 (WebCore::GraphicsContext::clipConvexPolygon): |
|
441 * platform/graphics/haiku/GraphicsContextHaiku.cpp: |
|
442 (WebCore::GraphicsContext::clipConvexPolygon): |
|
443 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
444 (WebCore::GraphicsContext::clipConvexPolygon): |
|
445 * platform/graphics/skia/GraphicsContextSkia.cpp: |
|
446 (WebCore::GraphicsContext::clipConvexPolygon): |
|
447 * platform/graphics/wince/GraphicsContextWince.cpp: |
|
448 (WebCore::GraphicsContext::clipConvexPolygon): |
|
449 * platform/graphics/wx/GraphicsContextWx.cpp: |
|
450 (WebCore::GraphicsContext::clipConvexPolygon): |
|
451 |
|
452 Compute 4 booleans determining if each edge is a "matching" edge of |
|
453 not. Send the two appropriate values to clipBorderSidePolygon() so |
|
454 we can decide there whether or not to antialias the clip based on |
|
455 matchy-ness. |
|
456 * rendering/RenderBoxModelObject.cpp: |
|
457 (WebCore::RenderBoxModelObject::paintBorder): |
|
458 |
|
459 If both edges are matching, don't antialias. If neither edge |
|
460 matches, never antialias. If one edge matches and one does not, |
|
461 apply two clips to get the appropriate antialiasing in each corner. |
|
462 (WebCore::RenderBoxModelObject::clipBorderSidePolygon): |
|
463 * rendering/RenderBoxModelObject.h: |
|
464 |
|
465 2010-07-21 Brady Eidson <beidson@apple.com> |
|
466 |
|
467 Reviewed by Geoffrey Garen. |
|
468 |
|
469 Break out "scheme registration" functionality from SecurityOrigin to a SchemeRegistry |
|
470 https://bugs.webkit.org/show_bug.cgi?id=42783 |
|
471 |
|
472 No new tests. (No change in behavior) |
|
473 |
|
474 * GNUmakefile.am: |
|
475 * WebCore.exp.in: |
|
476 * WebCore.gypi: |
|
477 * WebCore.pro: |
|
478 * WebCore.vcproj/WebCore.vcproj: |
|
479 * WebCore.xcodeproj/project.pbxproj: |
|
480 |
|
481 * loader/FrameLoader.cpp: |
|
482 (WebCore::FrameLoader::isMixedContent): |
|
483 (WebCore::FrameLoader::loadFrameRequest): |
|
484 |
|
485 * page/SecurityOrigin.cpp: |
|
486 (WebCore::SecurityOrigin::SecurityOrigin): |
|
487 (WebCore::SecurityOrigin::canLoad): |
|
488 (WebCore::SecurityOrigin::isLocal): |
|
489 * page/SecurityOrigin.h: |
|
490 |
|
491 * platform/SchemeRegistry.cpp: Added. |
|
492 (WebCore::localSchemes): |
|
493 (WebCore::secureSchemes): |
|
494 (WebCore::schemesWithUniqueOrigins): |
|
495 (WebCore::SchemeRegistry::registerURLSchemeAsLocal): |
|
496 (WebCore::SchemeRegistry::removeURLSchemeRegisteredAsLocal): |
|
497 (WebCore::SchemeRegistry::localURLSchemes): |
|
498 (WebCore::SchemeRegistry::shouldTreatURLAsLocal): |
|
499 (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal): |
|
500 (WebCore::SchemeRegistry::registerURLSchemeAsNoAccess): |
|
501 (WebCore::SchemeRegistry::shouldTreatURLSchemeAsNoAccess): |
|
502 (WebCore::SchemeRegistry::registerURLSchemeAsSecure): |
|
503 (WebCore::SchemeRegistry::shouldTreatURLSchemeAsSecure): |
|
504 * platform/SchemeRegistry.h: Added. |
|
505 |
|
506 2010-07-21 Chris Marrin <cmarrin@apple.com> |
|
507 |
|
508 Reviewed by Simon Fraser. |
|
509 |
|
510 Assertion failure in AnimationBase::updateStateMachine() coming out of paused state |
|
511 https://bugs.webkit.org/show_bug.cgi?id=37993 |
|
512 |
|
513 Added logic to properly handle pausing and resuming when in the |
|
514 AnimationStateStartWaitStyleAvailable state. This was causing an |
|
515 assert when going out of the pause state because the paused flag |
|
516 was not set. |
|
517 |
|
518 The fix is a straightforward implementation, going into a new |
|
519 AnimationStatePausedWaitStyleAvailable state and setting the paused |
|
520 flag (actually setting the m_pauseTime variable to something other |
|
521 than -1). Also added handling of the new state, both when the |
|
522 "style available" callback comes in while in this state and when |
|
523 unpausing while in this state. |
|
524 |
|
525 For now a LayoutTest is not possible since there's no way to go in |
|
526 and out of the pause state. I've opened https://bugs.webkit.org/show_bug.cgi?id=42790 |
|
527 to track this. |
|
528 |
|
529 * page/animation/AnimationBase.cpp: |
|
530 (WebCore::AnimationBase::updateStateMachine): |
|
531 * page/animation/AnimationBase.h: |
|
532 (WebCore::AnimationBase::): |
|
533 |
|
534 2010-07-21 Bo Liu <boliu@chromium.org> |
|
535 |
|
536 Reviewed by Darin Fisher. |
|
537 |
|
538 [Chromium] Add chromium WebMediaPlayer to PlatformMedia |
|
539 https://bugs.webkit.org/show_bug.cgi?id=41295 |
|
540 |
|
541 * platform/graphics/MediaPlayer.h: |
|
542 (WebCore::PlatformMedia::): |
|
543 |
|
544 2010-07-21 Simon Fraser <simon.fraser@apple.com> |
|
545 |
|
546 Reviewed by Anders Carlsson. |
|
547 |
|
548 Composited layers don't scroll in WebKit2 |
|
549 https://bugs.webkit.org/show_bug.cgi?id=42771 |
|
550 |
|
551 Prep work: FrameView::scrollPositionChanged() sounds like a generic "did scroll" bottleneck, |
|
552 but this is deceiving. It's only every called on one platform (Mac) when the NSScrollView gets |
|
553 scrolled, so rename it to FrameView::scrollPositionChangedViaPlatformWidget(). |
|
554 |
|
555 * WebCore.exp.in: |
|
556 * page/FrameView.cpp: |
|
557 (WebCore::FrameView::scrollPositionChangedViaPlatformWidget): |
|
558 * page/FrameView.h: |
|
559 |
|
560 2010-07-21 Peter Beverloo <peter@lvp-media.com> |
|
561 |
|
562 Reviewed by Eric Carlson. |
|
563 |
|
564 Removed support for the -khtml CSS vendor prefix and limit the |
|
565 -apple prefix to two properties (dashboard-region and line-clamp). |
|
566 |
|
567 Test: fast/css/limited-vendor-prefix-behavior.html |
|
568 |
|
569 * css/CSSParser.cpp: |
|
570 (WebCore::cssPropertyID): |
|
571 |
|
572 2010-07-21 Adam Barth <abarth@webkit.org> |
|
573 |
|
574 Reviewed by Eric Seidel. |
|
575 |
|
576 Fix the last tree HTML5 tree builder crashes |
|
577 https://bugs.webkit.org/show_bug.cgi?id=42773 |
|
578 |
|
579 This patch changes the internal representation of a bookmark to handle |
|
580 the case where one of the adjecent entries in the list of active |
|
581 formatting elements is actually a marker. |
|
582 |
|
583 After this patch, the bookmarking mechanism isn't as general, but it |
|
584 works for the cases we need in the adoption agency. |
|
585 |
|
586 Also, after this patch, there aren't any more known crashers in the |
|
587 HTML5 tree builder. :) |
|
588 |
|
589 * html/HTMLFormattingElementList.cpp: |
|
590 (WebCore::HTMLFormattingElementList::bookmarkFor): |
|
591 (WebCore::HTMLFormattingElementList::swapTo): |
|
592 * html/HTMLFormattingElementList.h: |
|
593 (WebCore::HTMLFormattingElementList::Bookmark::Bookmark): |
|
594 (WebCore::HTMLFormattingElementList::Bookmark::moveToAfter): |
|
595 (WebCore::HTMLFormattingElementList::Bookmark::hasBeenMoved): |
|
596 (WebCore::HTMLFormattingElementList::Bookmark::mark): |
|
597 (WebCore::HTMLFormattingElementList::first): |
|
598 * html/HTMLTreeBuilder.cpp: |
|
599 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
600 |
|
601 2010-07-21 Tony Gentilcore <tonyg@chromium.org> |
|
602 |
|
603 Unreviewed build fix. |
|
604 |
|
605 Disable overzealous ASSERT |
|
606 https://bugs.webkit.org/show_bug.cgi?id=42775 |
|
607 |
|
608 No new tests because no changed functionality. |
|
609 |
|
610 * loader/FrameLoader.cpp: |
|
611 (WebCore::FrameLoader::stopLoading): |
|
612 |
|
613 2010-07-21 Yael Aharon <yael.aharon@nokia.com> |
|
614 |
|
615 Reviewed by Darin Adler. |
|
616 |
|
617 Crash in Notification::disconnectFrame() triggered by Frame::lifeSupportTimerFired() |
|
618 https://bugs.webkit.org/show_bug.cgi?id=42534 |
|
619 |
|
620 Call NotificationsCenter::disconnectFrame() when the frame is disconnected from the page. |
|
621 Calling it from the destructor of Frame is too late and sometimes causes access violation. |
|
622 I was not able to reproduce this crash, so did not add new tests. |
|
623 This patch is based on the error reported in |
|
624 http://code.google.com/p/chromium/issues/detail?id=49323. |
|
625 |
|
626 * page/DOMWindow.cpp: |
|
627 (WebCore::DOMWindow::pageDestroyed): |
|
628 * page/DOMWindow.h: |
|
629 * page/Frame.cpp: |
|
630 (WebCore::Frame::pageDestroyed): |
|
631 |
|
632 2010-07-21 Anders Carlsson <andersca@apple.com> |
|
633 |
|
634 Reviewed by Sam Weinig. |
|
635 |
|
636 Don't assert when clicking on a plug-in in WebKit2 |
|
637 https://bugs.webkit.org/show_bug.cgi?id=42762 |
|
638 |
|
639 Remove a now invalid assert and return false instead. |
|
640 |
|
641 * page/mac/EventHandlerMac.mm: |
|
642 (WebCore::EventHandler::passMouseDownEventToWidget): |
|
643 |
|
644 2010-07-21 Anton Muhin <antonm@chromium.org> |
|
645 |
|
646 Reviewed by Adam Barth. |
|
647 |
|
648 [v8] Revert r60670 as it introduced a regression: in some cases named children couldn't be retrieved. |
|
649 https://bugs.webkit.org/show_bug.cgi?id=42766 |
|
650 |
|
651 See http://code.google.com/p/chromium/issues/detail?id=48804 for more details. |
|
652 |
|
653 * bindings/scripts/CodeGeneratorV8.pm: |
|
654 * bindings/v8/ScriptController.cpp: |
|
655 (WebCore::ScriptController::namedItemAdded): |
|
656 (WebCore::ScriptController::namedItemRemoved): |
|
657 * bindings/v8/V8DOMWindowShell.cpp: |
|
658 (WebCore::V8DOMWindowShell::updateDocumentWrapperCache): |
|
659 * bindings/v8/V8DOMWindowShell.h: |
|
660 * bindings/v8/V8DOMWrapper.cpp: |
|
661 (WebCore::V8DOMWrapper::instantiateV8Object): |
|
662 * bindings/v8/custom/V8HTMLDocumentCustom.cpp: |
|
663 (WebCore::V8HTMLDocument::namedPropertyDeleter): |
|
664 (WebCore::V8HTMLDocument::namedPropertyGetter): |
|
665 (WebCore::V8HTMLDocument::indexedPropertyGetter): |
|
666 (WebCore::V8HTMLDocument::allAccessorSetter): |
|
667 (WebCore::toV8): |
|
668 |
|
669 2010-07-21 Eric Carlson <eric.carlson@apple.com> |
|
670 |
|
671 Reviewed by Simon Fraser. |
|
672 |
|
673 Update plug-in proxy backed <video> and <audio> elements. |
|
674 https://bugs.webkit.org/show_bug.cgi?id=42770 |
|
675 <rdar://problem/7963467> |
|
676 |
|
677 * html/HTMLMediaElement.cpp: |
|
678 (WebCore::HTMLMediaElement::attributeChanged): Only call m_player->setControls when |
|
679 the 'controls' attribute changes. |
|
680 (WebCore::HTMLMediaElement::createRenderer): |
|
681 (WebCore::HTMLMediaElement::attach): If we have a proxy widget, call the WebFrameLoaderClient's |
|
682 'hide' and 'show' methods for the media proxy plug-in to make sure we remove and re-add the |
|
683 plug-in's view to the global list of plugin views. |
|
684 (WebCore::HTMLMediaElement::createMediaPlayerProxy): Bail if m_proxyWidget is non-NULL |
|
685 |
|
686 * loader/EmptyClients.h: |
|
687 (WebCore::EmptyFrameLoaderClient::hideMediaPlayerProxyPlugin): Empty stub method. |
|
688 (WebCore::EmptyFrameLoaderClient::showMediaPlayerProxyPlugin): Ditto. |
|
689 |
|
690 * loader/FrameLoader.cpp: |
|
691 * loader/FrameLoaderClient.h: |
|
692 * loader/SubframeLoader.cpp: |
|
693 (WebCore::FrameLoader::loadMediaPlayerProxyPlugin): Always set m_containsPlugIns in loadMediaPlayerProxyPlugin(), |
|
694 even when we don't have a renderer. |
|
695 (WebCore::FrameLoader::hideMediaPlayerProxyPlugin): New, call hideMediaPlayerProxyPlugin. |
|
696 (WebCore::FrameLoader::showMediaPlayerProxyPlugin): New, call showMediaPlayerProxyPlugin. |
|
697 |
|
698 * platform/graphics/MediaPlayer.cpp: |
|
699 (WebCore::NullMediaPlayerPrivate::setControls): |
|
700 (WebCore::MediaPlayer::setControls): New, pass through to media engine. |
|
701 (WebCore::MediaPlayer::enterFullscreen): Ditto. |
|
702 (WebCore::MediaPlayer::exitFullscreen): Ditto. |
|
703 * platform/graphics/MediaPlayer.h: |
|
704 * platform/graphics/MediaPlayerPrivate.h: |
|
705 (WebCore::MediaPlayerPrivateInterface::setControls): |
|
706 (WebCore::MediaPlayerPrivateInterface::enterFullscreen): |
|
707 (WebCore::MediaPlayerPrivateInterface::exitFullscreen): |
|
708 |
|
709 2010-07-21 Dimitri Glazkov <dglazkov@chromium.org> |
|
710 |
|
711 Reviewed by Darin Adler. |
|
712 |
|
713 Make more members of CSSStyleSelector private. |
|
714 https://bugs.webkit.org/show_bug.cgi?id=42757 |
|
715 |
|
716 No change in behavior, so no new tests. |
|
717 |
|
718 * css/CSSStyleSelector.h: Made a publicly-unused methods private. |
|
719 |
|
720 2010-07-21 Pavel Feldman <pfeldman@chromium.org> |
|
721 |
|
722 Reviewed by Timothy Hatcher. |
|
723 |
|
724 Web Inspector: consider jQuery object to be of array nature. |
|
725 |
|
726 https://bugs.webkit.org/show_bug.cgi?id=42758 |
|
727 |
|
728 * inspector/front-end/InjectedScript.js: |
|
729 (injectedScriptConstructor): |
|
730 |
|
731 2010-07-21 Alexey Proskuryakov <ap@apple.com> |
|
732 |
|
733 Unreviewed Windows build fix. |
|
734 |
|
735 https://bugs.webkit.org/show_bug.cgi?id=42717 |
|
736 <rdar://problem/7062824> A wrong password entered for site or proxy auth remains in WebCore |
|
737 credential storage, and is sent with subsequent requests |
|
738 |
|
739 * platform/network/cf/ResourceHandleCFNet.cpp: |
|
740 (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Don't use that direct a |
|
741 copy/paste, oops! |
|
742 |
|
743 2010-07-21 Simon Fraser <simon.fraser@apple.com> |
|
744 |
|
745 Reviewed by Darin Adler. |
|
746 |
|
747 When GraphicsLayer::contentsOrientation() is CompositingCoordinatesBottomUp, need to flip repaint rects |
|
748 https://bugs.webkit.org/show_bug.cgi?id=42662 |
|
749 |
|
750 If the contentsOrientation() on a GraphicsLayer is CompositingCoordinatesBottomUp, then we |
|
751 need to flip the rects passed to setNeedsDisplayInRect:. |
|
752 |
|
753 Avoid writing this code twice by making a bare function to share code |
|
754 between WebLayer and WebTiledLayer. Convert the existing +drawContents:ofLayer:intoContext: |
|
755 class method into a bare function, because the Obj-C calling overhead doesn't buy us anything. |
|
756 |
|
757 Take out an assertion in GraphicsLayerCA::updateContentsTransform() that is not |
|
758 correct. |
|
759 |
|
760 No new tests because no layers use bottom-up contents at present. |
|
761 |
|
762 * platform/graphics/mac/GraphicsLayerCA.mm: |
|
763 (WebCore::GraphicsLayerCA::updateContentsTransform): |
|
764 * platform/graphics/mac/WebLayer.h: |
|
765 * platform/graphics/mac/WebLayer.mm: |
|
766 (drawLayerContents): |
|
767 (setLayerNeedsDisplayInRect): |
|
768 (-[WebLayer setNeedsDisplayInRect:]): |
|
769 (-[WebLayer drawInContext:]): |
|
770 * platform/graphics/mac/WebTiledLayer.mm: |
|
771 (-[WebTiledLayer setNeedsDisplayInRect:]): |
|
772 (-[WebTiledLayer drawInContext:]): |
|
773 |
|
774 2010-07-20 Alexey Proskuryakov <ap@apple.com> |
|
775 |
|
776 Reviewed by Darin Adler. |
|
777 |
|
778 https://bugs.webkit.org/show_bug.cgi?id=42717 |
|
779 <rdar://problem/7062824> A wrong password entered for site or proxy auth remains in WebCore |
|
780 credential storage, and is sent with subsequent requests |
|
781 |
|
782 Tests: http/tests/security/401-logout/401-logout.php |
|
783 http/tests/xmlhttprequest/remember-bad-password.html |
|
784 |
|
785 * platform/network/CredentialStorage.cpp: (WebCore::CredentialStorage::remove): |
|
786 * platform/network/CredentialStorage.h: |
|
787 Added a way to remove stored credentials for a given protection space. |
|
788 |
|
789 * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): |
|
790 * platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): |
|
791 Remove stored credentials if they didn't work the first time. |
|
792 |
|
793 2010-07-20 Steve Falkenburg <sfalken@apple.com> |
|
794 |
|
795 Reviewed by Adam Roben. |
|
796 |
|
797 WebKit on Windows should build optionally with an unversioned ICU DLL |
|
798 https://bugs.webkit.org/show_bug.cgi?id=42722 |
|
799 <rdar://problem/8211767> WebKit needs to link against unversioned ICU |
|
800 |
|
801 To get the proper value for U_DISABLE_RENAMING into all source files, we force |
|
802 the include of ICUVersion.h (our generated header) via the compiler options. |
|
803 |
|
804 * WebCore.vcproj/WebCore.vcproj: |
|
805 Add forced include of ICUVersion.h. |
|
806 * WebCore.vcproj/WebCoreCommon.vsprops: Add forced include of ICUVersion.h. |
|
807 |
|
808 2010-07-21 Ilya Tikhonovsky <loislo@chromium.org> |
|
809 |
|
810 Reviewed by Pavel Feldman. |
|
811 |
|
812 WebInspector: Serialization to JSON in InspectorValue works incorrect |
|
813 if comma is assigned as decimal separator. Windows with Russian locale. |
|
814 https://bugs.webkit.org/show_bug.cgi?id=42755 |
|
815 |
|
816 * inspector/InspectorValues.cpp: |
|
817 (WebCore::InspectorBasicValue::writeJSON): |
|
818 |
|
819 2010-07-20 Simon Fraser <simon.fraser@apple.com> |
|
820 |
|
821 Reviewed by Dan Bernstein. |
|
822 |
|
823 CSS rotation transform can cause elements with certain styles to vanish during rotation. |
|
824 https://bugs.webkit.org/show_bug.cgi?id=42579 |
|
825 |
|
826 Remove some untested, broken code that, as far as I can tell, could never get hit. |
|
827 Use the correct rect for the PaintInfo so that zero-sized elements with overflow:hidden |
|
828 but a border paint correctly. |
|
829 |
|
830 Test: compositing/overflow/zero-size-overflow.html |
|
831 |
|
832 * rendering/RenderLayerBacking.cpp: |
|
833 (WebCore::RenderLayerBacking::paintIntoLayer): |
|
834 |
|
835 2010-07-21 Mahesh Kulkarni <mahesh.kulkarni@nokia.com> |
|
836 |
|
837 Reviewed by Laszlo Gombos. |
|
838 |
|
839 [QT] Leak and few more fixes to qt port of geolocation |
|
840 https://bugs.webkit.org/show_bug.cgi?id=42753 |
|
841 |
|
842 Fixes memory leak and default values set to attributes. |
|
843 |
|
844 Memory leak fix no new test case added. |
|
845 |
|
846 * platform/qt/GeolocationServiceQt.cpp: Added. |
|
847 (WebCore::GeolocationServiceQt::~GeolocationServiceQt): |
|
848 (WebCore::GeolocationServiceQt::positionUpdated): |
|
849 |
|
850 2010-07-21 Kristian Amlie <kristian.amlie@nokia.com> |
|
851 |
|
852 Reviewed by Kenneth Rohde Christiansen. |
|
853 |
|
854 Added automatic sqlite extraction for Symbian to QtWebKit. |
|
855 |
|
856 Also added sqlite detection in case sqlite is not present in the SDK. |
|
857 This is possible if WebKit is compiled standalone. |
|
858 |
|
859 The inclusion part is a consequence of commit c578c6c1d6d in the Qt |
|
860 repository. It will not work on Qt versions < 4.7.1, but that is ok, |
|
861 since the only build system it will affect is marked as experimental |
|
862 in the whole 4.7 series. |
|
863 |
|
864 * WebCore.pro: |
|
865 |
|
866 2010-07-21 Adam Barth <abarth@webkit.org> |
|
867 |
|
868 Reviewed by Eric Seidel. |
|
869 |
|
870 Associate elements with the active form |
|
871 https://bugs.webkit.org/show_bug.cgi?id=42728 |
|
872 |
|
873 This patch fixes fast/forms/formmove3.html. The test still doesn't |
|
874 pass due to some render tree differences, but it works as intended now. |
|
875 |
|
876 To fix this test, I needed to deviate from the spec slight. Minefield |
|
877 seems to have the same deviation: |
|
878 - http://www.w3.org/Bugs/Public/show_bug.cgi?id=10216 |
|
879 |
|
880 * html/HTMLConstructionSite.cpp: |
|
881 (WebCore::HTMLConstructionSite::takeForm): |
|
882 (WebCore::HTMLConstructionSite::setForm): |
|
883 (WebCore::HTMLConstructionSite::createHTMLElement): |
|
884 * html/HTMLConstructionSite.h: |
|
885 (WebCore::HTMLConstructionSite::form): |
|
886 * html/HTMLTreeBuilder.cpp: |
|
887 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
888 |
|
889 2010-07-21 Adam Barth <abarth@webkit.org> |
|
890 |
|
891 Reviewed by Eric Seidel. |
|
892 |
|
893 The adoption agency doesn't properly attach() |
|
894 https://bugs.webkit.org/show_bug.cgi?id=42727 |
|
895 |
|
896 The adoption agency is transliterated rather directly from the spec, |
|
897 but it misses some of the WebKit-specific machinations, such as |
|
898 attaching to the render tree. |
|
899 |
|
900 The algorithm, as written, is a minor layer violation. I've added to |
|
901 the problem by calling attach() from HTMLTreeBuilder (even though |
|
902 that's the job of the HTMLConstructionSite). We'll need to clean up |
|
903 the layering a bit at some point. |
|
904 |
|
905 This patch half fixes fast/forms/formmove3.html. Hopefully I'll finish |
|
906 fixing it in the next patch. |
|
907 |
|
908 * html/HTMLConstructionSite.cpp: |
|
909 (WebCore::HTMLConstructionSite::createHTMLElementFromSavedElement): |
|
910 * html/HTMLTreeBuilder.cpp: |
|
911 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
912 |
|
913 2010-07-21 Adam Barth <abarth@webkit.org> |
|
914 |
|
915 Reviewed by Eric Seidel. |
|
916 |
|
917 <input> elements with no type attribute should be foster parented |
|
918 https://bugs.webkit.org/show_bug.cgi?id=42725 |
|
919 |
|
920 Fix spec transcription error. |
|
921 |
|
922 * html/HTMLTreeBuilder.cpp: |
|
923 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
924 |
|
925 2010-07-21 Adam Barth <abarth@webkit.org> |
|
926 |
|
927 Reviewed by Eric Seidel. |
|
928 |
|
929 Fix fast/css/last-child-style-sharing.html |
|
930 https://bugs.webkit.org/show_bug.cgi?id=42731 |
|
931 |
|
932 Prior to this patch, we weren't calling finishParsingChildren on the |
|
933 body element. We need a more systematic way of catching these bugs. |
|
934 |
|
935 * html/HTMLElementStack.cpp: |
|
936 (WebCore::HTMLElementStack::popAll): |
|
937 * html/HTMLElementStack.h: |
|
938 * html/HTMLTreeBuilder.cpp: |
|
939 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
940 |
|
941 2010-07-21 Hans Wennborg <hans@chromium.org> |
|
942 |
|
943 Reviewed by Steve Block. |
|
944 |
|
945 Runtime feature switch for device orientation |
|
946 https://bugs.webkit.org/show_bug.cgi?id=42265 |
|
947 |
|
948 Add a runtime feature switch that decides whether device orientation |
|
949 events are available or not. Defaults to true. |
|
950 |
|
951 * WebCore.vcproj/WebCoreCommon.vsprops: Add bindings/generic to include path. |
|
952 * bindings/generic/RuntimeEnabledFeatures.cpp: |
|
953 * bindings/generic/RuntimeEnabledFeatures.h: |
|
954 (WebCore::RuntimeEnabledFeatures::setDeviceOrientationEnabled): |
|
955 (WebCore::RuntimeEnabledFeatures::deviceOrientationEnabled): |
|
956 (WebCore::RuntimeEnabledFeatures::deviceOrientationEventEnabled): |
|
957 (WebCore::RuntimeEnabledFeatures::ondeviceorientationEnabled): |
|
958 * page/DOMWindow.cpp: |
|
959 (WebCore::DOMWindow::addEventListener): |
|
960 (WebCore::DOMWindow::removeEventListener): |
|
961 (WebCore::DOMWindow::removeAllEventListeners): |
|
962 * page/DOMWindow.idl: |
|
963 * page/Page.cpp: |
|
964 (WebCore::Page::Page): |
|
965 |
|
966 2010-07-21 Zoltan Herczeg <zherczeg@webkit.org> |
|
967 |
|
968 Reviewed Nikolas Zimmermann. |
|
969 |
|
970 SVGFilterElement & SVGFE*Element don't support dynamic invalidation, when attributes change |
|
971 https://bugs.webkit.org/show_bug.cgi?id=42244 |
|
972 |
|
973 The implementation was done by Nikolas Zimmermann before, but |
|
974 there was no tests for it. The patch also implements the simple |
|
975 setFilterRes method. |
|
976 |
|
977 Tests: svg/dynamic-updates/SVGFilterElement-dom-filterRes-attr.html |
|
978 svg/dynamic-updates/SVGFilterElement-dom-filterUnits-attr.html |
|
979 svg/dynamic-updates/SVGFilterElement-dom-height-attr.html |
|
980 svg/dynamic-updates/SVGFilterElement-dom-primitiveUnits-attr.html |
|
981 svg/dynamic-updates/SVGFilterElement-dom-width-attr.html |
|
982 svg/dynamic-updates/SVGFilterElement-dom-x-attr.html |
|
983 svg/dynamic-updates/SVGFilterElement-dom-y-attr.html |
|
984 svg/dynamic-updates/SVGFilterElement-svgdom-filterRes-call.html |
|
985 svg/dynamic-updates/SVGFilterElement-svgdom-filterResX-prop.html |
|
986 svg/dynamic-updates/SVGFilterElement-svgdom-filterResY-prop.html |
|
987 svg/dynamic-updates/SVGFilterElement-svgdom-filterUnits-prop.html |
|
988 svg/dynamic-updates/SVGFilterElement-svgdom-height-prop.html |
|
989 svg/dynamic-updates/SVGFilterElement-svgdom-primitiveUnits-prop.html |
|
990 svg/dynamic-updates/SVGFilterElement-svgdom-width-prop.html |
|
991 svg/dynamic-updates/SVGFilterElement-svgdom-x-prop.html |
|
992 svg/dynamic-updates/SVGFilterElement-svgdom-y-prop.html |
|
993 |
|
994 * svg/SVGFilterElement.cpp: |
|
995 (WebCore::SVGFilterElement::setFilterRes): |
|
996 (WebCore::SVGFilterElement::svgAttributeChanged): |
|
997 (WebCore::SVGFilterElement::childrenChanged): |
|
998 * svg/SVGFilterElement.h: |
|
999 |
|
1000 2010-07-21 Ben Murdoch <benm@google.com> |
|
1001 |
|
1002 Unreviewed, build fix. |
|
1003 |
|
1004 Forgot to update the role of HitTestRequest.h in |
|
1005 the xcode project after landing patch from |
|
1006 https://bugs.webkit.org/show_bug.cgi?id=39493 |
|
1007 |
|
1008 * WebCore.xcodeproj/project.pbxproj: Make HitTestRequest.h |
|
1009 private so it can be included in WebKit by EventHandler.h |
|
1010 which is already private.. |
|
1011 |
|
1012 2010-07-20 Ben Murdoch <benm@google.com> |
|
1013 |
|
1014 Reviewed by Steve Block. |
|
1015 |
|
1016 Touch events do not affect the :active CSS state |
|
1017 https://bugs.webkit.org/show_bug.cgi?id=39493 |
|
1018 |
|
1019 Test: fast/events/touch/touch-active-state.html |
|
1020 |
|
1021 * WebCore.exp.in: Update exports for new signature of |
|
1022 hitTestResultAtPoint. |
|
1023 * WebCore.order: ditto. |
|
1024 * page/EventHandler.cpp: |
|
1025 (WebCore::EventHandler::EventHandler): |
|
1026 (WebCore::EventHandler::hitTestResultAtPoint): Pass the type |
|
1027 of the hit test to perform as a parameter with a default |
|
1028 value rather than harcoding it in the function body. |
|
1029 (WebCore::EventHandler::handleMouseMoveEvent): Do not modiify |
|
1030 the active element during a mouse move if the user is |
|
1031 touching the screen. |
|
1032 (WebCore::EventHandler::handleTouchEvent): Set the correct |
|
1033 type of hit test to perform depending on the type of the |
|
1034 touch event we are handling. |
|
1035 * page/EventHandler.h: Update the signature of hitTestResultAtPoint. |
|
1036 |
|
1037 2010-07-20 Yury Semikhatsky <yurys@chromium.org> |
|
1038 |
|
1039 Reviewed by Pavel Feldman. |
|
1040 |
|
1041 console.assert should include stack trace with line numbers. |
|
1042 https://bugs.webkit.org/show_bug.cgi?id=22556 |
|
1043 |
|
1044 Test: inspector/console-assert.html |
|
1045 |
|
1046 * bindings/v8/ScriptCallStack.cpp: |
|
1047 (WebCore::getTopFrameLocation): |
|
1048 (WebCore::toScriptCallFramesVector): |
|
1049 (WebCore::ScriptCallStack::create): |
|
1050 (WebCore::ScriptCallStack::ScriptCallStack): |
|
1051 * bindings/v8/ScriptCallStack.h: |
|
1052 * bindings/v8/ScriptController.cpp: |
|
1053 (WebCore::ScriptController::setCaptureCallStackForUncaughtExceptions): |
|
1054 * bindings/v8/custom/V8ConsoleCustom.cpp: |
|
1055 (WebCore::V8Console::traceCallback): |
|
1056 (WebCore::V8Console::assertCallback): |
|
1057 * inspector/ConsoleMessage.cpp: |
|
1058 (WebCore::ConsoleMessage::ConsoleMessage): |
|
1059 * inspector/InspectorController.cpp: |
|
1060 (WebCore::InspectorController::addMessageToConsole): |
|
1061 * inspector/front-end/ConsoleView.js: |
|
1062 (WebInspector.ConsoleMessage.prototype._formatMessage): |
|
1063 (WebInspector.ConsoleMessage.prototype.toMessageElement): |
|
1064 * page/Console.cpp: |
|
1065 (WebCore::Console::lastWMLErrorMessage): |
|
1066 * page/Console.idl: |
|
1067 |
|
1068 2010-07-20 Rafael Antognolli <antognolli@profusion.mobi> |
|
1069 |
|
1070 Reviewed by Kent Tamura. |
|
1071 |
|
1072 [EFL] Use log functions instead of fprintf |
|
1073 https://bugs.webkit.org/show_bug.cgi?id=42576 |
|
1074 |
|
1075 Use LOG and LOG_ERROR instead of fprintf. |
|
1076 |
|
1077 No new tests, no new functionality. |
|
1078 |
|
1079 * platform/efl/WidgetEfl.cpp: |
|
1080 (WebCore::Widget::applyFallbackCursor): |
|
1081 |
|
1082 2010-07-20 Ilya Tikhonovsky <loislo@chromium.org> |
|
1083 |
|
1084 Reviewed by Yury Semikhatsky. |
|
1085 |
|
1086 WebInspector: the bindings generation helper script can be |
|
1087 simplified a bit. Chromium. |
|
1088 https://bugs.webkit.org/show_bug.cgi?id=42523 |
|
1089 |
|
1090 * WebCore.gyp/WebCore.gyp: |
|
1091 * WebCore.gyp/scripts/rule_binding.py: |
|
1092 * bindings/scripts/CodeGenerator.pm: |
|
1093 * bindings/scripts/CodeGeneratorCPP.pm: |
|
1094 * bindings/scripts/CodeGeneratorJS.pm: |
|
1095 * bindings/scripts/CodeGeneratorObjC.pm: |
|
1096 * bindings/scripts/CodeGeneratorV8.pm: |
|
1097 * bindings/scripts/generate-bindings.pl: |
|
1098 * inspector/CodeGeneratorInspector.pm: |
|
1099 |
|
1100 2010-07-20 Steve Falkenburg <sfalken@apple.com> |
|
1101 |
|
1102 Re-save vsprops file after no-op edit in Visual Studio |
|
1103 to fix manual edit issues. |
|
1104 |
|
1105 * WebCore.vcproj/WebCoreCommon.vsprops: |
|
1106 |
|
1107 2010-07-20 Steve Falkenburg <sfalken@apple.com> |
|
1108 |
|
1109 Re-save vcproj file after no-op edit in Visual Studio |
|
1110 to fix manual edit issues. |
|
1111 |
|
1112 * WebCore.vcproj/WebCore.vcproj: |
|
1113 |
|
1114 2010-07-20 Adam Barth <abarth@webkit.org> |
|
1115 |
|
1116 Reviewed by Eric Seidel. |
|
1117 |
|
1118 Include attributes when reconstructing elements in HTML5 tree builder |
|
1119 https://bugs.webkit.org/show_bug.cgi?id=42594 |
|
1120 |
|
1121 Remove FIXME now that we have a test. |
|
1122 |
|
1123 * html/HTMLConstructionSite.cpp: |
|
1124 (WebCore::HTMLConstructionSite::createHTMLElementFromElementRecord): |
|
1125 |
|
1126 2010-07-20 Sam Weinig <sam@webkit.org> |
|
1127 |
|
1128 Reviewed by Brady Eidson. |
|
1129 |
|
1130 Patch for https://bugs.webkit.org/show_bug.cgi?id=42719 |
|
1131 Make Acid2 pass in WebKit2 |
|
1132 |
|
1133 * WebCore.exp.in: Update exported functions. |
|
1134 |
|
1135 2010-07-20 Gavin Peters <gavinp@chromium.org> |
|
1136 |
|
1137 Reviewed by Adam Barth. |
|
1138 |
|
1139 prefetch categorization is exactly wrong |
|
1140 https://bugs.webkit.org/show_bug.cgi?id=42651 |
|
1141 |
|
1142 While I was in the area, I saw that CachedResource::schedule() was dead, so I have removed it. |
|
1143 |
|
1144 Test: fast/dom/HTMLLinkElement/onload-completion-test.html |
|
1145 |
|
1146 * loader/CachedCSSStyleSheet.h: |
|
1147 * loader/CachedFont.h: |
|
1148 * loader/CachedImage.h: |
|
1149 * loader/CachedResource.cpp: |
|
1150 * loader/CachedResource.h: |
|
1151 (WebCore::CachedResource::isPrefetch): |
|
1152 * loader/CachedScript.h: |
|
1153 * loader/CachedXBLDocument.h: |
|
1154 * loader/CachedXSLStyleSheet.h: |
|
1155 |
|
1156 2010-07-20 James Hawkins <jhawkins@chromium.org> |
|
1157 |
|
1158 Reviewed by Darin Fisher. |
|
1159 |
|
1160 Expose the form submission trigger on the HTMLFormElement object. This |
|
1161 is used to verify that the user submitted the form instead of JS when |
|
1162 saving form data in Chrome AutoFill. |
|
1163 https://bugs.webkit.org/show_bug.cgi?id=42479 |
|
1164 |
|
1165 No new tests as this is only used by the Chromium WebKit API. |
|
1166 |
|
1167 * html/HTMLFormElement.cpp: |
|
1168 (WebCore::HTMLFormElement::HTMLFormElement): |
|
1169 (WebCore::HTMLFormElement::submit): |
|
1170 (WebCore::HTMLFormElement::reset): |
|
1171 (WebCore::HTMLFormElement::submissionTrigger): |
|
1172 * html/HTMLFormElement.h: |
|
1173 |
|
1174 2010-07-20 Adam Barth <abarth@webkit.org> |
|
1175 |
|
1176 Unreviewed. |
|
1177 |
|
1178 Fix fast/dom/title-content-write-set.html for HTML5 tree builder |
|
1179 https://bugs.webkit.org/show_bug.cgi?id=42668 |
|
1180 |
|
1181 Address some late-breaking review comments. |
|
1182 |
|
1183 * dom/CharacterData.cpp: |
|
1184 (WebCore::CharacterData::appendDataCommon): |
|
1185 (WebCore::CharacterData::parserAppendData): |
|
1186 (WebCore::CharacterData::appendData): |
|
1187 (WebCore::CharacterData::insertData): |
|
1188 (WebCore::CharacterData::replaceData): |
|
1189 * dom/CharacterData.h: |
|
1190 |
|
1191 2010-07-20 Daniel Erat <derat@chromium.org> |
|
1192 |
|
1193 Reviewed by Ojan Vafai. |
|
1194 |
|
1195 Subpixel rendering always disabled for Chromium Linux |
|
1196 https://bugs.webkit.org/show_bug.cgi?id=42220 |
|
1197 |
|
1198 Explicitly initialize global Chromium Linux isSkiaSubpixelGlyphs |
|
1199 flag to false for clarity. |
|
1200 |
|
1201 * platform/graphics/chromium/FontPlatformDataLinux.cpp: |
|
1202 |
|
1203 2010-07-20 Adam Barth <abarth@webkit.org> |
|
1204 |
|
1205 Reviewed by Darin Adler. |
|
1206 |
|
1207 Fix fast/dom/title-content-write-set.html for HTML5 tree builder |
|
1208 https://bugs.webkit.org/show_bug.cgi?id=42668 |
|
1209 |
|
1210 When I split parserAppendData from appendData, it was tempting to cut |
|
1211 the function at dispatchModifiedEvent, but that's not quite right. We |
|
1212 still need to notify the parent that it's children have changed. |
|
1213 |
|
1214 * dom/CharacterData.cpp: |
|
1215 (WebCore::CharacterData::appendDataCommon): |
|
1216 (WebCore::CharacterData::parserAppendData): |
|
1217 (WebCore::CharacterData::appendData): |
|
1218 * dom/CharacterData.h: |
|
1219 |
|
1220 2010-07-20 Chris Fleizach <cfleizach@apple.com> |
|
1221 |
|
1222 Reviewed by Beth Dakin. |
|
1223 |
|
1224 CrashTracer: [USER] 300 crashes in Safari at com.apple.WebCore: WebCore::AccessibilityTable::isTableExposableThroughAccessibility + 573 |
|
1225 https://bugs.webkit.org/show_bug.cgi?id=42652 |
|
1226 |
|
1227 When a table cell accesses its parent table, we should not use getOrCreate, because creating an AXTable inspects its render tree state |
|
1228 which may be out of date, leading to a crash. |
|
1229 By using only get(), it implies that the AXTable must be created before AXTableCells. This should |
|
1230 always be the case when AT clients access a table. |
|
1231 |
|
1232 Test: accessibility/updating-attribute-in-table-causes-crash.html |
|
1233 |
|
1234 * accessibility/AccessibilityTableCell.cpp: |
|
1235 (WebCore::AccessibilityTableCell::parentTable): |
|
1236 |
|
1237 2010-07-20 Abhishek Arya <inferno@chromium.org> |
|
1238 |
|
1239 Reviewed by David Hyatt. |
|
1240 |
|
1241 Check the node is a text node before doing the static cast |
|
1242 for editing commands. |
|
1243 https://bugs.webkit.org/show_bug.cgi?id=42655 |
|
1244 |
|
1245 Test: editing/execCommand/editing-nontext-node-crash.xhtml |
|
1246 |
|
1247 * editing/DeleteSelectionCommand.cpp: |
|
1248 (WebCore::DeleteSelectionCommand::fixupWhitespace): |
|
1249 * editing/InsertLineBreakCommand.cpp: |
|
1250 (WebCore::InsertLineBreakCommand::doApply): |
|
1251 * editing/InsertParagraphSeparatorCommand.cpp: |
|
1252 (WebCore::InsertParagraphSeparatorCommand::doApply): |
|
1253 |
|
1254 2010-07-20 Leo Yang <leo.yang@torchmobile.com.cn> |
|
1255 |
|
1256 Reviewed by David Hyatt. |
|
1257 |
|
1258 Don't merge Anonymous block whose first child is inline run-in. |
|
1259 Make run-in recalculate its style after its renderer is destroyed. |
|
1260 https://bugs.webkit.org/show_bug.cgi?id=41375. |
|
1261 |
|
1262 Test: fast/runin/crash-when-reparent-sibling.html |
|
1263 |
|
1264 * rendering/RenderBlock.cpp: |
|
1265 (WebCore::canMergeContiguousAnonymousBlocks): |
|
1266 * rendering/RenderObjectChildList.cpp: |
|
1267 (WebCore::RenderObjectChildList::destroyLeftoverChildren): |
|
1268 |
|
1269 2010-07-20 Steve Block <steveblock@google.com> |
|
1270 |
|
1271 Unreviewed Qt test fix. |
|
1272 |
|
1273 Qt should not use PREEMPT_GEOLOCATION_PERMISSION until Bug 42027 is fixed. |
|
1274 https://bugs.webkit.org/show_bug.cgi?id=42068 |
|
1275 |
|
1276 No new tests, test fix only. |
|
1277 |
|
1278 * WebCore.pro: |
|
1279 |
|
1280 2010-07-20 Sheriff Bot <webkit.review.bot@gmail.com> |
|
1281 |
|
1282 Unreviewed, rolling out r63764. |
|
1283 http://trac.webkit.org/changeset/63764 |
|
1284 https://bugs.webkit.org/show_bug.cgi?id=42658 |
|
1285 |
|
1286 have broken Chromium linux build (Requested by loislo on |
|
1287 #webkit). |
|
1288 |
|
1289 * WebCore.gyp/WebCore.gyp: |
|
1290 * WebCore.gyp/scripts/rule_binding.py: |
|
1291 * bindings/scripts/CodeGenerator.pm: |
|
1292 * bindings/scripts/CodeGeneratorCPP.pm: |
|
1293 * bindings/scripts/CodeGeneratorJS.pm: |
|
1294 * bindings/scripts/CodeGeneratorObjC.pm: |
|
1295 * bindings/scripts/CodeGeneratorV8.pm: |
|
1296 * bindings/scripts/generate-bindings.pl: |
|
1297 * inspector/CodeGeneratorInspector.pm: |
|
1298 |
|
1299 2010-07-20 Alexey Proskuryakov <ap@apple.com> |
|
1300 |
|
1301 Reviewed by Brady Eidson. |
|
1302 |
|
1303 https://bugs.webkit.org/show_bug.cgi?id=41531 |
|
1304 Asynchronous cross origin XMLHttpRequest doesn't expose 401 response when withCredentials is false |
|
1305 |
|
1306 This doesn't match Firefox, but it matches our sync case, XHR2 spec and common sense. |
|
1307 |
|
1308 Test: http/tests/xmlhttprequest/cross-origin-no-authorization.html (updated results). |
|
1309 |
|
1310 * loader/DocumentThreadableLoader.cpp: |
|
1311 (WebCore::DocumentThreadableLoader::didReceiveAuthenticationChallenge): Instead of canceling |
|
1312 the request, continue without credentials - if the platform has a necessary method on |
|
1313 ResourceHandle. |
|
1314 |
|
1315 * loader/SubresourceLoader.cpp: |
|
1316 (WebCore::SubresourceLoader::didReceiveAuthenticationChallenge): Don't ask resource loader |
|
1317 client for credentials if subresource loader client already took care of those. |
|
1318 |
|
1319 * platform/network/ResourceHandle.cpp: (WebCore::ResourceHandle::hasAuthenticationChallenge): |
|
1320 * platform/network/ResourceHandle.h: |
|
1321 Added an accessor to check whether ResourceHandle is currently waiting for credentials. |
|
1322 |
|
1323 2010-07-20 Leandro Pereira <leandro@profusion.mobi> |
|
1324 |
|
1325 [EFL] Unreviewed build fix. |
|
1326 |
|
1327 Build SVGPathBuilder, SVGPathParser and SVGPathSegListBuilder. |
|
1328 Add websockets include directory. |
|
1329 |
|
1330 The EFL port doesn't yet support automated tests. |
|
1331 |
|
1332 * CMakeLists.txt: |
|
1333 |
|
1334 2010-07-20 Ilya Tikhonovsky <loislo@chromium.org> |
|
1335 |
|
1336 Reviewed by Yury Semikhatsky. |
|
1337 |
|
1338 WebInspector: the bindings generation helper script can be |
|
1339 simplified a bit. Chromium. |
|
1340 https://bugs.webkit.org/show_bug.cgi?id=42523 |
|
1341 |
|
1342 * WebCore.gyp/WebCore.gyp: |
|
1343 * WebCore.gyp/scripts/rule_binding.py: |
|
1344 * bindings/scripts/CodeGenerator.pm: |
|
1345 * bindings/scripts/CodeGeneratorCPP.pm: |
|
1346 * bindings/scripts/CodeGeneratorJS.pm: |
|
1347 * bindings/scripts/CodeGeneratorObjC.pm: |
|
1348 * bindings/scripts/CodeGeneratorV8.pm: |
|
1349 * bindings/scripts/generate-bindings.pl: |
|
1350 * inspector/CodeGeneratorInspector.pm: |
|
1351 |
|
1352 2010-07-20 Joseph Pecoraro <joepeck@webkit.org> |
|
1353 |
|
1354 Reviewed by Geoffrey Garen. |
|
1355 |
|
1356 WebScriptObject Should Allow Safely Checking For Key Existence |
|
1357 https://bugs.webkit.org/show_bug.cgi?id=42613 |
|
1358 |
|
1359 Test: platform/mac/fast/objc/webScriptObject-hasWebScriptKey.html |
|
1360 |
|
1361 Add private API "hasWebScriptKey" to check for key existence in |
|
1362 a WebScriptObject. Like JavaScript's `in` syntax. This is intended |
|
1363 to be made public eventually. |
|
1364 |
|
1365 * bindings/objc/WebScriptObject.mm: |
|
1366 (-[WebScriptObject hasWebScriptKey:]): |
|
1367 * bindings/objc/WebScriptObjectPrivate.h: |
|
1368 |
|
1369 2010-07-20 Adam Barth <abarth@webkit.org> |
|
1370 |
|
1371 Reviewed by Eric Seidel. |
|
1372 |
|
1373 HTML5 tree builder needs to call dispatchDocumentElementAvailable |
|
1374 https://bugs.webkit.org/show_bug.cgi?id=42654 |
|
1375 |
|
1376 This patch fixes the follout LayoutTests with --html5-treebuilder: |
|
1377 - userscripts/script-not-run-for-fragments.html |
|
1378 - userscripts/script-run-at-start.html |
|
1379 |
|
1380 * html/HTMLConstructionSite.cpp: |
|
1381 (WebCore::HTMLConstructionSite::HTMLConstructionSite): |
|
1382 (WebCore::HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded): |
|
1383 (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML): |
|
1384 (WebCore::HTMLConstructionSite::insertHTMLHtmlElement): |
|
1385 * html/HTMLConstructionSite.h: |
|
1386 * html/HTMLTreeBuilder.cpp: |
|
1387 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
1388 |
|
1389 2010-07-20 Mahesh Kulkarni <mahesh.kulkarni@nokia.com> |
|
1390 |
|
1391 Reviewed by Steve Block. |
|
1392 |
|
1393 Need to be able to configure Geolocation policy regarding user permissions |
|
1394 https://bugs.webkit.org/show_bug.cgi?id=42068 |
|
1395 |
|
1396 Introducing new USE() flag PREEMPT_GEOLOCATION_PREMISSION using which |
|
1397 acquires user permission first before starting location service |
|
1398 |
|
1399 This change does not introduce any change in behavior for any platform. So there are no new tests |
|
1400 added. |
|
1401 |
|
1402 * WebCore.pro: |
|
1403 * page/Geolocation.cpp: |
|
1404 (WebCore::Geolocation::startRequest): |
|
1405 (WebCore::Geolocation::setIsAllowed): |
|
1406 (WebCore::Geolocation::startUpdating): |
|
1407 * page/Geolocation.h: |
|
1408 |
|
1409 2010-07-20 Adam Barth <abarth@webkit.org> |
|
1410 |
|
1411 Reviewed by Darin Adler. |
|
1412 |
|
1413 HTML5 tree builder should restore form state |
|
1414 https://bugs.webkit.org/show_bug.cgi?id=42644 |
|
1415 |
|
1416 We need to tell self-closing tags that we're done parsing their |
|
1417 children. This patch fixes the following LayoutTests when run with |
|
1418 --html5-treebuilder: |
|
1419 |
|
1420 fast/forms/button-state-restore.html |
|
1421 fast/forms/state-restore-to-non-autocomplete-form.html |
|
1422 fast/forms/state-restore-to-non-edited-controls.html |
|
1423 fast/history/saves-state-after-fragment-nav.html |
|
1424 http/tests/navigation/restore-form-state-https.html |
|
1425 |
|
1426 * html/HTMLConstructionSite.cpp: |
|
1427 (WebCore::HTMLConstructionSite::insertSelfClosingHTMLElement): |
|
1428 |
|
1429 2010-07-20 Sheriff Bot <webkit.review.bot@gmail.com> |
|
1430 |
|
1431 Unreviewed, rolling out r63750. |
|
1432 http://trac.webkit.org/changeset/63750 |
|
1433 https://bugs.webkit.org/show_bug.cgi?id=42648 |
|
1434 |
|
1435 This revision breaks the windows builds (Requested by |
|
1436 hwennborg on #webkit). |
|
1437 |
|
1438 * bindings/generic/RuntimeEnabledFeatures.cpp: |
|
1439 * bindings/generic/RuntimeEnabledFeatures.h: |
|
1440 * page/DOMWindow.cpp: |
|
1441 (WebCore::DOMWindow::addEventListener): |
|
1442 (WebCore::DOMWindow::removeEventListener): |
|
1443 (WebCore::DOMWindow::removeAllEventListeners): |
|
1444 * page/DOMWindow.idl: |
|
1445 * page/Page.cpp: |
|
1446 (WebCore::Page::Page): |
|
1447 |
|
1448 2010-07-20 Ilya Tikhonovsky <loislo@chromium.org> |
|
1449 |
|
1450 Reviewed by Pavel Feldman. |
|
1451 |
|
1452 WebInspector: It is possible to show full call stack instead of top frame for Caller |
|
1453 and Call Site properties in Timeline panel. |
|
1454 https://bugs.webkit.org/show_bug.cgi?id=42620 |
|
1455 |
|
1456 * English.lproj/localizedStrings.js: |
|
1457 * inspector/front-end/TimelinePanel.js: |
|
1458 (WebInspector.TimelinePanel.FormattedRecord): |
|
1459 (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent): |
|
1460 (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails): |
|
1461 (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendElementRow): |
|
1462 (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendLinkRow): |
|
1463 (WebInspector.TimelinePanel.PopupContentHelper.prototype._appendStackTrace): |
|
1464 * inspector/front-end/inspector.css: |
|
1465 (.timeline-details): |
|
1466 (.timeline-function-name): |
|
1467 (.timeline-stacktrace-title): |
|
1468 |
|
1469 2010-07-20 Leon Clarke <leonclarke@google.com> |
|
1470 |
|
1471 Reviewed by Pavel Feldman. |
|
1472 |
|
1473 Make things compile again when the inspector is disabled, following |
|
1474 recent inspector improvements. |
|
1475 https://bugs.webkit.org/show_bug.cgi?id=42632 |
|
1476 |
|
1477 No new tests. Fixing a build break. |
|
1478 |
|
1479 |
|
1480 * bindings/v8/ScriptCallStack.cpp: |
|
1481 (WebCore::ScriptCallStack::stackTrace): |
|
1482 * inspector/InspectorController.h: |
|
1483 (WebCore::InspectorController::didInsertDOMNode): |
|
1484 (WebCore::InspectorController::didRemoveDOMNode): |
|
1485 (WebCore::InspectorController::didModifyDOMAttr): |
|
1486 * inspector/InspectorDOMAgent.h: |
|
1487 * loader/appcache/ApplicationCacheGroup.cpp: |
|
1488 |
|
1489 2010-07-20 Anton Muhin <antonm@chromium.org> |
|
1490 |
|
1491 Reviewed by Adam Barth. |
|
1492 |
|
1493 [v8] Allow handles to be disposed and WebKit objects to be dereferenced even if their map is already destroyed. |
|
1494 https://bugs.webkit.org/show_bug.cgi?id=42634 |
|
1495 |
|
1496 Currently DOMDataStore could be destroyed even if it has some mappings (it gets destroyed |
|
1497 when its isolated context gets GCed). However in this case, handles allocated for |
|
1498 such objects would never be disposed as we require presence of mapping from wrapped |
|
1499 WebKit object to handle being collected in the map and now map is gone. That leads to |
|
1500 zombie objects in both WebKit (wrapped WebKit object doesn't get dereferenced) and V8 |
|
1501 (both handle and V8 wrapper object could not be destroyed). |
|
1502 |
|
1503 See http://code.google.com/p/chromium/issues/detail?id=47125 for further discussion. |
|
1504 |
|
1505 * bindings/v8/DOMData.h: |
|
1506 (WebCore::DOMData::handleWeakObject): |
|
1507 * bindings/v8/DOMDataStore.cpp: |
|
1508 (WebCore::DOMDataStore::weakNodeCallback): |
|
1509 * bindings/v8/V8DOMMap.h: |
|
1510 (WebCore::WeakReferenceMap::~WeakReferenceMap): |
|
1511 |
|
1512 2010-07-20 Hans Wennborg <hans@chromium.org> |
|
1513 |
|
1514 Reviewed by Steve Block. |
|
1515 |
|
1516 Runtime feature switch for device orientation |
|
1517 https://bugs.webkit.org/show_bug.cgi?id=42265 |
|
1518 |
|
1519 Add a runtime feature switch that decides whether device orientation |
|
1520 events are available or not. Defaults to true. |
|
1521 |
|
1522 * bindings/generic/RuntimeEnabledFeatures.cpp: |
|
1523 * bindings/generic/RuntimeEnabledFeatures.h: |
|
1524 (WebCore::RuntimeEnabledFeatures::setDeviceOrientationEnabled): |
|
1525 (WebCore::RuntimeEnabledFeatures::deviceOrientationEnabled): |
|
1526 (WebCore::RuntimeEnabledFeatures::deviceOrientationEventEnabled): |
|
1527 (WebCore::RuntimeEnabledFeatures::ondeviceorientationEnabled): |
|
1528 * page/DOMWindow.cpp: |
|
1529 (WebCore::DOMWindow::addEventListener): |
|
1530 (WebCore::DOMWindow::removeEventListener): |
|
1531 (WebCore::DOMWindow::removeAllEventListeners): |
|
1532 * page/DOMWindow.idl: |
|
1533 * page/Page.cpp: |
|
1534 (WebCore::Page::Page): |
|
1535 |
|
1536 2010-07-20 Hayato Ito <hayato@chromium.org> |
|
1537 |
|
1538 Reviewed by Darin Adler. |
|
1539 |
|
1540 Fixed a crash when deeply nested CSS selector is used. |
|
1541 https://bugs.webkit.org/show_bug.cgi?id=41129 |
|
1542 |
|
1543 This patch deletes CSSSelectors iteratively so that it doesn't cause stack overflow. |
|
1544 |
|
1545 Test: fast/css/css-selector-deeply-nested.html |
|
1546 |
|
1547 * css/CSSSelector.cpp: |
|
1548 (WebCore::CSSSelectorBag::~CSSSelectorBag): |
|
1549 (WebCore::CSSSelectorBag::isEmpty): |
|
1550 (WebCore::CSSSelectorBag::append): |
|
1551 (WebCore::CSSSelectorBag::takeAny): |
|
1552 (WebCore::CSSSelector::~CSSSelector): |
|
1553 (WebCore::CSSSelector::specificity): |
|
1554 * css/CSSSelector.h: |
|
1555 |
|
1556 2010-07-20 Yury Semikhatsky <yurys@chromium.org> |
|
1557 |
|
1558 Reviewed by Pavel Feldman. |
|
1559 |
|
1560 [v8] Web Inspector: inspected page renderer crashes when inspected page has JS syntax error |
|
1561 https://bugs.webkit.org/show_bug.cgi?id=42642 |
|
1562 |
|
1563 * bindings/v8/V8ConsoleMessage.cpp: |
|
1564 (WebCore::V8ConsoleMessage::handler): |
|
1565 |
|
1566 2010-07-20 Sheriff Bot <webkit.review.bot@gmail.com> |
|
1567 |
|
1568 Unreviewed, rolling out r63742. |
|
1569 http://trac.webkit.org/changeset/63742 |
|
1570 https://bugs.webkit.org/show_bug.cgi?id=42641 |
|
1571 |
|
1572 Broke Leopard Intel build. (Requested by bbandix on #webkit). |
|
1573 |
|
1574 * WebCore.pro: |
|
1575 * page/Geolocation.cpp: |
|
1576 (WebCore::Geolocation::startRequest): |
|
1577 (WebCore::Geolocation::setIsAllowed): |
|
1578 (WebCore::Geolocation::startUpdating): |
|
1579 * page/Geolocation.h: |
|
1580 |
|
1581 2010-07-20 Adam Roben <aroben@apple.com> |
|
1582 |
|
1583 Windows build fix |
|
1584 |
|
1585 * WebCore.vcproj/WebCore.vcproj: Fixed case of "Name" attribute. |
|
1586 |
|
1587 2010-07-20 Mahesh Kulkarni <mahesh.kulkarni@nokia.com> |
|
1588 |
|
1589 Reviewed by Steve Block. |
|
1590 |
|
1591 Need to be able to configure Geolocation policy regarding user permissions |
|
1592 https://bugs.webkit.org/show_bug.cgi?id=42068 |
|
1593 |
|
1594 Introducing new USE() flag PREEMPT_GEOLOCATION_PREMISSION using which |
|
1595 acquires user permission first before starting location service |
|
1596 |
|
1597 This change does not introduce any change in behavior for any platform. So there are no new tests |
|
1598 added. |
|
1599 |
|
1600 * WebCore.pro: |
|
1601 * page/Geolocation.cpp: |
|
1602 (WebCore::Geolocation::startRequest): |
|
1603 (WebCore::Geolocation::setIsAllowed): |
|
1604 (WebCore::Geolocation::startUpdating): |
|
1605 * page/Geolocation.h: |
|
1606 |
|
1607 2010-07-20 Alexander Pavlov <apavlov@chromium.org> |
|
1608 |
|
1609 Reviewed by Pavel Feldman. |
|
1610 |
|
1611 Inspector: Resources Search Should Search Only Filtered Resources |
|
1612 https://bugs.webkit.org/show_bug.cgi?id=28290 |
|
1613 |
|
1614 * inspector/front-end/AbstractTimelinePanel.js: |
|
1615 (WebInspector.AbstractTimelinePanel.prototype._updateFilter): |
|
1616 * inspector/front-end/ResourcesPanel.js: |
|
1617 (WebInspector.ResourcesPanel.prototype.get searchableViews): |
|
1618 * inspector/front-end/inspector.js: |
|
1619 (WebInspector.performSearch): |
|
1620 (WebInspector.doPerformSearch): |
|
1621 |
|
1622 2010-07-20 Alexander Pavlov <apavlov@chromium.org> |
|
1623 |
|
1624 Reviewed by Pavel Feldman. |
|
1625 |
|
1626 Web Inspector: Incorrect absolute URLs in tooltips of links in the ElementsTreeOutline |
|
1627 https://bugs.webkit.org/show_bug.cgi?id=42626 |
|
1628 |
|
1629 * inspector/front-end/ElementsTreeOutline.js: |
|
1630 (WebInspector.ElementsTreeElement.prototype._attributeHTML): |
|
1631 |
|
1632 2010-07-20 Shinichiro Hamaji <hamaji@chromium.org> |
|
1633 |
|
1634 Unreviewed comment fix. The comment in IDL should be //, not # . |
|
1635 |
|
1636 Code generator: ensure generated constants match their corresponding enums. |
|
1637 https://bugs.webkit.org/show_bug.cgi?id=42250 |
|
1638 |
|
1639 * dom/OverflowEvent.idl: |
|
1640 |
|
1641 2010-07-20 Hans Wennborg <hans@chromium.org> |
|
1642 |
|
1643 Reviewed by Steve Block. |
|
1644 |
|
1645 Add WebCore/bindings/generic/RuntimeEnabledFeatures.cpp to build files |
|
1646 https://bugs.webkit.org/show_bug.cgi?id=42380 |
|
1647 |
|
1648 RuntimeEnabledFeatures.cpp and .h were moved from bindings/v8 to |
|
1649 bindings/generic a while a go (in r54593), but need to |
|
1650 be added to the build in order to be used. |
|
1651 |
|
1652 No new functionality so no new tests. |
|
1653 |
|
1654 * Android.mk: |
|
1655 * CMakeLists.txt: |
|
1656 * GNUmakefile.am: |
|
1657 * WebCore.pro: |
|
1658 * WebCore.vcproj/WebCore.vcproj: |
|
1659 * WebCore.xcodeproj/project.pbxproj: |
|
1660 * websockets/WebSocket.cpp: Remove #if USE(V8), as RuntimeEnabledFeatures.cpp is no longer V8-only. |
|
1661 * websockets/WebSocket.h: Ditto. |
|
1662 |
|
1663 2010-07-20 Tony Chang <tony@chromium.org> |
|
1664 |
|
1665 Reviewed by Kent Tamura. |
|
1666 |
|
1667 clean up style in ClipboardWin and PasteboardWin |
|
1668 https://bugs.webkit.org/show_bug.cgi?id=42609 |
|
1669 |
|
1670 No new tests since this is just a style cleanup. |
|
1671 |
|
1672 * platform/win/ClipboardUtilitiesWin.cpp: |
|
1673 (WebCore::createGlobalData): |
|
1674 (WebCore::markupToCFHTML): |
|
1675 (WebCore::getURL): |
|
1676 (WebCore::getPlainText): |
|
1677 (WebCore::getTextHTML): |
|
1678 (WebCore::fragmentFromFilenames): |
|
1679 (WebCore::containsFilenames): |
|
1680 (WebCore::fragmentFromCFHTML): |
|
1681 (WebCore::fragmentFromHTML): |
|
1682 * platform/win/ClipboardUtilitiesWin.h: |
|
1683 * platform/win/ClipboardWin.cpp: |
|
1684 (WebCore::pathRemoveBadFSCharacters): |
|
1685 (WebCore::createGlobalHDropContent): |
|
1686 (WebCore::createGlobalUrlFileDescriptor): |
|
1687 (WebCore::writeURL): |
|
1688 (WebCore::ClipboardWin::clearData): |
|
1689 (WebCore::ClipboardWin::clearAllData): |
|
1690 (WebCore::ClipboardWin::getData): |
|
1691 (WebCore::ClipboardWin::types): |
|
1692 (WebCore::ClipboardWin::declareAndWriteDragImage): |
|
1693 (WebCore::ClipboardWin::writeRange): |
|
1694 * platform/win/ClipboardWin.h: |
|
1695 (WebCore::ClipboardWin::create): |
|
1696 (WebCore::ClipboardWin::dataObject): |
|
1697 * platform/win/PasteboardWin.cpp: |
|
1698 (WebCore::PasteboardOwnerWndProc): |
|
1699 (WebCore::Pasteboard::writeSelection): |
|
1700 (WebCore::Pasteboard::writeURL): |
|
1701 (WebCore::Pasteboard::plainText): |
|
1702 (WebCore::Pasteboard::documentFragment): |
|
1703 |
|
1704 2010-07-20 Yury Semikhatsky <yurys@chromium.org> |
|
1705 |
|
1706 Reviewed by Pavel Feldman. |
|
1707 |
|
1708 Web Inspector: jump to source is broken for call frames logged by console.trace |
|
1709 https://bugs.webkit.org/show_bug.cgi?id=42619 |
|
1710 |
|
1711 * inspector/front-end/ConsoleView.js: |
|
1712 (WebInspector.ConsoleMessage.prototype._populateStackTraceTreeElement): |
|
1713 * inspector/front-end/treeoutline.js: allow passing HTML element as a title. |
|
1714 (TreeElement.prototype.set title): |
|
1715 (TreeElement.prototype.set shouldRefreshChildren): |
|
1716 (TreeElement.prototype._setListItemNodeContent): |
|
1717 (TreeElement.prototype._attach): |
|
1718 |
|
1719 2010-07-20 Tony Chang <tony@chromium.org> |
|
1720 |
|
1721 Reviewed by Dan Bernstein. |
|
1722 |
|
1723 [chromium] crash in Position::getInlineBoxAndOffset |
|
1724 https://bugs.webkit.org/show_bug.cgi?id=42202 |
|
1725 |
|
1726 Test: editing/selection/firstRect-crash.html |
|
1727 Manual test: win/contextmenu-key2.html |
|
1728 |
|
1729 * page/EventHandler.cpp: Code no longer needed |
|
1730 * page/Frame.cpp: |
|
1731 (WebCore::Frame::firstRectForRange): Normalize Positions to VisiblePositions because |
|
1732 Positions may be pointing to nodes that have no renderer. If there's no renderer, |
|
1733 getInlineBoxAndOffset will crash. |
|
1734 |
|
1735 2010-07-20 Adam Barth <abarth@webkit.org> |
|
1736 |
|
1737 Reviewed by Darin Adler. |
|
1738 |
|
1739 Foster parenting depends on the current element at insertion time |
|
1740 https://bugs.webkit.org/show_bug.cgi?id=42599 |
|
1741 |
|
1742 We need to consider the current element at insertion-time when deciding |
|
1743 whether to redirect insertion to the foster parent. Previously, we |
|
1744 were considering the current element *both* at insertion-time and at |
|
1745 the time we created the guard. |
|
1746 |
|
1747 * html/HTMLConstructionSite.h: |
|
1748 (WebCore::HTMLConstructionSite::RedirectToFosterParentGuard::RedirectToFosterParentGuard): |
|
1749 * html/HTMLTreeBuilder.cpp: |
|
1750 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
1751 (WebCore::HTMLTreeBuilder::processEndTagForInTable): |
|
1752 (WebCore::HTMLTreeBuilder::defaultForInTableText): |
|
1753 |
|
1754 2010-07-20 Matthew Delaney <mdelaney@apple.com> |
|
1755 |
|
1756 Reviewed by Kenneth Rohde Christiansen. |
|
1757 |
|
1758 Failing 2d.path.stroke.prune.curve philip canvas test |
|
1759 https://bugs.webkit.org/show_bug.cgi?id=42190 |
|
1760 |
|
1761 * html/canvas/CanvasRenderingContext2D.cpp: |
|
1762 (WebCore::CanvasRenderingContext2D::closePath): Added check to make sure there's a non-trivial path to close. Since there is currently no way to check if the current point is the start point, or similarly if there is only 1 point in the current subpath (since these are both sufficient conditions for a trivial subpath), then checking that the bounding rectangle has both zero width and height proves also to be a sufficient condition for a trivial path. |
|
1763 (WebCore::CanvasRenderingContext2D::quadraticCurveTo): Added in simple bounds as per the spec. |
|
1764 (WebCore::CanvasRenderingContext2D::bezierCurveTo): Added in simple bounds as per the spec. |
|
1765 * platform/graphics/cg/PathCG.cpp: |
|
1766 (WebCore::Path::closeSubpath): Moved the check for an empty path up on level to make it platform independent and remove redundancy. |
|
1767 |
|
1768 2010-07-19 Victoria Kirst <vrk@google.com> |
|
1769 |
|
1770 Reviewed by David Levin. |
|
1771 |
|
1772 Added a simple implementation of VideoLayerChromium. Uses the |
|
1773 LayerChromium::updateTextureRect() to send video frames to the |
|
1774 GPU. |
|
1775 https://bugs.webkit.org/show_bug.cgi?id=42234 |
|
1776 |
|
1777 * WebCore.gypi: Added include for VideoLayerChromium. |
|
1778 * platform/graphics/chromium/GraphicsLayerChromium.cpp: |
|
1779 (WebCore::GraphicsLayerChromium::setContentsToMedia): Implemented |
|
1780 setContentsToMedia, though it does not seem to trigger a repaint |
|
1781 correctly. |
|
1782 * platform/graphics/chromium/GraphicsLayerChromium.h: |
|
1783 * platform/graphics/chromium/VideoLayerChromium.cpp: Added. |
|
1784 (WebCore::VideoLayerChromium::create): |
|
1785 (WebCore::VideoLayerChromium::VideoLayerChromium): |
|
1786 (WebCore::VideoLayerChromium::updateTextureContents): |
|
1787 * platform/graphics/chromium/VideoLayerChromium.h: Added. |
|
1788 (WebCore::VideoLayerChromium::drawsContent): |
|
1789 |
|
1790 2010-07-19 Dirk Schulze <krit@webkit.org> |
|
1791 |
|
1792 Reviewed by Nikolas Zimmermann. |
|
1793 |
|
1794 SVG CleanUp of SVGPathData parsing |
|
1795 https://bugs.webkit.org/show_bug.cgi?id=41410 |
|
1796 |
|
1797 Cleanup the parsing code for SVG Paths. Move classes out of the convoluted SVGParserUtilities.cpp |
|
1798 in their own files. Make use of WebCore specific objects in parsing code like FloatPoint, AffineTransform, |
|
1799 etc. instead of using home-brewn solutions. |
|
1800 The SVGPathParser parses a path data string and delivers the parsed segments and values to the SVGPathConsumer. |
|
1801 SVGPathConsumer is the base class for SVGPathBuilder and SVGPathSegListBuilder, that either build the platform |
|
1802 Path object or a SVGPathSegList out of the segments. |
|
1803 We're now directly parsing floats instead of truncating precision to float afterwards. |
|
1804 |
|
1805 SVG Path with an arc with radius of 0 does not render |
|
1806 https://bugs.webkit.org/show_bug.cgi?id=40448 |
|
1807 |
|
1808 If one of the radii on the elliptic arc are zero, we should draw a line from the starting point to |
|
1809 the end point according to the spec. Fixed this bug with this patch, because an is zero check and |
|
1810 an DRT check was neccessary with the current clean-up. |
|
1811 Extended svg/dom/path-parser.xhml to check the correct behavior. |
|
1812 |
|
1813 * Android.mk: |
|
1814 * GNUmakefile.am: |
|
1815 * WebCore.gypi: |
|
1816 * WebCore.pro: |
|
1817 * WebCore.vcproj/WebCore.vcproj: |
|
1818 * WebCore.xcodeproj/project.pbxproj: |
|
1819 * platform/graphics/FloatPoint.h: |
|
1820 (WebCore::FloatPoint::move): Follow WebKit style and use multiple lines for the function. |
|
1821 (WebCore::FloatPoint::scale): Scale FloatPoint. |
|
1822 (WebCore::operator+=): |
|
1823 (WebCore::operator+): Add two FloatPoints and give back the sum as FloatPoint. |
|
1824 * svg/SVGAllInOne.cpp: Added new created files. |
|
1825 * svg/SVGAnimateElement.cpp: |
|
1826 (WebCore::SVGAnimateElement::calculateFromAndToValues): Use new PathParser to create a PathSegList. |
|
1827 * svg/SVGAnimateMotionElement.cpp: |
|
1828 (WebCore::SVGAnimateMotionElement::parseMappedAttribute): Use new PathParser to create a Path. |
|
1829 * svg/SVGGlyphElement.cpp: |
|
1830 (WebCore::parsePathData): Use new PathParser to create a Path. |
|
1831 * svg/SVGParserUtilities.cpp: |
|
1832 (WebCore::parseArcFlag): Removed parseArcFlag(double&), we parse in float now. |
|
1833 * svg/SVGParserUtilities.h: Removed path parsing code and a lot of unneccessary includes. |
|
1834 * svg/SVGPathBuilder.cpp: Added. |
|
1835 (WebCore::SVGPathBuilder::SVGPathBuilder): |
|
1836 (WebCore::SVGPathBuilder::build): Builds a normalized Path. |
|
1837 (WebCore::SVGPathBuilder::moveTo): |
|
1838 (WebCore::SVGPathBuilder::lineTo): |
|
1839 (WebCore::SVGPathBuilder::curveToCubic): |
|
1840 (WebCore::SVGPathBuilder::closePath): |
|
1841 * svg/SVGPathBuilder.h: Added. We just create normalized Paths, so this functions should never be reached. |
|
1842 (WebCore::SVGPathBuilder::lineToHorizontal): |
|
1843 (WebCore::SVGPathBuilder::lineToVertical): |
|
1844 (WebCore::SVGPathBuilder::curveToCubicSmooth): |
|
1845 (WebCore::SVGPathBuilder::curveToQuadratic): |
|
1846 (WebCore::SVGPathBuilder::curveToQuadraticSmooth): |
|
1847 (WebCore::SVGPathBuilder::arcTo): |
|
1848 * svg/SVGPathConsumer.h: Added. Base class of SVGPathBuilder and SVGPathSegListBuilder. |
|
1849 (WebCore::): |
|
1850 (WebCore::SVGPathConsumer::SVGPathConsumer): |
|
1851 (WebCore::SVGPathConsumer::~SVGPathConsumer): |
|
1852 * svg/SVGPathElement.cpp: |
|
1853 (WebCore::SVGPathElement::parseMappedAttribute): Use new PathParser to create a PathSegList. |
|
1854 * svg/SVGPathParser.cpp: Added. |
|
1855 (WebCore::SVGPathParser::SVGPathParser): |
|
1856 (WebCore::SVGPathParser::~SVGPathParser): |
|
1857 (WebCore::SVGPathParser::parseClosePathSegment): |
|
1858 (WebCore::SVGPathParser::parseMoveToSegment): |
|
1859 (WebCore::SVGPathParser::parseLineToSegment): |
|
1860 (WebCore::SVGPathParser::parseLineToHorizontalSegment): |
|
1861 (WebCore::SVGPathParser::parseLineToVerticalSegment): |
|
1862 (WebCore::SVGPathParser::parseCurveToCubicSegment): |
|
1863 (WebCore::SVGPathParser::parseCurveToCubicSmoothSegment): |
|
1864 (WebCore::SVGPathParser::parseCurveToQuadraticSegment): |
|
1865 (WebCore::SVGPathParser::parseCurveToQuadraticSmoothSegment): |
|
1866 (WebCore::SVGPathParser::parseArcToSegment): |
|
1867 (WebCore::SVGPathParser::parsePathDataString): |
|
1868 (WebCore::SVGPathParser::decomposeArcToCubic): Normalizes an arc to multiple cubic curves. |
|
1869 * svg/SVGPathParser.h: Added. |
|
1870 * svg/SVGPathSegListBuilder.cpp: Added. |
|
1871 (WebCore::SVGPathSegListBuilder::SVGPathSegListBuilder): |
|
1872 (WebCore::SVGPathSegListBuilder::build): |
|
1873 (WebCore::SVGPathSegListBuilder::moveTo): |
|
1874 (WebCore::SVGPathSegListBuilder::lineTo): |
|
1875 (WebCore::SVGPathSegListBuilder::lineToHorizontal): |
|
1876 (WebCore::SVGPathSegListBuilder::lineToVertical): |
|
1877 (WebCore::SVGPathSegListBuilder::curveToCubic): |
|
1878 (WebCore::SVGPathSegListBuilder::curveToCubicSmooth): |
|
1879 (WebCore::SVGPathSegListBuilder::curveToQuadratic): |
|
1880 (WebCore::SVGPathSegListBuilder::curveToQuadraticSmooth): |
|
1881 (WebCore::SVGPathSegListBuilder::arcTo): |
|
1882 (WebCore::SVGPathSegListBuilder::closePath): |
|
1883 * svg/SVGPathSegListBuilder.h: Added. |
|
1884 |
|
1885 2010-07-15 Yuzo Fujishima <yuzo@google.com> |
|
1886 |
|
1887 Reviewed by Dan Bernstein. |
|
1888 |
|
1889 Fix for Bug 42342 - Font download error for an @font-face rule invalidates other @font-face rules for the same font-family |
|
1890 https://bugs.webkit.org/show_bug.cgi?id=42342 |
|
1891 |
|
1892 Test: fast/css/font-face-download-error.html |
|
1893 |
|
1894 * css/CSSSegmentedFontFace.cpp: |
|
1895 (WebCore::CSSSegmentedFontFace::isValid): Valid if at least one font |
|
1896 face is valid. |
|
1897 (WebCore::CSSSegmentedFontFace::getFontData): Check validity for each |
|
1898 font face. |
|
1899 * css/CSSSegmentedFontFace.h: Make isValid private. |
|
1900 |
|
1901 2010-07-19 Kent Tamura <tkent@chromium.org> |
|
1902 |
|
1903 Reviewed by Shinichiro Hamaji. |
|
1904 |
|
1905 [Chromium] Fix style errors of RenderThemeChromiumWin.cpp |
|
1906 https://bugs.webkit.org/show_bug.cgi?id=42568 |
|
1907 |
|
1908 * rendering/RenderThemeChromiumWin.cpp: |
|
1909 (WebCore::): |
|
1910 (WebCore::getNonClientMetrics): |
|
1911 (WebCore::systemFontSize): |
|
1912 (WebCore::pointsToPixels): |
|
1913 (WebCore::querySystemBlinkInterval): |
|
1914 (WebCore::RenderThemeChromiumWin::platformActiveSelectionBackgroundColor): |
|
1915 (WebCore::RenderThemeChromiumWin::platformInactiveSelectionBackgroundColor): |
|
1916 (WebCore::RenderThemeChromiumWin::platformActiveSelectionForegroundColor): |
|
1917 (WebCore::RenderThemeChromiumWin::platformActiveTextSearchHighlightColor): |
|
1918 (WebCore::RenderThemeChromiumWin::paintButton): |
|
1919 (WebCore::RenderThemeChromiumWin::paintSliderTrack): |
|
1920 (WebCore::RenderThemeChromiumWin::paintMenuList): |
|
1921 (WebCore::RenderThemeChromiumWin::paintTextFieldInternal): |
|
1922 (WebCore::RenderThemeChromiumWin::paintInnerSpinButton): |
|
1923 |
|
1924 2010-07-19 Steve Falkenburg <sfalken@apple.com> |
|
1925 |
|
1926 (Hopefully the last) Windows build fix. |
|
1927 |
|
1928 Version of CoreServices.h in WebKit Support Libraries uses |
|
1929 pragma once, unlike the version I have locally. Switch based |
|
1930 on __COLORSYNCDEPRECATED__ instead. |
|
1931 |
|
1932 * WebCorePrefix.h: |
|
1933 |
|
1934 2010-07-19 Steve Falkenburg <sfalken@apple.com> |
|
1935 |
|
1936 Windows build fix. |
|
1937 |
|
1938 * WebCorePrefix.h: |
|
1939 |
|
1940 2010-07-19 Steve Falkenburg <sfalken@apple.com> |
|
1941 |
|
1942 Build fix. |
|
1943 |
|
1944 * WebCorePrefix.h: |
|
1945 |
|
1946 2010-07-19 Steve Falkenburg <sfalken@apple.com> |
|
1947 |
|
1948 Build fix. |
|
1949 |
|
1950 * WebCorePrefix.h: |
|
1951 |
|
1952 2010-07-19 Steve Falkenburg <sfalken@apple.com> |
|
1953 |
|
1954 Windows Build fixes for new ColorSync API. |
|
1955 We support both new and old APIs, since the newer headers aren't in the tree yet. |
|
1956 |
|
1957 * WebCorePrefix.h: Removed include of CoreServices.h. Included via ColorSyncPriv.h instead, since header may not be present. |
|
1958 * platform/graphics/cg/ColorCG.cpp: |
|
1959 (WebCore::createCGColor): Conditionally use new ColorSync API. |
|
1960 * platform/graphics/opentype/OpenTypeUtilities.cpp: Define Fixed if CoreServices.h doesn't. |
|
1961 * platform/graphics/win/GraphicsLayerCACF.cpp: |
|
1962 (WebCore::GraphicsLayerCACF::updateLayerDrawsContent): Use 0 instead of nil, since nil is no longer present via CoreServices.h. |
|
1963 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: Include AssertMacros.h. |
|
1964 * platform/network/cf/ResourceErrorCF.cpp: |
|
1965 (WebCore::ResourceError::operator CFErrorRef): Use 0 instead of nil, since nil is no longer present via CoreServices.h. |
|
1966 |
|
1967 2010-07-19 Tony Gentilcore <tonyg@chromium.org> |
|
1968 |
|
1969 Reviewed by Dimitri Glazkov. |
|
1970 |
|
1971 Only set unloadEventEnd when the unload event is actually fired |
|
1972 https://bugs.webkit.org/show_bug.cgi?id=42607 |
|
1973 |
|
1974 r63689 introduced this ASSERT and it began failing on Qt and Mac debug. |
|
1975 For some reason, it did not fail on Windows (which is where I was |
|
1976 testing). The ASSERT was disabled in r63699. |
|
1977 |
|
1978 Test: page-cache related layout tests don't crash in debug mode on Mac. |
|
1979 |
|
1980 * loader/FrameLoader.cpp: |
|
1981 (WebCore::FrameLoader::stopLoading): |
|
1982 |
|
1983 2010-07-19 Andreas Kling <andreas.kling@nokia.com> |
|
1984 |
|
1985 Reviewed by Kenneth Rohde Christiansen. |
|
1986 |
|
1987 [Qt] Don't unnecessarily copy QPainterPath in fillPath() and strokePath() |
|
1988 https://bugs.webkit.org/show_bug.cgi?id=42513 |
|
1989 |
|
1990 Avoid making unnecessary deep-copies of QPainterPaths that will |
|
1991 be discarded after use. |
|
1992 |
|
1993 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
1994 (WebCore::GraphicsContext::fillPath): |
|
1995 (WebCore::GraphicsContext::strokePath): |
|
1996 |
|
1997 2010-07-19 Kenneth Russell <kbr@google.com> |
|
1998 |
|
1999 Reviewed by Nate Chapin. |
|
2000 |
|
2001 WebGL rendering results must be made available to Canvas.toDataURL and 2D drawImage |
|
2002 https://bugs.webkit.org/show_bug.cgi?id=34719 |
|
2003 |
|
2004 Fixed compiler warning introduced by original patch. No new tests; |
|
2005 covered by existing tests. |
|
2006 |
|
2007 * platform/graphics/mac/GraphicsContext3DMac.mm: |
|
2008 (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas): |
|
2009 |
|
2010 2010-07-19 Anders Carlsson <andersca@apple.com> |
|
2011 |
|
2012 Reviewed by Darin Adler, Adam Roben, Dan Bernstein and Sam Weinig. |
|
2013 |
|
2014 Handle NP_ASFILE and NP_ASFILEONLY transfer modes |
|
2015 https://bugs.webkit.org/show_bug.cgi?id=42587 |
|
2016 |
|
2017 * WebCore.exp.in: |
|
2018 Export functions from FileSystem.h |
|
2019 |
|
2020 * platform/mac/FileSystemMac.mm: |
|
2021 (WebCore::openTemporaryFile): |
|
2022 Try to create a temporary file using mkstemp. |
|
2023 |
|
2024 2010-07-19 Anders Carlsson <andersca@apple.com> |
|
2025 |
|
2026 Reviewed by Sam Weinig. |
|
2027 |
|
2028 Implement NPN_PostURLNotify |
|
2029 https://bugs.webkit.org/show_bug.cgi?id=42602 |
|
2030 |
|
2031 Export symbols needed by WebKit2. |
|
2032 |
|
2033 * WebCore.exp.in: |
|
2034 |
|
2035 2010-07-19 Tony Gentilcore <tonyg@chromium.org> |
|
2036 |
|
2037 Unreviewed build fix. |
|
2038 |
|
2039 Remove overzealous ASSERT from r63689 |
|
2040 https://bugs.webkit.org/show_bug.cgi?id=42606 |
|
2041 |
|
2042 No new tests because no new functionality. |
|
2043 |
|
2044 * loader/FrameLoader.cpp: |
|
2045 (WebCore::FrameLoader::stopLoading): |
|
2046 |
|
2047 2010-07-19 Joseph Pecoraro <joepeck@webkit.org> |
|
2048 |
|
2049 Reviewed by Mark Rowe. |
|
2050 |
|
2051 Web Inspector: Do Not Copy *.re2js Inspector Resources in XCode Build Phase |
|
2052 https://bugs.webkit.org/show_bug.cgi?id=42601 |
|
2053 |
|
2054 Remove *.re2js files after copying them over in the Build Phase. We do |
|
2055 the same to remove the WebKit.qrc file. |
|
2056 |
|
2057 * WebCore.xcodeproj/project.pbxproj: |
|
2058 |
|
2059 2010-07-17 Tony Gentilcore <tonyg@chromium.org> |
|
2060 |
|
2061 Reviewed by Darin Fisher. |
|
2062 |
|
2063 [Web Timing] Move times to DocumentLoader and fix bugs in mark points |
|
2064 https://bugs.webkit.org/show_bug.cgi?id=42512 |
|
2065 |
|
2066 Test: fast/dom/webtiming-navigate-within-document.html |
|
2067 |
|
2068 * loader/DocumentLoader.h: Move the FrameLoadTimeline (now call DocumentLoadTiming) to the DocumentLoader. |
|
2069 (WebCore::DocumentLoader::documentLoadTiming): |
|
2070 * loader/FrameLoader.cpp: |
|
2071 (WebCore::FrameLoader::stopLoading): Set unloadEventEnd on the provisional DocumentLoader. Add some ASSERTs to tighten things up. |
|
2072 (WebCore::FrameLoader::loadWithDocumentLoader): This was not the right place to set navigationStart. Setting it here caused it to be set before the unload form prompt and caused it to be reset when navigating within the document. |
|
2073 (WebCore::FrameLoader::finishedLoading): Set responseEnd on the active DocumentLoader. |
|
2074 (WebCore::FrameLoader::continueLoadAfterWillSubmitForm): This is the right place for navigationStart as defined by the spec. |
|
2075 * loader/FrameLoader.h: Get rid of FrameLoadTimeline. |
|
2076 * loader/FrameLoaderTypes.h: Rename FrameLoadTimeline to DocumentLoadTiming. It is even more apparent this doesn't belong in this file now. I am planning to submit a patch moving it out ASAP, but didn't want to muddy this patch with all those build files. |
|
2077 (WebCore::DocumentLoadTiming::DocumentLoadTiming): |
|
2078 * loader/MainResourceLoader.cpp: |
|
2079 (WebCore::MainResourceLoader::willSendRequest): Move fetchStart out of this method to load(), and rewrite setting of redirectStart, redirectEnd, and redirectCount to be more readable. |
|
2080 (WebCore::MainResourceLoader::load): Set fetchStart slightly earlier here and tighten it up with some ASSERTs. |
|
2081 * page/DOMWindow.cpp: |
|
2082 (WebCore::DOMWindow::dispatchLoadEvent): Set loadEventStart and loadEventEnd on the DocumentLoader. |
|
2083 * page/Navigation.cpp: |
|
2084 (WebCore::Navigation::redirectCount): Retrieve redirectCount from the DocumentLoader. |
|
2085 * page/Timing.cpp: |
|
2086 (WebCore::getPossiblySkewedTimeInKnownRange): The skew problem turned out to be due to the fact that chromium's currentTime() implementation only syncs to the system time every 60 seconds. So absolute times across threads may be skewed slightly. I resolved this temporarily by clipping the time from another thread into a known bound. A better long term solution is probably to add a currentTimeFromSystemTime() method and call that for web timing marks. |
|
2087 (WebCore::Timing::navigationStart): |
|
2088 (WebCore::Timing::unloadEventEnd): |
|
2089 (WebCore::Timing::redirectStart): |
|
2090 (WebCore::Timing::redirectEnd): |
|
2091 (WebCore::Timing::fetchStart): |
|
2092 (WebCore::Timing::domainLookupStart): |
|
2093 (WebCore::Timing::domainLookupEnd): |
|
2094 (WebCore::Timing::connectStart): |
|
2095 (WebCore::Timing::connectEnd): |
|
2096 (WebCore::Timing::requestStart): |
|
2097 (WebCore::Timing::requestEnd): |
|
2098 (WebCore::Timing::responseStart): |
|
2099 (WebCore::Timing::responseEnd): |
|
2100 (WebCore::Timing::loadEventStart): |
|
2101 (WebCore::Timing::loadEventEnd): |
|
2102 (WebCore::Timing::documentLoader): |
|
2103 (WebCore::Timing::documentLoadTiming): |
|
2104 (WebCore::Timing::resourceLoadTiming): |
|
2105 (WebCore::Timing::resourceLoadTimeRelativeToAbsolute): Ensure requestTime is in the range of fetchStart to responseEnd. |
|
2106 * page/Timing.h: |
|
2107 |
|
2108 2010-07-19 Chris Marrin <cmarrin@apple.com> |
|
2109 |
|
2110 Reviewed by Darin Adler. |
|
2111 |
|
2112 https://bugs.webkit.org/show_bug.cgi?id=42118 |
|
2113 Disable WebGL on Leopard for now. |
|
2114 |
|
2115 LayoutTests fail on some graphics hardware on Leopard because one of the features we use, |
|
2116 GL_ARB_framebuffer_object, is not universally available in Leopard like it is in |
|
2117 SnowLeopard. This will allow LayoutTests to pass on Leopard until we add logic to use a |
|
2118 software OpenGL driver on machines without this support. |
|
2119 |
|
2120 * Configurations/FeatureDefines.xcconfig: |
|
2121 |
|
2122 2010-07-19 Eric Carlson <eric.carlson@apple.com> |
|
2123 |
|
2124 Reviewed by Sam Weinig. |
|
2125 |
|
2126 Remove HTML5 media element 'load' event |
|
2127 https://bugs.webkit.org/show_bug.cgi?id=30464 |
|
2128 <rdar://problem/5650561> |
|
2129 |
|
2130 * html/HTMLMediaElement.cpp: |
|
2131 (WebCore::HTMLMediaElement::HTMLMediaElement): Initialize m_completelyLoaded. |
|
2132 (WebCore::HTMLMediaElement::parseMappedAttribute): Don't deal with 'load' event. |
|
2133 (WebCore::HTMLMediaElement::prepareForLoad): Set m_completelyLoaded to false. |
|
2134 (WebCore::HTMLMediaElement::setNetworkState): Don't post 'load' event. |
|
2135 (WebCore::HTMLMediaElement::progressEventTimerFired): Bail if m_networkState != NETWORK_LOADING. |
|
2136 (WebCore::HTMLMediaElement::userCancelledLoad): No more NETWORK_LOADED state. |
|
2137 * html/HTMLMediaElement.h: |
|
2138 (WebCore::HTMLMediaElement::): |
|
2139 * html/HTMLMediaElement.idl: Remove NETWORK_LOADING. |
|
2140 |
|
2141 2010-07-19 Alexey Proskuryakov <ap@apple.com> |
|
2142 |
|
2143 Reviewed by Darin Adler. |
|
2144 |
|
2145 https://bugs.webkit.org/show_bug.cgi?id=40996 |
|
2146 Progress event should not be fired during synchronous XMLHttpRequest |
|
2147 |
|
2148 https://bugs.webkit.org/show_bug.cgi?id=17502 |
|
2149 Assertion failure when trying to restart a sync XMLHttpRequest as an async one from onreadystatechange |
|
2150 |
|
2151 Tests: http/tests/xmlhttprequest/xmlhttprequest-sync-no-progress-events.html |
|
2152 http/tests/xmlhttprequest/xmlhttprequest-sync-vs-async-assertion-failure.html |
|
2153 |
|
2154 * xml/XMLHttpRequest.cpp: |
|
2155 (WebCore::XMLHttpRequest::callReadyStateChangeListener): We now only dispatch readystatechange |
|
2156 event for synchronous requests in states UNSENT, OPENED and DONE. I'm not sure what exactly |
|
2157 the spec draft says about readystatechange for sync requests, but this seems to be the most |
|
2158 logical and backwards compatible behavior. |
|
2159 (WebCore::XMLHttpRequest::didReceiveData): Don't dispatch progress events for sync requests. |
|
2160 Note that we already don't dispatch upload progress events for those. |
|
2161 |
|
2162 2010-07-19 Dan Bernstein <mitz@apple.com> |
|
2163 |
|
2164 Reviewed by Simon Fraser. |
|
2165 |
|
2166 <rdar://problem/7232109> Unpainted white area appears at the edge of the page when body has bg color |
|
2167 https://bugs.webkit.org/show_bug.cgi?id=34913 |
|
2168 |
|
2169 Tests: fast/repaint/view-background-from-body-1.html |
|
2170 fast/repaint/view-background-from-body-2.html |
|
2171 |
|
2172 * rendering/RenderBox.cpp: |
|
2173 (WebCore::RenderBox::styleWillChange): If this is the body renderer and its current style is |
|
2174 null, repaint the view, similarly to how the view is repainted for any repaint-or-higher |
|
2175 style changes. |
|
2176 * rendering/RenderObjectChildList.cpp: |
|
2177 (WebCore::RenderObjectChildList::removeChildNode): If the removed child is the body renderer, |
|
2178 repaint the view, in case the body’s background was propagated to the view. |
|
2179 |
|
2180 2010-07-19 Adam Roben <aroben@apple.com> |
|
2181 |
|
2182 Fix an assertion when a plugin returns -1 from NPP_Write |
|
2183 |
|
2184 We were forgetting to call setDefersLoading(false) before destroying |
|
2185 the PluginStream. In the process of destroying the stream, someone |
|
2186 would call setDefersLoading(true), and we would assert because we were |
|
2187 already deferring loads. |
|
2188 |
|
2189 Fixes <http://webkit.org/b/42563> Assertion failure in |
|
2190 ResourceHandle::setDefersLoading when running |
|
2191 plugins/return-negative-one-from-write.html on Windows |
|
2192 |
|
2193 Reviewed by Anders Carlsson. |
|
2194 |
|
2195 * plugins/PluginStream.cpp: |
|
2196 (WebCore::PluginStream::deliverData): Call setDefersLoading(false) |
|
2197 before destroying the stream, to match the setDefersLoading(true) call |
|
2198 earlier in this function. (We already call setDefersLoading(false) in |
|
2199 the non-error case later on.) |
|
2200 |
|
2201 2010-07-19 Rafael Antognolli <antognolli@profusion.mobi> |
|
2202 |
|
2203 Reviewed by Antonio Gomes. |
|
2204 |
|
2205 [EFL] Fix some EFL theme issues |
|
2206 https://bugs.webkit.org/show_bug.cgi?id=42569 |
|
2207 |
|
2208 Keep a pointer to theme filename and check for it correctly. |
|
2209 Reduce the scope of some variables. |
|
2210 Don't test for platformWidget() since we are not using it. |
|
2211 |
|
2212 No new tests, no new functionality. |
|
2213 |
|
2214 * platform/efl/WidgetEfl.cpp: |
|
2215 (WebCore::Widget::applyCursor): |
|
2216 (WebCore::Widget::setCursor): |
|
2217 |
|
2218 2010-07-19 Rafael Antognolli <antognolli@profusion.mobi> |
|
2219 |
|
2220 Reviewed by Antonio Gomes. |
|
2221 |
|
2222 [EFL] Add ifdef to compile code just on presence of Ecore_X |
|
2223 https://bugs.webkit.org/show_bug.cgi?id=42567 |
|
2224 |
|
2225 No new tests since there's no new functionality. |
|
2226 |
|
2227 * platform/efl/WidgetEfl.cpp: |
|
2228 (WebCore::Widget::setEvasObject): |
|
2229 Add #ifdef HAVE_ECORE_X to it. |
|
2230 |
|
2231 2010-07-19 Yury Semikhatsky <yurys@chromium.org> |
|
2232 |
|
2233 Reviewed by Pavel Feldman. |
|
2234 |
|
2235 Web Inspector: add/removeStyleClass shouldn't increase number of spaces between class names. |
|
2236 https://bugs.webkit.org/show_bug.cgi?id=42485 |
|
2237 |
|
2238 * inspector/front-end/utilities.js: |
|
2239 (Element.prototype.removeStyleClass): |
|
2240 |
|
2241 2010-07-19 Yury Semikhatsky <yurys@chromium.org> |
|
2242 |
|
2243 Reviewed by Pavel Feldman. |
|
2244 |
|
2245 Web Inspector: show stack trace for uncaught exceptions when Web Inspector is open. |
|
2246 https://bugs.webkit.org/show_bug.cgi?id=42560 |
|
2247 |
|
2248 * bindings/js/ScriptController.cpp: |
|
2249 (WebCore::ScriptController::setCaptureCallStackForUncaughtExceptions): |
|
2250 * bindings/js/ScriptController.h: |
|
2251 * bindings/v8/ScriptController.cpp: |
|
2252 (WebCore::ScriptController::setCaptureCallStackForUncaughtExceptions): |
|
2253 * bindings/v8/ScriptController.h: |
|
2254 * bindings/v8/V8ConsoleMessage.cpp: |
|
2255 (WebCore::V8ConsoleMessage::dispatchNow): |
|
2256 (WebCore::V8ConsoleMessage::handler): |
|
2257 * bindings/v8/V8ConsoleMessage.h: |
|
2258 * inspector/ConsoleMessage.cpp: |
|
2259 (WebCore::ConsoleMessage::ConsoleMessage): |
|
2260 * inspector/ConsoleMessage.h: |
|
2261 * inspector/InspectorController.cpp: |
|
2262 (WebCore::InspectorController::addMessageToConsole): |
|
2263 (WebCore::InspectorController::startGroup): |
|
2264 (WebCore::InspectorController::connectFrontend): |
|
2265 (WebCore::InspectorController::disconnectFrontend): |
|
2266 * inspector/InspectorController.h: |
|
2267 * inspector/front-end/ConsoleView.js: |
|
2268 (WebInspector.ConsoleMessage.prototype._formatMessage): |
|
2269 (WebInspector.ConsoleMessage.prototype.toMessageElement): |
|
2270 (WebInspector.ConsoleMessage.prototype._populateStackTraceTreeElement): |
|
2271 (WebInspector.ConsoleMessage.prototype._addMessageHeader): |
|
2272 (WebInspector.ConsoleMessage.prototype.toString): |
|
2273 * inspector/front-end/inspector.css: |
|
2274 (.console-message.repeated-message > ol.stack-trace): |
|
2275 (.section .properties ol, .event-properties ol, .stack-trace ol, ol.stack-trace): |
|
2276 (ol.stack-trace): |
|
2277 (.section .properties ol.expanded, .event-properties ol.expanded, .stack-trace ol, ol.stack-trace): |
|
2278 * page/Console.cpp: |
|
2279 (WebCore::Console::addMessage): |
|
2280 * page/Console.h: |
|
2281 (WebCore::): |
|
2282 |
|
2283 2010-07-19 Robin Burchell <robin.burchell@collabora.co.uk> |
|
2284 |
|
2285 Reviewed by Antonio Gomes |
|
2286 |
|
2287 [Qt] Use memcpy() instead of qMemCopy() |
|
2288 This is supposed to be more efficient, as the compiler is able to |
|
2289 optimise more. |
|
2290 |
|
2291 Additionally, qMemCopy() is only strictly supposed to be used in |
|
2292 headers (see Qt's src/corelib/qglobal.h for reference) |
|
2293 See: https://bugs.webkit.org/show_bug.cgi?id=42392 |
|
2294 |
|
2295 * bridge/qt/qt_runtime.cpp: |
|
2296 (JSC::Bindings::convertQVariantToValue): |
|
2297 |
|
2298 2010-07-14 Andreas Kling <andreas.kling@nokia.com> |
|
2299 |
|
2300 Reviewed by Kenneth Rohde Christiansen. |
|
2301 |
|
2302 Canvas: Rename operator==(CanvasStyle,CanvasStyle) since it isn't a proper equality check |
|
2303 https://bugs.webkit.org/show_bug.cgi?id=42284 |
|
2304 |
|
2305 New name is isEquivalentColor(CanvasStyle). |
|
2306 |
|
2307 * html/canvas/CanvasRenderingContext2D.cpp: |
|
2308 (WebCore::CanvasRenderingContext2D::setStrokeStyle): |
|
2309 (WebCore::CanvasRenderingContext2D::setFillStyle): |
|
2310 * html/canvas/CanvasStyle.cpp: |
|
2311 (WebCore::CanvasStyle::isEquivalentColor): |
|
2312 * html/canvas/CanvasStyle.h: |
|
2313 |
|
2314 2010-07-19 Andreas Kling <andreas.kling@nokia.com> |
|
2315 |
|
2316 Reviewed by Kenneth Rohde Christiansen. |
|
2317 |
|
2318 [Qt] Canvas: Wrong internal positioning of drawImage() shadows |
|
2319 https://bugs.webkit.org/show_bug.cgi?id=42510 |
|
2320 |
|
2321 * platform/graphics/qt/ImageQt.cpp: |
|
2322 (WebCore::BitmapImage::draw): |
|
2323 * platform/graphics/qt/StillImageQt.cpp: |
|
2324 (WebCore::StillImage::draw): |
|
2325 |
|
2326 2010-07-19 Andreas Kling <andreas.kling@nokia.com> |
|
2327 |
|
2328 Reviewed by Kenneth Rohde Christiansen. |
|
2329 |
|
2330 [Qt] Render shadow when drawing one canvas onto another |
|
2331 https://bugs.webkit.org/show_bug.cgi?id=42508 |
|
2332 |
|
2333 * platform/graphics/qt/StillImageQt.cpp: |
|
2334 (WebCore::StillImage::draw): |
|
2335 |
|
2336 2010-07-19 Andreas Kling <andreas.kling@nokia.com> |
|
2337 |
|
2338 Reviewed by Kenneth Rohde Christiansen. |
|
2339 |
|
2340 [Qt] Some composition modes fail when color has alpha zero |
|
2341 https://bugs.webkit.org/show_bug.cgi?id=36973 |
|
2342 |
|
2343 Remove erroneous optimization that ignored painting calls when |
|
2344 the stroke/fill color had an alpha value of zero. |
|
2345 |
|
2346 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
2347 (WebCore::GraphicsContext::drawLine): |
|
2348 (WebCore::GraphicsContext::strokeArc): |
|
2349 (WebCore::GraphicsContext::fillPath): |
|
2350 (WebCore::GraphicsContext::strokePath): |
|
2351 (WebCore::GraphicsContext::fillRect): |
|
2352 (WebCore::GraphicsContext::fillRoundedRect): |
|
2353 |
|
2354 2010-07-19 Andreas Kling <andreas.kling@nokia.com> |
|
2355 |
|
2356 Reviewed by Kenneth Rohde Christiansen. |
|
2357 |
|
2358 CSS3 background: Number of layers should be determined by background-image element count |
|
2359 https://bugs.webkit.org/show_bug.cgi?id=41201 |
|
2360 |
|
2361 Manual test: css3-background-layer-count.html |
|
2362 |
|
2363 Spec link: |
|
2364 http://www.w3.org/TR/css3-background/#layering |
|
2365 |
|
2366 * manual-tests/css3-background-layer-count.html: Added. |
|
2367 * rendering/style/FillLayer.cpp: |
|
2368 (WebCore::FillLayer::fillUnsetProperties): Don't repeat |
|
2369 image properties, they determine the total number of layers. |
|
2370 (WebCore::FillLayer::cullEmptyLayers): Change culling logic |
|
2371 to discard all layers after the first one without an image set. |
|
2372 * rendering/style/RenderStyle.h: |
|
2373 (WebCore::InheritedFlags::adjustBackgroundLayers): Call |
|
2374 fillUnsetProperties() before cullEmptyLayers() |
|
2375 (WebCore::InheritedFlags::adjustMaskLayers): Ditto. |
|
2376 |
|
2377 2010-07-19 Andreas Kling <andreas.kling@nokia.com> |
|
2378 |
|
2379 Reviewed by Kenneth Rohde Christiansen. |
|
2380 |
|
2381 [Qt] Avoid QImage::pixel() in getImageData() |
|
2382 https://bugs.webkit.org/show_bug.cgi?id=42463 |
|
2383 |
|
2384 * platform/graphics/qt/ImageBufferQt.cpp: |
|
2385 (WebCore::getImageData): Use QImage::scanLine() instead |
|
2386 of fetching data pixel-by-pixel. |
|
2387 |
|
2388 2010-07-19 Yury Semikhatsky <yurys@chromium.org> |
|
2389 |
|
2390 Reviewed by Pavel Feldman. |
|
2391 |
|
2392 Web Inspector: hide "toggle debugger" button when debugger is always enabled |
|
2393 https://bugs.webkit.org/show_bug.cgi?id=42558 |
|
2394 |
|
2395 * inspector/front-end/ScriptsPanel.js: |
|
2396 (WebInspector.ScriptsPanel): |
|
2397 |
|
2398 2010-07-19 Hans Wennborg <hans@chromium.org> |
|
2399 |
|
2400 Reviewed by Steve Block. |
|
2401 |
|
2402 Explicitly declare DeviceOrientationEvent destructor and define it in the .cpp file |
|
2403 https://bugs.webkit.org/show_bug.cgi?id=42466 |
|
2404 |
|
2405 (Original problem at https://bugs.webkit.org/show_bug.cgi?id=42447) |
|
2406 |
|
2407 No new functionality so no new tests. |
|
2408 |
|
2409 * dom/DeviceOrientationEvent.cpp: |
|
2410 (WebCore::DeviceOrientationEvent::~DeviceOrientationEvent): |
|
2411 Move here to avoid needing to have the full declaration of |
|
2412 DeviceOrientation in DeviceOrientationEvent.h. |
|
2413 * dom/DeviceOrientationEvent.h: |
|
2414 |
|
2415 2010-07-18 Anders Carlsson <andersca@apple.com> |
|
2416 |
|
2417 Fix Build. |
|
2418 |
|
2419 * rendering/RenderThemeMac.mm: |
|
2420 (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration): |
|
2421 |
|
2422 2010-07-18 Anders Carlsson <andersca@apple.com> |
|
2423 |
|
2424 Reviewed by Dan Bernstein. |
|
2425 |
|
2426 Always set the current NSGraphicsContext before calling drawWithFrame |
|
2427 https://bugs.webkit.org/show_bug.cgi?id=42542 |
|
2428 |
|
2429 * rendering/RenderThemeMac.mm: |
|
2430 (WebCore::RenderThemeMac::paintMeter): |
|
2431 (WebCore::RenderThemeMac::paintSearchField): |
|
2432 (WebCore::RenderThemeMac::paintSearchFieldCancelButton): |
|
2433 (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration): |
|
2434 (WebCore::RenderThemeMac::paintSearchFieldResultsButton): |
|
2435 |
|
2436 2010-07-18 Anders Carlsson <andersca@apple.com> |
|
2437 |
|
2438 Reviewed by Sam Weinig. |
|
2439 |
|
2440 Move PluginWidget to WebKit |
|
2441 https://bugs.webkit.org/show_bug.cgi?id=42530 |
|
2442 |
|
2443 Rename the PluginWidget class to PluginViewBase and make it an abstract base class. |
|
2444 |
|
2445 This is a stopgap measure until we have a single PluginView class that we can use everywhere. |
|
2446 |
|
2447 * WebCore.exp.in: |
|
2448 Remove PluginWidget symbols. |
|
2449 |
|
2450 * WebCore.xcodeproj/project.pbxproj: |
|
2451 Update. |
|
2452 |
|
2453 * platform/Widget.h: |
|
2454 (WebCore::Widget::isPluginViewBase): |
|
2455 Return false. |
|
2456 |
|
2457 * plugins/PluginViewBase.h: Added. |
|
2458 (WebCore::PluginViewBase::platformLayer): |
|
2459 Always return 0 here now. |
|
2460 |
|
2461 (WebCore::PluginViewBase::isPluginViewBase): |
|
2462 Return true. |
|
2463 |
|
2464 * plugins/PluginWidget.h: Removed. |
|
2465 * plugins/mac/PluginWidgetMac.mm: Removed. |
|
2466 * rendering/RenderEmbeddedObject.cpp: |
|
2467 (WebCore::RenderEmbeddedObject::allowsAcceleratedCompositing): |
|
2468 Cast to PluginWidgetBase instead. |
|
2469 |
|
2470 * rendering/RenderLayerBacking.cpp: |
|
2471 (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration): |
|
2472 Cast to PluginWidgetBase instead. |
|
2473 |
|
2474 2010-07-18 Dean Jackson <dino@apple.com> |
|
2475 |
|
2476 Unreviewed. |
|
2477 |
|
2478 Remove the unwanted extra line that Xcode |
|
2479 added in my last commit. |
|
2480 |
|
2481 * WebCore.xcodeproj/project.pbxproj: |
|
2482 |
|
2483 2010-07-18 Dean Jackson <dino@apple.com> |
|
2484 |
|
2485 Reviewed by Simon Fraser. |
|
2486 |
|
2487 https://bugs.webkit.org/show_bug.cgi?id=41259 |
|
2488 Interacting with a <select> element within a transformed and clipped |
|
2489 container scrolls the container |
|
2490 |
|
2491 The Node::getRect and ContainerNode::getRect functions were not |
|
2492 transform-aware. This fixes both, and has a test to make sure |
|
2493 we're not breaking any existing scrollToView code. This means |
|
2494 that a <select> popup will appear in the correct place if it |
|
2495 is within a transformed and scrolled container. |
|
2496 |
|
2497 Test: fast/transforms/scrollIntoView-transformed.html |
|
2498 |
|
2499 * dom/ContainerNode.cpp: |
|
2500 (WebCore::ContainerNode::getUpperLeftCorner): |
|
2501 (WebCore::ContainerNode::getLowerRightCorner): |
|
2502 - make sure we call localToAbsolute in the right order |
|
2503 (after we've done a local move) and pass in the flags to |
|
2504 indicate it should look for transforms. |
|
2505 * dom/Node.cpp: |
|
2506 (WebCore::Node::getRect): |
|
2507 - make sure localToAbsolute gets told to look for transforms. |
|
2508 |
|
2509 2010-07-18 Anders Carlsson <andersca@apple.com> |
|
2510 |
|
2511 Reviewed by Sam Weinig. |
|
2512 |
|
2513 Add NPJSObjectMap class |
|
2514 https://bugs.webkit.org/show_bug.cgi?id=42524 |
|
2515 |
|
2516 Export ScriptController functions. |
|
2517 |
|
2518 * WebCore.exp.in: |
|
2519 |
|
2520 2010-07-18 Anders Carlsson <andersca@apple.com> |
|
2521 |
|
2522 Reviewed by Dan Bernstein. |
|
2523 |
|
2524 Implement some NPRuntime related NPN_ functions |
|
2525 https://bugs.webkit.org/show_bug.cgi?id=42518 |
|
2526 |
|
2527 * WebCore.exp.in: |
|
2528 Export IdentifierRep functions. |
|
2529 |
|
2530 2010-07-17 TJ Lee <tjlee0909@gmail.com> |
|
2531 |
|
2532 Reviewed by Timothy Hatcher. |
|
2533 |
|
2534 HTMLLinkElement ignores dnsPrefetchingEnabled setting |
|
2535 https://bugs.webkit.org/show_bug.cgi?id=42500 |
|
2536 |
|
2537 Changed the HTML Link tag to check that the browser |
|
2538 has DNS-prefetching enabled before calling ResourceHandle::prepareForURL. |
|
2539 |
|
2540 There are no test cases for this patch because it was unclear how to test |
|
2541 this using a layout test. A possible test case would be to |
|
2542 clear the DNS cache on the client's machine before loading a page with |
|
2543 <link rel="dns-prefetch" href="SomeSiteThatsNotTheCurrentOne.com"> and |
|
2544 then check the number of DNS cache entries. |
|
2545 |
|
2546 * html/HTMLLinkElement.cpp: |
|
2547 (WebCore::HTMLLinkElement::process): |
|
2548 |
|
2549 2010-07-16 Maciej Stachowiak <mjs@apple.com> |
|
2550 |
|
2551 Reviewed by Sam Weinig. |
|
2552 |
|
2553 Asynchronous policy checks make FrameLoader think it is done loading prematurely |
|
2554 https://bugs.webkit.org/show_bug.cgi?id=42489 |
|
2555 |
|
2556 This caused many (~100) layout tsts to fail under WebKit2. |
|
2557 |
|
2558 * loader/SubframeLoader.cpp: |
|
2559 (WebCore::SubframeLoader::loadSubframe): Right after loading a new subframe, |
|
2560 if m_complete is true, do not consider it done if it has a provisional loader. |
|
2561 This will happen in the case where the policy check is asynchronous. |
|
2562 * loader/FrameLoader.cpp: |
|
2563 (WebCore::FrameLoader::subframeIsLoading): For similar reasons, |
|
2564 consider a subframe to be loading if it has a policy decision pending. |
|
2565 |
|
2566 2010-07-15 Qi Zhang <qi.2.zhang@nokia.com> |
|
2567 |
|
2568 Reviewed by Kenneth Rohde Christiansen. |
|
2569 |
|
2570 [Qt] Failure on http://philip.html5.org/tests/canvas/suite/tests/2d.shadow.alpha.5.html |
|
2571 https://bugs.webkit.org/show_bug.cgi?id=38400 |
|
2572 |
|
2573 FillRect with shadow need take alpha information from fillstyle |
|
2574 |
|
2575 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
2576 (WebCore::GraphicsContext::fillRect): |
|
2577 |
|
2578 2010-07-17 Nikita Vasilyev <me@elv1s.ru> |
|
2579 |
|
2580 Reviewed by Pavel Feldman. |
|
2581 |
|
2582 Web Inspector: [REGRESSION] Edit long CSS attributes works incorrect |
|
2583 https://bugs.webkit.org/show_bug.cgi?id=42476 |
|
2584 |
|
2585 * inspector/front-end/inspector.css: |
|
2586 (.editing): |
|
2587 |
|
2588 2010-07-16 Andreas Kling <andreas.kling@nokia.com> |
|
2589 |
|
2590 Reviewed by Sam Weinig. |
|
2591 |
|
2592 Failing 2d.path.arcTo.ensuresubpath.* philip canvas tests |
|
2593 https://bugs.webkit.org/show_bug.cgi?id=42186 |
|
2594 |
|
2595 Move code from Qt's Path::addArcTo() up to CanvasRenderingContext2D. |
|
2596 |
|
2597 * html/canvas/CanvasRenderingContext2D.cpp: |
|
2598 (WebCore::CanvasRenderingContext2D::arcTo): Behave as moveTo(x1,y1) |
|
2599 if the current path is empty. |
|
2600 * platform/graphics/qt/PathQt.cpp: |
|
2601 (WebCore::Path::addArcTo): Remove now-redundant code. |
|
2602 |
|
2603 2010-07-16 Andreas Kling <andreas.kling@nokia.com> |
|
2604 |
|
2605 Reviewed by Oliver Hunt. |
|
2606 |
|
2607 QtWebkit creates an unnecessary deep copy of images when canvas drawing is done |
|
2608 A https://bugs.webkit.org/show_bug.cgi?id=32530 |
|
2609 |
|
2610 Solve this by adding ImageBuffer::imageForRendering() which returns an image |
|
2611 that can be used for rendering now, but isn't a copy to be kept around. |
|
2612 |
|
2613 * platform/graphics/ImageBuffer.h: |
|
2614 (WebCore::ImageBuffer::imageForRendering): |
|
2615 * platform/graphics/qt/ImageBufferQt.cpp: |
|
2616 (WebCore::ImageBuffer::imageForRendering): Added to provide an image that can |
|
2617 be used for rendering now, but may change in the future. |
|
2618 * platform/graphics/qt/StillImageQt.cpp: |
|
2619 (WebCore::StillImage::StillImage): |
|
2620 (WebCore::StillImage::~StillImage): |
|
2621 (WebCore::StillImage::size): |
|
2622 (WebCore::StillImage::nativeImageForCurrentFrame): |
|
2623 (WebCore::StillImage::draw): |
|
2624 * platform/graphics/qt/StillImageQt.h: |
|
2625 (WebCore::StillImage::createForRendering): Added for use in |
|
2626 ImageBuffer::imageForRendering(), provides a thin wrapper around a QPixmap*. |
|
2627 * html/HTMLCanvasElement.cpp: |
|
2628 (WebCore::HTMLCanvasElement::paint): Paint with ImageBuffer::imageForRendering() |
|
2629 |
|
2630 2010-07-16 Andreas Kling <andreas.kling@nokia.com> |
|
2631 |
|
2632 Reviewed by Oliver Hunt. |
|
2633 |
|
2634 [Qt] Remove redundant logic in Path::addArcTo() |
|
2635 https://bugs.webkit.org/show_bug.cgi?id=42494 |
|
2636 |
|
2637 Bounds checking for arcTo() is now done in cross-platform code |
|
2638 thanks to <http://trac.webkit.org/changeset/63599> |
|
2639 |
|
2640 * platform/graphics/qt/PathQt.cpp: |
|
2641 (WebCore::Path::addArcTo): |
|
2642 |
|
2643 2010-07-16 Zhe Su <suzhe@chromium.org> |
|
2644 |
|
2645 Reviewed by Darin Adler. |
|
2646 |
|
2647 REGRESSION(r61484): Broke focus behaviour on Qt and probably other platforms |
|
2648 https://bugs.webkit.org/show_bug.cgi?id=42253 |
|
2649 |
|
2650 This patch just reverts the change to WebCore/page/FocusController.cpp |
|
2651 made in changeset 61484, and add a new method named |
|
2652 willSetInputMethodState in EditorClient interface, which gets called |
|
2653 in FocusController just before changing the focused node. |
|
2654 |
|
2655 No new tests, because no new functionality. |
|
2656 |
|
2657 * loader/EmptyClients.h: |
|
2658 (WebCore::EmptyEditorClient::willSetInputMethodState): |
|
2659 * page/EditorClient.h: |
|
2660 * page/FocusController.cpp: |
|
2661 (WebCore::FocusController::setFocusedNode): |
|
2662 |
|
2663 2010-07-16 Matthew Delaney <mdelaney@apple.com> |
|
2664 |
|
2665 Reviewed by Sam Weinig. |
|
2666 |
|
2667 Failing 2d.path.stroke.prune.arc philip canvas test |
|
2668 https://bugs.webkit.org/show_bug.cgi?id=42188 |
|
2669 |
|
2670 * html/canvas/CanvasRenderingContext2D.cpp: |
|
2671 Note, updated parameter names to match spec. |
|
2672 (WebCore::CanvasRenderingContext2D::lineTo): Pulled bound checking code out of lower code to have checks for all platforms. |
|
2673 (WebCore::CanvasRenderingContext2D::arcTo): Bound checking per the spec for arcTo parameters. Updated parameter names to match spec. |
|
2674 * platform/graphics/Path.h: Added in new method to expose the current position. |
|
2675 * platform/graphics/cairo/PathCairo.cpp: |
|
2676 (WebCore::Path::currentPoint): Added in likely correct implementation for this call with a FIXME just in case. |
|
2677 * platform/graphics/cg/PathCG.cpp: |
|
2678 (WebCore::Path::currentPoint): Added in support for this call. |
|
2679 * platform/graphics/haiku/PathHaiku.cpp: |
|
2680 (WebCore::Path::currentPoint): Added in stub for this call. |
|
2681 * platform/graphics/openvg/PathOpenVG.cpp: |
|
2682 (WebCore::Path::currentPoint): Added in likely implementation for this call with a FIXME just in case. |
|
2683 * platform/graphics/qt/PathQt.cpp: |
|
2684 (WebCore::Path::currentPoint): Added in implementation for this call courtesy of Andrea Kling. |
|
2685 * platform/graphics/skia/PathSkia.cpp: |
|
2686 (WebCore::Path::currentPoint): Added in stub for this call. |
|
2687 * platform/graphics/wince/PathWince.cpp: |
|
2688 (WebCore::Path::currentPoint): Added in stub for this call. |
|
2689 * platform/graphics/wx/PathWx.cpp: |
|
2690 (WebCore::Path::currentPoint): Added in stub for this call. |
|
2691 |
|
2692 2010-07-16 Sheriff Bot <webkit.review.bot@gmail.com> |
|
2693 |
|
2694 Unreviewed, rolling out r63593. |
|
2695 http://trac.webkit.org/changeset/63593 |
|
2696 https://bugs.webkit.org/show_bug.cgi?id=42487 |
|
2697 |
|
2698 Broke a few chromium pixel tests (Requested by tony^work on |
|
2699 #webkit). |
|
2700 |
|
2701 * platform/graphics/skia/GraphicsContextSkia.cpp: |
|
2702 (WebCore::GraphicsContext::drawConvexPolygon): |
|
2703 (WebCore::GraphicsContext::drawEllipse): |
|
2704 (WebCore::GraphicsContext::drawLine): |
|
2705 (WebCore::GraphicsContext::strokeArc): |
|
2706 (WebCore::GraphicsContext::strokePath): |
|
2707 (WebCore::GraphicsContext::strokeRect): |
|
2708 |
|
2709 2010-07-16 Dan Bernstein <mitz@apple.com> |
|
2710 |
|
2711 Reviewed by Sam Weinig. |
|
2712 |
|
2713 Part of <rdar://problem/7233974> Deprecate +[WebView _setShouldUseFontSmoothing:] |
|
2714 https://bugs.webkit.org/show_bug.cgi?id=29355 |
|
2715 |
|
2716 * WebCore.exp.in: Updated. |
|
2717 * platform/graphics/Font.cpp: |
|
2718 (WebCore::Font::Font): Added a font smoothing mode parameter to the constructor. |
|
2719 Set the font smoothing mode in the font description. |
|
2720 * platform/graphics/Font.h: |
|
2721 |
|
2722 2010-07-16 Satish Sampath <satish@chromium.org> |
|
2723 |
|
2724 Reviewed by Anders Carlsson. |
|
2725 |
|
2726 Add speech attribute to IDL for enabling access from JS. |
|
2727 https://bugs.webkit.org/show_bug.cgi?id=42483 |
|
2728 |
|
2729 No tests added, this change is a pre-requisite for future layout tests. |
|
2730 |
|
2731 * html/HTMLInputElement.cpp: |
|
2732 (WebCore::HTMLInputElement::parseMappedAttribute): Update the renderer when speech attribute changes. |
|
2733 * html/HTMLInputElement.idl: Added the speech attribute to IDL. |
|
2734 |
|
2735 2010-07-16 Fady Samuel <fsamuel@chromium.org> |
|
2736 |
|
2737 Reviewed by David Levin. |
|
2738 |
|
2739 Avoids adding stroke when stroke-width is zero. |
|
2740 |
|
2741 SVG - stroke-width:0 bug with stroke other than "none" |
|
2742 https://bugs.webkit.org/show_bug.cgi?id=42387 |
|
2743 |
|
2744 Test: svg/stroke/path-zero-strokewidth-test.svg |
|
2745 |
|
2746 * platform/graphics/skia/GraphicsContextSkia.cpp: |
|
2747 (WebCore::GraphicsContext::drawConvexPolygon): |
|
2748 (WebCore::GraphicsContext::drawEllipse): |
|
2749 (WebCore::GraphicsContext::drawLine): |
|
2750 (WebCore::GraphicsContext::strokeArc): |
|
2751 (WebCore::GraphicsContext::strokePath): |
|
2752 (WebCore::GraphicsContext::strokeRect): |
|
2753 |
|
2754 2010-07-16 Kent Tamura <tkent@chromium.org> |
|
2755 |
|
2756 Unreviewed, build fix. |
|
2757 |
|
2758 * rendering/RenderThemeChromiumWin.cpp: |
|
2759 (WebCore::RenderThemeChromiumWin::getThemeData): Fix a typo. |
|
2760 |
|
2761 2010-07-16 Kent Tamura <tkent@chromium.org> |
|
2762 |
|
2763 Reviewed by Darin Fisher. |
|
2764 |
|
2765 [Chromium] <input type=number> UI implementation for Windows |
|
2766 https://bugs.webkit.org/show_bug.cgi?id=42259 |
|
2767 |
|
2768 No additional tests. Existing tests cover this change and we'll |
|
2769 update expectations. |
|
2770 |
|
2771 * platform/chromium/ChromiumBridge.h: Add paintSpinButton(). |
|
2772 * rendering/RenderThemeChromiumWin.cpp: |
|
2773 (WebCore::RenderThemeChromiumWin::determineState): |
|
2774 Add ControlSubPart parameter and add support for spin buttons. |
|
2775 (WebCore::RenderThemeChromiumWin::determineClassicState): ditto. |
|
2776 (WebCore::RenderThemeChromiumWin::getThemeData): ditto. |
|
2777 (WebCore::RenderThemeChromiumWin::adjustInnerSpinButtonStyle): Added. |
|
2778 (WebCore::RenderThemeChromiumWin::paintInnerSpinButton): Added. |
|
2779 * rendering/RenderThemeChromiumWin.h: |
|
2780 Declare ControlSubpart, and add it to some functions. |
|
2781 |
|
2782 2010-07-16 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
2783 |
|
2784 Reviewed by Antonio Gomes. |
|
2785 |
|
2786 [EFL] Use function provided by EFL for system beep |
|
2787 https://bugs.webkit.org/show_bug.cgi?id=42481 |
|
2788 |
|
2789 EFL port does not support automated tests, yet. |
|
2790 |
|
2791 * platform/efl/SoundEfl.cpp: |
|
2792 (WebCore::systemBeep): |
|
2793 |
|
2794 2010-07-16 Sarah Strong <sarah.e.strong@gmail.com> |
|
2795 |
|
2796 Reviewed by Gustavo Noronha Silva. |
|
2797 |
|
2798 [GTK] Clipboard data is lost on exit |
|
2799 https://bugs.webkit.org/show_bug.cgi?id=27411 |
|
2800 |
|
2801 No new tests. To manually test the bug fixed by this patch: |
|
2802 1) Open an application that uses a webkit webview on a GNOME-based system |
|
2803 2) Copy some text from that application |
|
2804 3) Optional: paste it to another application. This should work properly with and without this patch. |
|
2805 4) Exit the application completely. |
|
2806 5) Paste: |
|
2807 Without this patch, you cannot because your clipboard is empty. |
|
2808 With this patch, pasting succeeds. |
|
2809 I have not included an automated test because of the difficulty of testing behaviour after application exit. |
|
2810 |
|
2811 2010-07-16 Kent Tamura <tkent@chromium.org> |
|
2812 |
|
2813 Reviewed by Darin Fisher. |
|
2814 |
|
2815 Keyboard operations for <input type=number> |
|
2816 https://bugs.webkit.org/show_bug.cgi?id=42076 |
|
2817 |
|
2818 - The up arrow key works as stepUp(). |
|
2819 - The down arrow key works as stepDown(). |
|
2820 - Reject characters other than + - 0-9 . e E |
|
2821 |
|
2822 Test: fast/forms/input-number-keyoperation.html |
|
2823 |
|
2824 * html/HTMLInputElement.cpp: |
|
2825 (WebCore::HTMLInputElement::defaultEventHandler): |
|
2826 Add up/down arrow keys support, and call handleBeforeTextInsertedEvent(). |
|
2827 (WebCore::isNumberCharacter): |
|
2828 (WebCore::HTMLInputElement::handleBeforeTextInsertedEvent): |
|
2829 For type=number, remove unacceptable characters. |
|
2830 * html/HTMLInputElement.h: |
|
2831 |
|
2832 2010-07-16 Kent Tamura <tkent@chromium.org> |
|
2833 |
|
2834 Reviewed by Darin Fisher. |
|
2835 |
|
2836 Improve hover state handling for spin buttons |
|
2837 https://bugs.webkit.org/show_bug.cgi?id=42260 |
|
2838 |
|
2839 Background: |
|
2840 When we move the mouse cursor to a node from the outside of the node, |
|
2841 the following steps are executed. |
|
2842 1. setHovered(true) is called. |
|
2843 2. The node is repainted for the hover state. |
|
2844 3. 'mousemove' event is dispatched for the node. |
|
2845 For a spin-button, RenderTheme::paint{Inner,Outer}SpinButton() is |
|
2846 called before the event handler of the spin-button. So we can't |
|
2847 detect which of the up part or the down part is hovered correctly. |
|
2848 |
|
2849 Solution: |
|
2850 The hover state of a spin-button is one of three states; |
|
2851 Indeterminate, Up, and Down. The state is Indeterminate since |
|
2852 setHovered(true) is called and until 'mousemove' event is |
|
2853 dispatched. |
|
2854 |
|
2855 No new tests because there are no implementation of spin-buttons |
|
2856 with hovered state yet. |
|
2857 |
|
2858 * rendering/RenderTheme.cpp: |
|
2859 (WebCore::RenderTheme::isSpinUpButtonPartPressed): |
|
2860 (WebCore::RenderTheme::isHovered): |
|
2861 Return false if the node is a spin-button and the state is Indeterminate. |
|
2862 (WebCore::RenderTheme::isSpinUpButtonPartHovered): |
|
2863 * rendering/TextControlInnerElements.cpp: |
|
2864 (WebCore::SpinButtonElement::SpinButtonElement): |
|
2865 Initialize m_upDownState. |
|
2866 (WebCore::SpinButtonElement::defaultEventHandler): |
|
2867 (WebCore::SpinButtonElement::setHovered): |
|
2868 Set the state to Indeterminate. |
|
2869 * rendering/TextControlInnerElements.h: |
|
2870 (WebCore::SpinButtonElement::upDownState): |
|
2871 |
|
2872 2010-07-16 Dan Bernstein <mitz@apple.com> |
|
2873 |
|
2874 Reviewed by Simon Fraser. |
|
2875 |
|
2876 <rdar://problem/7527532> Crash beneath setSelection() during detach() |
|
2877 https://bugs.webkit.org/show_bug.cgi?id=42020 |
|
2878 |
|
2879 No test because I am unable to reproduce the crash. |
|
2880 |
|
2881 * rendering/RenderView.cpp: |
|
2882 (WebCore::RenderView::setSelection): In the clearSelection() case, where the repaint mode is |
|
2883 RepaintNewMinusOld, avoid making RenderBlockSelectionInfo instances, and thereby avoid calling |
|
2884 localToAbsolute() during detach(). |
|
2885 |
|
2886 2010-07-16 Anders Carlsson <andersca@apple.com> |
|
2887 |
|
2888 Fix release build. |
|
2889 |
|
2890 * storage/Database.cpp: |
|
2891 (WebCore::DerefContextTask::performTask): |
|
2892 |
|
2893 2010-07-16 Simon Fraser <simon.fraser@apple.com> |
|
2894 |
|
2895 Reviewed by Sam Weinig. |
|
2896 |
|
2897 Safari pegs CPU and drops frames on http://neography.com/experiment/circles/solarsystem/ (CSS animations) |
|
2898 https://bugs.webkit.org/show_bug.cgi?id=41409 |
|
2899 |
|
2900 AnimationController::isAnimatingPropertyOnRenderer() really asked whether an accelerated animation |
|
2901 or transition was running. This prevented us from falling into compositing layers for animation |
|
2902 on platforms, like Windows, that don't have accelerated animations. |
|
2903 |
|
2904 Fix by making things more explicit: we now have two methods, isRunningAnimationOnRenderer() |
|
2905 and isRunningAcceleratedAnimationOnRenderer(). |
|
2906 |
|
2907 Changes are more extensive because I flipped the sense of 'm_fallbackAnimating', which is |
|
2908 now 'm_isAccelerated', for clarity. |
|
2909 |
|
2910 Test: compositing/animation/animation-compositing.html |
|
2911 |
|
2912 * page/animation/AnimationBase.cpp: |
|
2913 (WebCore::AnimationBase::AnimationBase): m_fallbackAnimating -> m_isAccelerated |
|
2914 (WebCore::AnimationBase::blendProperties): Ditto. |
|
2915 (WebCore::AnimationBase::updateStateMachine): Ditto. |
|
2916 * page/animation/AnimationBase.h: |
|
2917 (WebCore::AnimationBase::isAnimatingProperty): Takes new acceleratedOnly parameter |
|
2918 which causes the method to only return true if the animation is accelerated. |
|
2919 (WebCore::AnimationBase::isAccelerated): Changed from isFallbackAnimating. |
|
2920 |
|
2921 * page/animation/AnimationController.cpp: |
|
2922 (WebCore::AnimationControllerPrivate::isRunningAnimationOnRenderer): |
|
2923 (WebCore::AnimationControllerPrivate::isRunningAcceleratedAnimationOnRenderer): |
|
2924 (WebCore::AnimationController::isRunningAnimationOnRenderer): |
|
2925 (WebCore::AnimationController::isRunningAcceleratedAnimationOnRenderer): |
|
2926 |
|
2927 * page/animation/CompositeAnimation.h: |
|
2928 * page/animation/AnimationController.h: Rename isAnimatingPropertyOnRenderer(), add |
|
2929 isRunningAcceleratedAnimationOnRenderer(). |
|
2930 * page/animation/AnimationControllerPrivate.h: Ditto. |
|
2931 * page/animation/CompositeAnimation.cpp: |
|
2932 (WebCore::CompositeAnimation::updateTransitions): !isFallbackAnimating() -> isAccelerated(). |
|
2933 (WebCore::CompositeAnimation::isAnimatingProperty): Pass acceleratedOnly down. |
|
2934 |
|
2935 * page/animation/ImplicitAnimation.cpp: |
|
2936 (WebCore::ImplicitAnimation::timeToNextService): !isFallbackAnimating() -> isAccelerated(). |
|
2937 |
|
2938 * page/animation/KeyframeAnimation.cpp: |
|
2939 (WebCore::KeyframeAnimation::timeToNextService): isFallbackAnimating() -> !isAccelerated(). |
|
2940 |
|
2941 * rendering/RenderLayerBacking.cpp: |
|
2942 (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): Avoid touching the transform or |
|
2943 opacity if an accelerated animation is running. |
|
2944 |
|
2945 * rendering/RenderLayerCompositor.cpp: |
|
2946 (WebCore::RenderLayerCompositor::requiresCompositingForAnimation): Make compositing layers |
|
2947 if an animation of transform or opacity is running. |
|
2948 |
|
2949 2010-07-16 Simon Fraser <simon.fraser@apple.com> |
|
2950 |
|
2951 Reviewed by Sam Weinig. |
|
2952 |
|
2953 Assertion when turning Accelerated Compositing off on a composited page |
|
2954 https://bugs.webkit.org/show_bug.cgi?id=42408 |
|
2955 |
|
2956 When accelerated compositing is turned off, check m_hasAcceleratedCompositing |
|
2957 before saying that the root layer will be composited. Fixes an assertion. |
|
2958 |
|
2959 * rendering/RenderLayerCompositor.cpp: |
|
2960 (WebCore::RenderLayerCompositor::computeCompositingRequirements): |
|
2961 |
|
2962 2010-07-16 Antonio Gomes <tonikitoo@webkit.org> |
|
2963 |
|
2964 Reviewed by Simon Fraser. |
|
2965 |
|
2966 Spatial navigation: do not consider outline for focusable element boundaries |
|
2967 https://bugs.webkit.org/show_bug.cgi?id=42474 |
|
2968 |
|
2969 Test: fast/events/spatial-navigation/snav-zero-margin-content.html |
|
2970 |
|
2971 Currently in WebCore::renderRectRelativeToRootDocument function, we are calling |
|
2972 RenderObject::absoluteClippedOverflowRect to obtain the rect boundary of a given |
|
2973 renderer/element. This method deals with outline, which is out of elements boundary. |
|
2974 It makes spatial navigation to fail on common sites like google.gom: "Web, Images, Map, etc" |
|
2975 are inaccessible. |
|
2976 |
|
2977 Patch replaces RenderObject::absoluteClippedOverflowRect by Node::getRect, |
|
2978 which returns only the absolute bounding box rect of the Element. |
|
2979 |
|
2980 * page/SpatialNavigation.cpp: |
|
2981 (WebCore::renderRectRelativeToRootDocument): |
|
2982 (WebCore::checkNegativeCoordsForNode): |
|
2983 |
|
2984 2010-07-15 Antonio Gomes <tonikitoo@webkit.org> |
|
2985 |
|
2986 Reviewed by Gustavo Noronha. |
|
2987 |
|
2988 [Qt] Remove unnecessary WebKit headers inclusion from WebCore files |
|
2989 https://bugs.webkit.org/show_bug.cgi?id=42416 |
|
2990 |
|
2991 There are some places in WebCore unnecessarily including WebKit headers. |
|
2992 |
|
2993 Cleaning up only, no testing needed. |
|
2994 |
|
2995 * platform/network/qt/ResourceHandleQt.cpp: |
|
2996 * platform/qt/RenderThemeQt.cpp: |
|
2997 * platform/qt/WidgetQt.cpp: |
|
2998 |
|
2999 2010-07-16 Dan Bernstein <mitz@apple.com> |
|
3000 |
|
3001 Reviewed by Anders Carlsson. |
|
3002 |
|
3003 Refinement of r63556: moved the tab width computation back to Font, but added a |
|
3004 SimpleFontData parameter. |
|
3005 |
|
3006 * platform/graphics/Font.h: |
|
3007 (WebCore::Font::tabWidth): |
|
3008 * platform/graphics/WidthIterator.cpp: |
|
3009 (WebCore::WidthIterator::advance): |
|
3010 * platform/graphics/mac/ComplexTextController.cpp: |
|
3011 (WebCore::ComplexTextController::adjustGlyphsAndAdvances): |
|
3012 |
|
3013 2010-07-16 Tony Gentilcore <tonyg@chromium.org> |
|
3014 |
|
3015 Reviewed by Pavel Feldman. |
|
3016 |
|
3017 Fix unit error in calculating timings from ResourceLoadTiming API |
|
3018 https://bugs.webkit.org/show_bug.cgi?id=42473 |
|
3019 |
|
3020 The start and end offsets are already in milliseconds so they should not be multiplied by 1000.0 like requestTime. |
|
3021 |
|
3022 No new tests because, for a yet unknown reason, the ResourceLoadTiming API is not populated in the chromium test shell like it is in full chromium. This means the test that would have caught this bug (fast/dom/webtiming.html) currently has its expectation set to FAIL. |
|
3023 |
|
3024 * page/Timing.cpp: |
|
3025 (WebCore::Timing::domainLookupStart): |
|
3026 (WebCore::Timing::domainLookupEnd): |
|
3027 (WebCore::Timing::connectStart): |
|
3028 (WebCore::Timing::connectEnd): |
|
3029 (WebCore::Timing::requestStart): |
|
3030 (WebCore::Timing::requestEnd): |
|
3031 (WebCore::Timing::responseStart): |
|
3032 |
|
3033 2010-07-16 Anders Carlsson <andersca@apple.com> |
|
3034 |
|
3035 Reviewed by Sam Weinig. |
|
3036 |
|
3037 clang++ build fixes for JavaScriptCore and WebCore |
|
3038 https://bugs.webkit.org/show_bug.cgi?id=42478 |
|
3039 |
|
3040 * platform/network/Credential.cpp: |
|
3041 (WebCore::Credential::type): |
|
3042 * platform/network/Credential.h: |
|
3043 Remove const qualifier on Credential::type since it doesn't have an effect on the type. |
|
3044 |
|
3045 2010-07-16 Anders Carlsson <andersca@apple.com> |
|
3046 |
|
3047 Reviewed by David Levin. |
|
3048 |
|
3049 Really add WARN_UNUSED_RESULT to leakRef |
|
3050 https://bugs.webkit.org/show_bug.cgi?id=42464 |
|
3051 |
|
3052 Get rid of a call to releaseRef here by passing the ScriptExecutionContext |
|
3053 reference through to the DerefContextTask. |
|
3054 |
|
3055 * storage/Database.cpp: |
|
3056 (WebCore::DerefContextTask::create): |
|
3057 (WebCore::DerefContextTask::performTask): |
|
3058 (WebCore::DerefContextTask::DerefContextTask): |
|
3059 (WebCore::Database::~Database): |
|
3060 |
|
3061 2010-07-16 Ilya Tikhonovsky <loislo@chromium.org> |
|
3062 |
|
3063 Reviewed by Yury Semikhatsky. |
|
3064 |
|
3065 WebInspector: The current implementation of generator is not ready |
|
3066 for generation Backend part of Inspector interface. The full patch |
|
3067 with Backend is quite big and I've split it. |
|
3068 https://bugs.webkit.org/show_bug.cgi?id=42462 |
|
3069 |
|
3070 * inspector/CodeGeneratorInspector.pm: |
|
3071 * inspector/Inspector.idl: |
|
3072 * inspector/InspectorValues.cpp: |
|
3073 (WebCore::InspectorArray::get): |
|
3074 * inspector/InspectorValues.h: |
|
3075 (WebCore::InspectorArray::length): |
|
3076 |
|
3077 2010-07-15 Rob Buis <rwlbuis@gmail.com> |
|
3078 |
|
3079 Reviewed by Darin Adler. |
|
3080 |
|
3081 An empty value for xml:lang isn't considered |
|
3082 https://bugs.webkit.org/show_bug.cgi?id=42042 |
|
3083 |
|
3084 Allow :lang selector to match empty values for xml:lang and |
|
3085 lang attributes. |
|
3086 |
|
3087 Test: fast/css/lang-selector-empty-attribute.xhtml |
|
3088 |
|
3089 * css/CSSStyleSelector.cpp: |
|
3090 (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): |
|
3091 |
|
3092 2010-07-16 Alexander Pavlov <apavlov@chromium.org> |
|
3093 |
|
3094 Reviewed by Pavel Feldman. |
|
3095 |
|
3096 Web Inspector: Shift-Enter does not do a reverse search. It searches forward. |
|
3097 https://bugs.webkit.org/show_bug.cgi?id=42459 |
|
3098 |
|
3099 * inspector/front-end/inspector.js: |
|
3100 (WebInspector.performSearch): |
|
3101 |
|
3102 2010-07-16 Pavel Feldman <pfeldman@chromium.org> |
|
3103 |
|
3104 Reviewed by Yury Semikhatsky. |
|
3105 |
|
3106 Web Inspector: do not include SSL time into Waiting time. |
|
3107 |
|
3108 https://bugs.webkit.org/show_bug.cgi?id=42458 |
|
3109 |
|
3110 * inspector/front-end/ResourcesPanel.js: |
|
3111 (WebInspector.ResourcesPanel.prototype._showPopover): |
|
3112 |
|
3113 2010-07-16 Dan Bernstein <mitz@apple.com> |
|
3114 |
|
3115 Reviewed by Anders Carlsson. |
|
3116 |
|
3117 <rdar://problem/8198266> white-space: pre text containing tabs is not laid out correctly when the font lacks a space glyph |
|
3118 https://bugs.webkit.org/show_bug.cgi?id=42437 |
|
3119 |
|
3120 No test because none of the fonts available to DumpRenderTree are missing a space glyph. |
|
3121 |
|
3122 Changed the tab width computation to use the width of the space glyph from the font that has |
|
3123 a space glyph, which may be a fallback font if the primary font lacks a space glyph. |
|
3124 |
|
3125 * platform/graphics/Font.h: Removed Font::tabWidth(). |
|
3126 * platform/graphics/WidthIterator.cpp: |
|
3127 (WebCore::WidthIterator::advance): |
|
3128 * platform/graphics/mac/ComplexTextController.cpp: |
|
3129 (WebCore::ComplexTextController::adjustGlyphsAndAdvances): |
|
3130 |
|
3131 2010-07-16 Yury Semikhatsky <yurys@chromium.org> |
|
3132 |
|
3133 Unreviewed. Chromium build fix. Add missing include. |
|
3134 |
|
3135 * inspector/ConsoleMessage.h: |
|
3136 |
|
3137 2010-07-16 Andreas Kling <andreas.kling@nokia.com> |
|
3138 |
|
3139 Reviewed by Antonio Gomes. |
|
3140 |
|
3141 [Qt] Path: Avoid creating a new GraphicsContext in strokeContains() and strokeBoundingRect() |
|
3142 https://bugs.webkit.org/show_bug.cgi?id=42456 |
|
3143 |
|
3144 * platform/graphics/qt/PathQt.cpp: |
|
3145 (WebCore::scratchContext): Added, provides a scratch GraphicsContext. |
|
3146 (WebCore::Path::strokeContains): Use the scratch context instead |
|
3147 of creating a new GraphicsContext. |
|
3148 (WebCore::Path::strokeBoundingRect): Ditto. |
|
3149 |
|
3150 2010-07-16 Pavel Podivilov <podivilov@chromium.org> |
|
3151 |
|
3152 Reviewed by Yury Semikhatsky. |
|
3153 |
|
3154 [V8] V8Proxy::retrieve may return null if javascript is disabled. Add a check |
|
3155 to avoid crashes in inspected page. |
|
3156 https://bugs.webkit.org/show_bug.cgi?id=42065 |
|
3157 |
|
3158 * bindings/v8/ScriptDebugServer.cpp: |
|
3159 (WebCore::ScriptDebugServer::addListener): |
|
3160 |
|
3161 2010-07-16 Pavel Feldman <pfeldman@chromium.org> |
|
3162 |
|
3163 Reviewed by Yury Semikhatsky. |
|
3164 |
|
3165 Web Inspector: add SSL time label into the resources popover. |
|
3166 |
|
3167 https://bugs.webkit.org/show_bug.cgi?id=42458 |
|
3168 |
|
3169 * English.lproj/localizedStrings.js: |
|
3170 * inspector/InspectorResource.cpp: |
|
3171 (WebCore::InspectorResource::buildObjectForTiming): |
|
3172 * inspector/front-end/ResourcesPanel.js: |
|
3173 (WebInspector.ResourcesPanel.prototype._showPopover): |
|
3174 |
|
3175 2010-07-16 Pavel Feldman <pfeldman@chromium.org> |
|
3176 |
|
3177 Reviewed by Yury Semikhatsky. |
|
3178 |
|
3179 Web Inspector: disable AppCache in chromium. |
|
3180 |
|
3181 https://bugs.webkit.org/show_bug.cgi?id=41858 |
|
3182 |
|
3183 * inspector/front-end/Settings.js: |
|
3184 * inspector/front-end/StoragePanel.js: |
|
3185 (WebInspector.StoragePanel): |
|
3186 (WebInspector.StoragePanel.prototype.reset): |
|
3187 (WebInspector.StoragePanel.prototype.addApplicationCache): |
|
3188 |
|
3189 2010-07-16 Yury Semikhatsky <yurys@chromium.org> |
|
3190 |
|
3191 Reviewed by Pavel Feldman. |
|
3192 |
|
3193 console.trace should show file and line number for each function in the stack |
|
3194 https://bugs.webkit.org/show_bug.cgi?id=21180 |
|
3195 |
|
3196 Test: inspector/console-trace.html |
|
3197 |
|
3198 * bindings/js/ScriptCallStack.cpp: |
|
3199 (WebCore::ScriptCallStack::initialize): |
|
3200 * bindings/v8/ScriptCallFrame.cpp: |
|
3201 (WebCore::ScriptCallFrame::ScriptCallFrame): |
|
3202 * bindings/v8/ScriptCallFrame.h: |
|
3203 * bindings/v8/ScriptCallStack.cpp: |
|
3204 (WebCore::getFrameLocation): |
|
3205 (WebCore::toScriptCallFrame): |
|
3206 (WebCore::ScriptCallStack::create): |
|
3207 (WebCore::ScriptCallStack::ScriptCallStack): |
|
3208 (WebCore::ScriptCallStack::at): |
|
3209 (WebCore::ScriptCallStack::size): |
|
3210 * bindings/v8/ScriptCallStack.h: |
|
3211 * bindings/v8/custom/V8ConsoleCustom.cpp: |
|
3212 (WebCore::V8Console::traceCallback): |
|
3213 * inspector/ConsoleMessage.cpp: |
|
3214 (WebCore::ConsoleMessage::CallFrame::CallFrame): |
|
3215 (WebCore::ConsoleMessage::CallFrame::isEqual): |
|
3216 (WebCore::ConsoleMessage::CallFrame::createFrontendObject): |
|
3217 (WebCore::ConsoleMessage::ConsoleMessage): |
|
3218 (WebCore::ConsoleMessage::addToFrontend): |
|
3219 (WebCore::ConsoleMessage::isEqual): |
|
3220 * inspector/ConsoleMessage.h: |
|
3221 * inspector/front-end/ConsoleView.js: |
|
3222 (WebInspector.ConsoleMessage.prototype._formatMessage): |
|
3223 (WebInspector.ConsoleMessage.prototype._createStackTraceElement): |
|
3224 (WebInspector.ConsoleMessage.prototype._createSourceUrlLink): |
|
3225 * inspector/front-end/inspector.css: |
|
3226 (.console-message.expandable > .console-message-text::before): |
|
3227 (.console-message.expandable.collapsed > .console-message-text::before): |
|
3228 (.console-message.expandable.collapsed > ol.stack-trace): |
|
3229 (.console-message > ol.stack-trace): |
|
3230 (.console-message.repeated-message > ol.stack-trace): |
|
3231 (.console-message.repeated-message > ol.stack-trace.trace-message): |
|
3232 * page/Console.idl: |
|
3233 |
|
3234 2010-07-16 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
3235 |
|
3236 Reviewed by Antonio Gomes. |
|
3237 |
|
3238 [EFL] Build with MathML enabled. Fix build when MathML is enabled and |
|
3239 make it the default. |
|
3240 https://bugs.webkit.org/show_bug.cgi?id=42453 |
|
3241 |
|
3242 EFL port does not support automated tests, yet. |
|
3243 |
|
3244 * CMakeLists.txt: add missing source file and sort. |
|
3245 |
|
3246 2010-07-16 Hans Wennborg <hans@chromium.org> |
|
3247 |
|
3248 Reviewed by Steve Block. |
|
3249 |
|
3250 DeviceOrientationEvent.h should not forward-declare DeviceOrientation |
|
3251 https://bugs.webkit.org/show_bug.cgi?id=42447 |
|
3252 |
|
3253 When destructing m_orientation, DeviceOrientation cannot be an incomplete type. |
|
3254 |
|
3255 * dom/DeviceOrientationEvent.h: |
|
3256 |
|
3257 2010-07-16 Nikolas Zimmermann <nzimmermann@rim.com> |
|
3258 |
|
3259 Reviewed by Dirk Schulze. |
|
3260 |
|
3261 gradientTransform + objectBoundingBox is wrong |
|
3262 https://bugs.webkit.org/show_bug.cgi?id=42446 |
|
3263 |
|
3264 gradientTransform + gradientUnits="objectBoundingBox" is wrong. Reverse multiplication order of both transforms. |
|
3265 |
|
3266 * rendering/RenderSVGResourceGradient.cpp: s/multiply/multLeft/ |
|
3267 |
|
3268 2010-07-16 Mikhail Naganov <mnaganov@chromium.org> |
|
3269 |
|
3270 Reviewed by Pavel Feldman. |
|
3271 |
|
3272 Make JS memory stats available via 'Performance' object (Web Timing). |
|
3273 This statistics is populated only if 'WebKitMemoryInfoEnabled' |
|
3274 preference is set. |
|
3275 |
|
3276 'console.memory' is kept until Web Timing object becomes visible by |
|
3277 default (currently it is hidden under compile-time flag). These stats |
|
3278 are guarded with the same preference. |
|
3279 |
|
3280 https://bugs.webkit.org/show_bug.cgi?id=41617 |
|
3281 |
|
3282 * bindings/js/JSConsoleCustom.cpp: |
|
3283 * bindings/v8/custom/V8ConsoleCustom.cpp: |
|
3284 * page/Console.cpp: |
|
3285 (WebCore::Console::disconnectFrame): |
|
3286 (WebCore::Console::memory): |
|
3287 * page/Console.h: |
|
3288 * page/Console.idl: |
|
3289 * page/MemoryInfo.cpp: |
|
3290 (WebCore::MemoryInfo::MemoryInfo): |
|
3291 * page/MemoryInfo.h: |
|
3292 (WebCore::MemoryInfo::create): |
|
3293 * page/Performance.cpp: |
|
3294 (WebCore::Performance::disconnectFrame): |
|
3295 (WebCore::Performance::memory): |
|
3296 * page/Performance.h: |
|
3297 * page/Performance.idl: |
|
3298 * page/Settings.cpp: |
|
3299 (WebCore::Settings::Settings): |
|
3300 * page/Settings.h: |
|
3301 (WebCore::Settings::setMemoryInfoEnabled): |
|
3302 (WebCore::Settings::memoryInfoEnabled): |
|
3303 |
|
3304 2010-07-16 Nikolas Zimmermann <nzimmermann@rim.com> |
|
3305 |
|
3306 Reviewed by Dirk Schulze. |
|
3307 |
|
3308 Convolution computation causes bad alpha channel values |
|
3309 https://bugs.webkit.org/show_bug.cgi?id=42273 |
|
3310 |
|
3311 Unbreak the convolve matrix filter, fixing svg/W3C-SVG-1.1/filters-conv-01-f.svg. |
|
3312 |
|
3313 1) Fix clamping the rgb values: |
|
3314 "image->set(pixel++, clampRGBAValue(totals[0], maxAlpha));" totals[0] -> totals[i]. |
|
3315 |
|
3316 2) Don't apply the divisior divison and bias addition multiple times, accumulated! |
|
3317 |
|
3318 * svg/graphics/filters/SVGFEConvolveMatrix.cpp: |
|
3319 (WebCore::setDestinationPixels): Fix two evil bugs, breaking feConvolveMatrix. |
|
3320 |
|
3321 2010-07-16 Nikolas Zimmermann <nzimmermann@rim.com> |
|
3322 |
|
3323 Reviewed by Dirk Schulze. |
|
3324 |
|
3325 relative positioning does not work for radialGradient after window resize |
|
3326 https://bugs.webkit.org/show_bug.cgi?id=41249 |
|
3327 |
|
3328 Redesign the way resources are invalidated. No longer utilize the DOM tree, specifically SVGStyledElement::svgAttributeChanged(), to invalidate |
|
3329 all resources in the ancestor chain (including itself) when any attribute changes. rect.setAttribute("foo", "bar") should never invalidate the |
|
3330 resources. Also the old approach didn't work correctly if the root layout changed (eg. window size change) - we failed to invalidate the resources, |
|
3331 thus leading to wrong renderings. |
|
3332 |
|
3333 Instead of calling setNeedsLayout(true) from the SVG*Element classes, call RenderSVGResource::markForLayoutAndParentResourceInvalidation(), which |
|
3334 does the same thing and invalidates all resources in the ancestor chain (removing the cached results from the HashMaps). This only happens from |
|
3335 the various svgAttributeChanged() methods, if we know which attribute changed, and what action has to be taken. |
|
3336 |
|
3337 All SVG renderers now invalidate their own resources on layout() if the layout changed (selfNeedsLayout()=true). The resources will be recreated |
|
3338 and cached during the following paint() call. |
|
3339 |
|
3340 Tests: svg/custom/marker-child-changes-css.svg |
|
3341 svg/custom/relative-sized-content-with-resources.xhtml |
|
3342 |
|
3343 * rendering/RenderForeignObject.cpp: |
|
3344 (WebCore::RenderForeignObject::layout): If our layout changed, invalidate our resources, by calling RenderSVGResource::invalidateAllResourcesOfRenderer(). |
|
3345 * rendering/RenderPath.cpp: |
|
3346 (WebCore::RenderPath::layout): Ditto. |
|
3347 * rendering/RenderSVGContainer.cpp: |
|
3348 (WebCore::RenderSVGContainer::layout): Ditto. |
|
3349 * rendering/RenderSVGImage.cpp: |
|
3350 (WebCore::RenderSVGImage::layout): Ditto. |
|
3351 * rendering/RenderSVGModelObject.cpp: |
|
3352 (WebCore::RenderSVGModelObject::styleDidChange): Added, to invalidate resources on CSS changes, covered by new svg/custom/marker-child-changes-css.svg test. |
|
3353 * rendering/RenderSVGModelObject.h: |
|
3354 * rendering/RenderSVGResource.cpp: |
|
3355 (WebCore::RenderSVGResource::markForLayoutAndResourceInvalidation): Add new "needsBoundaries" parameter, calling setNeedsBoundaries() on the target render object, |
|
3356 simplifying all RenderSVGResource* code. |
|
3357 (WebCore::RenderSVGResource::markForLayoutAndParentResourceInvalidation): New static method used from DOM tree to invalidate all cached resources in the ancestor chain |
|
3358 for a render object. Also marks the renderer for layout, if needed. |
|
3359 * rendering/RenderSVGResource.h: |
|
3360 * rendering/RenderSVGResourceClipper.cpp: Simplify code, remove no longer needed hacks, as invalidation is now carried out by render tree. |
|
3361 (WebCore::RenderSVGResourceClipper::RenderSVGResourceClipper): Add m_invalidationBlocked hack, to avoid invalidations, while we're mutating the render styles (which is a hack!). |
|
3362 (WebCore::RenderSVGResourceClipper::invalidateClients): Don't do anything if m_invalidationBlocked=true. |
|
3363 (WebCore::RenderSVGResourceClipper::invalidateClient): Ditto. |
|
3364 (WebCore::RenderSVGResourceClipper::createClipData): Set m_invalidationBlocked before mutating render styles, as they are restored immediately after creating the clip image. |
|
3365 (WebCore::RenderSVGResourceClipper::resourceBoundingBox): Remove no longer needed hack to initialize ClipperData earlier than applyResource() would do. |
|
3366 * rendering/RenderSVGResourceClipper.h: |
|
3367 * rendering/RenderSVGResourceFilter.cpp: |
|
3368 (WebCore::RenderSVGResourceFilter::invalidateClients): Simplify code using markForLayoutAndResourceInvalidation. |
|
3369 (WebCore::RenderSVGResourceFilter::invalidateClient): Remove wrong assertion. |
|
3370 * rendering/RenderSVGResourceGradient.cpp: |
|
3371 (WebCore::RenderSVGResourceGradient::invalidateClients): Simplify code using markForLayoutAndResourceInvalidation. |
|
3372 (WebCore::RenderSVGResourceGradient::invalidateClient): Remove wrong assertion. |
|
3373 * rendering/RenderSVGResourceMarker.cpp: |
|
3374 (WebCore::RenderSVGResourceMarker::invalidateClients): Simplify code using markForLayoutAndResourceInvalidation. |
|
3375 (WebCore::RenderSVGResourceMarker::invalidateClient): Remove wrong assertion. |
|
3376 * rendering/RenderSVGResourceMasker.cpp: |
|
3377 (WebCore::RenderSVGResourceMasker::invalidateClients): Simplify code using markForLayoutAndResourceInvalidation. |
|
3378 (WebCore::RenderSVGResourceMasker::invalidateClient): Remove wrong assertion. |
|
3379 (WebCore::RenderSVGResourceMasker::resourceBoundingBox): Remove no longer needed hack to initializer MaskerData earlier than applyResource() would do. |
|
3380 * rendering/RenderSVGResourcePattern.cpp: |
|
3381 (WebCore::RenderSVGResourcePattern::invalidateClients): Simplify code using markForLayoutAndResourceInvalidation. |
|
3382 (WebCore::RenderSVGResourcePattern::invalidateClient): Remove wrong assertion. |
|
3383 * rendering/RenderSVGText.cpp: |
|
3384 (WebCore::RenderSVGText::layout): If our layout changed, invalidate our resources, by calling RenderSVGResource::invalidateAllResourcesOfRenderer(). |
|
3385 * svg/SVGAnimateMotionElement.cpp: |
|
3386 (WebCore::SVGAnimateMotionElement::applyResultsToTarget): Call RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer) instead of renderer->setNeedsLayout(true). |
|
3387 * svg/SVGAnimateTransformElement.cpp: |
|
3388 (WebCore::SVGAnimateTransformElement::applyResultsToTarget): Ditto. |
|
3389 * svg/SVGCircleElement.cpp: |
|
3390 (WebCore::SVGCircleElement::svgAttributeChanged): Ditto. |
|
3391 * svg/SVGEllipseElement.cpp: |
|
3392 (WebCore::SVGEllipseElement::svgAttributeChanged): Ditto. |
|
3393 * svg/SVGFEImageElement.cpp: |
|
3394 (WebCore::SVGFEImageElement::notifyFinished): Ditto. |
|
3395 * svg/SVGForeignObjectElement.cpp: |
|
3396 (WebCore::SVGForeignObjectElement::svgAttributeChanged): Ditto. |
|
3397 * svg/SVGGElement.cpp: |
|
3398 (WebCore::SVGGElement::svgAttributeChanged): Ditto. |
|
3399 * svg/SVGImageElement.cpp: |
|
3400 (WebCore::SVGImageElement::svgAttributeChanged): Ditto. |
|
3401 * svg/SVGLineElement.cpp: |
|
3402 (WebCore::SVGLineElement::svgAttributeChanged): Ditto. |
|
3403 * svg/SVGPathElement.cpp: |
|
3404 (WebCore::SVGPathElement::svgAttributeChanged): Ditto. |
|
3405 * svg/SVGPolyElement.cpp: |
|
3406 (WebCore::SVGPolyElement::svgAttributeChanged): Ditto. |
|
3407 * svg/SVGRectElement.cpp: |
|
3408 (WebCore::SVGRectElement::svgAttributeChanged): Ditto. |
|
3409 * svg/SVGSVGElement.cpp: |
|
3410 (WebCore::SVGSVGElement::setCurrentScale): Ditto. |
|
3411 (WebCore::SVGSVGElement::svgAttributeChanged): Ditto. |
|
3412 (WebCore::SVGSVGElement::inheritViewAttributes): Ditto. |
|
3413 * svg/SVGStopElement.cpp: |
|
3414 (WebCore::SVGStopElement::SVGStopElement): Changed m_offset initialization from 0.0f to 0. |
|
3415 (WebCore::SVGStopElement::svgAttributeChanged): Add missing implementation, calling RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer) on offsetAttr changes. |
|
3416 * svg/SVGStopElement.h: |
|
3417 * svg/SVGStyledElement.cpp: |
|
3418 (WebCore::SVGStyledElement::svgAttributeChanged): Don't call invalidateResourceInAncestorChain() on every attribute change, do it in all classes inheriting from us, |
|
3419 for specific attributes. Also stop calling RenderSVGResource::invalidateAllResourcesOfRenderer(), all handled in the render tree now. |
|
3420 (WebCore::SVGStyledElement::invalidateResourceClients): Early exit, if document is still parsing. |
|
3421 * svg/SVGStyledElement.h: |
|
3422 * svg/SVGTRefElement.cpp: |
|
3423 (WebCore::SVGTRefElement::svgAttributeChanged): Call RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer) instead of renderer->setNeedsLayout(true). |
|
3424 * svg/SVGTextElement.cpp: |
|
3425 (WebCore::SVGTextElement::svgAttributeChanged): Ditto. |
|
3426 * svg/SVGTextPathElement.cpp: |
|
3427 (WebCore::SVGTextPathElement::svgAttributeChanged): Ditto. |
|
3428 * svg/SVGTextPositioningElement.cpp: |
|
3429 (WebCore::SVGTextPositioningElement::svgAttributeChanged): Ditto. |
|
3430 * svg/SVGUseElement.cpp: |
|
3431 (WebCore::SVGUseElement::svgAttributeChanged): Ditto. |
|
3432 (WebCore::SVGUseElement::updateContainerSizes): Ditto. |
|
3433 (WebCore::SVGUseElement::updateContainerOffsets): Ditto. |
|
3434 |
|
3435 2010-07-16 Cosmin Truta <ctruta@chromium.org> |
|
3436 |
|
3437 Reviewed by Eric Seidel. |
|
3438 |
|
3439 Some SVGs with empty <g> elements crash Chromium on Linux |
|
3440 https://bugs.webkit.org/show_bug.cgi?id=41175 |
|
3441 |
|
3442 Avoid painting of zero-sized image buffers. Skia can't handle it. |
|
3443 |
|
3444 Test: svg/filters/filter-empty-g.svg |
|
3445 |
|
3446 * WebCore/platform/graphics/skia/ImageBufferSkia.cpp: |
|
3447 (ImageBuffer::ImageBuffer): |
|
3448 |
|
3449 2010-07-16 Nate Chapin <japhet@chromium.org> |
|
3450 |
|
3451 Reviewed by Darin Fisher. |
|
3452 |
|
3453 Regression in r63100: Don't clear m_loadType in |
|
3454 FrameLoader::handledOnloadEvents, as it is used |
|
3455 to make some decisions after the load has actually |
|
3456 completed. |
|
3457 |
|
3458 Tickling this bug requires manipulation |
|
3459 via the API (layout tests don't appear to traverse |
|
3460 the correct codepath), so no layout test. |
|
3461 |
|
3462 https://bugs.webkit.org/show_bug.cgi?id=42298 |
|
3463 |
|
3464 * loader/FrameLoader.cpp: |
|
3465 (WebCore::FrameLoader::handledOnloadEvents): Don't reset m_loadType. |
|
3466 (WebCore::FrameLoader::addExtraFieldsToRequest): Set subresource cache |
|
3467 policy in one place and don't depend on m_loadType. |
|
3468 |
|
3469 2010-07-15 Shinichiro Hamaji <hamaji@chromium.org> |
|
3470 |
|
3471 Reviewed by Darin Adler. |
|
3472 |
|
3473 Printing test results differ between machines, we should use ImageDiff instead |
|
3474 https://bugs.webkit.org/show_bug.cgi?id=20011 |
|
3475 |
|
3476 Added spoolAllPagesWithBoundaries into PrintContext. |
|
3477 |
|
3478 Test: printing/setPrinting.html |
|
3479 |
|
3480 * WebCore.base.exp: |
|
3481 * page/PrintContext.cpp: |
|
3482 (WebCore::PrintContext::spoolAllPagesWithBoundaries): |
|
3483 * page/PrintContext.h: |
|
3484 |
|
3485 2010-07-15 Kent Tamura <tkent@chromium.org> |
|
3486 |
|
3487 Unreviewed, small style fixes. |
|
3488 |
|
3489 * platform/chromium/ThemeChromiumMac.mm: |
|
3490 (WebCore::ThemeChromiumMac::inflateControlPaintRect): |
|
3491 * platform/mac/ThemeMac.mm: |
|
3492 (WebCore::ThemeMac::inflateControlPaintRect): |
|
3493 |
|
3494 2010-07-15 Adam Barth <abarth@webkit.org> |
|
3495 |
|
3496 Reviewed by Eric Seidel. |
|
3497 |
|
3498 Update LegacyHTMLTreeBuilder to insert whitespace between </head> and <body> |
|
3499 https://bugs.webkit.org/show_bug.cgi?id=42431 |
|
3500 |
|
3501 Insert these whitespace text nodes into the HTML element between <head> |
|
3502 and <body>, as required by HTML5. Previously, we just dropped them on |
|
3503 the floor. |
|
3504 |
|
3505 * html/LegacyHTMLTreeBuilder.cpp: |
|
3506 (WebCore::LegacyHTMLTreeBuilder::handleError): |
|
3507 |
|
3508 2010-07-15 Victor Wang <victorw@chromium.org> |
|
3509 |
|
3510 Reviewed by David Levin. |
|
3511 |
|
3512 [chromium] update KURLGoogle decodeURLEscapeSequences to |
|
3513 use googleurl public api so it does not access functions in |
|
3514 url_canon_internal. This is for chromium multi-dll build. |
|
3515 |
|
3516 https://bugs.webkit.org/show_bug.cgi?id=42177 |
|
3517 |
|
3518 Test: (unittest) WebKit\chromium\tests\KURLTest.cpp |
|
3519 |
|
3520 * platform/KURLGoogle.cpp: |
|
3521 (WebCore::decodeURLEscapeSequences): |
|
3522 |
|
3523 2010-07-15 Kent Tamura <tkent@chromium.org> |
|
3524 |
|
3525 Reviewed by Eric Seidel. |
|
3526 |
|
3527 [Chromium] Update ThemeChromiumMac.mm for the recent changes of ThemeMac.mm |
|
3528 https://bugs.webkit.org/show_bug.cgi?id=41932 |
|
3529 |
|
3530 Sync with ThemeMac.mm r61760. |
|
3531 This change doesn't contain r54299, r57603, r57734, r57741, and |
|
3532 r58533 because they conflict with Chromium change for |
|
3533 FlippedView(). |
|
3534 |
|
3535 * platform/chromium/ThemeChromiumMac.mm: |
|
3536 (WebCore::sizeFromNSControlSize): |
|
3537 (WebCore::sizeFromFont): |
|
3538 (WebCore::controlSizeFromPixelSize): |
|
3539 (WebCore::setControlSize): |
|
3540 (WebCore::convertControlStatesToThemeDrawState): |
|
3541 (WebCore::stepperSizes): |
|
3542 (WebCore::stepperControlSizeForFont): |
|
3543 (WebCore::paintStepper): |
|
3544 (WebCore::ThemeChromiumMac::controlSize): |
|
3545 (WebCore::ThemeChromiumMac::minimumControlSize): |
|
3546 (WebCore::ThemeChromiumMac::inflateControlPaintRect): |
|
3547 (WebCore::ThemeChromiumMac::paint): |
|
3548 |
|
3549 2010-07-15 MORITA Hajime <morrita@google.com> |
|
3550 |
|
3551 Reviewed by David Levin. |
|
3552 |
|
3553 [Chromium][Win] Crashes with <keygen> with huge padding. |
|
3554 https://bugs.webkit.org/show_bug.cgi?id=41737 |
|
3555 |
|
3556 When we try to draw a large region, TransparencyWin can fail to |
|
3557 allocate a temporal buffer for composition. This change adds a |
|
3558 fallback path to ThemePainter to handle the buffer allocation |
|
3559 failure. |
|
3560 |
|
3561 ThemePainter is no longer a subclass of TransparencyWin. It has |
|
3562 a TransparencyWin as a member. |
|
3563 |
|
3564 Test: fast/forms/large-parts.html |
|
3565 |
|
3566 * rendering/RenderThemeChromiumWin.cpp: |
|
3567 (WebCore::ThemePainter): Added a fallback path. |
|
3568 |
|
3569 2010-07-15 Yuzo Fujishima <yuzo@google.com> |
|
3570 |
|
3571 Reviewed by Darin Adler. |
|
3572 |
|
3573 Fix for Bug 42362 - CSSSegmentedFontFace::isLoaded() const is not used anywhere |
|
3574 Remove the method. |
|
3575 https://bugs.webkit.org/show_bug.cgi?id=42362 |
|
3576 |
|
3577 No new tests because of no behavior changes. |
|
3578 |
|
3579 * css/CSSSegmentedFontFace.cpp: |
|
3580 * css/CSSSegmentedFontFace.h: |
|
3581 |
|
3582 2010-07-15 Erik Arvidsson <arv@chromium.org> |
|
3583 |
|
3584 Reviewed by David Levin. |
|
3585 |
|
3586 Add directional property enums to the switch in applyProperty |
|
3587 https://bugs.webkit.org/show_bug.cgi?id=42438 |
|
3588 |
|
3589 Build fix for chromium mac. |
|
3590 |
|
3591 * css/CSSStyleSelector.cpp: |
|
3592 (WebCore::CSSStyleSelector::applyProperty): |
|
3593 |
|
3594 2010-07-13 Zhenyao Mo <zmo@google.com> |
|
3595 |
|
3596 Reviewed by Nate Chapin. |
|
3597 |
|
3598 bufferData and bufferSubData generate wrong error when null buffer is bound |
|
3599 https://bugs.webkit.org/show_bug.cgi?id=42125 |
|
3600 |
|
3601 * html/canvas/WebGLRenderingContext.cpp: |
|
3602 (WebCore::WebGLRenderingContext::bufferData): Call validateBufferDataParameters(). |
|
3603 (WebCore::WebGLRenderingContext::bufferSubData): Ditto. |
|
3604 (WebCore::WebGLRenderingContext::validateBufferDataParameters): Parameters validation for buffer{Sub}Data(). |
|
3605 * html/canvas/WebGLRenderingContext.h: Declare validateBufferDataParameters(). |
|
3606 |
|
3607 2010-07-15 Jay Civelli <jcivelli@chromium.org> |
|
3608 |
|
3609 Reviewed by David Levin. |
|
3610 |
|
3611 [chromium] Making the popup label color visible when the item is |
|
3612 selected. |
|
3613 https://bugs.webkit.org/show_bug.cgi?id=42271 |
|
3614 |
|
3615 * platform/chromium/PopupMenuChromium.cpp: |
|
3616 (WebCore::PopupListBox::paintRow): paint the label text with a |
|
3617 different color when it is selected. |
|
3618 |
|
3619 2010-07-13 Zhenyao Mo <zmo@google.com> |
|
3620 |
|
3621 Reviewed by Nate Chapin. |
|
3622 |
|
3623 WebGL rendering results must be made available to Canvas.toDataURL and 2D drawImage |
|
3624 https://bugs.webkit.org/show_bug.cgi?id=34719 |
|
3625 |
|
3626 Tests: fast/canvas/webgl/canvas-test.html |
|
3627 fast/canvas/webgl/gl-pixelstorei.html |
|
3628 |
|
3629 * html/HTMLCanvasElement.cpp: |
|
3630 (WebCore::HTMLCanvasElement::makeRenderingResultsAvailable): Paint the WebGL rendering results to canvas if it's 3d. |
|
3631 (WebCore::HTMLCanvasElement::toDataURL): Paint the WebGL rendering results to canvas if it's 3d. |
|
3632 * html/canvas/CanvasRenderingContext2D.cpp: |
|
3633 (WebCore::CanvasRenderingContext2D::drawImage): Paint the WebGL rendering results to canvas if it's 3d before drawing. |
|
3634 * html/canvas/WebGLRenderingContext.cpp: |
|
3635 (WebCore::WebGLRenderingContext::markContextChanged): Mark it always for canvas2d.drawImage purpose. |
|
3636 (WebCore::WebGLRenderingContext::paintRenderingResultsToCanvas): Paint the WebGL rendering results to canvas if it's dirty. |
|
3637 * html/canvas/WebGLRenderingContext.h: Declare paintRenderingResultsToCanvas(). |
|
3638 * platform/graphics/GraphicsContext3D.h: Declare paintRenderingResultsToCanvas() & paintToCanvas(). |
|
3639 * platform/graphics/cg/GraphicsContext3DCG.cpp: |
|
3640 (WebCore::GraphicsContext3D::paintToCanvas): Paint the rendered image pixels to the canvas. |
|
3641 * platform/graphics/mac/GraphicsContext3DMac.mm: |
|
3642 (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas): Implement paintRenderingResultsToCanvas(). |
|
3643 * platform/graphics/qt/GraphicsContext3DQt.cpp: |
|
3644 (WebCore::GraphicsContext3D::beginPaint): Just call paintRenderingResultsToCanvas(). |
|
3645 (WebCore::GraphicsContext3D::endPaint): |
|
3646 (WebCore::GraphicsContext3D::paintRenderingResultsToCanvas): Implement paintRenderingResultsToCanvas(). |
|
3647 |
|
3648 2010-07-15 Nico Weber <thakis@chromium.org> |
|
3649 |
|
3650 Reviewed by Ojan Vafai. |
|
3651 |
|
3652 chromium/skia: Fix canvas.toDataURL in the presence of transparency |
|
3653 https://bugs.webkit.org/show_bug.cgi?id=42214 |
|
3654 |
|
3655 The problem was that SkBitmaps contain premultiplied data, but pnglib |
|
3656 doesn't expect premultiplied data. Now, the encoder unpremultiplies |
|
3657 data before sending it to pnglib. |
|
3658 |
|
3659 Patch partially by deanm. |
|
3660 |
|
3661 Covered by fast/canvas/toDataURL-alpha.html. |
|
3662 |
|
3663 * platform/image-encoders/skia/PNGImageEncoder.cpp: |
|
3664 (WebCore::preMultipliedBGRAtoRGBA): |
|
3665 (WebCore::encodeImpl): |
|
3666 (WebCore::PNGImageEncoder::encode): |
|
3667 |
|
3668 2010-07-15 Alex Nicolaou <anicolao@chromium.org> |
|
3669 |
|
3670 Reviewed by Eric Seidel. |
|
3671 |
|
3672 Convolution computation causes bad alpha channel values |
|
3673 https://bugs.webkit.org/show_bug.cgi?id=42273 |
|
3674 |
|
3675 Fixed by clamping colour channel values to the alpha value so that |
|
3676 r <= a, g <= a, and b <= a after the convolution is applied. See |
|
3677 the bug for why I believe the SVG specification needs to be updated. |
|
3678 Test must be drawn to crash. 100x100 green rectangle is used to |
|
3679 indicate pass to minimize the chance of regression. |
|
3680 |
|
3681 Test: svg/custom/convolution-crash.svg |
|
3682 |
|
3683 * platform/graphics/skia/SkiaUtils.cpp: |
|
3684 (WebCore::SkPMColorToColor): |
|
3685 * svg/graphics/filters/SVGFEConvolveMatrix.cpp: |
|
3686 (WebCore::clampRGBAValue): |
|
3687 (WebCore::setDestinationPixels): |
|
3688 (WebCore::FEConvolveMatrix::fastSetInteriorPixels): |
|
3689 (WebCore::FEConvolveMatrix::fastSetOuterPixels): |
|
3690 |
|
3691 2010-07-15 Dumitru Daniliuc <dumi@chromium.org> |
|
3692 |
|
3693 Unreviewed, Chromium-specific changes that I forgot to make in r63278. |
|
3694 |
|
3695 1. DatabaseTrackerChromium::getMaxSizeForDatabase() is called on |
|
3696 the context thread by sync DBs. |
|
3697 2. Forgot to change V8SQLTransactionSyncCustom to return the |
|
3698 result set when executeSql() is called. |
|
3699 |
|
3700 * bindings/v8/custom/V8SQLTransactionSyncCustom.cpp: |
|
3701 (WebCore::V8SQLTransactionSync::executeSqlCallback): |
|
3702 * storage/chromium/DatabaseTrackerChromium.cpp: |
|
3703 (WebCore::DatabaseTracker::getMaxSizeForDatabase): |
|
3704 |
|
3705 2010-07-15 Martin Robinson <mrobinson@igalia.com> |
|
3706 |
|
3707 Reviewed by Oliver Hunt. |
|
3708 |
|
3709 [GTK] Simplify the distribution step |
|
3710 https://bugs.webkit.org/show_bug.cgi?id=42414 |
|
3711 |
|
3712 No new tests as this is just a build change. |
|
3713 |
|
3714 * GNUmakefile.am: Modify EXTRA_DIST directly and make sure the list |
|
3715 of files is sorted. Also handle distributing the IDL files from the |
|
3716 WebCore source tree. |
|
3717 |
|
3718 2010-07-15 Eric Seidel <eric@webkit.org> |
|
3719 |
|
3720 Reviewed by Adam Barth. |
|
3721 |
|
3722 LegacyHTMLTreeBuilder should insert an implicit <colgroup> before inserting <col> to match HTML5 |
|
3723 https://bugs.webkit.org/show_bug.cgi?id=42346 |
|
3724 |
|
3725 This turned out to be an easy fix. |
|
3726 |
|
3727 This is covered by lots of layout tests. I believe |
|
3728 all of the changed results to be progressions. |
|
3729 |
|
3730 This change had no measurable effect on the parser benchmark. |
|
3731 |
|
3732 * html/LegacyHTMLTreeBuilder.cpp: |
|
3733 (WebCore::LegacyHTMLTreeBuilder::colCreateErrorCheck): |
|
3734 (WebCore::LegacyHTMLTreeBuilder::getNode): |
|
3735 * html/LegacyHTMLTreeBuilder.h: |
|
3736 |
|
3737 2010-07-15 Sam Weinig <sam@webkit.org> |
|
3738 |
|
3739 Reviewed by Oliver Hunt. |
|
3740 |
|
3741 Patch for https://bugs.webkit.org/show_bug.cgi?id=42410 |
|
3742 Many leaking DatasetDOMStringMaps seen on buildbot |
|
3743 |
|
3744 * dom/NodeRareData.h: |
|
3745 (WebCore::NodeRareData::~NodeRareData): Add a virtual destructor so |
|
3746 that the ElementRareData's destructor will be called when this is deleted |
|
3747 from the Node's destructor. |
|
3748 |
|
3749 2010-07-15 Chris Fleizach <cfleizach@apple.com> |
|
3750 |
|
3751 Reviewed by Darin Adler. |
|
3752 |
|
3753 AX: Crash when table has empty thead tag |
|
3754 https://bugs.webkit.org/show_bug.cgi?id=42391 |
|
3755 |
|
3756 Test: accessibility/table-with-empty-thead-causes-crash.html |
|
3757 |
|
3758 * accessibility/AccessibilityTableColumn.cpp: |
|
3759 (WebCore::AccessibilityTableColumn::headerObjectForSection): |
|
3760 |
|
3761 2010-07-15 Anders Carlsson <andersca@apple.com> |
|
3762 |
|
3763 Reviewed by Sam Weinig. |
|
3764 |
|
3765 Start loading plug-in streams |
|
3766 https://bugs.webkit.org/show_bug.cgi?id=42407 |
|
3767 |
|
3768 Export some ResourceRequestBase getters. |
|
3769 |
|
3770 * WebCore.exp.in: |
|
3771 |
|
3772 2010-07-15 Kenneth Russell <kbr@google.com> |
|
3773 |
|
3774 Reviewed by Nate Chapin. |
|
3775 |
|
3776 Query of NUM_COMPRESSED_TEXTURE_FORMATS must be handled by WebGL |
|
3777 https://bugs.webkit.org/show_bug.cgi?id=42401 |
|
3778 |
|
3779 No new tests; covered by gl-get-calls.html. |
|
3780 |
|
3781 * html/canvas/WebGLRenderingContext.cpp: |
|
3782 (WebCore::WebGLRenderingContext::getParameter): |
|
3783 - Return 0 for getParameter(NUM_COMPRESSED_TEXTURE_FORMATS). |
|
3784 |
|
3785 2010-07-07 John Gregg <johnnyg@google.com> |
|
3786 |
|
3787 Reviewed by Jian Li. |
|
3788 |
|
3789 Experimental directory upload feature. |
|
3790 https://bugs.webkit.org/show_bug.cgi?id=40872 |
|
3791 |
|
3792 This patch adds a new HTML attribute webkitdirectory which applies to |
|
3793 <input type="file"> tags and allows the user to specify a folder |
|
3794 which is recursively enumerated so that all the files in that folder |
|
3795 are added to the file list. |
|
3796 |
|
3797 The files chosen in that way have a .webkitRelativePath attribute which contains |
|
3798 the relative path starting from the chosen folder. The relative path is |
|
3799 also appended to each item in the FormData when uploaded. |
|
3800 |
|
3801 All the code is behind an ENABLE_DIRECTORY_UPLOAD flag. |
|
3802 |
|
3803 Test: fast/forms/input-file-directory-upload.html |
|
3804 |
|
3805 * html/Blob.cpp: |
|
3806 (WebCore::Blob::Blob): |
|
3807 * html/Blob.h: |
|
3808 * html/File.cpp: |
|
3809 (WebCore::File::File): |
|
3810 (WebCore::File::Init): |
|
3811 (WebCore::File::webkitRelativePath): |
|
3812 * html/File.h: |
|
3813 (WebCore::File::create): |
|
3814 * html/File.idl: |
|
3815 * html/HTMLAttributeNames.in: add webkitdirectory attribute |
|
3816 * html/HTMLInputElement.cpp: |
|
3817 (WebCore::HTMLInputElement::setFileListFromRenderer): |
|
3818 (WebCore::HTMLInputElement::webkitdirectory): |
|
3819 * html/HTMLInputElement.h: |
|
3820 * html/HTMLInputElement.idl: |
|
3821 * platform/BlobItem.cpp: |
|
3822 (WebCore::FileBlobItem::create): |
|
3823 (WebCore::FileBlobItem::FileBlobItem): |
|
3824 * platform/BlobItem.h: |
|
3825 (WebCore::FileBlobItem::relativePath): |
|
3826 * platform/FileChooser.h: |
|
3827 (WebCore::FileChooser::allowsDirectoryUpload): |
|
3828 * platform/network/FormData.cpp: |
|
3829 (WebCore::FormData::appendKeyValuePairItems): |
|
3830 * rendering/RenderFileUploadControl.cpp: |
|
3831 (WebCore::RenderFileUploadControl::allowsMultipleFiles): |
|
3832 (WebCore::RenderFileUploadControl::allowsDirectoryUpload): |
|
3833 * rendering/RenderFileUploadControl.h: |
|
3834 |
|
3835 2010-07-15 Simon Fraser <simon.fraser@apple.com> |
|
3836 |
|
3837 Reviewed by Dan Bernstein. |
|
3838 |
|
3839 Avoid creating huge compositing layers for elements that project outside the viewport |
|
3840 https://bugs.webkit.org/show_bug.cgi?id=42338 |
|
3841 |
|
3842 The logic that computed the bounds of compositing layers naively used the |
|
3843 union of the bounds of descendant, non-composited RenderLayers, without regard |
|
3844 to what is actually visible. This could result in huge layers for page with |
|
3845 elements are large negative offsets, or with large negative text-indent (both |
|
3846 common). |
|
3847 |
|
3848 For elements without transforms on them or in their ancestor chain, and when |
|
3849 no 3d transforms or hardware-accelerated animations are used, can clip compositing |
|
3850 layers to the size of the document, or based on CSS overflow and clip. |
|
3851 |
|
3852 Tests: compositing/geometry/limit-layer-bounds-clipping-ancestor.html |
|
3853 compositing/geometry/limit-layer-bounds-fixed-positioned.html |
|
3854 compositing/geometry/limit-layer-bounds-overflow-repaint.html |
|
3855 compositing/geometry/limit-layer-bounds-positioned-transition.html |
|
3856 compositing/geometry/limit-layer-bounds-positioned.html |
|
3857 compositing/geometry/limit-layer-bounds-transformed-overflow.html |
|
3858 compositing/geometry/limit-layer-bounds-transformed.html |
|
3859 |
|
3860 * rendering/RenderLayerBacking.cpp: |
|
3861 (WebCore::enclosingOverflowClipAncestor): Walk up the RenderLayer tree |
|
3862 looking for an ancestor that has overflow, or to the root. Along the way, check for |
|
3863 transformed elements. |
|
3864 (WebCore::RenderLayerBacking::updateCompositedBounds): If we're in "consult |
|
3865 overlap" mode, and we don't have transforms, then constrain the bounds |
|
3866 of composited layers by the RenderView's layoutOverflowRect(), or by the |
|
3867 enclosing layer with overflow. |
|
3868 (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): If the offset from the renderer changes, |
|
3869 we need to repaint the layer. |
|
3870 |
|
3871 2010-07-15 Alex Nicolaou <anicolao@chromium.org> |
|
3872 |
|
3873 Reviewed by Dirk Schulze. |
|
3874 |
|
3875 https://bugs.webkit.org/show_bug.cgi?id=42228 |
|
3876 |
|
3877 SVG Masks were in the wrong colour space for non-CG graphics layers, |
|
3878 because for those cases ImageBuffer needs to be explicitly told to |
|
3879 convert the pixels. This change adds a test that demonstrates the |
|
3880 problem and the conversion call to make the mask LinearRGB. |
|
3881 |
|
3882 Test: svg/custom/mask-colorspace.svg |
|
3883 |
|
3884 * rendering/RenderSVGResourceMasker.cpp: |
|
3885 (WebCore::RenderSVGResourceMasker::createMaskImage): |
|
3886 |
|
3887 2010-07-15 Daniel Bates <dbates@rim.com> |
|
3888 |
|
3889 Reviewed by Darin Adler. |
|
3890 |
|
3891 [Mac] Implement LayoutTestController::markerTextForListItem() |
|
3892 https://bugs.webkit.org/show_bug.cgi?id=37929 |
|
3893 |
|
3894 Export symbols for WebCore::markerTextForListItem() and WebCore::toElement(). |
|
3895 |
|
3896 * WebCore.exp.in: |
|
3897 |
|
3898 2010-07-15 Andreas Kling <andreas.kling@nokia.com> |
|
3899 |
|
3900 Rubber-stamped by Kenneth Rohde Christiansen. |
|
3901 |
|
3902 [Qt] Remove an unused variable in BitmapImage::draw() |
|
3903 |
|
3904 * platform/graphics/qt/ImageQt.cpp: |
|
3905 (WebCore::BitmapImage::draw): Remove selfSize. |
|
3906 |
|
3907 2010-07-15 Yury Semikhatsky <yurys@chromium.org> |
|
3908 |
|
3909 Reviewed by Pavel Feldman. |
|
3910 |
|
3911 Web Inspector: pass all parameters to WebInspector.addConsoleMessage as a single payload object |
|
3912 https://bugs.webkit.org/show_bug.cgi?id=42345 |
|
3913 |
|
3914 This refactoring is covered by existing console tests. |
|
3915 |
|
3916 * bindings/js/ScriptArray.cpp: |
|
3917 (WebCore::ScriptArray::set): |
|
3918 * bindings/js/ScriptArray.h: |
|
3919 (WebCore::ScriptArray::ScriptArray): |
|
3920 (WebCore::ScriptArray::jsArray): |
|
3921 * bindings/v8/ScriptArray.cpp: |
|
3922 (WebCore::ScriptArray::set): |
|
3923 * bindings/v8/ScriptArray.h: |
|
3924 (WebCore::ScriptArray::ScriptArray): |
|
3925 (WebCore::ScriptArray::~ScriptArray): |
|
3926 * inspector/ConsoleMessage.cpp: |
|
3927 (WebCore::ConsoleMessage::addToFrontend): |
|
3928 * inspector/InspectorFrontend.cpp: |
|
3929 (WebCore::InspectorFrontend::addConsoleMessage): |
|
3930 * inspector/InspectorFrontend.h: |
|
3931 * inspector/front-end/ConsoleView.js: |
|
3932 (WebInspector.ConsoleView.prototype.updateMessageRepeatCount): |
|
3933 (WebInspector.ConsoleMessage): |
|
3934 (WebInspector.ConsoleMessage.createTextMessage): |
|
3935 (WebInspector.ConsoleCommandResult): |
|
3936 * inspector/front-end/ElementsPanel.js: |
|
3937 (WebInspector.ElementsPanel.prototype.generateStylesheet): |
|
3938 * inspector/front-end/InjectedScriptAccess.js: |
|
3939 (InjectedScriptAccess._installHandler.InjectedScriptAccess.prototype.methodName.myCallback): |
|
3940 (InjectedScriptAccess._installHandler.InjectedScriptAccess.prototype.methodName): |
|
3941 (InjectedScriptAccess._installHandler): |
|
3942 * inspector/front-end/Resource.js: |
|
3943 (WebInspector.Resource.prototype._checkWarning): |
|
3944 * inspector/front-end/inspector.js: |
|
3945 (WebInspector.updateConsoleMessageExpiredCount): |
|
3946 (WebInspector.addConsoleMessage): |
|
3947 (WebInspector.log.logMessage): |
|
3948 (WebInspector.log): |
|
3949 |
|
3950 2010-07-14 Tony Gentilcore <tonyg@chromium.org> |
|
3951 |
|
3952 Reviewed by Darin Fisher. |
|
3953 |
|
3954 Backfill DNS and connect times rather than exposing hard zeros |
|
3955 https://bugs.webkit.org/show_bug.cgi?id=42303 |
|
3956 |
|
3957 There are several cases where domain lookup is not performed and/or a new connection is not established. Previously in these cases, we exposed a "0" to the API. Now, we instead "backfill" with the most recent mark's time. |
|
3958 |
|
3959 Also, previously, I was using the ResourceLoadTiming API incorrectly. Each mark is an integer representing offset in milliseconds from requestTime. So all values need to be added to requestTime. |
|
3960 |
|
3961 No new test because existing test expectations are set to FAIL because disable disabled by default. The expected results of existings tests change as expected when enabled. |
|
3962 |
|
3963 * page/Timing.cpp: |
|
3964 (WebCore::toIntegerMilliseconds): Move to file static instead of class static because it might generate more optimal code. Also, instead of converting negative doubles to zero, ASSERT that they are >= 0. This is because we no longer expose hard zeros for DNS and connect, so we want to be sure that the -1s returned by the API are properly handled. |
|
3965 (WebCore::Timing::domainLookupStart): |
|
3966 (WebCore::Timing::domainLookupEnd): |
|
3967 (WebCore::Timing::connectStart): |
|
3968 (WebCore::Timing::connectEnd): |
|
3969 (WebCore::Timing::requestStart): |
|
3970 (WebCore::Timing::requestEnd): |
|
3971 (WebCore::Timing::responseStart): |
|
3972 * page/Timing.h: |
|
3973 |
|
3974 2010-07-15 Pavel Feldman <pfeldman@chromium.org> |
|
3975 |
|
3976 Reviewed by Yury Semikhatsky. |
|
3977 |
|
3978 Web Inspector: differentiate between blocking and connecting timers. |
|
3979 |
|
3980 https://bugs.webkit.org/show_bug.cgi?id=42372 |
|
3981 |
|
3982 * inspector/InspectorResource.cpp: |
|
3983 (WebCore::InspectorResource::InspectorResource): |
|
3984 (WebCore::InspectorResource::updateResponse): |
|
3985 (WebCore::InspectorResource::updateScriptObject): |
|
3986 (WebCore::InspectorResource::buildObjectForTiming): |
|
3987 * inspector/InspectorResource.h: |
|
3988 * inspector/front-end/Resource.js: |
|
3989 (WebInspector.Resource.prototype.get cached): |
|
3990 (WebInspector.Resource.prototype.set cached): |
|
3991 * inspector/front-end/ResourcesPanel.js: |
|
3992 (WebInspector.ResourcesPanel.prototype._showPopover): |
|
3993 (WebInspector.ResourceGraph): |
|
3994 (WebInspector.ResourceGraph.prototype.refresh): |
|
3995 (WebInspector.ResourceGraph.prototype._cachedChanged): |
|
3996 * inspector/front-end/inspector.js: |
|
3997 (WebInspector.updateResource): |
|
3998 * loader/FrameLoader.cpp: |
|
3999 (WebCore::FrameLoader::loadedResourceFromMemoryCache): |
|
4000 * loader/FrameLoader.h: |
|
4001 * platform/network/ResourceResponseBase.cpp: |
|
4002 (WebCore::ResourceResponseBase::ResourceResponseBase): |
|
4003 (WebCore::ResourceResponseBase::connectionReused): |
|
4004 (WebCore::ResourceResponseBase::setConnectionID): |
|
4005 * platform/network/ResourceResponseBase.h: |
|
4006 |
|
4007 2010-07-15 MORITA Hajime <morrita@google.com> |
|
4008 |
|
4009 Text layout is wrong with a SVG Font that lacks <missing-glyph> element |
|
4010 https://bugs.webkit.org/show_bug.cgi?id=42352 |
|
4011 |
|
4012 floatWidthOfSubStringUsingSVGFont() calculated a wrong value for a |
|
4013 sub-run, and a fallback to system font triggers such a computation. |
|
4014 This change made floatWidthOfSubStringUsingSVGFont() to deal with |
|
4015 sub-runs. |
|
4016 |
|
4017 Test: svg/custom/svg-fonts-without-missing-glyph.xhtml |
|
4018 |
|
4019 * svg/SVGFont.cpp: |
|
4020 (WebCore::floatWidthOfSubStringUsingSVGFont): |
|
4021 |
|
4022 2010-07-15 Nikolas Zimmermann <nzimmermann@rim.com> |
|
4023 |
|
4024 Reviewed by Dirk Schulze. |
|
4025 |
|
4026 Cycle detection needs to include shadow tree |
|
4027 https://bugs.webkit.org/show_bug.cgi?id=42360 |
|
4028 |
|
4029 Search for cycles in shadow tree fragments as well. Extended the svg/custom/recursion-* tests. No more crashes in any of them. |
|
4030 |
|
4031 * rendering/RenderSVGResourceContainer.h: |
|
4032 (WebCore::RenderSVGResourceContainer::containsCyclicReference): |
|
4033 * rendering/RenderSVGShadowTreeRootContainer.cpp: Implemented here, not inline, so that clients don't need to include SVGShadowTreeElements.h |
|
4034 (WebCore::RenderSVGShadowTreeRootContainer::rootElement): Expose helper function, that returns the shadow tree root element as Node*. |
|
4035 * rendering/RenderSVGShadowTreeRootContainer.h: |
|
4036 |
|
4037 2010-07-15 Nikolas Zimmermann <nzimmermann@rim.com> |
|
4038 |
|
4039 Reviewed by Dirk Schulze. |
|
4040 |
|
4041 clipPath is missing cycle detection |
|
4042 https://bugs.webkit.org/show_bug.cgi?id=42350 |
|
4043 |
|
4044 Detect cyclic clipper resources, and ignore them on rendering. Early exit in applyResource just like the pattern/mask resources do. |
|
4045 |
|
4046 * rendering/RenderSVGResourceClipper.cpp: |
|
4047 (WebCore::RenderSVGResourceClipper::applyResource): |
|
4048 (WebCore::RenderSVGResourceClipper::hitTestClipContent): |
|
4049 (WebCore::RenderSVGResourceClipper::childElementReferencesResource): |
|
4050 * rendering/RenderSVGResourceClipper.h: |
|
4051 |
|
4052 2010-07-15 Mark Rowe <mrowe@apple.com> |
|
4053 |
|
4054 Reviewed by Maciej Stachowiak. |
|
4055 |
|
4056 Fix a leak of Vector instances seen on the build bot. |
|
4057 |
|
4058 * rendering/RenderObject.cpp: |
|
4059 (WebCore::RenderObject::drawBoxSideFromPath): Don't unnecessarily heap allocate then leak the DashArray. |
|
4060 |
|
4061 2010-07-15 Mark Rowe <mrowe@apple.com> |
|
4062 |
|
4063 Update the sorting in the Xcode project files. |
|
4064 |
|
4065 * WebCore.xcodeproj/project.pbxproj: |
|
4066 |
|
4067 2010-07-15 Nikolas Zimmermann <nzimmermann@rim.com> |
|
4068 |
|
4069 Reviewed by Eric Seidel. |
|
4070 |
|
4071 SVG patterns and masks should not be able to reference themselves |
|
4072 https://bugs.webkit.org/show_bug.cgi?id=32171 |
|
4073 |
|
4074 Pattern still had an issue, when using constructs like: |
|
4075 <pattern id="pattern1" xlink:href="#pattern2"/> |
|
4076 <pattern id="pattern2"><rect fill="url(#pattern1)"/></pattern> |
|
4077 |
|
4078 Extended test svg/custom/recursive-pattern.svg to cover this situation. |
|
4079 |
|
4080 * rendering/RenderSVGResourcePattern.cpp: |
|
4081 (WebCore::RenderSVGResourcePattern::applyResource): Don't perform the cycle check against node()... |
|
4082 (WebCore::RenderSVGResourcePattern::createTileImage): .. but against the "patternContentElement" which respect the xlink:href chaining. |
|
4083 |
|
4084 2010-07-15 Nikolas Zimmermann <nzimmermann@rim.com> |
|
4085 |
|
4086 Reviewed by Adam Barth. |
|
4087 |
|
4088 Pixel test failure in moving-shadow-on-path.html and moving-shadow-on-container.html |
|
4089 https://bugs.webkit.org/show_bug.cgi?id=42249 |
|
4090 |
|
4091 Partly revert <http://trac.webkit.org/changeset/63307>. The RenderSVGRoot change caused a pixel test regression in two fast/repaint tests. |
|
4092 |
|
4093 * rendering/RenderSVGRoot.cpp: |
|
4094 (WebCore::RenderSVGRoot::layout): Include selfNeedsLayout() check in LayoutStateRepainter argument. |
|
4095 |
|
4096 2010-07-14 Sheriff Bot <webkit.review.bot@gmail.com> |
|
4097 |
|
4098 Unreviewed, rolling out r63352. |
|
4099 http://trac.webkit.org/changeset/63352 |
|
4100 https://bugs.webkit.org/show_bug.cgi?id=42341 |
|
4101 |
|
4102 Broke plugin-initiate-popup-window.html and plugin-javascript- |
|
4103 access.html on snow leopard (Requested by abarth on #webkit). |
|
4104 |
|
4105 * bindings/v8/NPV8Object.cpp: |
|
4106 (_NPN_EvaluateHelper): |
|
4107 |
|
4108 2010-07-14 Eric Seidel <eric@webkit.org> |
|
4109 |
|
4110 Reviewed by Adam Barth. |
|
4111 |
|
4112 Make the LegacyHTMLTreeBuilder coalesce text nodes |
|
4113 https://bugs.webkit.org/show_bug.cgi?id=42314 |
|
4114 |
|
4115 This is slightly tricky as we're side-stepping the old |
|
4116 parsers insertion logic in the cases where we know we can |
|
4117 safely merge text into an existing text node instead of |
|
4118 inserting a new one. |
|
4119 |
|
4120 This affects lots of tests (which will need to change for |
|
4121 the HTML5 TreeBuilder anyway) and causes the LegacyHTMLTreeBuilder |
|
4122 to now pass a bunch more subtests in html5lib/runner.html. |
|
4123 |
|
4124 The parser benchmark thinks that this is a small speedup. |
|
4125 I think I happen to have been lucky enough to get the right |
|
4126 cache alignment, and that this is likely a wash. |
|
4127 |
|
4128 * html/LegacyHTMLTreeBuilder.cpp: |
|
4129 (WebCore::LegacyHTMLTreeBuilder::parseToken): |
|
4130 |
|
4131 2010-07-14 Evan Stade <estade@chromium.org> |
|
4132 |
|
4133 Reviewed by Kent Tamura. |
|
4134 |
|
4135 [chromium] Linux scrollbar steppers are "clickable" even when disabled |
|
4136 https://bugs.webkit.org/show_bug.cgi?id=42231 |
|
4137 |
|
4138 Not tested by layout tests. |
|
4139 |
|
4140 * platform/chromium/ScrollbarThemeChromiumLinux.cpp: |
|
4141 (WebCore::ScrollbarThemeChromiumLinux::paintButton): |
|
4142 |
|
4143 2010-07-14 Sheriff Bot <webkit.review.bot@gmail.com> |
|
4144 |
|
4145 Unreviewed, rolling out r63389. |
|
4146 http://trac.webkit.org/changeset/63389 |
|
4147 https://bugs.webkit.org/show_bug.cgi?id=42311 |
|
4148 |
|
4149 It broke the Chromium Linux build. (Requested by dave_levin on |
|
4150 #webkit). |
|
4151 |
|
4152 * platform/KURLGoogle.cpp: |
|
4153 (WebCore::decodeURLEscapeSequences): |
|
4154 |
|
4155 2010-07-13 Mirko Damiani <mirko@develer.com> |
|
4156 |
|
4157 Reviewed by Simon Hausmann. |
|
4158 |
|
4159 [Qt] CSS border style not cleared for SVG object |
|
4160 https://bugs.webkit.org/show_bug.cgi?id=42150 |
|
4161 |
|
4162 For tests and description see: |
|
4163 https://bugs.webkit.org/show_bug.cgi?id=25738 |
|
4164 |
|
4165 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
4166 (WebCore::GraphicsContext::setLineDash): |
|
4167 |
|
4168 2010-07-14 Adam Barth <abarth@webkit.org> |
|
4169 |
|
4170 Reviewed by Eric Seidel. |
|
4171 |
|
4172 HTMLTreeBuilder shouldn't crash during fast/parser/remove-parser-current-node.html |
|
4173 https://bugs.webkit.org/show_bug.cgi?id=42312 |
|
4174 |
|
4175 We were crashing because of an ASSERT I added to the attach logic in |
|
4176 the HTMLConstructionSite. I knew this ASSERT was wrong when I added |
|
4177 it, I just wanted to make sure we had test coverage of those cases. |
|
4178 Turns out we do! :) |
|
4179 |
|
4180 * html/HTMLConstructionSite.cpp: |
|
4181 (WebCore::HTMLConstructionSite::attach): |
|
4182 (WebCore::HTMLConstructionSite::attachAtSite): |
|
4183 |
|
4184 2010-07-14 Victor Wang <victorw@chromium.org> |
|
4185 |
|
4186 Reviewed by Darin Fisher. |
|
4187 |
|
4188 [chromium] update KURLGoogle decodeURLEscapeSequences to |
|
4189 use googleurl public api so it does not access functions in |
|
4190 url_canon_internal. This is for chromium multi-dll build. |
|
4191 |
|
4192 https://bugs.webkit.org/show_bug.cgi?id=42177 |
|
4193 |
|
4194 Test: (unittest) WebKit\chromium\tests\KURLTest.cpp |
|
4195 |
|
4196 * platform/KURLGoogle.cpp: |
|
4197 (WebCore::decodeURLEscapeSequences): |
|
4198 |
|
4199 2010-07-14 Adam Barth <abarth@webkit.org> |
|
4200 |
|
4201 Reviewed by Eric Seidel. |
|
4202 |
|
4203 Avoid extra memcpy of character tokens |
|
4204 https://bugs.webkit.org/show_bug.cgi?id=42002 |
|
4205 |
|
4206 Eric tells me this patch makes the new tree builder 1% faster than the |
|
4207 old tree builder on our parser benchmark. |
|
4208 |
|
4209 * html/HTMLToken.h: |
|
4210 (WebCore::AtomicHTMLToken::AtomicHTMLToken): |
|
4211 (WebCore::AtomicHTMLToken::characters): |
|
4212 * html/HTMLTreeBuilder.cpp: |
|
4213 (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::ExternalCharacterTokenBuffer): |
|
4214 (WebCore::convertToOldStyle): |
|
4215 (WebCore::HTMLTreeBuilder::processFakeCharacters): |
|
4216 |
|
4217 2010-07-14 Eric Seidel <eric@webkit.org> |
|
4218 |
|
4219 Reviewed by Adam Barth. |
|
4220 |
|
4221 HTMLTreeBuilder foster parents when it should not |
|
4222 https://bugs.webkit.org/show_bug.cgi?id=42235 |
|
4223 |
|
4224 Regarding foster parenting of nodes inside tables: |
|
4225 "Process the token using the rules for the "in body" insertion mode, |
|
4226 except that if the current node is a table, tbody, tfoot, thead, or |
|
4227 tr element, then, whenever a node would be inserted into the current |
|
4228 node, it must instead be foster parented." |
|
4229 |
|
4230 We were forgetting the "when the current node is" part of that check |
|
4231 and always foster parenting, even if we had just inserted another |
|
4232 element (which would have just changed the current node). |
|
4233 |
|
4234 This was covered by multiple tests in html5lib/runner.html |
|
4235 but I wrote a reduction (one which I included) as it makes it |
|
4236 easier to see what's going on. |
|
4237 |
|
4238 * html/HTMLConstructionSite.cpp: |
|
4239 (WebCore::HTMLNames::causesFosterParenting): |
|
4240 (WebCore::HTMLConstructionSite::attach): |
|
4241 (WebCore::HTMLConstructionSite::insertHTMLHtmlElement): |
|
4242 (WebCore::HTMLConstructionSite::insertHTMLHeadElement): |
|
4243 (WebCore::HTMLConstructionSite::insertHTMLBodyElement): |
|
4244 (WebCore::HTMLConstructionSite::insertTextNode): |
|
4245 (WebCore::HTMLConstructionSite::shouldFosterParent): |
|
4246 * html/HTMLConstructionSite.h: |
|
4247 * html/HTMLTreeBuilder.cpp: |
|
4248 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
4249 |
|
4250 2010-07-14 Brady Eidson <beidson@apple.com> |
|
4251 |
|
4252 Reviewed by Mark Rowe. |
|
4253 |
|
4254 <rdar://problem/8131355> Apps load stale versions of pages when initial load happens via back/forward navigation. |
|
4255 |
|
4256 No test case is added because DumpRenderTree is not able to test the scenario where the initial load in a WebView |
|
4257 occurs via a back/forward navigation. |
|
4258 |
|
4259 * loader/FrameLoader.cpp: |
|
4260 (WebCore::FrameLoader::navigateToDifferentDocument): When the first load in a page is a back/forward navigation, we |
|
4261 shouldn't try to prefer cached data but should do revalidation by default. |
|
4262 (WebCore::FrameLoader::addExtraFieldsToRequest): Ditto. |
|
4263 |
|
4264 2010-07-14 James Robinson <jamesr@chromium.org> |
|
4265 |
|
4266 Reviewed by Darin Fisher. |
|
4267 |
|
4268 Breaks all dependencies on Page from platform/ and cleans up GLES2Context lifetime |
|
4269 https://bugs.webkit.org/show_bug.cgi?id=42203 |
|
4270 |
|
4271 Rather than constructing a GLES2Context from a Page, pass the LayerRendererChromium |
|
4272 a GLES2Context in from the constructor. This way the platform/ directory can remain |
|
4273 ignorant of Page and friends. Also adds functions on ChromeClientChromium to request |
|
4274 onscreen and offscreen GLES2Contexts for callers in WebCore that need them. |
|
4275 |
|
4276 * page/chromium/ChromeClientChromium.h: |
|
4277 * platform/chromium/GLES2Context.h: |
|
4278 * platform/graphics/chromium/LayerRendererChromium.cpp: |
|
4279 (WebCore::LayerRendererChromium::create): |
|
4280 (WebCore::LayerRendererChromium::LayerRendererChromium): |
|
4281 * platform/graphics/chromium/LayerRendererChromium.h: |
|
4282 |
|
4283 2010-07-14 Andreas Kling <andreas.kling@nokia.com> |
|
4284 |
|
4285 Reviewed by Darin Adler. |
|
4286 |
|
4287 Add functions to extract individual RGBA32 components |
|
4288 https://bugs.webkit.org/show_bug.cgi?id=42305 |
|
4289 |
|
4290 * html/canvas/CanvasRenderingContext2D.cpp: |
|
4291 (WebCore::CanvasRenderingContext2D::willDraw): Use alphaChannel() |
|
4292 * platform/graphics/Color.h: |
|
4293 (WebCore::redChannel): |
|
4294 (WebCore::greenChannel): |
|
4295 (WebCore::blueChannel): |
|
4296 (WebCore::alphaChannel): |
|
4297 (WebCore::Color::red): |
|
4298 (WebCore::Color::green): |
|
4299 (WebCore::Color::blue): |
|
4300 (WebCore::Color::alpha): |
|
4301 |
|
4302 2010-07-14 Alexey Proskuryakov <ap@apple.com> |
|
4303 |
|
4304 Not reviewed. |
|
4305 |
|
4306 https://bugs.webkit.org/show_bug.cgi?id=42201 |
|
4307 Use ResourceHandle object for synchronous loading |
|
4308 |
|
4309 * platform/network/mac/ResourceHandleMac.mm: |
|
4310 (WebCore::ResourceHandle::loadResourceSynchronously): Fix an obvious typo. |
|
4311 |
|
4312 2010-07-14 Alexey Proskuryakov <ap@apple.com> |
|
4313 |
|
4314 Reviewed by Brady Eidson. |
|
4315 |
|
4316 https://bugs.webkit.org/show_bug.cgi?id=42201 |
|
4317 Use ResourceHandle object for synchronous loading |
|
4318 |
|
4319 Fix a Tiger test failure. |
|
4320 |
|
4321 Setting NSURLRequest properties has been moved to createNSURLConnection to share code between |
|
4322 sync and async cases, but on Tiger, we don't call this function. |
|
4323 |
|
4324 There is more refactoring needed to make this nice, and we need to figure out if some of |
|
4325 request-tweaking code in createNSURLConnection needs to run on every redirect, as it happens |
|
4326 with CFNetwork version. |
|
4327 |
|
4328 * platform/network/mac/ResourceHandleMac.mm: |
|
4329 (WebCore::ResourceHandle::loadResourceSynchronously): Set main document for cookies, which is |
|
4330 the only thing we've been missing. |
|
4331 |
|
4332 2010-07-14 Mark Rowe <mrowe@apple.com> |
|
4333 |
|
4334 Rubber-stamped by Dan Bernstein. |
|
4335 |
|
4336 * WebCore.xcodeproj/project.pbxproj: Silence rsync. |
|
4337 |
|
4338 2010-07-14 Darin Adler <darin@apple.com> |
|
4339 |
|
4340 Reviewed by Gavin Barraclough. |
|
4341 |
|
4342 Fix warning seen with newer gcc (on Qt buildbot). |
|
4343 |
|
4344 * html/HTMLTreeBuilder.cpp: |
|
4345 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
4346 Add parentheses around && expression. |
|
4347 |
|
4348 2010-07-14 Adam Barth <abarth@webkit.org> |
|
4349 |
|
4350 Reviewed by Eric Seidel. |
|
4351 |
|
4352 Avoid extra memcpy of character tokens |
|
4353 https://bugs.webkit.org/show_bug.cgi?id=42002 |
|
4354 |
|
4355 This patch is just some cleanup to make fixing this bug easier. |
|
4356 |
|
4357 * html/HTMLTreeBuilder.cpp: |
|
4358 (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::ExternalCharacterTokenBuffer): |
|
4359 (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::~ExternalCharacterTokenBuffer): |
|
4360 (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::isEmpty): |
|
4361 (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::skipLeadingWhitespace): |
|
4362 (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeLeadingWhitespace): |
|
4363 (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeRemaining): |
|
4364 (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::giveRemainingTo): |
|
4365 (WebCore::HTMLTreeBuilder::ExternalCharacterTokenBuffer::takeRemainingWhitespace): |
|
4366 (WebCore::HTMLTreeBuilder::processDoctypeToken): |
|
4367 (WebCore::HTMLTreeBuilder::processStartTag): |
|
4368 (WebCore::HTMLTreeBuilder::processEndTag): |
|
4369 (WebCore::HTMLTreeBuilder::processComment): |
|
4370 (WebCore::HTMLTreeBuilder::processCharacter): |
|
4371 (WebCore::HTMLTreeBuilder::processCharacterBuffer): |
|
4372 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
4373 (WebCore::HTMLTreeBuilder::defaultForInitial): |
|
4374 (WebCore::HTMLTreeBuilder::defaultForBeforeHTML): |
|
4375 (WebCore::HTMLTreeBuilder::defaultForBeforeHead): |
|
4376 (WebCore::HTMLTreeBuilder::defaultForInHead): |
|
4377 (WebCore::HTMLTreeBuilder::defaultForInHeadNoscript): |
|
4378 (WebCore::HTMLTreeBuilder::defaultForAfterHead): |
|
4379 (WebCore::HTMLTreeBuilder::defaultForInTableText): |
|
4380 * html/HTMLTreeBuilder.h: |
|
4381 |
|
4382 2010-07-14 Andreas Kling <andreas.kling@nokia.com> |
|
4383 |
|
4384 Reviewed by Darin Adler. |
|
4385 |
|
4386 Canvas: Don't add shadow rect to dirty region when shadow alpha is 0 |
|
4387 https://bugs.webkit.org/show_bug.cgi?id=42300 |
|
4388 |
|
4389 * html/canvas/CanvasRenderingContext2D.cpp: |
|
4390 (WebCore::CanvasRenderingContext2D::willDraw): |
|
4391 |
|
4392 2010-07-14 Kevin Ollivier <kevino@theolliviers.com> |
|
4393 |
|
4394 [CURL] Build fix after request -> firstRequest rename. |
|
4395 |
|
4396 * platform/network/curl/FormDataStreamCurl.cpp: |
|
4397 (WebCore::FormDataStream::read): |
|
4398 (WebCore::FormDataStream::hasMoreElements): |
|
4399 * platform/network/curl/ResourceHandleManager.cpp: |
|
4400 (WebCore::headerCallback): |
|
4401 (WebCore::ResourceHandleManager::setupPOST): |
|
4402 (WebCore::parseDataUrl): |
|
4403 (WebCore::ResourceHandleManager::dispatchSynchronousJob): |
|
4404 (WebCore::ResourceHandleManager::startJob): |
|
4405 (WebCore::ResourceHandleManager::initializeHandle): |
|
4406 |
|
4407 2010-07-14 Simon Fraser <simon.fraser@apple.com> |
|
4408 |
|
4409 Reviewed by John Sullivan. |
|
4410 |
|
4411 <rdar://problem/8186963> Expose information about compositing layers. |
|
4412 |
|
4413 Expose information about the types of compositing layers via RenderLayerBacking::compositingLayerType(). |
|
4414 |
|
4415 * WebCore.exp.in: Export WebCore::SpaceSplitStringData::createVector(). |
|
4416 * WebCore.xcodeproj/project.pbxproj: Make RenderLayerBacking.h a Private header for use by WebKit. |
|
4417 * platform/graphics/GraphicsLayer.h: Add hasContentsLayer() and usingTiledLayer() methods. |
|
4418 (WebCore::GraphicsLayer::hasContentsLayer): |
|
4419 (WebCore::GraphicsLayer::usingTiledLayer): |
|
4420 * platform/graphics/mac/GraphicsLayerCA.h: |
|
4421 (WebCore::GraphicsLayerCA::hasContentsLayer): Return true if we have a contents layer. |
|
4422 * rendering/RenderLayerBacking.cpp: |
|
4423 (WebCore::RenderLayerBacking::compositingLayerType): Return information about the type of composited layer. |
|
4424 * rendering/RenderLayerBacking.h: |
|
4425 |
|
4426 2010-07-14 Darin Adler <darin@apple.com> |
|
4427 |
|
4428 Reviewed by Sam Weinig. |
|
4429 |
|
4430 TreeWalker::previousSibling calls firstChild instead of lastChild when handling FILTER_SKIP |
|
4431 https://bugs.webkit.org/show_bug.cgi?id=42008 |
|
4432 |
|
4433 TreeWalker::previousNode does not handle FILTER_REJECT when processing lastChild |
|
4434 https://bugs.webkit.org/show_bug.cgi?id=42010 |
|
4435 |
|
4436 Tests: fast/dom/TreeWalker/previousNodeLastChildReject.html |
|
4437 fast/dom/TreeWalker/previousSiblingLastChildSkip.html |
|
4438 |
|
4439 * dom/TreeWalker.cpp: |
|
4440 (WebCore::TreeWalker::previousSibling): Call lastChild instead of firstChild. |
|
4441 (WebCore::TreeWalker::previousNode): Fix handling of FILTER_REJECT by exiting |
|
4442 the lastChild loop when we encounter it. |
|
4443 |
|
4444 2010-07-14 Sam Weinig <sam@webkit.org> |
|
4445 |
|
4446 Reviewed by Brady Eidson. |
|
4447 |
|
4448 Fix crashing layout test on snowleopard. |
|
4449 |
|
4450 * platform/mac/CursorMac.mm: |
|
4451 (WebCore::Cursor::ensurePlatformCursor): Make sure to retain the cursor. |
|
4452 |
|
4453 2010-07-14 Chris Fleizach <cfleizach@apple.com> |
|
4454 |
|
4455 Reviewed by Darin Adler. |
|
4456 |
|
4457 AX: aria-checked not recognized on image map radio buttons |
|
4458 https://bugs.webkit.org/show_bug.cgi?id=42055 |
|
4459 |
|
4460 Moves some code from AccessibilityRenderObject to AccessibilityObject so that |
|
4461 elements that do not have render objects, but do have Nodes (like image map links |
|
4462 and list box options) can still make use of certain aria attributes. |
|
4463 |
|
4464 Test: platform/mac/accessibility/image-map-link-used-as-radiobutton.html |
|
4465 |
|
4466 * accessibility/AccessibilityImageMapLink.cpp: |
|
4467 (WebCore::AccessibilityImageMapLink::roleValue): |
|
4468 (WebCore::AccessibilityImageMapLink::accessibilityDescription): |
|
4469 (WebCore::AccessibilityImageMapLink::title): |
|
4470 Make imageMap use standard AccessibilityObject methods for getAttribute() |
|
4471 * accessibility/AccessibilityImageMapLink.h: |
|
4472 (WebCore::AccessibilityImageMapLink::node): |
|
4473 * accessibility/AccessibilityListBoxOption.cpp: |
|
4474 (WebCore::AccessibilityListBoxOption::accessibilityIsIgnored): |
|
4475 (WebCore::AccessibilityListBoxOption::stringValue): |
|
4476 * accessibility/AccessibilityListBoxOption.h: |
|
4477 (WebCore::AccessibilityListBoxOption::node): |
|
4478 * accessibility/AccessibilityObject.cpp: |
|
4479 (WebCore::AccessibilityObject::language): |
|
4480 Language method doesn't need a node() anymore, it can use the node from AccessibilityObject. |
|
4481 (WebCore::renderListItemContainerForNode): |
|
4482 (WebCore::AccessibilityObject::getAttribute): |
|
4483 (WebCore::AccessibilityObject::intValue): |
|
4484 Move intValue into AccessibilityObject. |
|
4485 (WebCore::AccessibilityObject::hasIntValue): |
|
4486 * accessibility/AccessibilityObject.h: |
|
4487 (WebCore::AccessibilityObject::isCheckbox): |
|
4488 (WebCore::AccessibilityObject::isRadioButton): |
|
4489 (WebCore::AccessibilityObject::isCheckboxOrRadio): |
|
4490 Consolidate what defines a checkbox and radio button into AccessibilityObject. |
|
4491 (WebCore::AccessibilityObject::node): |
|
4492 (WebCore::AccessibilityObject::headingLevel): |
|
4493 (WebCore::AccessibilityObject::isDetached): |
|
4494 * accessibility/AccessibilityRenderObject.cpp: |
|
4495 (WebCore::AccessibilityRenderObject::isPasswordField): |
|
4496 (WebCore::AccessibilityRenderObject::headingLevel): |
|
4497 (WebCore::AccessibilityRenderObject::selectedTabItem): |
|
4498 (WebCore::AccessibilityRenderObject::hierarchicalLevel): |
|
4499 (WebCore::AccessibilityRenderObject::node): |
|
4500 (WebCore::AccessibilityRenderObject::intValue): |
|
4501 * accessibility/AccessibilityRenderObject.h: |
|
4502 * rendering/RenderMenuList.cpp: |
|
4503 (WebCore::RenderMenuList::itemAccessibilityText): |
|
4504 Stop using AccessibilityObjects getAttribute (no reason to use it really). |
|
4505 |
|
4506 2010-07-14 Dan Bernstein <mitz@apple.com> |
|
4507 |
|
4508 Reviewed by Simon Fraser. |
|
4509 |
|
4510 <rdar://problem/7759909> Certain text runs measure 1 pixel wider when measured as a whole than when measured piecewise |
|
4511 https://bugs.webkit.org/show_bug.cgi?id=42279 |
|
4512 |
|
4513 No test because the issue cannot be reproduced with standard fonts. |
|
4514 |
|
4515 Word- and run-rounding works by advancing ahead to the nearest integral width. As the total |
|
4516 width accumulated becomes large, the float type’s low precision results in accumulated rounding |
|
4517 error, sometimes crossing an integer. Consequently, word-rounding makes different decisions when |
|
4518 measuring a multi-word run than when measuring its words individually. To work around this, |
|
4519 word- and run-rounding are applied only to the width accumulated since the last rounding |
|
4520 character. |
|
4521 |
|
4522 * platform/graphics/WidthIterator.cpp: |
|
4523 (WebCore::WidthIterator::advance): |
|
4524 * platform/graphics/mac/ComplexTextController.cpp: |
|
4525 (WebCore::ComplexTextController::adjustGlyphsAndAdvances): |
|
4526 |
|
4527 2010-07-14 Tony Gentilcore <tonyg@chromium.org> |
|
4528 |
|
4529 Reviewed by Darin Adler. |
|
4530 |
|
4531 Fix enum value names for Navigation.{idl|h} |
|
4532 https://bugs.webkit.org/show_bug.cgi?id=42282 |
|
4533 |
|
4534 This is necessary after https://bugs.webkit.org/show_bug.cgi?id=42250. |
|
4535 |
|
4536 No new tests because no new functionality. |
|
4537 |
|
4538 * page/Navigation.cpp: |
|
4539 (WebCore::Navigation::type): |
|
4540 * page/Navigation.h: |
|
4541 (WebCore::Navigation::): |
|
4542 |
|
4543 2010-07-14 Johnny Ding <jnd@chromium.org> |
|
4544 |
|
4545 Reviewed by Adam Barth. |
|
4546 |
|
4547 https://bugs.webkit.org/show_bug.cgi?id=41292 |
|
4548 Set right UserGestureIndicator to indicate whether the NPN_Evaluate allows popup window or not. |
|
4549 |
|
4550 Test: plugins/plugin-initiate-popup-window.html |
|
4551 |
|
4552 * bindings/v8/NPV8Object.cpp: |
|
4553 (_NPN_EvaluateHelper): |
|
4554 |
|
4555 2010-07-14 Chris Fleizach <cfleizach@apple.com> |
|
4556 |
|
4557 Reviewed by Darin Adler. |
|
4558 |
|
4559 Bug 42117 - AX: Data table heuristics: consider assuming data table for 'zebra-striped' rows |
|
4560 https://bugs.webkit.org/show_bug.cgi?id=42117 |
|
4561 |
|
4562 Test: platform/mac/accessibility/table-with-zebra-rows.html |
|
4563 |
|
4564 * accessibility/AccessibilityTable.cpp: |
|
4565 (WebCore::AccessibilityTable::isTableExposableThroughAccessibility): |
|
4566 |
|
4567 2010-07-14 Chris Fleizach <cfleizach@apple.com> |
|
4568 |
|
4569 Reviewed by Darin Adler. |
|
4570 |
|
4571 AX: VoiceOver cannot navigate this page because Safari is taking too long |
|
4572 https://bugs.webkit.org/show_bug.cgi?id=42219 |
|
4573 |
|
4574 No tests. Existing tests cover change. |
|
4575 |
|
4576 * accessibility/AccessibilityRenderObject.cpp: |
|
4577 (WebCore::AccessibilityRenderObject::boundingBoxRect): |
|
4578 |
|
4579 2010-07-14 Andreas Kling <andreas.kling@nokia.com> |
|
4580 |
|
4581 Reviewed by Darin Adler. |
|
4582 |
|
4583 Canvas: Fast-path for assigning the same color string as before to fillStyle or strokeStyle |
|
4584 https://bugs.webkit.org/show_bug.cgi?id=42272 |
|
4585 |
|
4586 Always route assignment of color strings via setFillColor() or setStrokeColor() |
|
4587 where we can check it against the previous value and return early if it's the same. |
|
4588 |
|
4589 * bindings/js/JSCanvasRenderingContext2DCustom.cpp: |
|
4590 (WebCore::toHTMLCanvasStyle): |
|
4591 (WebCore::JSCanvasRenderingContext2D::strokeStyle): |
|
4592 (WebCore::JSCanvasRenderingContext2D::setStrokeStyle): |
|
4593 (WebCore::JSCanvasRenderingContext2D::setFillStyle): |
|
4594 * html/canvas/CanvasRenderingContext2D.cpp: |
|
4595 (WebCore::CanvasRenderingContext2D::setStrokeStyle): |
|
4596 (WebCore::CanvasRenderingContext2D::setFillStyle): |
|
4597 (WebCore::CanvasRenderingContext2D::setStrokeColor): |
|
4598 (WebCore::CanvasRenderingContext2D::setFillColor): |
|
4599 * html/canvas/CanvasRenderingContext2D.h: |
|
4600 |
|
4601 2010-07-14 Kinuko Yasuda <kinuko@chromium.org> |
|
4602 |
|
4603 Reviewed by Jian Li. |
|
4604 |
|
4605 Separate line-ending conversion code from BlobItem |
|
4606 https://bugs.webkit.org/show_bug.cgi?id=40932 |
|
4607 |
|
4608 Add common line-ending normalization code under platform/text. |
|
4609 No new tests as it doesn't change any functionality. |
|
4610 |
|
4611 * CMakeLists.txt: |
|
4612 * GNUmakefile.am: |
|
4613 * WebCore.gypi: |
|
4614 * WebCore.pro: |
|
4615 * WebCore.vcproj/WebCore.vcproj: |
|
4616 * WebCore.xcodeproj/project.pbxproj: |
|
4617 * html/BlobBuilder.cpp: |
|
4618 (WebCore::BlobBuilder::appendString): |
|
4619 * html/FormDataList.cpp: |
|
4620 (WebCore::FormDataList::appendString): |
|
4621 * platform/BlobItem.cpp: |
|
4622 * platform/BlobItem.h: |
|
4623 * platform/text/LineEnding.cpp: Added. |
|
4624 * platform/text/LineEnding.h: Added. |
|
4625 |
|
4626 2010-07-14 Erik Arvidsson <arv@chromium.org> |
|
4627 |
|
4628 Reviewed by Darin Adler. |
|
4629 |
|
4630 Implement border-start and border-end properties |
|
4631 https://bugs.webkit.org/show_bug.cgi?id=41782 |
|
4632 |
|
4633 Test: fast/css/border-start-end.html |
|
4634 |
|
4635 * css/CSSComputedStyleDeclaration.cpp: |
|
4636 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): |
|
4637 * css/CSSParser.cpp: |
|
4638 (WebCore::CSSParser::parseValue): |
|
4639 * css/CSSProperty.cpp: |
|
4640 (WebCore::CSSProperty::resolveDirectionAwareProperty): |
|
4641 * css/CSSPropertyNames.in: |
|
4642 * inspector/front-end/SourceCSSTokenizer.js: |
|
4643 (WebInspector.SourceCSSTokenizer): |
|
4644 |
|
4645 2010-07-14 Alexey Proskuryakov <ap@apple.com> |
|
4646 |
|
4647 Tiger and Gtk build fixes. |
|
4648 |
|
4649 https://bugs.webkit.org/show_bug.cgi?id=42201 |
|
4650 Use ResourceHandle object for synchronous loading |
|
4651 |
|
4652 * platform/network/mac/ResourceHandleMac.mm: |
|
4653 (WebCore::ResourceHandle::createNSURLConnection): |
|
4654 (WebCore::ResourceHandle::loadResourceSynchronously): |
|
4655 * platform/network/soup/ResourceHandleSoup.cpp: |
|
4656 (WebCore::startHttp): |
|
4657 |
|
4658 2010-07-14 Sam Weinig <sam@webkit.org> |
|
4659 |
|
4660 Reviewed by Darin Adler. |
|
4661 |
|
4662 Patch for https://bugs.webkit.org/show_bug.cgi?id=42232 |
|
4663 Make changing Cursors work in WebKit2. |
|
4664 |
|
4665 - Converted Mac and Windows Cursor implementations to lazily |
|
4666 create the platform cursor. |
|
4667 - Add HostWindow function to set the cursor and use it from Widget::setCursor. |
|
4668 - Rework Windows cursor code to use fewer global variables. |
|
4669 |
|
4670 * WebCore.exp.in: Updated |
|
4671 * loader/EmptyClients.h: |
|
4672 (WebCore::EmptyChromeClient::setCursor): |
|
4673 (WebCore::EmptyChromeClient::setLastSetCursorToCurrentCursor): |
|
4674 Added empty implementations. |
|
4675 |
|
4676 * page/Chrome.cpp: |
|
4677 (WebCore::Chrome::setCursor): |
|
4678 * page/Chrome.h: |
|
4679 * page/ChromeClient.h: |
|
4680 Change existing setCursor() function to take a Cursor instead of a |
|
4681 PlatformCursorHandle. Added setLastSetCursorToCurrentCursor. |
|
4682 |
|
4683 * platform/Cursor.cpp: |
|
4684 * platform/Cursor.h: |
|
4685 Added Cursor Type and the option of lazily creating the native cursor |
|
4686 (used on Mac and Windows for now). |
|
4687 |
|
4688 * platform/HostWindow.h: |
|
4689 Add setCursor. |
|
4690 |
|
4691 * platform/mac/CursorMac.mm: |
|
4692 (WebCore::createCustomCursor): This no longer needs to call determineHotSpot |
|
4693 as that is done when on construction of the cursor now and the hotSpot passed |
|
4694 in is correct. |
|
4695 (WebCore::Cursor::ensurePlatformCursor): |
|
4696 (WebCore::Cursor::Cursor): |
|
4697 (WebCore::Cursor::~Cursor): |
|
4698 (WebCore::Cursor::operator=): |
|
4699 (WebCore::Cursor::platformCursor): |
|
4700 Convert to lazily creating the native cursor on the first request and |
|
4701 storing the type. |
|
4702 |
|
4703 * platform/mac/WidgetMac.mm: |
|
4704 (WebCore::Widget::setCursor): |
|
4705 Use HostWindow::setCursor to set the cursor. This in turn will call the |
|
4706 ChromeClient. |
|
4707 |
|
4708 * platform/win/CursorWin.cpp: |
|
4709 (WebCore::createSharedCursor): |
|
4710 (WebCore::loadSharedCursor): |
|
4711 (WebCore::loadCursorByName): |
|
4712 (WebCore::Cursor::ensurePlatformCursor): |
|
4713 (WebCore::SharedCursor::~SharedCursor): |
|
4714 (WebCore::Cursor::Cursor): |
|
4715 (WebCore::Cursor::~Cursor): |
|
4716 (WebCore::Cursor::operator=): |
|
4717 (WebCore::Cursor::platformCursor): |
|
4718 Convert to lazily creating the native cursor on the first request and |
|
4719 storing the type. |
|
4720 |
|
4721 * platform/win/WidgetWin.cpp: |
|
4722 (WebCore::Widget::setCursor): |
|
4723 Use HostWindow::setCursor to set the cursor. This in turn will call the |
|
4724 ChromeClient. |
|
4725 |
|
4726 * plugins/win/PluginViewWin.cpp: |
|
4727 (WebCore::PluginView::handleMouseEvent): |
|
4728 Use the new setLastSetCursorToCurrentCursor client function to ensure |
|
4729 the cursor is properly updated when over a plugin. |
|
4730 |
|
4731 * platform/chromium/CursorChromium.cpp: |
|
4732 * platform/efl/CursorEfl.cpp: |
|
4733 * platform/gtk/CursorGtk.cpp: |
|
4734 * platform/haiku/CursorHaiku.cpp: |
|
4735 * platform/wince/CursorWince.cpp: |
|
4736 * platform/wx/CursorWx.cpp: |
|
4737 * platform/qt/CursorQt.cpp: |
|
4738 Change m_impl -> m_platformCursor. |
|
4739 |
|
4740 2010-07-13 Eric Seidel <eric@webkit.org> |
|
4741 |
|
4742 Reviewed by Adam Barth. |
|
4743 |
|
4744 reconstructActiveFormElements should reconstruct attributes as well |
|
4745 https://bugs.webkit.org/show_bug.cgi?id=42222 |
|
4746 |
|
4747 The case in question is "<p><b foo='bar'></p>text</b>". |
|
4748 When the "b" is re-opened to wrap the text it should include |
|
4749 any attributes from the original (now closed) tag name. |
|
4750 |
|
4751 There are also similar cases for the Adoption Agency algorithm, but since |
|
4752 the html5lib test suite did not cover those (and it wasn't immediately |
|
4753 obvious to me how to test those) I've saved fixing that bug for a |
|
4754 later patch. For now I've just made the adoption agency use |
|
4755 HTMLConstructionSite::createHTMLElementFromElementRecord so the |
|
4756 FIXME can be in one place instead of two. |
|
4757 |
|
4758 In order to cleanly support createHTMLElementFromSavedElement |
|
4759 I re-factored "attachToCurrent" out from createHTMLElementAndAttachToCurrent |
|
4760 and changed all callers to use attachToCurrent(createHTMLElement(token)). |
|
4761 |
|
4762 This is covered by two existing tests in html5lib/runner.html |
|
4763 and I wrote two more. One to cover the basic case that we now pass |
|
4764 and a second to cover an evil edge case which we do not. |
|
4765 |
|
4766 * html/HTMLConstructionSite.cpp: |
|
4767 (WebCore::HTMLConstructionSite::attachToCurrent): |
|
4768 (WebCore::HTMLConstructionSite::insertHTMLHtmlElement): |
|
4769 (WebCore::HTMLConstructionSite::insertHTMLHeadElement): |
|
4770 (WebCore::HTMLConstructionSite::insertHTMLBodyElement): |
|
4771 (WebCore::HTMLConstructionSite::insertHTMLElement): |
|
4772 (WebCore::HTMLConstructionSite::insertSelfClosingHTMLElement): |
|
4773 (WebCore::HTMLConstructionSite::insertScriptElement): |
|
4774 (WebCore::HTMLConstructionSite::insertForeignElement): |
|
4775 (WebCore::HTMLConstructionSite::createHTMLElementFromElementRecord): |
|
4776 (WebCore::HTMLConstructionSite::createHTMLElementFromSavedElement): |
|
4777 (WebCore::HTMLConstructionSite::reconstructTheActiveFormattingElements): |
|
4778 * html/HTMLConstructionSite.h: |
|
4779 * html/HTMLTreeBuilder.cpp: |
|
4780 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
4781 |
|
4782 2010-07-13 Alexey Proskuryakov <ap@apple.com> |
|
4783 |
|
4784 Reviewed by Darin Adler. |
|
4785 |
|
4786 https://bugs.webkit.org/show_bug.cgi?id=42201 |
|
4787 Use ResourceHandle object for synchronous loading |
|
4788 |
|
4789 * platform/network/ResourceHandle.cpp: |
|
4790 (WebCore::ResourceHandle::ResourceHandle): Moved common tasks from create() to constructor. |
|
4791 (WebCore::ResourceHandle::firstRequest): Renamed from request(). This is not changed with |
|
4792 redirect, so the old name was quite confusing. |
|
4793 |
|
4794 * platform/network/ResourceHandle.h: Made createNSURLConnection() a member function, since |
|
4795 it now needs access to both ResourceHandle and ResourceHandleInternal. Added createCFURLConnection(). |
|
4796 |
|
4797 * platform/network/ResourceHandleInternal.h: |
|
4798 (WebCore::ResourceHandleInternal::ResourceHandleInternal): Renamed m_request to m_firstRequest. |
|
4799 |
|
4800 * platform/network/mac/ResourceHandleMac.mm: |
|
4801 (WebCoreSynchronousLoaderClient): Replaced an Objective C delegate class with a ResourceHandleClient |
|
4802 subclass. This allows for much better code sharing, with common logic is in ResourceHandle. |
|
4803 (WebCore::ResourceHandle::createNSURLConnection): Factored out more code that is common |
|
4804 between sync and async parts. |
|
4805 (WebCore::ResourceHandle::start): Ditto. |
|
4806 (WebCore::ResourceHandle::cancel): Updated for firstRequest() renaming. |
|
4807 (WebCore::ResourceHandle::loadResourceSynchronously): Use ResourceHandle and ResourceHandleClient, |
|
4808 like a good loader. |
|
4809 (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Updated for firstRequest() renaming. |
|
4810 (WebCore::ResourceHandle::receivedCredential): Ditto. |
|
4811 (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]): Ditto. |
|
4812 (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]): Ditto. |
|
4813 (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]): Ditto. |
|
4814 (-[WebCoreResourceHandleAsDelegate connection:didFailWithError:]): Ditto. |
|
4815 |
|
4816 * platform/network/cf/ResourceHandleCFNet.cpp: |
|
4817 (WebCore::WebCoreSynchronousLoaderClient::create): |
|
4818 (WebCore::WebCoreSynchronousLoaderClient::setAllowStoredCredentials): |
|
4819 (WebCore::WebCoreSynchronousLoaderClient::isDone): |
|
4820 (WebCore::WebCoreSynchronousLoaderClient::data): |
|
4821 (WebCore::WebCoreSynchronousLoaderClient::WebCoreSynchronousLoaderClient): |
|
4822 (WebCore::willSendRequest): |
|
4823 (WebCore::didReceiveResponse): |
|
4824 (WebCore::didReceiveData): |
|
4825 (WebCore::shouldUseCredentialStorageCallback): |
|
4826 (WebCore::didFinishLoading): |
|
4827 (WebCore::didFail): |
|
4828 (WebCore::didReceiveChallenge): |
|
4829 (WebCore::ResourceHandleInternal::~ResourceHandleInternal): |
|
4830 (WebCore::ResourceHandle::~ResourceHandle): |
|
4831 (WebCore::ResourceHandle::createCFURLConnection): |
|
4832 (WebCore::ResourceHandle::start): |
|
4833 (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): |
|
4834 (WebCore::ResourceHandle::receivedCredential): |
|
4835 (WebCore::ResourceHandle::loadResourceSynchronously): |
|
4836 (WebCore::WebCoreSynchronousLoaderClient::willSendRequest): |
|
4837 (WebCore::WebCoreSynchronousLoaderClient::didReceiveResponse): |
|
4838 (WebCore::WebCoreSynchronousLoaderClient::didReceiveData): |
|
4839 (WebCore::WebCoreSynchronousLoaderClient::didFinishLoading): |
|
4840 (WebCore::WebCoreSynchronousLoaderClient::didFail): |
|
4841 (WebCore::WebCoreSynchronousLoaderClient::didReceiveAuthenticationChallenge): |
|
4842 (WebCore::WebCoreSynchronousLoaderClient::shouldUseCredentialStorage): |
|
4843 Same changes for CFNetwork version. Now it's a more direct copy/paste than before, some |
|
4844 day we'll share the code. |
|
4845 |
|
4846 * loader/MainResourceLoader.cpp: |
|
4847 (WebCore::MainResourceLoader::continueAfterContentPolicy): |
|
4848 * loader/appcache/ApplicationCacheGroup.cpp: |
|
4849 (WebCore::ApplicationCacheGroup::createResourceHandle): |
|
4850 (WebCore::ApplicationCacheGroup::didReceiveResponse): |
|
4851 (WebCore::ApplicationCacheGroup::didFinishLoading): |
|
4852 (WebCore::ApplicationCacheGroup::didFail): |
|
4853 (WebCore::ApplicationCacheGroup::didReceiveManifestResponse): |
|
4854 * loader/icon/IconLoader.cpp: |
|
4855 (WebCore::IconLoader::didReceiveResponse): |
|
4856 (WebCore::IconLoader::didFail): |
|
4857 (WebCore::IconLoader::didFinishLoading): |
|
4858 * platform/network/curl/ResourceHandleManager.cpp: |
|
4859 (WebCore::headerCallback): |
|
4860 * platform/network/qt/QNetworkReplyHandler.cpp: |
|
4861 (WebCore::QNetworkReplyHandler::start): |
|
4862 * platform/network/qt/ResourceHandleQt.cpp: |
|
4863 (WebCore::ResourceHandle::start): |
|
4864 (WebCore::ResourceHandle::loadResourceSynchronously): |
|
4865 * platform/network/soup/ResourceHandleSoup.cpp: |
|
4866 (WebCore::startHttp): |
|
4867 Updated for request() -> firstRequest renaming. |
|
4868 |
|
4869 2010-07-14 Marcus Bulach <bulach@chromium.org> |
|
4870 |
|
4871 Reviewed by Jeremy Orlow. |
|
4872 |
|
4873 Code generator: ensure generated constants match their corresponding enums. |
|
4874 https://bugs.webkit.org/show_bug.cgi?id=42250 |
|
4875 |
|
4876 Specific interfaces can use DontCheckEnums attribute to avoid generating the compile-time check. |
|
4877 |
|
4878 Tests: updated bindings tests. Generated code should compile. |
|
4879 |
|
4880 * bindings/scripts/CodeGenerator.pm: |
|
4881 * bindings/scripts/CodeGeneratorJS.pm: |
|
4882 * bindings/scripts/CodeGeneratorV8.pm: |
|
4883 * bindings/scripts/test/CPP/WebDOMTestObj.h: |
|
4884 (WebDOMTestObj::): |
|
4885 * bindings/scripts/test/JS/JSTestObj.cpp: |
|
4886 (WebCore::): |
|
4887 (WebCore::JSTestObjPrototype::getOwnPropertySlot): |
|
4888 (WebCore::JSTestObjPrototype::getOwnPropertyDescriptor): |
|
4889 (WebCore::jsTestObjCONST_VALUE_0): |
|
4890 (WebCore::jsTestObjCONST_VALUE_1): |
|
4891 (WebCore::jsTestObjCONST_VALUE_2): |
|
4892 (WebCore::jsTestObjCONST_VALUE_4): |
|
4893 (WebCore::jsTestObjCONST_VALUE_8): |
|
4894 * bindings/scripts/test/JS/JSTestObj.h: |
|
4895 * bindings/scripts/test/ObjC/DOMTestObj.h: |
|
4896 * bindings/scripts/test/TestObj.idl: |
|
4897 * bindings/scripts/test/V8/V8TestObj.cpp: |
|
4898 (WebCore::): |
|
4899 (WebCore::ConfigureV8TestObjTemplate): |
|
4900 * css/WebKitCSSTransformValue.idl: |
|
4901 * dom/DOMCoreException.idl: |
|
4902 * dom/EventException.idl: |
|
4903 * dom/Node.idl: |
|
4904 * dom/OverflowEvent.idl: |
|
4905 * dom/RangeException.idl: |
|
4906 * html/FileError.idl: |
|
4907 * html/FileReader.idl: |
|
4908 * html/canvas/Float32Array.idl: |
|
4909 * html/canvas/Int16Array.idl: |
|
4910 * html/canvas/Int32Array.idl: |
|
4911 * html/canvas/Int8Array.idl: |
|
4912 * html/canvas/Uint16Array.idl: |
|
4913 * html/canvas/Uint32Array.idl: |
|
4914 * html/canvas/Uint8Array.idl: |
|
4915 * html/canvas/WebGLRenderingContext.idl: |
|
4916 * inspector/JavaScriptCallFrame.idl: |
|
4917 * loader/appcache/DOMApplicationCache.idl: |
|
4918 * storage/SQLException.idl: |
|
4919 * svg/SVGComponentTransferFunctionElement.idl: |
|
4920 * svg/SVGException.idl: |
|
4921 * svg/SVGFEBlendElement.idl: |
|
4922 * svg/SVGFEColorMatrixElement.idl: |
|
4923 * svg/SVGFECompositeElement.idl: |
|
4924 * svg/SVGFEConvolveMatrixElement.idl: |
|
4925 * svg/SVGFEDisplacementMapElement.idl: |
|
4926 * svg/SVGFEMorphologyElement.idl: |
|
4927 * svg/SVGFETurbulenceElement.idl: |
|
4928 * svg/SVGGradientElement.idl: |
|
4929 * xml/XMLHttpRequestException.idl: |
|
4930 * xml/XPathException.idl: |
|
4931 |
|
4932 2010-07-14 Andreas Kling <andreas.kling@nokia.com> |
|
4933 |
|
4934 Reviewed by Ojan Vafai. |
|
4935 |
|
4936 Unbreak fast/canvas/gradient-add-second-start-end-stop.html |
|
4937 |
|
4938 Assigning the same CanvasGradient or CanvasPattern to fillStyle |
|
4939 or strokeStyle may not be a no-op since the object could have been |
|
4940 modified since it was last set. |
|
4941 |
|
4942 Regressed with <http://trac.webkit.org/changeset/63327> |
|
4943 |
|
4944 * html/canvas/CanvasStyle.cpp: |
|
4945 (WebCore::operator==): |
|
4946 |
|
4947 2010-07-14 Andreas Kling <andreas.kling@nokia.com> |
|
4948 |
|
4949 Reviewed by Darin Adler. |
|
4950 |
|
4951 Canvas: Make assigning the same fillStyle or strokeStyle a fast no-op |
|
4952 https://bugs.webkit.org/show_bug.cgi?id=42267 |
|
4953 |
|
4954 Avoid calling into GraphicsContext when setting a style to its current value. |
|
4955 |
|
4956 * html/canvas/CanvasRenderingContext2D.cpp: |
|
4957 (WebCore::CanvasRenderingContext2D::setStrokeStyle): Return early if the |
|
4958 new style is the same as the current one. |
|
4959 (WebCore::CanvasRenderingContext2D::setFillStyle): Same. |
|
4960 * html/canvas/CanvasStyle.cpp: |
|
4961 (WebCore::operator==): Added operator==(CanvasStyle, CanvasStyle) |
|
4962 * html/canvas/CanvasStyle.h: |
|
4963 |
|
4964 2010-07-14 Tony Gentilcore <tonyg@chromium.org> |
|
4965 |
|
4966 Reviewed by Darin Fisher. |
|
4967 |
|
4968 Implement Web Timing redirectStart, redirectEnd, redirectCount |
|
4969 https://bugs.webkit.org/show_bug.cgi?id=42018 |
|
4970 |
|
4971 Tests: http/tests/misc/webtiming-one-redirect.php |
|
4972 http/tests/misc/webtiming-two-redirects.php |
|
4973 |
|
4974 * loader/FrameLoaderTypes.h: |
|
4975 (WebCore::FrameLoadTimeline::FrameLoadTimeline): |
|
4976 * loader/MainResourceLoader.cpp: |
|
4977 (WebCore::MainResourceLoader::willSendRequest): This method is called for each request (including server redirects). fetchStart is updated to the current time on each invocation so that it represents fetching of the final document and doesn't include redirect time. For each redirect, redirectCount is incremented and redirectStart to redirectEnd measures the cumulative fetch time for all redirects. |
|
4978 * page/Navigation.cpp: |
|
4979 (WebCore::Navigation::redirectCount): http://dev.w3.org/2006/webapi/WebTiming/#nt-redirect-count |
|
4980 * page/Timing.cpp: |
|
4981 (WebCore::Timing::redirectStart): http://dev.w3.org/2006/webapi/WebTiming/#nt-redirect-start |
|
4982 (WebCore::Timing::redirectEnd): http://dev.w3.org/2006/webapi/WebTiming/#nt-redirect-end |
|
4983 * page/Timing.h: |
|
4984 * page/Timing.idl: |
|
4985 |
|
4986 2010-07-14 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
4987 |
|
4988 Reviewed by Antonio Gomes. |
|
4989 |
|
4990 Generate MathML files with CMake even if MathML is disabled. This |
|
4991 fixes EFL build after r63274. |
|
4992 https://bugs.webkit.org/show_bug.cgi?id=42263 |
|
4993 |
|
4994 No new functionality, so no new tests. |
|
4995 |
|
4996 * CMakeLists.txt: |
|
4997 |
|
4998 2010-07-14 Martin Robinson <mrobinson@igalia.com> |
|
4999 |
|
5000 Reviewed by Xan Lopez. |
|
5001 |
|
5002 [GTK] Get rid of libWebCoreJS |
|
5003 https://bugs.webkit.org/show_bug.cgi?id=42083 |
|
5004 |
|
5005 Remove the need to build libWebCoreJS. |
|
5006 |
|
5007 * GNUmakefile.am: List all auto-generated source files for libWebCoreJS |
|
5008 instead of relying on make to build libWebCoreJS. This is a more autotools- |
|
5009 -friendly approach. |
|
5010 |
|
5011 2010-07-14 Eric Carlson <eric.carlson@apple.com> |
|
5012 |
|
5013 One more unreviewed build fix for r63319. |
|
5014 |
|
5015 * html/TimeRanges.cpp: |
|
5016 (TimeRanges::nearest): |
|
5017 |
|
5018 2010-07-14 Alexander Pavlov <apavlov@chromium.org> |
|
5019 |
|
5020 Reviewed by Pavel Feldman. |
|
5021 |
|
5022 Web Inspector: Enable toggling of the "Inspect Element" mode from the browser |
|
5023 https://bugs.webkit.org/show_bug.cgi?id=42169 |
|
5024 |
|
5025 * inspector/front-end/ElementsPanel.js: |
|
5026 (WebInspector.ElementsPanel): |
|
5027 (WebInspector.ElementsPanel.prototype.handleShortcut): |
|
5028 (WebInspector.ElementsPanel.prototype.toggleSearchingForNode): |
|
5029 * inspector/front-end/inspector.js: |
|
5030 (WebInspector.toggleSearchingForNode): |
|
5031 |
|
5032 2010-07-14 Eric Carlson <eric.carlson@apple.com> |
|
5033 |
|
5034 Unreviewed, build fix for r63319. |
|
5035 |
|
5036 * html/TimeRanges.cpp: |
|
5037 (TimeRanges::nearest): Include math.h and use narrowPrecisionToFloat. |
|
5038 |
|
5039 2010-07-14 Eric Carlson <eric.carlson@apple.com> |
|
5040 |
|
5041 Reviewed by Darin Adler. |
|
5042 |
|
5043 Update media element's seeking logic |
|
5044 https://bugs.webkit.org/show_bug.cgi?id=42178 |
|
5045 <rdar://problem/8185817> |
|
5046 |
|
5047 * html/HTMLMediaElement.cpp: |
|
5048 (WebCore::HTMLMediaElement::seek): When asked to seek to an unbuffered time, seek to the |
|
5049 nearest time instead of generating an exception. Re-order the logic to match spec text. |
|
5050 |
|
5051 * html/TimeRanges.cpp: |
|
5052 (TimeRanges::nearest): New, return the value closest to the specified time. |
|
5053 * html/TimeRanges.h: |
|
5054 |
|
5055 2010-07-14 Hans Wennborg <hans@chromium.org> |
|
5056 |
|
5057 Reviewed by Steve Block. |
|
5058 |
|
5059 Rename DeviceOrientationController::onOrientationChange to didChangeDeviceOrientation |
|
5060 https://bugs.webkit.org/show_bug.cgi?id=42257 |
|
5061 |
|
5062 According to convention, we should avoid "on" in favor of "did" in function names. |
|
5063 |
|
5064 * dom/DeviceOrientationController.cpp: |
|
5065 (WebCore::DeviceOrientationController::didChangeDeviceOrientation): |
|
5066 * dom/DeviceOrientationController.h: |
|
5067 |
|
5068 2010-07-14 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
5069 |
|
5070 Reviewed by Kent Tamura. |
|
5071 |
|
5072 Notify browser about popup being deleted. In EFL and BREW ports, the |
|
5073 WebCore::Popup object was being deleted leaving the popup in browser |
|
5074 alive. Popups can be deleted in two ways: either from browser to webcore or |
|
5075 from webcore to browser. The first path was ok. The problem was when the |
|
5076 user changed the page with a popup still opened. This would trigger the |
|
5077 second path and would cause WebCore::Popup to be deleted without |
|
5078 notifying browser. |
|
5079 https://bugs.webkit.org/show_bug.cgi?id=41877 |
|
5080 |
|
5081 No new functionality so no new tests. |
|
5082 |
|
5083 * platform/brew/PopupMenuBrew.cpp: |
|
5084 (WebCore::PopupMenu::~PopupMenu): call hide() when object is |
|
5085 destroyed. |
|
5086 * platform/efl/PopupMenuEfl.cpp: |
|
5087 (WebCore::PopupMenu::~PopupMenu): ditto. |
|
5088 |
|
5089 2010-07-14 Satish Sampath <satish@chromium.org> |
|
5090 |
|
5091 Reviewed by Kent Tamura. |
|
5092 |
|
5093 Invoke speech recognition when user clicks on the speech button of input elements. |
|
5094 http://bugs.webkit.org/show_bug.cgi?id=42047 |
|
5095 |
|
5096 No new tests, the relevant LayoutTestController bindings will be added in a subsequent patch. |
|
5097 |
|
5098 * rendering/TextControlInnerElements.cpp: |
|
5099 (WebCore::InputFieldSpeechButtonElement::InputFieldSpeechButtonElement): |
|
5100 (WebCore::InputFieldSpeechButtonElement::defaultEventHandler): Added click handling. |
|
5101 (WebCore::InputFieldSpeechButtonElement::speechInput): |
|
5102 (WebCore::InputFieldSpeechButtonElement::recordingComplete): Callback to indicate recording progress. |
|
5103 (WebCore::InputFieldSpeechButtonElement::setRecognitionResult): Callback to receive recognized text. |
|
5104 (WebCore::InputFieldSpeechButtonElement::detach): |
|
5105 * rendering/TextControlInnerElements.h: |
|
5106 |
|
5107 2010-07-14 Sheriff Bot <webkit.review.bot@gmail.com> |
|
5108 |
|
5109 Unreviewed, rolling out r63305. |
|
5110 http://trac.webkit.org/changeset/63305 |
|
5111 https://bugs.webkit.org/show_bug.cgi?id=42256 |
|
5112 |
|
5113 "debugger-breakpoints-not-activated-on-reload.html fails on |
|
5114 GTK" (Requested by yurys on #webkit). |
|
5115 |
|
5116 * inspector/front-end/ScriptView.js: |
|
5117 (WebInspector.ScriptView.prototype._addBreakpoint): |
|
5118 * inspector/front-end/ScriptsPanel.js: |
|
5119 (WebInspector.ScriptsPanel): |
|
5120 (WebInspector.ScriptsPanel.prototype._resourceLoadingFinished): |
|
5121 (WebInspector.ScriptsPanel.prototype._breakpointAdded): |
|
5122 (WebInspector.ScriptsPanel.prototype._scriptOrResourceForURLAndLine): |
|
5123 (WebInspector.ScriptsPanel.prototype._showScriptOrResource): |
|
5124 (WebInspector.ScriptsPanel.prototype._toggleBreakpointsClicked): |
|
5125 * inspector/front-end/SourceView.js: |
|
5126 (WebInspector.SourceView.prototype._addBreakpoint): |
|
5127 |
|
5128 2010-07-14 Steve Block <steveblock@google.com> |
|
5129 |
|
5130 Reviewed by Jeremy Orlow. |
|
5131 |
|
5132 Provide implementation of DeviceOrientationController and hook into DOMWindow |
|
5133 https://bugs.webkit.org/show_bug.cgi?id=39588 |
|
5134 |
|
5135 Added DeviceOrientationController::addListener() and removeListener() |
|
5136 to start and stop the client and added calls from DomWindow. Implemented |
|
5137 DeviceOrientationController::onDeviceOrientationChange() to fire a |
|
5138 DeviceOrientationEvent on the window object. |
|
5139 |
|
5140 No new tests yet, pending LayoutTestController methods for mock DeviceOrientation. |
|
5141 |
|
5142 * dom/DeviceOrientationClient.h: |
|
5143 * dom/DeviceOrientationController.cpp: |
|
5144 (WebCore::DeviceOrientation::addListener): |
|
5145 (WebCore::DeviceOrientation::removeListener): |
|
5146 (WebCore::DeviceOrientation::removeAllListeners): |
|
5147 (WebCore::DeviceOrientationController::onDeviceOrientationChange): |
|
5148 * dom/DeviceOrientationController.h: |
|
5149 * page/DOMWindow.cpp: |
|
5150 (WebCore::DOMWindow::addEventListener): |
|
5151 (WebCore::DOMWindow::removeEventListener): |
|
5152 (WebCore::DOMWindow::removeAllEventListeners): |
|
5153 |
|
5154 2010-07-14 Yury Semikhatsky <yurys@chromium.org> |
|
5155 |
|
5156 Reviewed by Pavel Feldman. |
|
5157 |
|
5158 Web Inspector: remove v8 debugger code that doesn't use ScriptDebugServer |
|
5159 https://bugs.webkit.org/show_bug.cgi?id=42164 |
|
5160 |
|
5161 * bindings/v8/ScriptDebugServer.cpp: |
|
5162 (WebCore::retrieveFrame): |
|
5163 (WebCore::ScriptDebugServer::addListener): |
|
5164 (WebCore::ScriptDebugServer::setBreakpoint): |
|
5165 (WebCore::ScriptDebugServer::removeBreakpoint): |
|
5166 (WebCore::ScriptDebugServer::clearBreakpoints): |
|
5167 (WebCore::ScriptDebugServer::setBreakpointsActivated): |
|
5168 (WebCore::ScriptDebugServer::pauseOnExceptionsState): |
|
5169 (WebCore::ScriptDebugServer::setPauseOnExceptionsState): |
|
5170 (WebCore::ScriptDebugServer::continueProgram): |
|
5171 (WebCore::ScriptDebugServer::stepIntoStatement): |
|
5172 (WebCore::ScriptDebugServer::stepOverStatement): |
|
5173 (WebCore::ScriptDebugServer::stepOutOfFunction): |
|
5174 (WebCore::ScriptDebugServer::editScriptSource): |
|
5175 (WebCore::ScriptDebugServer::handleV8DebugEvent): |
|
5176 * bindings/v8/ScriptDebugServer.h: |
|
5177 |
|
5178 2010-07-14 Ilya Tikhonovsky <loislo@chromium.org> |
|
5179 |
|
5180 Reviewed by Yury Semikhatsky. |
|
5181 |
|
5182 WebInspector: Clean-up InspectorBackend code. In the next changes |
|
5183 InspectorBackend content will be generated by scripts. As far as |
|
5184 generator is very simple thing all nontrivial function should be |
|
5185 moved to InspectorController and DOMAgent. |
|
5186 https://bugs.webkit.org/show_bug.cgi?id=42171 |
|
5187 |
|
5188 * bindings/js/ScriptDebugServer.cpp: |
|
5189 (WebCore::ScriptDebugServer::pause): |
|
5190 * bindings/js/ScriptDebugServer.h: |
|
5191 (WebCore::ScriptDebugServer::activateBreakpoints): |
|
5192 (WebCore::ScriptDebugServer::deactivateBreakpoints): |
|
5193 * bindings/v8/ScriptDebugServer.h: |
|
5194 (WebCore::ScriptDebugServer::activateBreakpoints): |
|
5195 (WebCore::ScriptDebugServer::deactivateBreakpoints): |
|
5196 (WebCore::ScriptDebugServer::pause): |
|
5197 * inspector/Inspector.idl: |
|
5198 * inspector/InspectorBackend.cpp: |
|
5199 (WebCore::InspectorBackend::saveApplicationSettings): |
|
5200 (WebCore::InspectorBackend::saveSessionSettings): |
|
5201 (WebCore::InspectorBackend::enableSearchingForNode): |
|
5202 (WebCore::InspectorBackend::disableSearchingForNode): |
|
5203 (WebCore::InspectorBackend::enableMonitoringXHR): |
|
5204 (WebCore::InspectorBackend::disableMonitoringXHR): |
|
5205 (WebCore::InspectorBackend::getResourceContent): |
|
5206 (WebCore::InspectorBackend::reloadPage): |
|
5207 (WebCore::InspectorBackend::activateBreakpoints): |
|
5208 (WebCore::InspectorBackend::deactivateBreakpoints): |
|
5209 (WebCore::InspectorBackend::pause): |
|
5210 (WebCore::InspectorBackend::resume): |
|
5211 (WebCore::InspectorBackend::stepOverStatement): |
|
5212 (WebCore::InspectorBackend::stepIntoStatement): |
|
5213 (WebCore::InspectorBackend::stepOutOfFunction): |
|
5214 (WebCore::InspectorBackend::setPauseOnExceptionsState): |
|
5215 (WebCore::InspectorBackend::copyNode): |
|
5216 (WebCore::InspectorBackend::pushNodeByPathToFrontend): |
|
5217 (WebCore::InspectorBackend::highlightDOMNode): |
|
5218 (WebCore::InspectorBackend::hideDOMNodeHighlight): |
|
5219 * inspector/InspectorBackend.h: |
|
5220 * inspector/InspectorBackend.idl: |
|
5221 * inspector/InspectorController.cpp: |
|
5222 (WebCore::InspectorController::saveApplicationSettings): |
|
5223 (WebCore::InspectorController::saveSessionSettings): |
|
5224 (WebCore::InspectorController::highlightDOMNode): |
|
5225 (WebCore::InspectorController::resume): |
|
5226 (WebCore::InspectorController::setPauseOnExceptionsState): |
|
5227 (WebCore::InspectorController::getResourceContent): |
|
5228 (WebCore::InspectorController::reloadPage): |
|
5229 * inspector/InspectorController.h: |
|
5230 (WebCore::InspectorController::hideDOMNodeHighlight): |
|
5231 (WebCore::InspectorController::startProfiling): |
|
5232 (WebCore::InspectorController::stopProfiling): |
|
5233 (WebCore::InspectorController::enableSearchingForNode): |
|
5234 (WebCore::InspectorController::disableSearchingForNode): |
|
5235 (WebCore::InspectorController::enableMonitoringXHR): |
|
5236 (WebCore::InspectorController::disableMonitoringXHR): |
|
5237 * inspector/InspectorDOMAgent.cpp: |
|
5238 (WebCore::InspectorDOMAgent::copyNode): |
|
5239 (WebCore::InspectorDOMAgent::pushNodeByPathToFrontend): |
|
5240 * inspector/InspectorDOMAgent.h: |
|
5241 * inspector/front-end/InspectorBackendStub.js: |
|
5242 (.WebInspector.InspectorBackendStub.prototype.pause): |
|
5243 (.WebInspector.InspectorBackendStub.prototype.resume): |
|
5244 (.WebInspector.InspectorBackendStub.prototype.stepIntoStatement): |
|
5245 (.WebInspector.InspectorBackendStub.prototype.stepOutOfFunction): |
|
5246 (.WebInspector.InspectorBackendStub.prototype.stepOverStatement): |
|
5247 * inspector/front-end/ScriptsPanel.js: |
|
5248 (WebInspector.ScriptsPanel.prototype._togglePause): |
|
5249 (WebInspector.ScriptsPanel.prototype._stepOverClicked): |
|
5250 (WebInspector.ScriptsPanel.prototype._stepIntoClicked): |
|
5251 (WebInspector.ScriptsPanel.prototype._stepOutClicked): |
|
5252 * loader/FrameLoader.cpp: |
|
5253 (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): |
|
5254 |
|
5255 2010-07-14 Joone Hur <joone@kldp.org> |
|
5256 |
|
5257 Reviewed by Jian Li. |
|
5258 |
|
5259 [GTK] Enabling File Reader/Writer APIs |
|
5260 https://bugs.webkit.org/show_bug.cgi?id=40209 |
|
5261 |
|
5262 The layout test fast/files will be enabled after eventSender.beginDragWithFiles is implemented for GTK. |
|
5263 |
|
5264 * platform/gtk/FileSystemGtk.cpp: |
|
5265 (WebCore::openFile): Added. |
|
5266 (WebCore::readFromFile): Added. |
|
5267 |
|
5268 2010-07-14 Nikolas Zimmermann <nzimmermann@rim.com> |
|
5269 |
|
5270 Reviewed by Dirk Schulze. |
|
5271 |
|
5272 Inconsistent LayoutRepainter usage in the SVG renderers |
|
5273 https://bugs.webkit.org/show_bug.cgi?id=42245 |
|
5274 |
|
5275 Unify LayoutRepainter usage in the SVG renders, as RenderBlock does it, always use: |
|
5276 LayoutRepainter repainter(*this, m_everHadLayout && checkForRepaintDuringLayout()); |
|
5277 instead of including selfWillPaint / selfNeedsLayout checks. This improves layout test |
|
5278 performance by 8s on my machine with a debug build (from 76.72s -> 68.59s, averaged over 5 runs) |
|
5279 |
|
5280 * rendering/RenderForeignObject.cpp: |
|
5281 (WebCore::RenderForeignObject::layout): |
|
5282 * rendering/RenderPath.cpp: |
|
5283 (WebCore::RenderPath::layout): |
|
5284 * rendering/RenderSVGContainer.cpp: |
|
5285 (WebCore::RenderSVGContainer::layout): |
|
5286 * rendering/RenderSVGImage.cpp: |
|
5287 (WebCore::RenderSVGImage::layout): |
|
5288 * rendering/RenderSVGRoot.cpp: |
|
5289 (WebCore::RenderSVGRoot::layout): |
|
5290 * rendering/RenderSVGText.cpp: |
|
5291 (WebCore::RenderSVGText::layout): |
|
5292 |
|
5293 2010-07-14 Kent Tamura <tkent@chromium.org> |
|
5294 |
|
5295 Unreviewed, build fix for r63300. |
|
5296 |
|
5297 * rendering/RenderSVGResourceContainer.h: |
|
5298 (WebCore::RenderSVGResourceContainer::containsCyclicReference): |
|
5299 |
|
5300 2010-07-14 Pavel Podivilov <podivilov@chromium.org> |
|
5301 |
|
5302 Reviewed by Yury Semikhatsky. |
|
5303 |
|
5304 Web Inspector: do not activate all breakpoints on page reload |
|
5305 https://bugs.webkit.org/show_bug.cgi?id=41461 |
|
5306 |
|
5307 Test: inspector/debugger-breakpoints-not-activated-on-reload.html |
|
5308 |
|
5309 * inspector/front-end/ScriptView.js: |
|
5310 (WebInspector.ScriptView.prototype._addBreakpoint): |
|
5311 * inspector/front-end/ScriptsPanel.js: |
|
5312 (WebInspector.ScriptsPanel): |
|
5313 (WebInspector.ScriptsPanel.prototype._breakpointAdded): |
|
5314 (WebInspector.ScriptsPanel.prototype.toggleBreakpointsClicked): |
|
5315 * inspector/front-end/SourceView.js: |
|
5316 (WebInspector.SourceView.prototype._addBreakpoint): |
|
5317 |
|
5318 2010-07-14 Yury Semikhatsky <yurys@chromium.org> |
|
5319 |
|
5320 Reviewed by Pavel Feldman. |
|
5321 |
|
5322 Web Inspector: use OwnPtr to manage ConsoleMessages in InspectorController |
|
5323 https://bugs.webkit.org/show_bug.cgi?id=42243 |
|
5324 |
|
5325 * inspector/InspectorController.cpp: |
|
5326 (WebCore::InspectorController::~InspectorController): |
|
5327 (WebCore::InspectorController::addConsoleMessage): |
|
5328 (WebCore::InspectorController::clearConsoleMessages): |
|
5329 * inspector/InspectorController.h: |
|
5330 (WebCore::InspectorController::consoleMessages): |
|
5331 |
|
5332 2010-07-14 Nikolas Zimmermann <nzimmermann@rim.com> |
|
5333 |
|
5334 Reviewed by Eric Seidel. |
|
5335 |
|
5336 SVG patterns and masks should not be able to reference themselves |
|
5337 https://bugs.webkit.org/show_bug.cgi?id=32171 |
|
5338 |
|
5339 Don't apply pattern/mask resources, if they contain cyclic references. Gradients/Filters are not affected. |
|
5340 Clippers are already correcly handling this on their own, as well as markers (all which require subtle quirks, covered by existing tests). |
|
5341 |
|
5342 Tests: svg/custom/recursive-filter.svg |
|
5343 svg/custom/recursive-gradient.svg |
|
5344 svg/custom/recursive-mask.svg |
|
5345 svg/custom/recursive-pattern.svg |
|
5346 |
|
5347 * rendering/RenderSVGResourceContainer.h: |
|
5348 (WebCore::RenderSVGResourceContainer::RenderSVGResourceContainer): Stop using idForStyleResolution(), but use getIdAttribute(), no functional change though. |
|
5349 (WebCore::RenderSVGResourceContainer::idChanged): Ditto. |
|
5350 (WebCore::RenderSVGResourceContainer::childElementReferencesResource): To be implemented by classes inheriting from us. Defaults to false. |
|
5351 (WebCore::RenderSVGResourceContainer::containsCyclicReference): Check whether this resource contains contains a child which references ourselves. |
|
5352 * rendering/RenderSVGResourceMasker.cpp: |
|
5353 (WebCore::RenderSVGResourceMasker::childElementReferencesResource): Check whether the masker child specifies mask=".." with the same URI than ourselves. |
|
5354 (WebCore::RenderSVGResourceMasker::applyResource): Early exit if we contain a cylic reference. |
|
5355 * rendering/RenderSVGResourceMasker.h: |
|
5356 * rendering/RenderSVGResourcePattern.cpp: |
|
5357 (WebCore::RenderSVGResourcePattern::childElementReferencesResource): Check whether the masker child specifies fill=".." with the same URI than ourselves. |
|
5358 (WebCore::RenderSVGResourcePattern::applyResource): Early exit if we contain a cylic reference. |
|
5359 * rendering/RenderSVGResourcePattern.h: |
|
5360 * svg/SVGPaint.cpp: |
|
5361 (WebCore::SVGPaint::matchesTargetURI): Add new helper function comparing a SVGPaint URI with a given reference id. |
|
5362 * svg/SVGPaint.h: |
|
5363 |
|
5364 2010-07-14 Eric Seidel <eric@webkit.org> |
|
5365 |
|
5366 Reviewed by Nikolas Zimmermann. |
|
5367 |
|
5368 Selection dumping code should not dump body's offset in the document |
|
5369 https://bugs.webkit.org/show_bug.cgi?id=42238 |
|
5370 |
|
5371 This requires updating the results of many layout tests, |
|
5372 but has no functional change. |
|
5373 |
|
5374 * rendering/RenderTreeAsText.cpp: |
|
5375 (WebCore::nodePosition): |
|
5376 |
|
5377 2010-07-14 Kent Tamura <tkent@chromium.org> |
|
5378 |
|
5379 Reviewed by Darin Fisher. |
|
5380 |
|
5381 <input type=number> UI: inner spin button layout |
|
5382 https://bugs.webkit.org/show_bug.cgi?id=41924 |
|
5383 |
|
5384 Add layout/event/style code for the inner spin button, which is |
|
5385 going to be used for Windows implementation. |
|
5386 No new tests because no ports implement the inner spin button yet. |
|
5387 |
|
5388 * rendering/RenderTextControlSingleLine.cpp: |
|
5389 Introduce m_innerSpinButton. |
|
5390 (WebCore::RenderTextControlSingleLine::~RenderTextControlSingleLine): |
|
5391 Detach m_innerSpinButton. |
|
5392 (WebCore::RenderTextControlSingleLine::layout): |
|
5393 Set position and size of m_innerSpinButton. |
|
5394 (WebCore::RenderTextControlSingleLine::nodeAtPoint): |
|
5395 Handle m_innerSpinButton. |
|
5396 (WebCore::RenderTextControlSingleLine::forwardEvent): |
|
5397 Handle m_innerSpinButton. |
|
5398 (WebCore::RenderTextControlSingleLine::textBlockWidth): |
|
5399 Shorten the text block width by m_innerSpinButton width. |
|
5400 (WebCore::RenderTextControlSingleLine::preferredContentWidth): |
|
5401 Add m_innerSpinButton width. |
|
5402 (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded): |
|
5403 Handle m_innerSpinButton. |
|
5404 (WebCore::RenderTextControlSingleLine::createInnerSpinButtonStyle): |
|
5405 Make style for m_innerSpinButton with INNER_SPIN_BUTTON pseudo class. |
|
5406 * rendering/RenderTextControlSingleLine.h: |
|
5407 |
|
5408 2010-07-14 Kent Tamura <tkent@chromium.org> |
|
5409 |
|
5410 Reviewed by Darin Fisher. |
|
5411 |
|
5412 <input type=number> UI: Support disabled/readonly states |
|
5413 https://bugs.webkit.org/show_bug.cgi?id=38568 |
|
5414 |
|
5415 Implement isEnabledFormControl() and isReadOnlyFormControl() of |
|
5416 SpinButtonElement. They returns the states of the parent <input> element. |
|
5417 The existing isEnabledFormControl() had a bug. It didn't have 'const' |
|
5418 modifier. |
|
5419 |
|
5420 Test: fast/forms/input-appearance-spinbutton-disabled-readonly.html |
|
5421 |
|
5422 * rendering/TextControlInnerElements.cpp: |
|
5423 (WebCore::SpinButtonElement::defaultEventHandler): |
|
5424 - If the input element is disabled or read-only, don't process events. |
|
5425 - Protect 'input' object from destruction during focus(). |
|
5426 - Fix a hit-test issue. We don't need to add renderBox()->y() because |
|
5427 'local' is relative to the RenderBox. |
|
5428 - Some code cleanup |
|
5429 * rendering/TextControlInnerElements.h: |
|
5430 (WebCore::SpinButtonElement::isEnabledFormControl): |
|
5431 (WebCore::SpinButtonElement::isReadOnlyFormControl): |
|
5432 |
|
5433 2010-07-13 Simon Fraser <simon.fraser@apple.com> |
|
5434 |
|
5435 Reviewed by Dan Bernstein. |
|
5436 |
|
5437 Page flashes to mostly white towards the end of loading |
|
5438 https://bugs.webkit.org/show_bug.cgi?id=42230 |
|
5439 |
|
5440 We constrain the size of huge composited layers. When doing so, we |
|
5441 need to use the constained size to set the position as well |
|
5442 as the dimensions, to ensure the layer appears in the correct place. |
|
5443 |
|
5444 Test: compositing/tiling/constrained-layer-size.html |
|
5445 |
|
5446 * platform/graphics/mac/GraphicsLayerCA.mm: |
|
5447 (WebCore::GraphicsLayerCA::updateLayerPosition): |
|
5448 |
|
5449 2010-07-13 Kent Tamura <tkent@chromium.org> |
|
5450 |
|
5451 Reviewed by Darin Fisher. |
|
5452 |
|
5453 [Chromium] Linux implementation of <input type=number> UI |
|
5454 https://bugs.webkit.org/show_bug.cgi?id=41925 |
|
5455 |
|
5456 - Move the code for scrollbar steppers from ScrollbarThemeChromiumLinux |
|
5457 to PlatformThemeChromiumGtk. |
|
5458 - Move the code for scrollbar colors from RenderThemeChromiumLinux |
|
5459 to PlatformThemeChromiumGtk. |
|
5460 |
|
5461 * WebCore.gypi: |
|
5462 * platform/chromium/PlatformThemeChromiumGtk.cpp: Added. |
|
5463 (WebCore::PlatformThemeChromiumGtk::setScrollbarColors): Moved from RenderThemeChromiumLinux. |
|
5464 (WebCore::clamp): Moved from ScrollbarThemeChromiumLinux. |
|
5465 (WebCore::PlatformThemeChromiumGtk::saturateAndBrighten): ditto. |
|
5466 (WebCore::PlatformThemeChromiumGtk::outlineColor): ditto. |
|
5467 (WebCore::PlatformThemeChromiumGtk::paintArrowButton): ditto. |
|
5468 * platform/chromium/PlatformThemeChromiumGtk.h: Added. |
|
5469 * platform/chromium/ScrollbarThemeChromiumLinux.cpp: |
|
5470 (WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece): |
|
5471 (WebCore::ScrollbarThemeChromiumLinux::paintButton): |
|
5472 Move the main part of the code to PlatformThemeChromiumGtk. |
|
5473 (WebCore::ScrollbarThemeChromiumLinux::paintThumb): |
|
5474 * rendering/RenderThemeChromiumLinux.cpp: |
|
5475 (WebCore::RenderThemeChromiumLinux::adjustInnerSpinButtonStyle): Added. |
|
5476 (WebCore::RenderThemeChromiumLinux::paintInnerSpinButton): Added. |
|
5477 * rendering/RenderThemeChromiumLinux.h: |
|
5478 |
|
5479 2010-07-13 Dumitru Daniliuc <dumi@chromium.org> |
|
5480 |
|
5481 Reviewed by Darin Fisher |
|
5482 |
|
5483 Implementing DatabaseSync::transaction() and DatabaseSync::changeVersion(). |
|
5484 https://bugs.webkit.org/show_bug.cgi?id=40607 |
|
5485 |
|
5486 Tests: fast/workers/storage/change-version-handle-reuse-sync.html |
|
5487 fast/workers/storage/change-version-sync.html |
|
5488 fast/workers/storage/empty-statement-sync.html |
|
5489 fast/workers/storage/execute-sql-args-sync.html |
|
5490 fast/workers/storage/executesql-accepts-only-one-statement-sync.html |
|
5491 fast/workers/storage/multiple-transactions-on-different-handles-sync.html |
|
5492 fast/workers/storage/open-database-creation-callback-sync.html |
|
5493 fast/workers/storage/open-database-empty-version-sync.html |
|
5494 fast/workers/storage/open-database-inputs-sync.html |
|
5495 fast/workers/storage/open-database-set-empty-version-sync.html |
|
5496 fast/workers/storage/open-database-while-transaction-in-progress-sync.html |
|
5497 fast/workers/storage/sql-data-types-sync.html |
|
5498 fast/workers/storage/sql-exception-codes-sync.html |
|
5499 fast/workers/storage/test-authorizer-sync.html |
|
5500 fast/workers/storage/transaction-in-transaction-sync.html |
|
5501 |
|
5502 * CMakeLists.txt: |
|
5503 * GNUmakefile.am: |
|
5504 * WebCore.gypi: |
|
5505 * WebCore.pro: |
|
5506 * WebCore.vcproj/WebCore.vcproj: |
|
5507 * WebCore.xcodeproj/project.pbxproj: |
|
5508 * storage/AbstractDatabase.cpp: |
|
5509 (WebCore::AbstractDatabase::maximumSize): |
|
5510 (WebCore::AbstractDatabase::incrementalVacuumIfNeeded): |
|
5511 * storage/AbstractDatabase.h: |
|
5512 (WebCore::AbstractDatabase::sqliteDatabase): |
|
5513 * storage/ChangeVersionWrapper.cpp: |
|
5514 (WebCore::ChangeVersionWrapper::performPreflight): |
|
5515 (WebCore::ChangeVersionWrapper::performPostflight): |
|
5516 * storage/Database.cpp: |
|
5517 (WebCore::Database::performGetTableNames): |
|
5518 * storage/Database.h: |
|
5519 * storage/DatabaseAuthorizer.cpp: |
|
5520 (WebCore::DatabaseAuthorizer::createVTable): |
|
5521 (WebCore::DatabaseAuthorizer::dropVTable): |
|
5522 * storage/DatabaseCallback.h: |
|
5523 * storage/DatabaseSync.cpp: |
|
5524 (WebCore::ChangeVersionPreflightStep::create): |
|
5525 (WebCore::ChangeVersionPreflightStep::performStep): |
|
5526 (WebCore::ChangeVersionPreflightStep::ChangeVersionPreflightStep): |
|
5527 (WebCore::ChangeVersionPostflightStep::create): |
|
5528 (WebCore::ChangeVersionPostflightStep::performStep): |
|
5529 (WebCore::ChangeVersionPostflightStep::ChangeVersionPostflightStep): |
|
5530 (WebCore::DatabaseSync::changeVersion): |
|
5531 (WebCore::DatabaseSync::transaction): |
|
5532 (WebCore::DatabaseSync::runTransaction): |
|
5533 * storage/DatabaseSync.h: |
|
5534 * storage/DatabaseTracker.cpp: |
|
5535 (WebCore::DatabaseTracker::getMaxSizeForDatabase): |
|
5536 * storage/SQLError.h: |
|
5537 * storage/SQLResultSet.cpp: |
|
5538 * storage/SQLResultSet.h: |
|
5539 * storage/SQLStatementCallback.h: |
|
5540 * storage/SQLStatementErrorCallback.h: |
|
5541 * storage/SQLStatementSync.cpp: Copied from WebCore/storage/SQLStatement.cpp. |
|
5542 (WebCore::SQLStatementSync::SQLStatementSync): |
|
5543 (WebCore::SQLStatementSync::execute): |
|
5544 * storage/SQLStatementSync.h: Added. |
|
5545 * storage/SQLTransaction.cpp: |
|
5546 (WebCore::SQLTransaction::runCurrentStatement): |
|
5547 (WebCore::SQLTransaction::deliverQuotaIncreaseCallback): |
|
5548 (WebCore::SQLTransaction::postflightAndCommit): |
|
5549 * storage/SQLTransaction.h: |
|
5550 * storage/SQLTransactionCallback.h: |
|
5551 * storage/SQLTransactionClient.cpp: |
|
5552 (WebCore::SQLTransactionClient::didCommitWriteTransaction): |
|
5553 (WebCore::SQLTransactionClient::didExecuteStatement): |
|
5554 (WebCore::SQLTransactionClient::didExceedQuota): |
|
5555 * storage/SQLTransactionClient.h: |
|
5556 * storage/SQLTransactionErrorCallback.h: |
|
5557 * storage/SQLTransactionSync.cpp: |
|
5558 (WebCore::transactionClient): |
|
5559 (WebCore::SQLTransactionSync::create): |
|
5560 (WebCore::SQLTransactionSync::SQLTransactionSync): |
|
5561 (WebCore::SQLTransactionSync::~SQLTransactionSync): |
|
5562 (WebCore::SQLTransactionSync::executeSQL): |
|
5563 (WebCore::SQLTransactionSync::begin): |
|
5564 (WebCore::SQLTransactionSync::execute): |
|
5565 (WebCore::SQLTransactionSync::commit): |
|
5566 (WebCore::SQLTransactionSync::rollback): |
|
5567 * storage/SQLTransactionSync.h: |
|
5568 (WebCore::SQLTransactionSync::SQLTransactionSyncOptionalStep::~SQLTransactionSyncOptionalStep): |
|
5569 * storage/SQLTransactionSyncCallback.h: |
|
5570 * storage/chromium/SQLTransactionClientChromium.cpp: |
|
5571 (WebCore::SQLTransactionClient::didCommitWriteTransaction): |
|
5572 (WebCore::SQLTransactionClient::didExecuteStatement): |
|
5573 (WebCore::SQLTransactionClient::didExceedQuota): |
|
5574 |
|
5575 2010-07-13 Sheriff Bot <webkit.review.bot@gmail.com> |
|
5576 |
|
5577 Unreviewed, rolling out r63162. |
|
5578 http://trac.webkit.org/changeset/63162 |
|
5579 https://bugs.webkit.org/show_bug.cgi?id=42224 |
|
5580 |
|
5581 This is no longer needed (Requested by olliej_ on #webkit). |
|
5582 |
|
5583 * bindings/v8/ScriptSourceCode.h: |
|
5584 (WebCore::ScriptSourceCode::ScriptSourceCode): |
|
5585 |
|
5586 2010-07-13 Eric Seidel <eric@webkit.org> |
|
5587 |
|
5588 Reviewed by Adam Barth. |
|
5589 |
|
5590 Fix my misreading of "clear to the last marker" in the HTML5 spec |
|
5591 https://bugs.webkit.org/show_bug.cgi?id=42199 |
|
5592 |
|
5593 * html/HTMLFormattingElementList.cpp: |
|
5594 (WebCore::HTMLFormattingElementList::clearToLastMarker): |
|
5595 * html/HTMLFormattingElementList.h: |
|
5596 * html/HTMLTreeBuilder.cpp: |
|
5597 (WebCore::HTMLTreeBuilder::processBodyEndTagForInBody): |
|
5598 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
5599 |
|
5600 2010-07-13 Oliver Hunt <oliver@apple.com> |
|
5601 |
|
5602 Reviewed by Gavin Barraclough. |
|
5603 |
|
5604 ES5 requires BOMs to be treated as whitespace |
|
5605 https://bugs.webkit.org/show_bug.cgi?id=42218 |
|
5606 |
|
5607 Remove BOM handling logic from WebCore Script objects. |
|
5608 |
|
5609 * bindings/js/StringSourceProvider.h: |
|
5610 (WebCore::StringSourceProvider::StringSourceProvider): |
|
5611 * loader/CachedScript.cpp: |
|
5612 (WebCore::CachedScript::CachedScript): |
|
5613 (WebCore::CachedScript::script): |
|
5614 * loader/CachedScript.h: |
|
5615 |
|
5616 2010-07-13 Andreas Kling <andreas.kling@nokia.com> |
|
5617 |
|
5618 Reviewed by Darin Adler. |
|
5619 |
|
5620 Canvas: rect(x,y,w,h) should move to (x,y) even if w=0 and h=0 |
|
5621 https://bugs.webkit.org/show_bug.cgi?id=42211 |
|
5622 |
|
5623 * html/canvas/CanvasRenderingContext2D.cpp: |
|
5624 (WebCore::CanvasRenderingContext2D::rect): |
|
5625 |
|
5626 2010-07-13 Simon Fraser <simon.fraser@apple.com> |
|
5627 |
|
5628 Reviewed by Dan Bernstein. |
|
5629 |
|
5630 Show IDs and classnames in layer tree dumps |
|
5631 https://bugs.webkit.org/show_bug.cgi?id=42213 |
|
5632 |
|
5633 When dumping the layer tree via showLayerTree(), include id and class attributes for |
|
5634 ease of debugging. |
|
5635 |
|
5636 No tests, since this is debug-only code. |
|
5637 |
|
5638 * rendering/RenderLayer.cpp: |
|
5639 (showLayerTree): |
|
5640 * rendering/RenderTreeAsText.cpp: |
|
5641 (WebCore::RenderTreeAsText::writeRenderObject): |
|
5642 * rendering/RenderTreeAsText.h: |
|
5643 (WebCore::): |
|
5644 |
|
5645 2010-07-13 Simon Fraser <simon.fraser@apple.com> |
|
5646 |
|
5647 Build fix: fix WebCore exports by editing the .in file, rather than the generated file. |
|
5648 |
|
5649 * WebCore.exp.in: |
|
5650 |
|
5651 2010-07-13 Alexey Proskuryakov <ap@apple.com> |
|
5652 |
|
5653 Reviewed by Darin Adler. |
|
5654 |
|
5655 https://bugs.webkit.org/show_bug.cgi?id=42216 |
|
5656 ResourceRequest::doUpdateResourceRequest() crashes if client denied request |
|
5657 |
|
5658 This is covered by many regression tests with patch for bug 42201 applied (because it makes |
|
5659 us also use this code path for sync requests, and those currently have more strict limitations). |
|
5660 |
|
5661 * platform/network/cf/ResourceRequestCFNet.cpp: |
|
5662 (WebCore::ResourceRequest::doUpdateResourceRequest): Added a null check. |
|
5663 |
|
5664 2010-07-13 Eric Seidel <eric@webkit.org> |
|
5665 |
|
5666 Reviewed by Adam Barth. |
|
5667 |
|
5668 Make our end tag in-foreign-content mode spec bug workarounds more closely match minefield |
|
5669 https://bugs.webkit.org/show_bug.cgi?id=42187 |
|
5670 |
|
5671 I do not expect these work-arounds to be permanent. Hixie has promised to |
|
5672 addresses the feedback to the parser sections of HTML5 soon. |
|
5673 I added these hacks to make our hacks more-closely match Minefield's hacks |
|
5674 and thus have us "pass" a few more html5lib runner tests. |
|
5675 |
|
5676 We now pass all of the html5lib foreign content tests |
|
5677 (thus we'll likely need to write more). |
|
5678 |
|
5679 Tested by html5lib/runner.html |
|
5680 |
|
5681 * html/HTMLElementStack.cpp: |
|
5682 (WebCore::HTMLElementStack::contains): |
|
5683 * html/HTMLElementStack.h: |
|
5684 * html/HTMLTreeBuilder.cpp: |
|
5685 (WebCore::HTMLTreeBuilder::processEndTag): |
|
5686 |
|
5687 2010-07-12 Tony Gentilcore <tonyg@chromium.org> |
|
5688 |
|
5689 Reviewed by Darin Fisher. |
|
5690 |
|
5691 Wire network times from ResourceLoadTiming to performance.timing |
|
5692 https://bugs.webkit.org/show_bug.cgi?id=41824 |
|
5693 |
|
5694 * page/Timing.cpp: |
|
5695 (WebCore::Timing::domainLookupStart): http://dev.w3.org/2006/webapi/WebTiming/#nt-domain-lookupstart |
|
5696 (WebCore::Timing::domainLookupEnd): http://dev.w3.org/2006/webapi/WebTiming/#nt-domain-lookupend |
|
5697 (WebCore::Timing::connectStart): http://dev.w3.org/2006/webapi/WebTiming/#nt-connect-start |
|
5698 (WebCore::Timing::connectEnd): http://dev.w3.org/2006/webapi/WebTiming/#nt-connect-end |
|
5699 (WebCore::Timing::requestStart): http://dev.w3.org/2006/webapi/WebTiming/#nt-request-start |
|
5700 (WebCore::Timing::requestEnd): http://dev.w3.org/2006/webapi/WebTiming/#nt-request-end |
|
5701 (WebCore::Timing::responseStart): http://dev.w3.org/2006/webapi/WebTiming/#nt-response-start |
|
5702 (WebCore::Timing::resourceLoadTiming): |
|
5703 * page/Timing.h: |
|
5704 * page/Timing.idl: |
|
5705 |
|
5706 2010-07-13 Anders Carlsson <andersca@apple.com> |
|
5707 |
|
5708 Reviewed by Sam Weinig. |
|
5709 |
|
5710 Add support for loading javascript: URLs |
|
5711 https://bugs.webkit.org/show_bug.cgi?id=42221 |
|
5712 |
|
5713 * WebCore.exp.in: |
|
5714 Export protocolIsJavaScript and ScriptValue::getString. |
|
5715 |
|
5716 2010-07-13 Anders Carlsson <andersca@apple.com> |
|
5717 |
|
5718 Reviewed by Sam Weinig. |
|
5719 |
|
5720 Add support for URL frame loading using NPN_GetURLNotify |
|
5721 https://bugs.webkit.org/show_bug.cgi?id=42192 |
|
5722 |
|
5723 * WebCore.exp.in: |
|
5724 Export ResourceRequestBase::setHTTPMethod and ResourceRequestBase::setURL. |
|
5725 |
|
5726 2010-07-04 Zhenyao Mo <zmo@google.com> |
|
5727 |
|
5728 Reviewed by Darin Fisher. |
|
5729 |
|
5730 Need to track texture completeness |
|
5731 https://bugs.webkit.org/show_bug.cgi?id=41381 |
|
5732 |
|
5733 Test: fast/canvas/webgl/texture-complete.html |
|
5734 |
|
5735 * html/canvas/WebGLRenderingContext.cpp: |
|
5736 (WebCore::WebGLRenderingContext::WebGLRenderingContext): Init max texture level. |
|
5737 (WebCore::WebGLRenderingContext::bindTexture): Pass max texture level to setTarget(). |
|
5738 (WebCore::WebGLRenderingContext::copyTexImage2D): Cache full texture info rather than partial. |
|
5739 (WebCore::WebGLRenderingContext::generateMipmap): Ditto. |
|
5740 (WebCore::WebGLRenderingContext::texImage2DBase): Ditto. |
|
5741 (WebCore::WebGLRenderingContext::validateTexFuncParameters): Also validate level. |
|
5742 * html/canvas/WebGLRenderingContext.h: Add max texture level. |
|
5743 * html/canvas/WebGLTexture.cpp: Update the class to fully cache texture information and track NPOT and COMPLETE states. |
|
5744 (WebCore::WebGLTexture::WebGLTexture): |
|
5745 (WebCore::WebGLTexture::setTarget): Check whether the texture is initialized or has been deleted. |
|
5746 (WebCore::WebGLTexture::setParameteri): Ditto. |
|
5747 (WebCore::WebGLTexture::setParameterf): Ditto. |
|
5748 (WebCore::WebGLTexture::setLevelInfo): Set texture info. |
|
5749 (WebCore::WebGLTexture::generateMipmapLevelInfo): Generate texture info for all levels after generateMipmaps() is called. |
|
5750 (WebCore::WebGLTexture::getInternalFormat): Return internal format on texture face 0 level 0. |
|
5751 (WebCore::WebGLTexture::isNPOT): Check whether the texture is initialized or has been deleted. |
|
5752 (WebCore::WebGLTexture::needToUseBlackTexture): Ditto. |
|
5753 (WebCore::WebGLTexture::_deleteObject): |
|
5754 (WebCore::WebGLTexture::mapTargetToIndex): Map target to index. |
|
5755 (WebCore::WebGLTexture::canGenerateMipmaps): Check whether Mipmaps can be generated. |
|
5756 (WebCore::WebGLTexture::computeLevelCount): Compute texture level count from width/height. |
|
5757 (WebCore::WebGLTexture::update): Update NPOT/COMPLETE states. |
|
5758 * html/canvas/WebGLTexture.h: Ditto. |
|
5759 (WebCore::WebGLTexture::LevelInfo::LevelInfo): Add data structure to fully cache texture info. |
|
5760 (WebCore::WebGLTexture::LevelInfo::setInfo): Set information. |
|
5761 |
|
5762 2010-07-13 Andreas Kling <andreas.kling@nokia.com> |
|
5763 |
|
5764 Reviewed by Darin Adler. |
|
5765 |
|
5766 Canvas: drawImage() with wrong 'image' argument type should always throw TypeError |
|
5767 https://bugs.webkit.org/show_bug.cgi?id=42160 |
|
5768 |
|
5769 Test: canvas/philip/tests/2d.drawImage.wrongtype.html |
|
5770 |
|
5771 * bindings/js/JSCanvasRenderingContext2DCustom.cpp: |
|
5772 (WebCore::JSCanvasRenderingContext2D::drawImage): Throw TypeError instead of |
|
5773 TYPE_MISMATCH_ERR if 'image' argument is not an image, canvas or video element. |
|
5774 |
|
5775 2010-07-13 Aaron Boodman <aa@chromium.org> |
|
5776 |
|
5777 Reviewed by Timothy Hatcher. |
|
5778 |
|
5779 Don't reset per-document user style caches when user styles are updated in |
|
5780 Chromium. |
|
5781 |
|
5782 https://bugs.webkit.org/show_bug.cgi?id=42003 |
|
5783 |
|
5784 * page/PageGroup.cpp: |
|
5785 (WebCore::PageGroup::addUserStyleSheetToWorld): |
|
5786 (WebCore::PageGroup::removeUserStyleSheetFromWorld): |
|
5787 (WebCore::PageGroup::removeUserStyleSheetsFromWorld): |
|
5788 (WebCore::PageGroup::removeAllUserContent): |
|
5789 (WebCore::PageGroup::resetUserStyleCacheInAllFrames): |
|
5790 * page/PageGroup.h: |
|
5791 |
|
5792 2010-07-13 Eric Carlson <eric.carlson@apple.com> |
|
5793 |
|
5794 Reviewed by Dan Bernstein. |
|
5795 |
|
5796 On Leopard, media element can't handle audio/mp4 MIME type in source tag |
|
5797 https://bugs.webkit.org/show_bug.cgi?id=29326 |
|
5798 |
|
5799 Test: media/media-can-play-mpeg-audio.html |
|
5800 |
|
5801 * platform/MIMETypeRegistry.cpp: |
|
5802 (WebCore::TypeExtensionPair::): Add "audio/mp4", "m4a" to mappings table. |
|
5803 |
|
5804 2010-07-13 Tony Gentilcore <tonyg@chromium.org> |
|
5805 |
|
5806 Reviewed by Darin Fisher. |
|
5807 |
|
5808 Implement performance.timing.fetchStart |
|
5809 https://bugs.webkit.org/show_bug.cgi?id=41816 |
|
5810 |
|
5811 See: http://dev.w3.org/2006/webapi/WebTiming/#nt-fetch-start |
|
5812 |
|
5813 * loader/MainResourceLoader.cpp: |
|
5814 (WebCore::MainResourceLoader::willSendRequest): Record the fetchStart time for each request for the main resource. This means it is called for each server redirect, overwritting the previous value. In https://bugs.webkit.org/show_bug.cgi?id=42018, this will be modified such that if a previous value exists, it is stored as the redirect time. |
|
5815 * loader/FrameLoaderTypes.h: |
|
5816 (WebCore::FrameLoadTimeline::FrameLoadTimeline): |
|
5817 * page/Timing.cpp: |
|
5818 (WebCore::Timing::fetchStart): |
|
5819 * page/Timing.h: |
|
5820 * page/Timing.idl: |
|
5821 |
|
5822 2010-07-13 Satish Sampath <satish@chromium.org> |
|
5823 |
|
5824 Reviewed by Steve Block. |
|
5825 |
|
5826 Speech input plumbing in webcore |
|
5827 https://bugs.webkit.org/show_bug.cgi?id=41518 |
|
5828 |
|
5829 Adds the following: |
|
5830 - a SpeechInput class to be used by the speech enabled HTML elements |
|
5831 - a SpeechInputListener interface to be implemented by the speech enabled HTML elements |
|
5832 - a SpeechInputClient interface (defined in WebCore, implemented by WebKit) for WebCore to call into WebKit. |
|
5833 This is available as a member of WebCore::Page, set by the platforms which support speech input. |
|
5834 - a SpeechInputClientListener interface for WebCore to receive events from WebKit |
|
5835 |
|
5836 No new tests, the relevant LayoutTestController bindings will be added in a subsequent patch. |
|
5837 |
|
5838 * Android.mk: |
|
5839 * GNUmakefile.am: |
|
5840 * WebCore.gypi: |
|
5841 * WebCore.pro: |
|
5842 * WebCore.vcproj/WebCore.vcproj: |
|
5843 * WebCore.xcodeproj/project.pbxproj: |
|
5844 * page/Page.cpp: |
|
5845 (WebCore::Page::Page): |
|
5846 * page/Page.h: Added SpeechInputClient member variable and associated methods. |
|
5847 (WebCore::Page::setSpeechInputClient): |
|
5848 (WebCore::Page::speechInputClient): |
|
5849 * page/SpeechInput.cpp: Added new class to provide speech API services to HTML elements. |
|
5850 (WebCore::SpeechInput::SpeechInput): |
|
5851 (WebCore::SpeechInput::recordingComplete): |
|
5852 (WebCore::SpeechInput::setRecognitionResult): |
|
5853 (WebCore::SpeechInput::startRecognition): |
|
5854 * page/SpeechInput.h: Added. |
|
5855 (WebCore::SpeechInput::~SpeechInput): |
|
5856 (WebCore::SpeechInput::client): |
|
5857 * page/SpeechInputListener.h: Added. |
|
5858 (WebCore::SpeechInputListener::~SpeechInputListener): |
|
5859 * page/SpeechInputClient.h: Added new interface implemented by WebKit to bubble up speech API requests to the embedder. |
|
5860 (WebCore::SpeechInputClient::~SpeechInputClient): |
|
5861 * page/SpeechInputClientListener.h: Added. |
|
5862 (WebCore::SpeechInputClientListener::~SpeechInputClientListener): |
|
5863 |
|
5864 2010-07-13 Richard Moore <rich@kde.org>, Robert Hogan <robert@webkit.org> |
|
5865 |
|
5866 Reviewed by Simon Hausmann. |
|
5867 |
|
5868 [Qt] MIME handling in qtwebkit network layer case-sensitivity |
|
5869 |
|
5870 https://bugs.webkit.org/show_bug.cgi?id=28654 |
|
5871 |
|
5872 Like other platforms, Qt needs to convert MIME types to lower case |
|
5873 so they will be handled by WebCore. |
|
5874 |
|
5875 * platform/network/qt/QNetworkReplyHandler.cpp: |
|
5876 (WebCore::QNetworkReplyHandler::sendResponseIfNeeded): |
|
5877 |
|
5878 2010-07-13 James Robinson <jamesr@chromium.org> |
|
5879 |
|
5880 Reviewed by Simon Fraser. |
|
5881 |
|
5882 REGRESSION(55056) debug builds ASSERT falsely on pages with animations |
|
5883 https://bugs.webkit.org/show_bug.cgi?id=42175 |
|
5884 |
|
5885 Revision 55065 added some repaint box precomputation and some debug ASSERT()ions |
|
5886 to ensure the precomputed values were valid. However, if animations are enabled and |
|
5887 not hardware accelerated, the repaint box dimensions become time-dependent and the |
|
5888 ASSERT()s can trigger. This can make it impossible to interactively debug pages |
|
5889 like google maps. |
|
5890 |
|
5891 https://bugs.webkit.org/show_bug.cgi?id=37048 is another example of an assertion |
|
5892 failing due to time dependent animation values. |
|
5893 |
|
5894 * rendering/RenderObject.cpp: |
|
5895 (WebCore::RenderObject::repaintAfterLayoutIfNeeded): |
|
5896 |
|
5897 2010-07-13 Zhenyao Mo <zmo@google.com> |
|
5898 |
|
5899 Reviewed by Darin Fisher. |
|
5900 |
|
5901 Implement bufferData and bufferSubData with ArrayBuffer as input |
|
5902 https://bugs.webkit.org/show_bug.cgi?id=41884 |
|
5903 |
|
5904 Test: fast/canvas/webgl/buffer-data-array-buffer.html |
|
5905 |
|
5906 * html/canvas/WebGLBuffer.cpp: Implement associateBufferData & associateBufferSubData with ArrayBuffer as input. |
|
5907 (WebCore::WebGLBuffer::associateBufferData): |
|
5908 (WebCore::WebGLBuffer::associateBufferSubData): |
|
5909 * html/canvas/WebGLBuffer.h: Ditto. |
|
5910 * html/canvas/WebGLRenderingContext.cpp: Implement bufferData and bufferSubData with ArrayBuffer as input. |
|
5911 (WebCore::WebGLRenderingContext::bufferData): |
|
5912 (WebCore::WebGLRenderingContext::bufferSubData): |
|
5913 * html/canvas/WebGLRenderingContext.h: Ditto. |
|
5914 * html/canvas/WebGLRenderingContext.idl: Ditto. |
|
5915 * platform/graphics/GraphicsContext3D.h: Ditto. |
|
5916 * platform/graphics/mac/GraphicsContext3DMac.mm: Ditto. |
|
5917 (WebCore::GraphicsContext3D::bufferData): |
|
5918 (WebCore::GraphicsContext3D::bufferSubData): |
|
5919 |
|
5920 2010-07-13 Tony Gentilcore <tonyg@chromium.org> |
|
5921 |
|
5922 Reviewed by Darin Fisher. |
|
5923 |
|
5924 Implement performance.timing.responseEnd |
|
5925 https://bugs.webkit.org/show_bug.cgi?id=42006 |
|
5926 |
|
5927 See: http://dev.w3.org/2006/webapi/WebTiming/#nt-response-end |
|
5928 |
|
5929 * loader/FrameLoader.cpp: |
|
5930 (WebCore::FrameLoader::finishedLoading): |
|
5931 * loader/FrameLoaderTypes.h: |
|
5932 (WebCore::FrameLoadTimeline::FrameLoadTimeline): |
|
5933 * page/Timing.cpp: |
|
5934 (WebCore::Timing::responseEnd): |
|
5935 * page/Timing.h: |
|
5936 * page/Timing.idl: |
|
5937 |
|
5938 2010-07-13 W. James MacLean <wjmaclean@chromium.org> |
|
5939 |
|
5940 Reviewed by Darin Fisher |
|
5941 |
|
5942 Bug 41962 Limit html canvas element dimensions to 32767 for Skia platform |
|
5943 https://bugs.webkit.org/show_bug.cgi?id=41962 |
|
5944 |
|
5945 Test: fast/canvas/canvas-skia-excessive-size.html |
|
5946 |
|
5947 * WebCore/html/HTMLCanvasElement.cpp |
|
5948 (WebCore::HTMLCanvasElement::convertLogicalToDevice): |
|
5949 |
|
5950 2010-07-10 Zhenyao Mo <zmo@google.com> |
|
5951 |
|
5952 Reviewed by Darin Fisher. |
|
5953 |
|
5954 Need to emulate MAX_VARYING_VECTORS/MAX_FRAGMENT_UNIFORM_VECTORs/MAX_VERTEX_UNIFORM_VECTORS for glGet |
|
5955 https://bugs.webkit.org/show_bug.cgi?id=42032 |
|
5956 |
|
5957 * platform/graphics/mac/GraphicsContext3DMac.mm: |
|
5958 (WebCore::GraphicsContext3D::getIntegerv): Emulate the enums. |
|
5959 |
|
5960 2010-07-13 Philippe Normand <pnormand@igalia.com> |
|
5961 |
|
5962 Reviewed by Eric Carlson. |
|
5963 |
|
5964 [GTK] video playback position query flood when mouse over the video element |
|
5965 https://bugs.webkit.org/show_bug.cgi?id=35333 |
|
5966 |
|
5967 Don't trigger a position query only to know which play/pause |
|
5968 button to display. Instead use the media-control button display |
|
5969 type to select the image to paint. |
|
5970 |
|
5971 * platform/gtk/RenderThemeGtk.cpp: |
|
5972 (WebCore::RenderThemeGtk::paintMediaPlayButton): |
|
5973 |
|
5974 2010-07-13 Sheriff Bot <webkit.review.bot@gmail.com> |
|
5975 |
|
5976 Unreviewed, rolling out r63192. |
|
5977 http://trac.webkit.org/changeset/63192 |
|
5978 https://bugs.webkit.org/show_bug.cgi?id=42173 |
|
5979 |
|
5980 Broke fast/backgrounds/size/contain-and-cover.html (Requested |
|
5981 by kling on #webkit). |
|
5982 |
|
5983 * manual-tests/css3-background-layer-count.html: Removed. |
|
5984 * rendering/style/FillLayer.cpp: |
|
5985 (WebCore::FillLayer::cullEmptyLayers): |
|
5986 |
|
5987 2010-07-13 Marcus Bulach <bulach@chromium.org> |
|
5988 |
|
5989 Reviewed by Jeremy Orlow. |
|
5990 |
|
5991 Removes cycles caused by "m_this" members in a few IndexedDB classes. |
|
5992 https://bugs.webkit.org/show_bug.cgi?id=42161 |
|
5993 |
|
5994 Adds IDBAny::create for the various types. |
|
5995 No functionality change, just cleaning up. |
|
5996 |
|
5997 * storage/IDBAny.cpp: |
|
5998 (WebCore::createIDBAny): |
|
5999 (WebCore::IDBAny::create): |
|
6000 * storage/IDBAny.h: |
|
6001 * storage/IDBDatabaseRequest.cpp: |
|
6002 (WebCore::IDBDatabaseRequest::IDBDatabaseRequest): |
|
6003 (WebCore::IDBDatabaseRequest::createObjectStore): |
|
6004 (WebCore::IDBDatabaseRequest::removeObjectStore): |
|
6005 * storage/IDBDatabaseRequest.h: |
|
6006 * storage/IDBKeyRange.cpp: |
|
6007 (WebCore::IDBKeyRange::IDBKeyRange): |
|
6008 * storage/IDBKeyRange.h: |
|
6009 (WebCore::IDBKeyRange::left): |
|
6010 (WebCore::IDBKeyRange::right): |
|
6011 * storage/IDBObjectStoreRequest.cpp: |
|
6012 (WebCore::IDBObjectStoreRequest::IDBObjectStoreRequest): |
|
6013 (WebCore::IDBObjectStoreRequest::get): |
|
6014 (WebCore::IDBObjectStoreRequest::add): |
|
6015 (WebCore::IDBObjectStoreRequest::put): |
|
6016 (WebCore::IDBObjectStoreRequest::remove): |
|
6017 (WebCore::IDBObjectStoreRequest::createIndex): |
|
6018 (WebCore::IDBObjectStoreRequest::removeIndex): |
|
6019 * storage/IDBObjectStoreRequest.h: |
|
6020 * storage/IndexedDatabaseRequest.cpp: |
|
6021 (WebCore::IndexedDatabaseRequest::IndexedDatabaseRequest): |
|
6022 (WebCore::IndexedDatabaseRequest::open): |
|
6023 * storage/IndexedDatabaseRequest.h: |
|
6024 |
|
6025 2010-07-13 Antti Koivisto <koivisto@iki.fi> |
|
6026 |
|
6027 Reviewed by Kenneth Rohde Christiansen. |
|
6028 |
|
6029 [Qt] Land the initial build system for WebKit2 |
|
6030 https://bugs.webkit.org/show_bug.cgi?id=41604 |
|
6031 |
|
6032 The build is enabled by passing --qmakearg="CONFIG+=webkit2" to build-webkit |
|
6033 |
|
6034 * WebCore.pri: |
|
6035 * WebCore.pro: |
|
6036 |
|
6037 2010-07-13 Leon Clarke <leonclarke@google.com> |
|
6038 |
|
6039 Reviewed by Pavel Feldman. |
|
6040 |
|
6041 Don't access objects after deleting them, following |
|
6042 the addition of link prefetching. Also remove a forward declaration |
|
6043 of the now-nonexistent CachedLinkPrefetch class. |
|
6044 https://bugs.webkit.org/show_bug.cgi?id=3652 |
|
6045 |
|
6046 No new tests. Correcting aspects of the prefetch change that shouldn't |
|
6047 have affected functionality. |
|
6048 |
|
6049 * html/HTMLLinkElement.h: |
|
6050 * loader/loader.cpp: |
|
6051 (WebCore::Loader::Host::cancelPendingRequests): |
|
6052 |
|
6053 2010-07-13 Andras Becsi <abecsi@webkit.org> |
|
6054 |
|
6055 Reviewed by Simon Hausmann. |
|
6056 |
|
6057 [Qt] Fix the case of a linker option to lowercase to be able to |
|
6058 cross compile QtWebKit for Windows on Linux. |
|
6059 |
|
6060 No new tests needed. |
|
6061 |
|
6062 * WebCore.pro: |
|
6063 |
|
6064 2010-07-12 Ilya Tikhonovsky <loislo@chromium.org> |
|
6065 |
|
6066 Reviewed by Yury Semikhatsky. |
|
6067 |
|
6068 WebInspector: Next iteration of Inspector code generator. |
|
6069 The InspectorFrontend2 was replaced by slightly modified version of |
|
6070 InspectorBackend file (Inspector.idl). At the end all the interface |
|
6071 between WebInspector and inspected page will be specified by this file |
|
6072 and generated by CodeGeneratorInspector (InspectorFrontend.cpp, |
|
6073 InspectorBackend.cpp and InspectorBackend.js). |
|
6074 https://bugs.webkit.org/show_bug.cgi?id=42104 |
|
6075 |
|
6076 * DerivedSources.make: |
|
6077 * GNUmakefile.am: |
|
6078 * WebCore.gyp/WebCore.gyp: |
|
6079 * WebCore.gyp/scripts/rule_binding.py: |
|
6080 * WebCore.gypi: |
|
6081 * WebCore.pri: |
|
6082 * WebCore.xcodeproj/project.pbxproj: |
|
6083 * bindings/scripts/IDLParser.pm: |
|
6084 * bindings/scripts/IDLStructure.pm: |
|
6085 * bindings/scripts/generate-bindings.pl: |
|
6086 * inspector/CodeGeneratorInspector.pm: |
|
6087 * inspector/Inspector.idl: Added. |
|
6088 * inspector/InspectorCSSStore.cpp: |
|
6089 (WebCore::InspectorCSSStore::inspectorStyleSheet): |
|
6090 * inspector/InspectorController.cpp: |
|
6091 (WebCore::InspectorController::connectFrontend): |
|
6092 (WebCore::InspectorController::startTimelineProfiler): |
|
6093 * inspector/InspectorController.h: |
|
6094 (WebCore::InspectorController::remoteInspectorFrontend): |
|
6095 * inspector/InspectorDOMAgent.cpp: |
|
6096 (WebCore::InspectorDOMAgent::InspectorDOMAgent): |
|
6097 * inspector/InspectorDOMAgent.h: |
|
6098 (WebCore::InspectorDOMAgent::create): |
|
6099 * inspector/InspectorFrontend2.idl: Removed. |
|
6100 * inspector/InspectorTimelineAgent.cpp: |
|
6101 (WebCore::InspectorTimelineAgent::InspectorTimelineAgent): |
|
6102 (WebCore::InspectorTimelineAgent::resetFrontendProxyObject): |
|
6103 * inspector/InspectorTimelineAgent.h: |
|
6104 |
|
6105 2010-07-12 Steve Block <steveblock@google.com> |
|
6106 |
|
6107 Reviewed by Jeremy Orlow. |
|
6108 |
|
6109 DeviceOrientationEvent should use optional properties |
|
6110 https://bugs.webkit.org/show_bug.cgi?id=41607 |
|
6111 |
|
6112 This change adds a new DeviceOrientation class which takes care of which of the |
|
6113 optional properties are present. DeviceOrientationEvent owns an instance of |
|
6114 DeviceOrientation, rather than owning the properties directly. |
|
6115 DeviceOrientationEvent now requires custom bindings. |
|
6116 |
|
6117 Test: fast/dom/DeviceOrientation/optional-event-properties.html |
|
6118 |
|
6119 * Android.mk: |
|
6120 * Android.jscbindings.mk: |
|
6121 * Android.v8bindings.mk: |
|
6122 * CMakeLists.txt: |
|
6123 * GNUmakefile.am: |
|
6124 * WebCore.gypi: |
|
6125 * WebCore.pro: |
|
6126 * WebCore.vcproj/WebCore.vcproj: |
|
6127 * WebCore.xcodeproj/project.pbxproj: |
|
6128 * bindings/js/JSBindingsAllInOne.cpp: |
|
6129 * bindings/js/JSDeviceOrientationEventCustom.cpp: Added. |
|
6130 (WebCore::JSDeviceOrientationEvent::alpha): |
|
6131 (WebCore::JSDeviceOrientationEvent::beta): |
|
6132 (WebCore::JSDeviceOrientationEvent::gamma): |
|
6133 (WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent): |
|
6134 * bindings/v8/custom/V8DeviceOrientationEventCustom.cpp: Added. |
|
6135 (WebCore::V8DeviceOrientationEvent::alphaAccessorGetter): |
|
6136 (WebCore::V8DeviceOrientationEvent::betaAccessorGetter): |
|
6137 (WebCore::V8DeviceOrientationEvent::gammaAccessorGetter): |
|
6138 (WebCore::V8DeviceOrientationEvent::initDeviceOrientationEventCallback): |
|
6139 * dom/DeviceOrientation.cpp: Added. |
|
6140 * dom/DeviceOrientation.h: Added. |
|
6141 (WebCore::DeviceOrientation::create): |
|
6142 (WebCore::DeviceOrientation::canProvideAlpha): |
|
6143 (WebCore::DeviceOrientation::alpha): |
|
6144 (WebCore::DeviceOrientation::canProvideBeta): |
|
6145 (WebCore::DeviceOrientation::beta): |
|
6146 (WebCore::DeviceOrientation::canProvideGamma): |
|
6147 (WebCore::DeviceOrientation::gamma): |
|
6148 (WebCore::DeviceOrientation::DeviceOrientation): |
|
6149 * dom/DeviceOrientationEvent.cpp: |
|
6150 (WebCore::DeviceOrientationEvent::DeviceOrientationEvent): |
|
6151 (WebCore::DeviceOrientationEvent::initDeviceOrientationEvent): |
|
6152 * dom/DeviceOrientationEvent.h: |
|
6153 (WebCore::DeviceOrientationEvent::create): |
|
6154 (WebCore::DeviceOrientationEvent::orientation): |
|
6155 * dom/DeviceOrientationEvent.idl: |
|
6156 |
|
6157 2010-07-13 Andreas Kling <andreas.kling@nokia.com> |
|
6158 |
|
6159 Reviewed by Antti Koivisto. |
|
6160 |
|
6161 CSS3 background: Number of layers should be determined by background-image element count |
|
6162 https://bugs.webkit.org/show_bug.cgi?id=41201 |
|
6163 |
|
6164 Change FillLayer culling logic to discard all layers |
|
6165 after the first one without an image set. |
|
6166 |
|
6167 Manual test: css3-background-layer-count.html |
|
6168 |
|
6169 * manual-tests/css3-background-layer-count.html: Added. |
|
6170 * rendering/style/FillLayer.cpp: |
|
6171 (WebCore::FillLayer::cullEmptyLayers): |
|
6172 |
|
6173 2010-07-07 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> |
|
6174 |
|
6175 Reviewed by Darin Adler. |
|
6176 |
|
6177 Prevent assertion/duplicate loads for non-deferred subtitute-data loads |
|
6178 |
|
6179 https://bugs.webkit.org/show_bug.cgi?id=30879 |
|
6180 |
|
6181 MainResourceLoader uses the member m_initialRequest to store requests for future |
|
6182 deferred loads. When doing the actual load in handleDataLoadNow(), we therefore |
|
6183 have to clear this request so that subsequent entries into the loader will not |
|
6184 start yet another load. |
|
6185 |
|
6186 This can happen as a result of a PageGroupLoadDeferrer going out of scope when |
|
6187 returning from Chrome::runJavaScriptAlert(), which calls setDeferredLoading(false), |
|
6188 but only in the case of using both substitute-data and non-deferred main resource |
|
6189 load together. That's why two new DRT functions were added: |
|
6190 |
|
6191 * queueLoadHTMLString() |
|
6192 * setDeferMainResourceLoad() |
|
6193 |
|
6194 The change adds DRT hooks for Mac, Win and Qt for these two functions. For Mac |
|
6195 and Win the hook uses new SPI in WebDataSource. For Qt a new static member was |
|
6196 added to the FrameLoaderClientQt and accessed though DumpRenderTreeSupportQt. |
|
6197 |
|
6198 Test: fast/loader/non-deferred-substitute-load.html |
|
6199 |
|
6200 * loader/MainResourceLoader.cpp: |
|
6201 (WebCore::MainResourceLoader::handleDataLoadNow): |
|
6202 |
|
6203 2010-07-13 Yoshiki Hayashi <yhayashi@google.com> |
|
6204 |
|
6205 Reviewed by Kent Tamura. |
|
6206 |
|
6207 Make sure correct Nodes are passed to childrenChanged so that |
|
6208 :last-child gets properly applied when fragment is inserted. |
|
6209 https://bugs.webkit.org/show_bug.cgi?id=37944 |
|
6210 |
|
6211 Test: fast/css/last-child-innerhtml.html |
|
6212 |
|
6213 * dom/ContainerNode.cpp: |
|
6214 (WebCore::ContainerNode::replaceChild): |
|
6215 (WebCore::ContainerNode::appendChild): |
|
6216 |
|
6217 2010-07-13 Ryosuke Niwa <rniwa@webkit.org> |
|
6218 |
|
6219 Reviewed by Kent Tamura. |
|
6220 |
|
6221 InsertListCommand's modifyRange and doApply should be merged |
|
6222 https://bugs.webkit.org/show_bug.cgi?id=41403 |
|
6223 |
|
6224 Isolated the code in doApply to insert and remove lists for single paragraph into doApplyForSingleParagraph. |
|
6225 Merged the code in modifyRange into doApply and cleaned up. |
|
6226 |
|
6227 No test is added since this is a clean up. |
|
6228 |
|
6229 * editing/InsertListCommand.cpp: |
|
6230 (WebCore::InsertListCommand::InsertListCommand): m_forceCreateList is no longer initialized |
|
6231 (WebCore::InsertListCommand::doApply): Isolated the code to insert/remove lists in doApplyForSingleParagraph |
|
6232 (WebCore::InsertListCommand::doApplyForSingleParagraph): Insert/remove lists for single paragraph |
|
6233 * editing/InsertListCommand.h: Added doApplyForSingleParagraph and removed m_forceCreateList |
|
6234 |
|
6235 2010-07-12 Eric Seidel <eric@webkit.org> |
|
6236 |
|
6237 Reviewed by Adam Barth. |
|
6238 |
|
6239 Fix typo in "close the cell" which caused assertion |
|
6240 https://bugs.webkit.org/show_bug.cgi?id=42138 |
|
6241 |
|
6242 * html/HTMLTreeBuilder.cpp: |
|
6243 (WebCore::HTMLTreeBuilder::closeTheCell): |
|
6244 |
|
6245 2010-07-12 Eric Seidel <eric@webkit.org> |
|
6246 |
|
6247 Reviewed by Adam Barth. |
|
6248 |
|
6249 Fix line number handling in HTMLTreeBuilder to fix a zillion layout tests |
|
6250 https://bugs.webkit.org/show_bug.cgi?id=42143 |
|
6251 |
|
6252 Covered by a zillion layout tests. |
|
6253 |
|
6254 * html/HTMLTreeBuilder.cpp: |
|
6255 (WebCore::HTMLTreeBuilder::processEndTag): |
|
6256 (WebCore::HTMLTreeBuilder::processScriptStartTag): |
|
6257 |
|
6258 2010-07-12 Jay Civelli <jcivelli@chromium.org> |
|
6259 |
|
6260 Reviewed by Kent Tamura. |
|
6261 |
|
6262 Adding right aligned text called labels to PopupMenus. |
|
6263 https://bugs.webkit.org/show_bug.cgi?id=41964 |
|
6264 |
|
6265 * platform/PopupMenuClient.h: |
|
6266 * platform/chromium/PopupMenuChromium.cpp: |
|
6267 (WebCore::PopupListBox::paintRow): |
|
6268 * rendering/RenderMenuList.cpp: |
|
6269 (WebCore::RenderMenuList::itemLabel): |
|
6270 * rendering/RenderMenuList.h: |
|
6271 * rendering/RenderTextControlSingleLine.cpp: |
|
6272 (WebCore::RenderTextControlSingleLine::itemLabel): |
|
6273 * rendering/RenderTextControlSingleLine.h: |
|
6274 |
|
6275 2010-07-12 Mihnea Ovidenea <mihnea@adobe.com> |
|
6276 |
|
6277 Reviewed by Dirk Schulze. |
|
6278 |
|
6279 [Cairo] Incorrect Test for Text Fill |
|
6280 https://bugs.webkit.org/show_bug.cgi?id=42123 |
|
6281 |
|
6282 Correct test used for text shadow. It currently checks for |
|
6283 equality with cTextFill. However, this test fails if the |
|
6284 text drawing mode is set to 'cTextFill | cTextStroke'. Fix |
|
6285 is to modify the test to be like other Cairo uses of the |
|
6286 text drawing mode, and check for the cTextFill bit being |
|
6287 set, not for equality with the bit. |
|
6288 |
|
6289 * platform/graphics/cairo/FontCairo.cpp: |
|
6290 (WebCore::Font::drawGlyphs): |
|
6291 |
|
6292 2010-07-12 Eric Seidel <eric@webkit.org> |
|
6293 |
|
6294 Reviewed by Sam Weinig. |
|
6295 |
|
6296 Fix a typo in the adoption agency causing test failures |
|
6297 https://bugs.webkit.org/show_bug.cgi?id=42133 |
|
6298 |
|
6299 The new behavior actually differs from old webkit. |
|
6300 <p><b><p>TEST |
|
6301 was not bold in the old parser, but is bold now. |
|
6302 This matches Minefield and the HTML5 spec. |
|
6303 |
|
6304 Covered by two tests in html5lib/runner.html. |
|
6305 |
|
6306 * html/HTMLTreeBuilder.cpp: |
|
6307 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
6308 |
|
6309 2010-07-12 Pavel Feldman <pfeldman@chromium.org> |
|
6310 |
|
6311 Reviewed by Joseph Pecoraro. |
|
6312 |
|
6313 Web Inspector: provide starts and ends for network phases instead of duration. |
|
6314 |
|
6315 https://bugs.webkit.org/show_bug.cgi?id=42091 |
|
6316 |
|
6317 * inspector/InspectorResource.cpp: |
|
6318 (WebCore::InspectorResource::updateResponse): |
|
6319 (WebCore::InspectorResource::updateScriptObject): |
|
6320 (WebCore::InspectorResource::buildObjectForTiming): |
|
6321 * platform/network/ResourceLoadTiming.h: |
|
6322 (WebCore::ResourceLoadTiming::deepCopy): |
|
6323 (WebCore::ResourceLoadTiming::operator==): |
|
6324 (WebCore::ResourceLoadTiming::ResourceLoadTiming): |
|
6325 * platform/network/ResourceResponseBase.cpp: |
|
6326 (WebCore::ResourceResponseBase::ResourceResponseBase): |
|
6327 (WebCore::ResourceResponseBase::wasCached): |
|
6328 (WebCore::ResourceResponseBase::setWasCached): |
|
6329 * platform/network/ResourceResponseBase.h: |
|
6330 |
|
6331 2010-07-12 Adam Barth <abarth@webkit.org> |
|
6332 |
|
6333 Reviewed by Eric Seidel. |
|
6334 |
|
6335 HTML5 Parser: document.write after onload blows away document |
|
6336 https://bugs.webkit.org/show_bug.cgi?id=40745 |
|
6337 |
|
6338 Rather than blowing away the document when we get a document.write call |
|
6339 after the document is closed, we new ignore the write. This |
|
6340 technically violates the spec (which requires us to blow away the |
|
6341 document), but blowing away the document breaks too many web sites. |
|
6342 |
|
6343 Rather than this patch, we could go back to our old behavior (which was |
|
6344 to append the bytes just before EOF), but implementing this approach |
|
6345 (suggested by Henri) will let us gather data about whether his approach |
|
6346 is workable. |
|
6347 |
|
6348 See also: http://www.w3.org/Bugs/Public/show_bug.cgi?id=9767 |
|
6349 |
|
6350 * dom/Document.cpp: |
|
6351 (WebCore::Document::write): |
|
6352 * html/HTMLDocumentParser.cpp: |
|
6353 (WebCore::HTMLDocumentParser::insert): |
|
6354 |
|
6355 2010-07-12 Tony Gentilcore <tonyg@chromium.org> |
|
6356 |
|
6357 Reviewed by Oliver Hunt. |
|
6358 |
|
6359 Strip BOMs from source before passing to V8 |
|
6360 https://bugs.webkit.org/show_bug.cgi?id=42102 |
|
6361 |
|
6362 This extra copy may carry a performance penalty. We should investigate |
|
6363 whether this allows any simplification in v8/scanner.cc:SkipJavaScriptWhiteSpace(). |
|
6364 |
|
6365 No new tests because no new functionality. |
|
6366 |
|
6367 * bindings/v8/ScriptSourceCode.h: |
|
6368 (WebCore::ScriptSourceCode::ScriptSourceCode): |
|
6369 |
|
6370 2010-07-12 Gustavo Noronha Silva <gns@gnome.org> |
|
6371 |
|
6372 Unreviewed. make distcheck fix. |
|
6373 |
|
6374 * GNUmakefile.am: |
|
6375 |
|
6376 2010-07-12 Yuta Kitamura <yutak@chromium.org> |
|
6377 |
|
6378 Reviewed by Alexey Proskuryakov. |
|
6379 |
|
6380 Fix crash caused by unintentional deletion of worker bridge and channel. |
|
6381 |
|
6382 WebSocket: Crash caused by calling close() within onmessage handler |
|
6383 https://bugs.webkit.org/show_bug.cgi?id=41507 |
|
6384 |
|
6385 Test: websocket/tests/workers/close-in-onmessage-crash.html |
|
6386 |
|
6387 * websockets/WebSocket.cpp: |
|
6388 (WebCore::WebSocket::close): bufferedAmount() may call WebSocket::didClose(), |
|
6389 which causes m_channel to get freed. |
|
6390 * websockets/WorkerThreadableWebSocketChannel.cpp: |
|
6391 (WebCore::WorkerThreadableWebSocketChannel::Bridge::send): Add reference to |
|
6392 the bridge because waitForMethodCompletion() may dereference the bridge. |
|
6393 (WebCore::WorkerThreadableWebSocketChannel::Bridge::bufferedAmount): Ditto. |
|
6394 (WebCore::WorkerThreadableWebSocketChannel::Bridge::waitForMethodCompletion): |
|
6395 The root cause is a call to WorkerRunLoop::runInMode in this function. |
|
6396 It may call WebSocket::didClose() even inside WebSocket::close(), which frees |
|
6397 everything including the worker bridge and the channel. |
|
6398 |
|
6399 2010-07-12 Adam Barth <abarth@webkit.org> |
|
6400 |
|
6401 Reviewed by Eric Seidel. |
|
6402 |
|
6403 REGRESSION (HTML5 parser?): Impossible to get past the CAPTCHA on postcode.royalmail.com |
|
6404 https://bugs.webkit.org/show_bug.cgi?id=41797 |
|
6405 |
|
6406 Once we resume parsing after script execution, we want to clear the |
|
6407 preload scanner so we don't scan any bytes it might have accumulated. |
|
6408 |
|
6409 Test: http/tests/loading/preload-slow-loading.php |
|
6410 |
|
6411 * html/HTMLDocumentParser.cpp: |
|
6412 (WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution): |
|
6413 |
|
6414 2010-07-12 Albert J. Wong <ajwong@chromium.org> |
|
6415 |
|
6416 Reviewed by Jian Li. |
|
6417 |
|
6418 Adding directional property enums back into |
|
6419 CSSComputedStyleDeclaration::getPropertyCSSValue(). |
|
6420 |
|
6421 https://bugs.webkit.org/show_bug.cgi?id=42122 |
|
6422 |
|
6423 The four directional -webkit- properties -- CSSPropertyWebkitMarginEnd, |
|
6424 CSSPropertyWebkitMarginStart, CSSPropertyWebkitPaddingEnd, and |
|
6425 CSSPropertyWebkitPaddingStart -- are resolved into other css |
|
6426 properties before the swtich statement via a call to |
|
6427 CSSProperty::resolveDirectionAwareProperty(). Thus, they are never |
|
6428 seen by the switch statement. However, if you leave out a potential |
|
6429 enum value from the switch, gcc will generate a warning if -Wall is |
|
6430 specified. This warning breaks the Chromium build. To avoid this, |
|
6431 we add in the enum values and ASSERT_NOT_REACHED() if they are hit. |
|
6432 |
|
6433 |
|
6434 * css/CSSComputedStyleDeclaration.cpp: |
|
6435 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): |
|
6436 |
|
6437 2010-07-12 Chris Fleizach <cfleizach@apple.com> |
|
6438 |
|
6439 Reviewed by Darin Adler. |
|
6440 |
|
6441 AX converts AtomicStrings to .string() more than needed |
|
6442 https://bugs.webkit.org/show_bug.cgi?id=42056 |
|
6443 |
|
6444 No behavior change. No new tests. |
|
6445 |
|
6446 * accessibility/AccessibilityRenderObject.cpp: |
|
6447 (WebCore::AccessibilityRenderObject::isPressed): |
|
6448 (WebCore::siblingWithAriaRole): |
|
6449 (WebCore::AccessibilityRenderObject::intValue): |
|
6450 (WebCore::AccessibilityRenderObject::accessibilityDescription): |
|
6451 (WebCore::AccessibilityRenderObject::hasTextAlternative): |
|
6452 (WebCore::AccessibilityRenderObject::supportsARIAFlowTo): |
|
6453 (WebCore::AccessibilityRenderObject::supportsARIADropping): |
|
6454 (WebCore::AccessibilityRenderObject::supportsARIADragging): |
|
6455 (WebCore::AccessibilityRenderObject::determineARIADropEffects): |
|
6456 (WebCore::AccessibilityRenderObject::isExpanded): |
|
6457 (WebCore::AccessibilityRenderObject::isRequired): |
|
6458 (WebCore::AccessibilityRenderObject::isSelected): |
|
6459 (WebCore::AccessibilityRenderObject::supportsARIAOwns): |
|
6460 (WebCore::AccessibilityRenderObject::isEnabled): |
|
6461 (WebCore::AccessibilityRenderObject::activeDescendant): |
|
6462 (WebCore::AccessibilityRenderObject::determineAriaRoleAttribute): |
|
6463 (WebCore::AccessibilityRenderObject::orientation): |
|
6464 (WebCore::AccessibilityRenderObject::canSetExpandedAttribute): |
|
6465 (WebCore::AccessibilityRenderObject::canSetValueAttribute): |
|
6466 |
|
6467 2010-07-12 Tony Chang <tony@chromium.org> |
|
6468 |
|
6469 Reviewed by David Hyatt. |
|
6470 |
|
6471 crash in FrameView::detachCustomScrollbars |
|
6472 https://bugs.webkit.org/show_bug.cgi?id=41196 |
|
6473 |
|
6474 Test: scrollbars/hidden-iframe-scrollbar-crash.html |
|
6475 |
|
6476 * page/FrameView.cpp: |
|
6477 (WebCore::FrameView::detachCustomScrollbars): |
|
6478 |
|
6479 2010-07-12 Eric Seidel <eric@webkit.org> |
|
6480 |
|
6481 Reviewed by Adam Barth. |
|
6482 |
|
6483 HTML tags should break out of foreign content |
|
6484 https://bugs.webkit.org/show_bug.cgi?id=42106 |
|
6485 |
|
6486 Implement another paragraph of the spec to pass another |
|
6487 bunch of foreign content tests. |
|
6488 |
|
6489 This fixes a bunch of tests in html5lib/runner.html. |
|
6490 After this change we only have 4 remaining foreign content failures. |
|
6491 |
|
6492 * html/HTMLTreeBuilder.cpp: |
|
6493 (WebCore::HTMLTreeBuilder::processStartTag): |
|
6494 |
|
6495 2010-07-12 Zhenyao Mo <zmo@google.com> |
|
6496 |
|
6497 Reviewed by Darin Fisher. |
|
6498 |
|
6499 Bring bufferData and clear to GLES2 compliant |
|
6500 https://bugs.webkit.org/show_bug.cgi?id=41574 |
|
6501 |
|
6502 * html/canvas/WebGLRenderingContext.cpp: |
|
6503 (WebCore::WebGLRenderingContext::bufferData): Call validateBufferDataUsage(). |
|
6504 (WebCore::WebGLRenderingContext::clear): Check mask. |
|
6505 (WebCore::WebGLRenderingContext::validateBufferDataUsage): Check usage. |
|
6506 * html/canvas/WebGLRenderingContext.h: Declare validateBufferDataUsage. |
|
6507 |
|
6508 2010-07-12 Eric Seidel <eric@webkit.org> |
|
6509 |
|
6510 Unreviewed. Attempt to fix Chromium Windows build. |
|
6511 |
|
6512 Always generate SVGNames and MathMLNames for all ports (to support HTML5) |
|
6513 https://bugs.webkit.org/show_bug.cgi?id=42050 |
|
6514 |
|
6515 Another way to fix this might be to mark all the .in files with |
|
6516 svn:eol=native. But fixing the perl to be more robust against |
|
6517 stray whitespace seems to be a better long-term fix. |
|
6518 |
|
6519 No functional change, thus no tests. |
|
6520 |
|
6521 * bindings/scripts/InFilesParser.pm: |
|
6522 |
|
6523 2010-07-12 Andreas Kling <andreas.kling@nokia.com> |
|
6524 |
|
6525 Reviewed by Kenneth Rohde Christiansen. |
|
6526 |
|
6527 Remove dependency on PlatformString.h in Color.h |
|
6528 https://bugs.webkit.org/show_bug.cgi?id=42109 |
|
6529 |
|
6530 * platform/graphics/Color.cpp: |
|
6531 * platform/graphics/Color.h: |
|
6532 |
|
6533 2010-07-12 Eric Seidel <eric@webkit.org> |
|
6534 |
|
6535 Unreviewed, build fix. |
|
6536 |
|
6537 Update HTMLTreeBuilder now that MathMLNames is always generated |
|
6538 https://bugs.webkit.org/show_bug.cgi?id=42059 |
|
6539 |
|
6540 Fix the Windows project file to build MathMLNames.*. |
|
6541 Also added MathMLElementFactory.* which is a NOOP now, but will |
|
6542 prevent folks from breaking the build when they turn MathML on. |
|
6543 |
|
6544 * WebCore.vcproj/WebCore.vcproj: |
|
6545 |
|
6546 2010-07-12 Eric Carlson <eric.carlson@apple.com> |
|
6547 |
|
6548 Reviewed by Darin Adler. |
|
6549 |
|
6550 Update media element's handling of empty 'src' attribute |
|
6551 https://bugs.webkit.org/show_bug.cgi?id=42001 |
|
6552 |
|
6553 * html/HTMLMediaElement.cpp: |
|
6554 (WebCore::HTMLMediaElement::src): Return getNonEmptyURLAttribute(). |
|
6555 (WebCore::HTMLMediaElement::selectMediaResource): Call noneSupported() for empty 'src'. |
|
6556 (WebCore::HTMLMediaElement::selectNextSourceChild): Use getNonEmptyURLAttribute() to convert |
|
6557 'src' to URL instead of document()->completeURL(). Don't consider a <source> with an empty 'src'. |
|
6558 |
|
6559 * html/HTMLMediaElement.idl: Add 'NonEmpty' option to 'src' attribute. |
|
6560 |
|
6561 * html/HTMLSourceElement.cpp: |
|
6562 (WebCore::HTMLSourceElement::src): Return getNonEmptyURLAttribute(). |
|
6563 (WebCore::HTMLSourceElement::isURLAttribute): New, 'src' is a URL attribute. |
|
6564 * html/HTMLSourceElement.h: |
|
6565 |
|
6566 * html/HTMLSourceElement.idl: Add 'NonEmpty' option to 'src' attribute. |
|
6567 |
|
6568 * html/HTMLVideoElement.cpp: |
|
6569 (WebCore::HTMLVideoElement::parseMappedAttribute): Use getNonEmptyURLAttribute() to convert |
|
6570 'poster' to URL instead of document()->completeURL(). |
|
6571 |
|
6572 * html/HTMLVideoElement.idl: Add 'NonEmpty' option to 'poster' attribute. |
|
6573 |
|
6574 2010-07-12 Martin Robinson <mrobinson@igalia.com> |
|
6575 |
|
6576 Reviewed by Xan Lopez. |
|
6577 |
|
6578 [GTK] make dist is broken because of missing headers and other miscellaneous reasons |
|
6579 https://bugs.webkit.org/show_bug.cgi?id=42107 |
|
6580 |
|
6581 * GNUmakefile.am: Remove InspectorFrontend2.idl from the list of IDL files, so |
|
6582 that it is not built into libWebCoreJS. Add missing header to the source list. |
|
6583 Make sure to distribute the new file: WebCore/inspector/CodeGeneratorInspector.pm. |
|
6584 |
|
6585 2010-07-12 Eric Seidel <eric@webkit.org> |
|
6586 |
|
6587 Reviewed by Adam Barth. |
|
6588 |
|
6589 HTMLTreeBuilder needs to support mixing SVG and MathML content |
|
6590 https://bugs.webkit.org/show_bug.cgi?id=42096 |
|
6591 |
|
6592 This is just a direct transcription of another paragraph of the |
|
6593 HTML5 spec. |
|
6594 |
|
6595 This improved a couple results in html5lib/runner.html, but more |
|
6596 work to do yet to pass all the foreign content tests. |
|
6597 |
|
6598 * html/HTMLTreeBuilder.cpp: |
|
6599 (WebCore::HTMLTreeBuilder::processStartTag): |
|
6600 (WebCore::HTMLTreeBuilder::processEndTag): |
|
6601 (WebCore::HTMLTreeBuilder::processUsingSecondaryInsertionModeAndAdjustInsertionMode): |
|
6602 * html/HTMLTreeBuilder.h: |
|
6603 * mathml/mathtags.in: |
|
6604 |
|
6605 2010-07-12 Eric Seidel <eric@webkit.org> |
|
6606 |
|
6607 Reviewed by Adam Barth. |
|
6608 |
|
6609 Update HTMLTreeBuilder now that MathMLNames is always generated |
|
6610 https://bugs.webkit.org/show_bug.cgi?id=42059 |
|
6611 |
|
6612 Fix the HTMLTreeBuilder MathML code path to compile and remove |
|
6613 the MathML and SVG guards now that SVGNames and MathMLNames are |
|
6614 always compiled into ever port after: |
|
6615 https://bugs.webkit.org/show_bug.cgi?id=42050 |
|
6616 |
|
6617 This fixed a whole bunch of libhtml5 tests now that we have the |
|
6618 mathml code paths enabled. |
|
6619 |
|
6620 * html/HTMLTreeBuilder.cpp: |
|
6621 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
6622 (WebCore::HTMLTreeBuilder::processStartTag): |
|
6623 (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately): |
|
6624 (WebCore::HTMLTreeBuilder::processEndTag): |
|
6625 * page/Frame.cpp: |
|
6626 (WebCore::Frame::Frame): |
|
6627 - Always init SVGNames and MathML names. |
|
6628 |
|
6629 2010-07-12 Simon Fraser <simon.fraser@apple.com> |
|
6630 |
|
6631 Reviewed by Dan Bernstein. |
|
6632 |
|
6633 Don't go into compositing mode for 0x0 plugins |
|
6634 https://bugs.webkit.org/show_bug.cgi?id=34009 |
|
6635 |
|
6636 Don't use compositing for small (0-height or width, or 1x1) plugins, or iframes whose |
|
6637 height or width is zero. |
|
6638 |
|
6639 Previously we made all compositing decisions inside styleChanged(). However, |
|
6640 now that plugin and iframe compositing behavior depends on renderer size, we have |
|
6641 to wait until layout before deciding whether to composite these. This behavior |
|
6642 change is controlled by the m_compositingDependsOnGeometry flag. When set, |
|
6643 updateCompositingLayers() always does a hierarchy update. |
|
6644 |
|
6645 Tests: compositing/iframes/iframe-size-from-zero.html |
|
6646 compositing/iframes/iframe-size-to-zero.html |
|
6647 compositing/plugins/1x1-composited-plugin.html |
|
6648 compositing/plugins/large-to-small-composited-plugin.html |
|
6649 compositing/plugins/small-to-large-composited-plugin.html |
|
6650 |
|
6651 * page/FrameView.cpp: |
|
6652 (WebCore::FrameView::updateCompositingLayers): No longer bail if usesCompositing() is false; we |
|
6653 have to always enter updateCompositingLayers(). |
|
6654 (WebCore::FrameView::repaintFixedElementsAfterScrolling): Ditto |
|
6655 (WebCore::FrameView::enterCompositingMode): Remove bogus return of a void. |
|
6656 |
|
6657 * rendering/RenderLayerCompositor.h: Add m_compositingDependsOnGeometry. |
|
6658 * rendering/RenderLayerCompositor.cpp: |
|
6659 (WebCore::RenderLayerCompositor::RenderLayerCompositor): Initialize m_compositingDependsOnGeometry to false. |
|
6660 (WebCore::RenderLayerCompositor::updateCompositingLayers): If m_compositingDependsOnGeometry is true, |
|
6661 we always need to run through the layer hierarchy looking for things which need to be composited, even if |
|
6662 we're not (yet) in compositing mode. |
|
6663 |
|
6664 (WebCore::RenderLayerCompositor::computeCompositingRequirements): Because we can enter compositing mode |
|
6665 on the fly inside updateCompositingLayers() now, the state of willBeComposited needs to be updated |
|
6666 when processing the root layer, for the case where the compositing mode changes. |
|
6667 |
|
6668 (WebCore::RenderLayerCompositor::requiresCompositingForPlugin): Set the m_compositingDependsOnGeometry |
|
6669 flag if we see a potentially-composited plugin. Once we have layout information, only composite the plugin |
|
6670 if height * width > 1. |
|
6671 |
|
6672 (WebCore::RenderLayerCompositor::requiresCompositingForIFrame): Set the m_compositingDependsOnGeometry |
|
6673 flag if we see a potentially-composited iframe. Once we have layout information, only composite the plugin |
|
6674 if height or width is greater than zero. |
|
6675 |
|
6676 2010-07-12 Simon Fraser <simon.fraser@apple.com> |
|
6677 |
|
6678 Reviewed by Dan Bernstein. |
|
6679 |
|
6680 Need to do a layout when RenderLayers come and go because of compositing |
|
6681 https://bugs.webkit.org/show_bug.cgi?id=42108 |
|
6682 |
|
6683 If we create or destroy RenderLayers for reasons other than style changes |
|
6684 (e.g. because of composited iframes or plugins), then we need to ensure |
|
6685 that we do a layout. |
|
6686 |
|
6687 Test: compositing/iframes/layout-on-compositing-change.html |
|
6688 |
|
6689 * rendering/RenderObject.cpp: |
|
6690 (WebCore::RenderObject::adjustStyleDifference): |
|
6691 |
|
6692 2010-07-11 Eric Seidel <eric@webkit.org> |
|
6693 |
|
6694 Reviewed by Darin Adler. |
|
6695 |
|
6696 Always generate SVGNames and MathMLNames for all ports (to support HTML5) |
|
6697 https://bugs.webkit.org/show_bug.cgi?id=42050 |
|
6698 |
|
6699 Historically, FOONames has only been generate when ENABLE(FOO) is defined. |
|
6700 However, for HTML5 parser support, we need to have access to the SVG |
|
6701 and MathML tag names regardless of whether we the engine is configured |
|
6702 to render SVG or MathML content. |
|
6703 |
|
6704 This change enables generation of SVGNames and MathMLNames on all ports and |
|
6705 makes it so that ports can include FOOElementFactory.* regardless of whether |
|
6706 ENABLE(FOO) is defined (and have it do the right thing). |
|
6707 |
|
6708 No functional change (yet) so no tests. |
|
6709 |
|
6710 * DerivedSources.make: |
|
6711 * GNUmakefile.am: |
|
6712 * WebCore.gyp/WebCore.gyp: |
|
6713 * WebCore.pri: |
|
6714 * dom/make_names.pl: |
|
6715 |
|
6716 2010-07-10 Eric Seidel <eric@webkit.org> |
|
6717 |
|
6718 Reviewed by Adam Barth. |
|
6719 |
|
6720 make_names.pl should always generate all names in Names.* files |
|
6721 https://bugs.webkit.org/show_bug.cgi?id=42023 |
|
6722 |
|
6723 Only the *ElementFactory files need to have conditional contents |
|
6724 based on enabled features. WebCore should always have all known |
|
6725 names for SVG, MathML, XML, XLink, HTML, etc. generated in the |
|
6726 various *Names files, even if features are disabled. |
|
6727 |
|
6728 make_names.pl is kinda a big hack at this point. I tried to clean |
|
6729 up a little as I went. The way I made *Names include all names was to |
|
6730 read the .in files twice, once using the preprocessor and once without. |
|
6731 |
|
6732 * dom/make_names.pl: |
|
6733 |
|
6734 2010-07-12 Andreas Kling <andreas.kling@nokia.com> |
|
6735 |
|
6736 Reviewed by Oliver Hunt. |
|
6737 |
|
6738 Canvas: Move fillRect() save/restore into GraphicsContext implementations |
|
6739 https://bugs.webkit.org/show_bug.cgi?id=42088 |
|
6740 |
|
6741 Saving the platform painter state is an expensive operation, |
|
6742 so don't do it in fillRect() for platforms that don't need it. (CG, Qt) |
|
6743 |
|
6744 * html/canvas/CanvasRenderingContext2D.cpp: |
|
6745 (WebCore::CanvasRenderingContext2D::fillRect): |
|
6746 * platform/graphics/cairo/GraphicsContextCairo.cpp: |
|
6747 (WebCore::GraphicsContext::fillRect): |
|
6748 * platform/graphics/skia/GraphicsContextSkia.cpp: |
|
6749 (WebCore::GraphicsContext::fillRect): |
|
6750 * platform/graphics/wince/GraphicsContextWince.cpp: |
|
6751 (WebCore::GraphicsContext::fillRect): |
|
6752 * platform/graphics/wx/GraphicsContextWx.cpp: |
|
6753 (WebCore::GraphicsContext::fillRect): |
|
6754 |
|
6755 2010-07-12 Nate Chapin <japhet@chromium.org> |
|
6756 |
|
6757 Reviewed by Darin Fisher. |
|
6758 |
|
6759 Ensure that a cache policy that forces validation is cleared once |
|
6760 the load event is fired, rather than only doing so at the next |
|
6761 navigation. This leads to a lot of unnecessary load on AJAX-y |
|
6762 websites. |
|
6763 |
|
6764 https://bugs.webkit.org/show_bug.cgi?id=41813 |
|
6765 |
|
6766 Test: http/tests/xmlhttprequest/cache-headers-after-reload.html |
|
6767 |
|
6768 * loader/FrameLoader.cpp: |
|
6769 (WebCore::FrameLoader::handledOnloadEvents): Reset m_loadType to FrameLoadTypeStandard. |
|
6770 (WebCore::FrameLoader::addExtraFieldsToRequest): Only respect the original request's cache policy if the |
|
6771 DocumentLoader is still loading, and handle the other cache policy settings that were scattered around the loader. |
|
6772 (WebCore::FrameLoader::loadResourceSynchronously): Merge cachePolicy setting into FrameLoader::addExtraFieldsToRequest. |
|
6773 * loader/SubresourceLoader.cpp: |
|
6774 (WebCore::SubresourceLoader::create): Merge cachePolicy setting into FrameLoader::addExtraFieldsToRequest. |
|
6775 |
|
6776 2010-07-12 Andreas Kling <andreas.kling@nokia.com> |
|
6777 |
|
6778 Reviewed by Oliver Hunt. |
|
6779 |
|
6780 CSS color parsing optimizations |
|
6781 https://bugs.webkit.org/show_bug.cgi?id=42073 |
|
6782 |
|
6783 - Avoid instantiating a CSSParser in parseColor() unless necessary. |
|
6784 - Fixed hex color fast-path to support strings starting with '#'. |
|
6785 - Avoid allocating a new string for the value part of a '#' color. |
|
6786 |
|
6787 * css/CSSParser.cpp: |
|
6788 (WebCore::CSSParser::parseColor): |
|
6789 * platform/graphics/Color.cpp: |
|
6790 (WebCore::Color::parseHexColor): |
|
6791 (WebCore::Color::Color): |
|
6792 * platform/graphics/Color.h: |
|
6793 |
|
6794 2010-07-09 Alexey Proskuryakov <ap@apple.com> |
|
6795 |
|
6796 Reviewed by Darin Adler. |
|
6797 |
|
6798 https://bugs.webkit.org/show_bug.cgi?id=13075 |
|
6799 XMLHttpRequest with failed authentication should set status to 401 |
|
6800 |
|
6801 https://bugs.webkit.org/show_bug.cgi?id=6871 |
|
6802 <rdar://problem/3363403> 401 error page is never shown |
|
6803 |
|
6804 * platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::receivedCredential): |
|
6805 Added a comment explaining why we handle empty credentials differently here. |
|
6806 |
|
6807 * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::ResourceHandle::receivedCredential): |
|
6808 Bring this code in sync with Mac. |
|
6809 |
|
6810 2010-07-12 Anders Carlsson <andersca@apple.com> |
|
6811 |
|
6812 Reviewed by Adam Roben. |
|
6813 |
|
6814 Add a PluginController class, use it for invalidation and getting the user agent |
|
6815 https://bugs.webkit.org/show_bug.cgi?id=42084 |
|
6816 |
|
6817 * WebCore.exp.in: |
|
6818 Export Widget::convertToContainingWindow. |
|
6819 |
|
6820 2010-07-12 Andreas Kling <andreas.kling@nokia.com> |
|
6821 |
|
6822 Reviewed by Simon Hausmann. |
|
6823 |
|
6824 [Qt] Dragging within webkit with a drag created via Javascript ends up misinterpreting the data |
|
6825 https://bugs.webkit.org/show_bug.cgi?id=41457 |
|
6826 |
|
6827 Treat non-special-cased mime-types as Unicode strings in ClipboardQt's getData() |
|
6828 Fixes corruption when retrieving data that was set with anything other than text/plain |
|
6829 |
|
6830 Also use QMimeData::setHtml() when applicable to be consistent with PasteboardQt. |
|
6831 |
|
6832 * platform/qt/ClipboardQt.cpp: |
|
6833 (WebCore::isHtmlMimeType): |
|
6834 (WebCore::ClipboardQt::getData): |
|
6835 (WebCore::ClipboardQt::setData): |
|
6836 |
|
6837 2010-07-12 Steve Block <steveblock@google.com> |
|
6838 |
|
6839 Reviewed by Jeremy Orlow. |
|
6840 |
|
6841 add ANDROID to STORE_FONT_CUSTOM_PLATFORM_DATA |
|
6842 https://bugs.webkit.org/show_bug.cgi?id=32273 |
|
6843 |
|
6844 Tested by existing tests, just adding ANDROID to the list of platforms that use this feature. |
|
6845 |
|
6846 * loader/CachedFont.cpp: |
|
6847 |
|
6848 2010-07-12 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
6849 |
|
6850 Unreviewed. |
|
6851 |
|
6852 [EFL] Move ScriptConcotrollerEfl.cpp from CMakeLists.txt to |
|
6853 CMakeListsEfl.txt. |
|
6854 |
|
6855 * CMakeLists.txt: |
|
6856 * CMakeListsEfl.txt: |
|
6857 |
|
6858 2010-07-12 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
6859 |
|
6860 Unreviewed build fix after r60050. |
|
6861 |
|
6862 * CMakeLists.txt: Add WebCore/bindings to the include path. |
|
6863 |
|
6864 2010-07-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> |
|
6865 |
|
6866 Reviewed by Xan Lopez. |
|
6867 |
|
6868 [GTK] Crashes when going back with page cache in unknown circunstances |
|
6869 https://bugs.webkit.org/show_bug.cgi?id=41710 |
|
6870 |
|
6871 Could not yet find a way to reproduce this in a layout test. The |
|
6872 issue is document being NULL, so this NULL-check should be enough |
|
6873 to get rid of the crash. We are working on trying to find a better |
|
6874 solution for these null cases, like attaching the document earlier |
|
6875 when openning a cached page. |
|
6876 |
|
6877 * page/EventHandler.cpp: |
|
6878 (WebCore::EventHandler::sendScrollEvent): |
|
6879 |
|
6880 2010-07-12 Alexander Pavlov <apavlov@chromium.org> |
|
6881 |
|
6882 Reviewed by Yury Semikhatsky. |
|
6883 |
|
6884 [Chromium] Crash when stepping on a breakpoint while debugging Web Inspector |
|
6885 https://bugs.webkit.org/show_bug.cgi?id=41958 |
|
6886 |
|
6887 * page/PageGroupLoadDeferrer.cpp: |
|
6888 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): |
|
6889 * page/PageGroupLoadDeferrer.h: |
|
6890 |
|
6891 2010-07-12 François Sausset <sausset@gmail.com> |
|
6892 |
|
6893 Reviewed by Kenneth Rohde Christiansen. |
|
6894 |
|
6895 Make the mathsize MathML attribute handle values in em, px, pt,... |
|
6896 https://bugs.webkit.org/show_bug.cgi?id=42067 |
|
6897 |
|
6898 Test: mathml/presentation/attributes.xhtml |
|
6899 |
|
6900 * css/mathml.css: |
|
6901 (math[mathsize="small"], mstyle[mathsize="small"], mo[mathsize="small"], mn[mathsize="small"], mi[mathsize="small"], mtext[mathsize="small"], mspace[mathsize="small"], ms[mathsize="small"]): |
|
6902 (math[mathsize="normal"], mstyle[mathsize="normal"], mo[mathsize="normal"], mn[mathsize="normal"], mi[mathsize="normal"], mtext[mathsize="normal"], mspace[mathsize="normal"], ms[mathsize="normal"]): |
|
6903 (math[mathsize="big"], mstyle[mathsize="big"], mo[mathsize="big"], mn[mathsize="big"], mi[mathsize="big"], mtext[mathsize="big"], mspace[mathsize="big"], ms[mathsize="big"]): |
|
6904 * mathml/MathMLElement.cpp: |
|
6905 (WebCore::MathMLElement::parseMappedAttribute): |
|
6906 |
|
6907 2010-07-12 Xan Lopez <xlopez@igalia.com> |
|
6908 |
|
6909 Reviewed by Gustavo Noronha. |
|
6910 |
|
6911 Fix compilation with sealed GTK+. |
|
6912 |
|
6913 * platform/gtk/GtkVersioning.h: |
|
6914 * platform/gtk/PasteboardHelper.cpp: |
|
6915 (WebCore::PasteboardHelper::fillDataObjectFromDropData): |
|
6916 |
|
6917 2010-07-12 François Sausset <sausset@gmail.com> |
|
6918 |
|
6919 Reviewed by Kenneth Rohde Christiansen. |
|
6920 |
|
6921 Fix a bug preventing msqrt and mfrac to use style color to draw themselves. |
|
6922 In mfrac, the fraction bar is now using the color defined by the element style instead of black. |
|
6923 In msqrt, the radical was always drawn in black due to a colorSpace problem. |
|
6924 https://bugs.webkit.org/show_bug.cgi?id=41889 |
|
6925 |
|
6926 Test: mathml/presentation/roots.xhtml |
|
6927 Test: mathml/presentation/fractions.xhtml |
|
6928 |
|
6929 * mathml/RenderMathMLFraction.cpp: |
|
6930 (WebCore::RenderMathMLFraction::paint): |
|
6931 * mathml/RenderMathMLSquareRoot.cpp: |
|
6932 (WebCore::RenderMathMLSquareRoot::paint): |
|
6933 |
|
6934 2010-07-12 Andreas Kling <andreas.kling@nokia.com> |
|
6935 |
|
6936 Reviewed by Antti Koivisto. |
|
6937 |
|
6938 Canvas: arc() with startAngle == endAngle shouldn't add to the path |
|
6939 https://bugs.webkit.org/show_bug.cgi?id=41420 |
|
6940 |
|
6941 Spec link: |
|
6942 http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-stroke |
|
6943 |
|
6944 * html/canvas/CanvasRenderingContext2D.cpp: |
|
6945 (WebCore::CanvasRenderingContext2D::arc): |
|
6946 |
|
6947 2010-07-12 Shinichiro Hamaji <hamaji@chromium.org> |
|
6948 |
|
6949 Reviewed by Ojan Vafai. |
|
6950 |
|
6951 Update padding on Windows? |
|
6952 https://bugs.webkit.org/show_bug.cgi?id=38016 |
|
6953 |
|
6954 Remove internal padding and add 1px vertical padding for Windows. |
|
6955 |
|
6956 * css/themeWin.css: |
|
6957 (input[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button): |
|
6958 * rendering/RenderButton.cpp: |
|
6959 (WebCore::RenderButton::setupInnerStyle): |
|
6960 * rendering/RenderTheme.h: |
|
6961 * rendering/RenderThemeWin.cpp: |
|
6962 * rendering/RenderThemeWin.h: |
|
6963 * rendering/RenderThemeWince.cpp: |
|
6964 * rendering/RenderThemeWince.h: |
|
6965 |
|
6966 2010-07-12 Pavel Feldman <pfeldman@chromium.org> |
|
6967 |
|
6968 Not reviewed. Chromium tests fix. |
|
6969 |
|
6970 [Chromium, V8] r63057 regressed url tests. |
|
6971 |
|
6972 https://bugs.webkit.org/show_bug.cgi?id=42063 |
|
6973 |
|
6974 * bindings/scripts/CodeGeneratorV8.pm: |
|
6975 |
|
6976 2010-07-12 Steve Block <steveblock@google.com> |
|
6977 |
|
6978 Reviewed by Alexey Proskuryakov. |
|
6979 |
|
6980 XPath substring function does not correctly handle non-positive values for the position argument |
|
6981 https://bugs.webkit.org/show_bug.cgi?id=41913 |
|
6982 |
|
6983 This patch changes the behavior of the XPath evaluate function when a non-positive |
|
6984 position argument is supplied and no length argument is supplied. In this case, |
|
6985 we reset the position to 1. This follows the spec and matches the current behaviour |
|
6986 when a length argument is supplied. |
|
6987 |
|
6988 Test: fast/xpath/substring-non-positive-postion.html |
|
6989 |
|
6990 * xml/XPathFunctions.cpp: |
|
6991 (WebCore::XPath::FunSubstring::evaluate): |
|
6992 |
|
6993 2010-06-27 Jeremy Orlow <jorlow@chromium.org> |
|
6994 |
|
6995 Reviewed by Dumitru Daniliuc. |
|
6996 |
|
6997 Implement IDBObjectStore.get/set/remove |
|
6998 https://bugs.webkit.org/show_bug.cgi?id=41250 |
|
6999 |
|
7000 Implement these functions in IDBObjectStore, |
|
7001 add plumbing, teach IDBAny/Callbacks how to deal |
|
7002 with IDBKey, and a few small bits of cleanup. |
|
7003 |
|
7004 Test: Modified existing test to provide basic coverage. |
|
7005 Will add much more extensive layout test coverage |
|
7006 in future patches. |
|
7007 |
|
7008 * Android.derived.jscbindings.mk: |
|
7009 * Android.derived.v8bindings.mk: |
|
7010 * Android.jscbindings.mk: |
|
7011 * Android.mk: |
|
7012 * Android.v8bindings.mk: |
|
7013 * CMakeLists.txt: |
|
7014 * WebCore.gypi: |
|
7015 * WebCore.pri: |
|
7016 * WebCore.pro: |
|
7017 * WebCore.vcproj/WebCore.vcproj: |
|
7018 * WebCore.xcodeproj/project.pbxproj: |
|
7019 * bindings/js/JSIDBAnyCustom.cpp: |
|
7020 (WebCore::toJS): |
|
7021 * bindings/v8/custom/V8IDBAnyCustom.cpp: |
|
7022 (WebCore::toV8): |
|
7023 * storage/IDBAny.cpp: |
|
7024 (WebCore::IDBAny::idbKey): |
|
7025 (WebCore::IDBAny::set): |
|
7026 * storage/IDBAny.h: |
|
7027 (WebCore::IDBAny::): |
|
7028 * storage/IDBAny.idl: |
|
7029 * storage/IDBCallbacks.h: |
|
7030 * storage/IDBDatabaseRequest.h: |
|
7031 * storage/IDBDatabaseRequest.idl: |
|
7032 * storage/IDBKeyRange.h: |
|
7033 * storage/IDBObjectStore.h: |
|
7034 (WebCore::IDBObjectStore::): |
|
7035 * storage/IDBObjectStoreImpl.cpp: |
|
7036 (WebCore::IDBObjectStoreImpl::IDBObjectStoreImpl): |
|
7037 (WebCore::IDBObjectStoreImpl::get): |
|
7038 (WebCore::IDBObjectStoreImpl::set): |
|
7039 (WebCore::IDBObjectStoreImpl::remove): |
|
7040 * storage/IDBObjectStoreImpl.h: |
|
7041 * storage/IDBObjectStoreRequest.cpp: |
|
7042 (WebCore::IDBObjectStoreRequest::get): |
|
7043 (WebCore::IDBObjectStoreRequest::add): |
|
7044 (WebCore::IDBObjectStoreRequest::modify): |
|
7045 (WebCore::IDBObjectStoreRequest::addOrModify): |
|
7046 (WebCore::IDBObjectStoreRequest::remove): |
|
7047 * storage/IDBObjectStoreRequest.h: |
|
7048 * storage/IDBObjectStoreRequest.idl: |
|
7049 * storage/IDBRequest.cpp: |
|
7050 (WebCore::IDBRequest::onSuccess): |
|
7051 * storage/IDBRequest.h: |
|
7052 |
|
7053 2010-07-11 Maciej Stachowiak <mjs@apple.com> |
|
7054 |
|
7055 Reviewed by Dan Bernstein. |
|
7056 |
|
7057 Implement animation-related methods for WebKitTestRunner |
|
7058 https://bugs.webkit.org/show_bug.cgi?id=42053 |
|
7059 |
|
7060 * WebCore.exp.in: Export Document::getElementById for WebKit2's benefit. |
|
7061 |
|
7062 2010-07-11 Adam Barth <abarth@webkit.org> |
|
7063 |
|
7064 Rubber-stamped by Eric Seidel |
|
7065 |
|
7066 Add a complete list of the HTML5 entities in JSON format. |
|
7067 |
|
7068 * html/HTMLEntityNames.json: Added. |
|
7069 |
|
7070 2010-07-11 Martin Robinson <mrobinson@igalia.com> |
|
7071 |
|
7072 Reviewed by Xan Lopez. |
|
7073 |
|
7074 [GTK] WebKitWebView should support drops |
|
7075 https://bugs.webkit.org/show_bug.cgi?id=39843 |
|
7076 |
|
7077 Add support for dropping content onto GTK+ WebViews. |
|
7078 |
|
7079 No new tests, as the DRT does not support simulating drops yet. |
|
7080 |
|
7081 * platform/gtk/ClipboardUtilitiesGtk.cpp: |
|
7082 (WebCore::dragOperationToGdkDragAction): Added. |
|
7083 (WebCore::gdkDragActionToDragOperation): Properly detect DragOperationEvery. |
|
7084 * platform/gtk/ClipboardUtilitiesGtk.h: Add declaration for dragOperationToGdkDragAction. |
|
7085 * platform/gtk/PasteboardHelper.cpp: |
|
7086 Add new target atom and rename the markup target type to match the others. |
|
7087 Add a method which fills a data object from drop data. |
|
7088 (WebCore::PasteboardHelper::initializeTargetList): Add support for new atoms. |
|
7089 (WebCore::selectionDataToUTF8String): Added this helper. |
|
7090 (WebCore::PasteboardHelper::getClipboardContents): Use the selectionDataToUTF8String helper. |
|
7091 (WebCore::PasteboardHelper::targetListForDataObject): Change to reflect markup atom rename. |
|
7092 (WebCore::PasteboardHelper::fillDataObjectFromDropData): Added. |
|
7093 (WebCore::PasteboardHelper::dropAtoms): Added. |
|
7094 * platform/gtk/PasteboardHelper.h: Add declarations of new methods. |
|
7095 |
|
7096 2010-07-10 Darin Adler <darin@apple.com> |
|
7097 |
|
7098 Reviewed by Anders Carlsson. |
|
7099 |
|
7100 Enhance content attribute reflection for URL attributes, including adding a non-empty option |
|
7101 https://bugs.webkit.org/show_bug.cgi?id=42040 |
|
7102 |
|
7103 Test: fast/dom/URL-attribute-reflection.html |
|
7104 |
|
7105 Changed syntax from [ReflectURL] to [Reflect,URL] and also added support for |
|
7106 a new option, NonEmpty, which implements the non-empty URL concept from the |
|
7107 HTML5 specification. |
|
7108 |
|
7109 * bindings/scripts/CodeGenerator.pm: Changed code to expect the Reflect and URL |
|
7110 extended attributes to come in separately. The URL one simply means "the string |
|
7111 of this attribute is a URL", since we don't have a distinct type for URL. Also |
|
7112 added a new NonEmpty extended attribute. |
|
7113 |
|
7114 * bindings/scripts/CodeGeneratorJS.pm: Removed now-unneeded code to handle ReflectURL. |
|
7115 * bindings/scripts/CodeGeneratorV8.pm: Ditto. |
|
7116 |
|
7117 * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Updated for new added test cases |
|
7118 and the fix I made to the reflectedCustomURLAttr test. |
|
7119 * bindings/scripts/test/CPP/WebDOMTestObj.h: Ditto. |
|
7120 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: Ditto. |
|
7121 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: Ditto. |
|
7122 * bindings/scripts/test/JS/JSTestObj.cpp: Ditto. |
|
7123 * bindings/scripts/test/JS/JSTestObj.h: Ditto. |
|
7124 * bindings/scripts/test/ObjC/DOMTestObj.h: Ditto. |
|
7125 * bindings/scripts/test/ObjC/DOMTestObj.mm: Ditto. |
|
7126 * bindings/scripts/test/V8/V8TestObj.cpp: Ditto. Also, for some reason the V8 |
|
7127 bindig writes out the keywords into the generated file as comments, so the keyword |
|
7128 change had a direct efffect on the output file. |
|
7129 |
|
7130 * bindings/scripts/test/TestObj.idl: Changed the test cases for ReflectURL to use |
|
7131 the new syntax. Added test cases for NonEmpty. Fixed the name of |
|
7132 reflectedNonEmptyURLAttr, which accidentally was repeating reflectedURLAttr |
|
7133 instead; never noticed because we never compile the test output. |
|
7134 |
|
7135 * dom/Element.cpp: |
|
7136 (WebCore::Element::getNonEmptyURLAttribute): Added. For use by NonEmpty and also |
|
7137 by any code that wants to implement the non-empty URL content attribute semantic. |
|
7138 * dom/Element.h: Ditto. |
|
7139 |
|
7140 * html/HTMLAnchorElement.idl: Use Reflect,URL instead of ReflectURL. |
|
7141 * html/HTMLAreaElement.idl: Ditto. |
|
7142 * html/HTMLFrameElement.idl: Ditto. |
|
7143 * html/HTMLImageElement.idl: Ditto. |
|
7144 * html/HTMLInputElement.idl: Ditto. |
|
7145 * html/HTMLLinkElement.idl: Ditto. |
|
7146 * html/HTMLMediaElement.idl: Ditto. |
|
7147 * html/HTMLObjectElement.idl: Ditto. |
|
7148 * html/HTMLScriptElement.idl: Ditto. |
|
7149 * html/HTMLVideoElement.idl: Ditto. |
|
7150 |
|
7151 2010-07-10 Tony Gentilcore <tonyg@chromium.org> |
|
7152 |
|
7153 Reviewed by Darin Adler. |
|
7154 |
|
7155 Add missing derrived sources to xcode project |
|
7156 https://bugs.webkit.org/show_bug.cgi?id=42034 |
|
7157 |
|
7158 This allows --web-timing to work with build-webkit on OSX with JSC. |
|
7159 This should have been done in bug 41442. |
|
7160 |
|
7161 No new tests because no new functionality. |
|
7162 |
|
7163 * WebCore.xcodeproj/project.pbxproj: |
|
7164 |
|
7165 2010-07-10 Anders Carlsson <andersca@apple.com> |
|
7166 |
|
7167 Reviewed by Sam Weinig. |
|
7168 |
|
7169 Don't initialize plug-ins until allowed by the page |
|
7170 https://bugs.webkit.org/show_bug.cgi?id=42033 |
|
7171 |
|
7172 * WebCore.exp.in: |
|
7173 Export Document::addMediaCanStartListener and Document::removeMediaCanStartListener. |
|
7174 |
|
7175 2010-07-10 Sam Weinig <sam@webkit.org> |
|
7176 |
|
7177 Reviewed by Anders Carlsson. |
|
7178 |
|
7179 Patch for https://bugs.webkit.org/show_bug.cgi?id=42021 |
|
7180 isEqualNode should work for DocumentType nodes |
|
7181 |
|
7182 Test: fast/dom/Node/isEqualNode.html |
|
7183 |
|
7184 * dom/Node.cpp: |
|
7185 (WebCore::Node::isEqualNode): Add DocumentType logic from the DOM3 spec. |
|
7186 |
|
7187 2010-07-10 Daniel Bates <dbates@rim.com> |
|
7188 |
|
7189 Reviewed by Adam Barth. |
|
7190 |
|
7191 Move enum ReasonForCallingCanExecuteScripts to header ScriptControllerBase.h |
|
7192 https://bugs.webkit.org/show_bug.cgi?id=39339 |
|
7193 |
|
7194 Moved the enum ReasonForCallingCanExecuteScripts, which was |
|
7195 defined in both the JSC and V8 ScriptController.h file, into |
|
7196 a shared file called ScriptControllerBase.h. |
|
7197 |
|
7198 No functionality was changed, so no new tests. |
|
7199 |
|
7200 * GNUmakefile.am: Added file bindings/ScriptControllerBase.h. |
|
7201 * WebCore.gypi: Ditto. |
|
7202 * WebCore.pro: Ditto. |
|
7203 * WebCore.vcproj/WebCore.vcproj: Ditto. |
|
7204 * WebCore.vcproj/WebCoreCommon.vsprops: Ditto. |
|
7205 * WebCore.xcodeproj/project.pbxproj: Ditto. |
|
7206 * bindings/ScriptControllerBase.h: Added. |
|
7207 (WebCore::): |
|
7208 * bindings/js/ScriptController.h: #include ScriptControllerBase.h |
|
7209 * bindings/v8/ScriptController.h: Ditto. |
|
7210 |
|
7211 2010-07-10 Dan Bernstein <mitz@apple.com> |
|
7212 |
|
7213 Reviewed by Anders Carlsson. |
|
7214 |
|
7215 <rdar://problem/8153214> Continuation outlines in layers do not paint correctly |
|
7216 |
|
7217 Test: fast/inline/continuation-outlines-with-layers-2.html |
|
7218 |
|
7219 Continuation outlines are normally painted by the containing block. However, when the |
|
7220 block and the inline are not enclosed by the same self-painting layer, the inline has to |
|
7221 paint its own outlines. This was handled correctly only for the case where the inline had |
|
7222 its own self-painting layer, but now when an ancestor inline had the self-painting layer. |
|
7223 |
|
7224 * rendering/InlineFlowBox.cpp: |
|
7225 (WebCore::InlineFlowBox::paint): Instead of testing for having a self-painting layer, test |
|
7226 whether any intermediate box between the inline and the containing block has a self-painting |
|
7227 layer. |
|
7228 * rendering/RenderBlock.cpp: |
|
7229 (WebCore::RenderBlock::paintObject): Ditto. |
|
7230 * rendering/RenderObject.cpp: |
|
7231 (WebCore::RenderObject::enclosingBoxModelObject): Added this utility method. |
|
7232 * rendering/RenderObject.h: |
|
7233 |
|
7234 2010-07-10 François Sausset <sausset@gmail.com> |
|
7235 |
|
7236 Reviewed by Kenneth Rohde Christiansen. |
|
7237 |
|
7238 Build fix: syntax and typo issues |
|
7239 https://bugs.webkit.org/show_bug.cgi?id=41859 |
|
7240 |
|
7241 * html/HTMLTreeBuilder.cpp: |
|
7242 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
7243 (WebCore::HTMLTreeBuilder::processStartTag): |
|
7244 |
|
7245 2010-07-10 Eric Seidel <eric@webkit.org> |
|
7246 |
|
7247 Reviewed by Adam Barth. |
|
7248 |
|
7249 HTMLTreeBuilder needs adjustForeignAttributes support |
|
7250 https://bugs.webkit.org/show_bug.cgi?id=42022 |
|
7251 |
|
7252 To add adjust foreign attributes support I had to add an |
|
7253 AtomicString (prefixed name) to QualifiedName hash. Once I had |
|
7254 done that, I decided it would be best for the other "adjust" functions |
|
7255 to share the same hash logic, so I moved them to using the same |
|
7256 AtomicString -> QualifiedName hash as well. |
|
7257 |
|
7258 Tested by html5lib/runner.html |
|
7259 |
|
7260 * dom/Attribute.h: |
|
7261 (WebCore::Attribute::parserSetName): |
|
7262 * html/HTMLTreeBuilder.cpp: |
|
7263 |
|
7264 2010-07-10 Rob Buis <rwlbuis@gmail.com> |
|
7265 |
|
7266 Reviewed by Darin Adler. |
|
7267 |
|
7268 https://bugs.webkit.org/show_bug.cgi?id=41978 |
|
7269 Remove namespace prefixes from idl files |
|
7270 |
|
7271 No new tests, idl syntax fixes. |
|
7272 |
|
7273 * css/CSSImportRule.idl: |
|
7274 * css/CSSMediaRule.idl: |
|
7275 * css/CSSStyleSheet.idl: |
|
7276 * css/CSSVariablesRule.idl: |
|
7277 * svg/SVGAnimatedString.idl: |
|
7278 * svg/SVGColor.idl: |
|
7279 * svg/SVGDocument.idl: |
|
7280 * svg/SVGLangSpace.idl: |
|
7281 * svg/SVGSVGElement.idl: |
|
7282 * svg/SVGStringList.idl: |
|
7283 * svg/SVGStylable.idl: |
|
7284 * svg/SVGStyleElement.idl: |
|
7285 * svg/SVGTests.idl: |
|
7286 * svg/SVGZoomEvent.idl: |
|
7287 * xml/XPathEvaluator.idl: |
|
7288 |
|
7289 2010-07-10 Dumitru Daniliuc <dumi@chromium.org> |
|
7290 |
|
7291 Unreviewed, GTK build fix. |
|
7292 |
|
7293 * bindings/gobject/GObjectEventListener.h: |
|
7294 |
|
7295 2010-07-10 Dumitru Daniliuc <dumi@chromium.org> |
|
7296 |
|
7297 Reviewed by Darin Adler. |
|
7298 |
|
7299 Remove unnecessary includes in header files in WebCore/dom. |
|
7300 https://bugs.webkit.org/show_bug.cgi?id=41941 |
|
7301 |
|
7302 * css/StyleMedia.h: |
|
7303 * dom/BeforeLoadEvent.h: |
|
7304 * dom/CustomEvent.h: |
|
7305 * dom/DOMStringMap.h: |
|
7306 * dom/DeviceOrientationEvent.h: |
|
7307 * dom/EventListener.h: |
|
7308 * dom/MessagePort.h: |
|
7309 * dom/Node.cpp: |
|
7310 * dom/NodeFilter.h: |
|
7311 * dom/NodeRareData.h: |
|
7312 * dom/RegisteredEventListener.h: |
|
7313 * dom/SelectorNodeList.cpp: |
|
7314 * dom/SelectorNodeList.h: |
|
7315 * dom/StyleElement.h: |
|
7316 * dom/Traversal.h: |
|
7317 |
|
7318 2010-07-09 Tony Chang <tony@chromium.org> |
|
7319 |
|
7320 Reviewed by Ojan Vafai. |
|
7321 |
|
7322 crash in WebCore::CompositeEditCommand::splitTreeToNode when indenting pre |
|
7323 https://bugs.webkit.org/show_bug.cgi?id=38231 |
|
7324 |
|
7325 Test: editing/execCommand/indent-pre.html |
|
7326 |
|
7327 * editing/IndentOutdentCommand.cpp: |
|
7328 (WebCore::countParagraphs): |
|
7329 (WebCore::IndentOutdentCommand::indentRegion): Split text nodes into one node per paragraph |
|
7330 so moveParagraph doesn't get confused. |
|
7331 (WebCore::IndentOutdentCommand::splitTextNodes): |
|
7332 * editing/IndentOutdentCommand.h: |
|
7333 |
|
7334 2010-07-09 Erik Arvidsson <arv@chromium.org> |
|
7335 |
|
7336 Reviewed by Darin Adler. |
|
7337 |
|
7338 Computed style is not implemented for padding-start, padding-end, margin-start, margin-end |
|
7339 https://bugs.webkit.org/show_bug.cgi?id=41496 |
|
7340 |
|
7341 * css/CSSComputedStyleDeclaration.cpp: |
|
7342 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): |
|
7343 * css/CSSProperty.cpp: |
|
7344 (WebCore::CSSProperty::resolveDirectionAwareProperty): This function resolves the property ID for a direction aware property. |
|
7345 * css/CSSProperty.h: |
|
7346 * css/CSSStyleSelector.cpp: Use helper function. |
|
7347 (WebCore::CSSStyleSelector::applyProperty): |
|
7348 |
|
7349 2010-07-09 Adam Barth <abarth@webkit.org> |
|
7350 |
|
7351 Reviewed by Eric Seidel. |
|
7352 |
|
7353 HTML5 tree builder should pass some LayoutTests |
|
7354 https://bugs.webkit.org/show_bug.cgi?id=41991 |
|
7355 |
|
7356 Before this patch, we weren't attaching text nodes to the render tree, |
|
7357 which turns out to be important. :) |
|
7358 |
|
7359 This patch fixes more than 10,000 LayoutTests. |
|
7360 |
|
7361 * html/HTMLConstructionSite.cpp: |
|
7362 (WebCore::HTMLConstructionSite::attach): |
|
7363 (WebCore::HTMLConstructionSite::attachAtSite): |
|
7364 |
|
7365 2010-07-09 Patrick Gansterer <paroga@paroga.com> |
|
7366 |
|
7367 Reviewed by Darin Adler. |
|
7368 |
|
7369 [WINCE] Buildfix for TextEncodingRegistry |
|
7370 https://bugs.webkit.org/show_bug.cgi?id=41992 |
|
7371 |
|
7372 Renamed TextCodecWince to TextCodecWinCE. |
|
7373 |
|
7374 * platform/text/TextEncodingRegistry.cpp: |
|
7375 (WebCore::buildBaseTextCodecMaps): |
|
7376 (WebCore::extendTextCodecMaps): |
|
7377 |
|
7378 2010-07-09 Leon Clarke <leonclarke@google.com> |
|
7379 |
|
7380 Reviewed by Adam Barth. |
|
7381 |
|
7382 add support for link prefetching |
|
7383 https://bugs.webkit.org/show_bug.cgi?id=3652 |
|
7384 |
|
7385 Test: fast/dom/HTMLLinkElement/prefetch.html |
|
7386 |
|
7387 * Configurations/FeatureDefines.xcconfig: |
|
7388 * html/HTMLLinkElement.cpp: |
|
7389 (WebCore::HTMLLinkElement::tokenizeRelAttribute): |
|
7390 (WebCore::HTMLLinkElement::process): |
|
7391 * html/HTMLLinkElement.h: |
|
7392 (WebCore::HTMLLinkElement::RelAttribute::RelAttribute): |
|
7393 * loader/Cache.cpp: |
|
7394 (WebCore::createResource): |
|
7395 * loader/CachedResource.cpp: |
|
7396 (WebCore::CachedResource::data): |
|
7397 (WebCore::CachedResource::didAddClient): |
|
7398 * loader/CachedResource.h: |
|
7399 (WebCore::CachedResource::): |
|
7400 (WebCore::CachedResource::error): |
|
7401 (WebCore::CachedResource::isPrefetch): |
|
7402 (WebCore::CachedResource::schedule): |
|
7403 * loader/CachedScript.cpp: |
|
7404 * loader/CachedScript.h: |
|
7405 * loader/DocLoader.cpp: |
|
7406 (WebCore::DocLoader::requestLinkPrefetch): |
|
7407 (WebCore::DocLoader::canRequest): |
|
7408 (WebCore::DocLoader::incrementRequestCount): |
|
7409 (WebCore::DocLoader::decrementRequestCount): |
|
7410 * loader/DocLoader.h: |
|
7411 * loader/loader.cpp: |
|
7412 (WebCore::cachedResourceTypeToTargetType): |
|
7413 (WebCore::Loader::determinePriority): |
|
7414 (WebCore::Loader::load): |
|
7415 (WebCore::Loader::Host::servePendingRequests): |
|
7416 (WebCore::Loader::Host::didFinishLoading): |
|
7417 (WebCore::Loader::Host::didFail): |
|
7418 (WebCore::Loader::Host::didReceiveResponse): |
|
7419 (WebCore::Loader::Host::cancelPendingRequests): |
|
7420 * loader/loader.h: |
|
7421 (WebCore::Loader::): |
|
7422 * platform/network/ResourceRequestBase.h: |
|
7423 (WebCore::ResourceRequestBase::): |
|
7424 |
|
7425 2010-07-09 James Robinson <jamesr@chromium.org> |
|
7426 |
|
7427 Unreviewed build fix. Add #include to pick up ExceptionCode values for config (like Qt) where it's not picked up indirectly. |
|
7428 |
|
7429 * html/HTMLCanvasElement.cpp: |
|
7430 |
|
7431 2010-07-09 James Robinson <jamesr@chromium.org> |
|
7432 |
|
7433 Reviewed by Darin Adler. |
|
7434 |
|
7435 Removes CanvasSurface and moves all of its functionality to HTMLCanvasElement. |
|
7436 https://bugs.webkit.org/show_bug.cgi?id=42005 |
|
7437 |
|
7438 http://trac.webkit.org/changeset/55201 introduced a new base class for HTMLCanvasElement called CanvasSurface. |
|
7439 The intention was that this would allow for code sharing with the then-proposed OffscreenCanvas. However, |
|
7440 there is no OffscreenCanvas and there's unlikely to be one soon. Additionally CanvasSurface breaks |
|
7441 encapsulation pretty badly by doing "static_cast<HTMLCanvasElement* const>(this)". Until an abstraction is |
|
7442 really needed we should just use HTMLCanvasElement when we want to talk about a canvas. |
|
7443 |
|
7444 This patch moves all of CanvasSurface's functionality back up to HTMLCanvasElement and reorders the header |
|
7445 to be a bit more logical. |
|
7446 |
|
7447 Refactor with no behavior change, thus no new tests. |
|
7448 |
|
7449 * CMakeLists.txt: |
|
7450 * GNUmakefile.am: |
|
7451 * WebCore.gypi: |
|
7452 * WebCore.pro: |
|
7453 * WebCore.vcproj/WebCore.vcproj: |
|
7454 * WebCore.xcodeproj/project.pbxproj: |
|
7455 * dom/CanvasSurface.cpp: Removed. |
|
7456 * dom/CanvasSurface.h: Removed. |
|
7457 * html/HTMLCanvasElement.cpp: |
|
7458 (WebCore::HTMLCanvasElement::HTMLCanvasElement): |
|
7459 (WebCore::HTMLCanvasElement::willDraw): |
|
7460 (WebCore::HTMLCanvasElement::setSurfaceSize): |
|
7461 (WebCore::HTMLCanvasElement::toDataURL): |
|
7462 (WebCore::HTMLCanvasElement::convertLogicalToDevice): |
|
7463 (WebCore::HTMLCanvasElement::securityOrigin): |
|
7464 (WebCore::HTMLCanvasElement::styleSelector): |
|
7465 (WebCore::HTMLCanvasElement::createImageBuffer): |
|
7466 (WebCore::HTMLCanvasElement::drawingContext): |
|
7467 (WebCore::HTMLCanvasElement::buffer): |
|
7468 (WebCore::HTMLCanvasElement::baseTransform): |
|
7469 * html/HTMLCanvasElement.h: |
|
7470 (WebCore::HTMLCanvasElement::setObserver): |
|
7471 (WebCore::HTMLCanvasElement::width): |
|
7472 (WebCore::HTMLCanvasElement::height): |
|
7473 (WebCore::HTMLCanvasElement::size): |
|
7474 (WebCore::HTMLCanvasElement::toDataURL): |
|
7475 (WebCore::HTMLCanvasElement::setOriginTainted): |
|
7476 (WebCore::HTMLCanvasElement::originClean): |
|
7477 (WebCore::HTMLCanvasElement::hasCreatedImageBuffer): |
|
7478 |
|
7479 2010-07-09 Simon Fraser <simon.fraser@apple.com> |
|
7480 |
|
7481 Reviewed by Darin Adler. |
|
7482 |
|
7483 Calling layoutTestController.layerTreeAsText() should update layout |
|
7484 https://bugs.webkit.org/show_bug.cgi?id=41818 |
|
7485 |
|
7486 Need to call updateLayout() before we check for any layers, not after, |
|
7487 since layout will update compositing, and may create layers. |
|
7488 |
|
7489 * page/Frame.cpp: |
|
7490 (WebCore::Frame::layerTreeAsText): |
|
7491 |
|
7492 2010-07-09 Kenneth Russell <kbr@google.com> |
|
7493 |
|
7494 Reviewed by Nate Chapin. |
|
7495 |
|
7496 bufferSubData causes crash in WebGLBuffer::associateBufferSubData |
|
7497 https://bugs.webkit.org/show_bug.cgi?id=42004 |
|
7498 |
|
7499 Test: fast/canvas/webgl/index-validation-crash-with-buffer-sub-data.html |
|
7500 |
|
7501 * html/canvas/WebGLBuffer.cpp: |
|
7502 (WebCore::WebGLBuffer::associateBufferData): |
|
7503 - Allocate m_elementArrayBuffer for entry point taking only size. |
|
7504 Guard against allocation failures of m_elementArrayBuffer. |
|
7505 (WebCore::WebGLBuffer::associateBufferSubData): |
|
7506 - Guard against any possibility of crashes due to m_elementArrayBuffer being NULL. |
|
7507 |
|
7508 2010-07-09 Dumitru Daniliuc <dumi@chromium.org> |
|
7509 |
|
7510 Unreviewed, but pre-approved by Eric Seidel. |
|
7511 |
|
7512 Remove unnecessary includes in header files in WebCore/css. |
|
7513 https://bugs.webkit.org/show_bug.cgi?id=41941 |
|
7514 |
|
7515 * css/CSSComputedStyleDeclaration.h: |
|
7516 * css/CSSFontFaceSource.cpp: |
|
7517 (WebCore::CSSFontFaceSource::getFontData): |
|
7518 * css/CSSFontFaceSource.h: |
|
7519 * css/CSSPrimitiveValueMappings.h: |
|
7520 * css/StyleMedia.h: |
|
7521 |
|
7522 2010-07-09 Eric Seidel <eric@webkit.org> |
|
7523 |
|
7524 Reviewed by Adam Barth. |
|
7525 |
|
7526 Get rid of manual case maps in HTMLTreeBuilder |
|
7527 https://bugs.webkit.org/show_bug.cgi?id=42000 |
|
7528 |
|
7529 No functional change, thus no tests. |
|
7530 |
|
7531 * html/HTMLTreeBuilder.cpp: |
|
7532 |
|
7533 2010-07-09 Tony Gentilcore <tonyg@chromium.org> |
|
7534 |
|
7535 Reviewed by Dimitri Glazkov. |
|
7536 |
|
7537 Implement performance.timing.navigationStart |
|
7538 https://bugs.webkit.org/show_bug.cgi?id=41815 |
|
7539 |
|
7540 See: http://dev.w3.org/2006/webapi/WebTiming/#nt-navigation-start |
|
7541 |
|
7542 * loader/FrameLoader.cpp: |
|
7543 (WebCore::FrameLoader::loadWithDocumentLoader): |
|
7544 * loader/FrameLoaderTypes.h: |
|
7545 (WebCore::FrameLoadTimeline::FrameLoadTimeline): |
|
7546 * page/Timing.cpp: |
|
7547 (WebCore::Timing::navigationStart): |
|
7548 |
|
7549 2010-07-09 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> |
|
7550 |
|
7551 Reviewed by Kenneth Rohde Christiansen. |
|
7552 |
|
7553 [Qt] GraphicsLayerQt must have syncCompositingStateForThisLayerOnly() implemented |
|
7554 https://bugs.webkit.org/show_bug.cgi?id=41954 |
|
7555 |
|
7556 Add GraphicsLayerQt::syncCompositingStateForThisLayerOnly, a non-recursive |
|
7557 implementation of GraphicsLayerQt::syncCompositingState and which targets |
|
7558 the current layer only. |
|
7559 |
|
7560 * platform/graphics/qt/GraphicsLayerQt.cpp: |
|
7561 (WebCore::GraphicsLayerQt::syncCompositingStateForThisLayerOnly): |
|
7562 * platform/graphics/qt/GraphicsLayerQt.h: |
|
7563 |
|
7564 2010-07-09 David Kozub <zub@linux.fjfi.cvut.cz> |
|
7565 |
|
7566 Reviewed by Darin Adler. |
|
7567 |
|
7568 Fix build by adding missing html/TimeRanges.idl to CMakeLists.txt. |
|
7569 |
|
7570 https://bugs.webkit.org/show_bug.cgi?id=41945 |
|
7571 |
|
7572 No functional changes, thus no tests. |
|
7573 |
|
7574 * CMakeLists.txt: |
|
7575 |
|
7576 2010-07-09 Eric Seidel <eric@webkit.org> |
|
7577 |
|
7578 Reviewed by Adam Barth. |
|
7579 |
|
7580 Fix SVG tag name casing for HTMLTreeBuilder |
|
7581 https://bugs.webkit.org/show_bug.cgi?id=41998 |
|
7582 |
|
7583 Tested by html5lib/runner.html |
|
7584 |
|
7585 * html/HTMLTreeBuilder.cpp: |
|
7586 (WebCore::): |
|
7587 |
|
7588 2010-07-09 Eric Seidel <eric@webkit.org> |
|
7589 |
|
7590 Reviewed by Adam Barth. |
|
7591 |
|
7592 Implement SVG attribute case mapping for HTMLTreeBuilder |
|
7593 https://bugs.webkit.org/show_bug.cgi?id=41949 |
|
7594 |
|
7595 Tested by html5lib/runner.html. |
|
7596 |
|
7597 * html/HTMLTreeBuilder.cpp: |
|
7598 |
|
7599 2010-07-09 Andy Estes <aestes@apple.com> |
|
7600 |
|
7601 Reviewed by Adele Peterson. |
|
7602 |
|
7603 Remove the workaround for a Core Animation bug on platforms where the |
|
7604 bug has been fixed. |
|
7605 https://bugs.webkit.org/show_bug.cgi?id=41927 |
|
7606 <rdar://problem/7920153> |
|
7607 |
|
7608 * platform/graphics/mac/GraphicsLayerCA.mm: |
|
7609 (WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes): Add |
|
7610 a compile-time check for platforms that have a Core Animation bug that |
|
7611 needs working around. |
|
7612 |
|
7613 2010-07-08 Tony Gentilcore <tonyg@chromium.org> |
|
7614 |
|
7615 Reviewed by Nate Chapin. |
|
7616 |
|
7617 Implement unloadEventEnd, loadEventStart, and loadEventEnd for Web Timing |
|
7618 https://bugs.webkit.org/show_bug.cgi?id=41332 |
|
7619 |
|
7620 Test: fast/dom/webtiming.html |
|
7621 |
|
7622 * loader/FrameLoader.cpp: |
|
7623 (WebCore::FrameLoader::stopLoading): |
|
7624 (WebCore::FrameLoader::loadWithDocumentLoader): |
|
7625 * loader/FrameLoader.h: |
|
7626 (WebCore::FrameLoader::frameLoadTimeline): |
|
7627 * loader/FrameLoaderTypes.h: |
|
7628 (WebCore::FrameLoadTimeline::FrameLoadTimeline): |
|
7629 * page/DOMWindow.cpp: |
|
7630 (WebCore::DOMWindow::dispatchLoadEvent): |
|
7631 * page/Timing.cpp: |
|
7632 (WebCore::Timing::navigationStart): |
|
7633 (WebCore::Timing::unloadEventEnd): |
|
7634 (WebCore::Timing::loadEventStart): |
|
7635 (WebCore::Timing::loadEventEnd): |
|
7636 * page/Timing.h: |
|
7637 * page/Timing.idl: |
|
7638 |
|
7639 2010-07-09 Dumitru Daniliuc <dumi@chromium.org> |
|
7640 |
|
7641 Unreviewed, but pre-approved by Eric Seidel. |
|
7642 |
|
7643 Remove all unnecessary includes from the header files in WebCore/accessibility/. |
|
7644 https://bugs.webkit.org/show_bug.cgi?id=41941 |
|
7645 |
|
7646 * accessibility/AXObjectCache.h: |
|
7647 * accessibility/AccessibilityListBox.cpp: |
|
7648 * accessibility/AccessibilityListBox.h: |
|
7649 * accessibility/AccessibilityMenuList.h: |
|
7650 * accessibility/mac/AccessibilityObjectWrapper.h: |
|
7651 |
|
7652 2010-07-09 Patrick Gansterer <paroga@paroga.com> |
|
7653 |
|
7654 Reviewed by Kent Tamura. |
|
7655 |
|
7656 [WINCE] Buildfix for EventHandlerWin |
|
7657 https://bugs.webkit.org/show_bug.cgi?id=41909 |
|
7658 |
|
7659 Use Clipboard.h instead of ClipboardWin.h on WinCE. |
|
7660 |
|
7661 * page/win/EventHandlerWin.cpp: |
|
7662 |
|
7663 2010-07-09 Sheriff Bot <webkit.review.bot@gmail.com> |
|
7664 |
|
7665 Unreviewed, rolling out r62946. |
|
7666 http://trac.webkit.org/changeset/62946 |
|
7667 https://bugs.webkit.org/show_bug.cgi?id=41965 |
|
7668 |
|
7669 AppCache inspector support should be enabled in WebKit ToT. |
|
7670 (Requested by pfeldman_ on #webkit). |
|
7671 |
|
7672 * inspector/front-end/StoragePanel.js: |
|
7673 (WebInspector.StoragePanel): |
|
7674 (WebInspector.StoragePanel.prototype.reset): |
|
7675 (WebInspector.StoragePanel.prototype.addApplicationCache): |
|
7676 |
|
7677 2010-07-09 François Sausset <sausset@gmail.com> |
|
7678 |
|
7679 Reviewed by Kenneth Rohde Christiansen. |
|
7680 |
|
7681 Implement MathML mathcolor & mathbackground attributes |
|
7682 https://bugs.webkit.org/show_bug.cgi?id=41895 |
|
7683 |
|
7684 Test: mathml/presentation/attributes.xhtml |
|
7685 |
|
7686 * dom/MappedAttributeEntry.h: |
|
7687 (WebCore::): |
|
7688 * mathml/MathMLElement.cpp: |
|
7689 (WebCore::MathMLElement::MathMLElement): |
|
7690 (WebCore::MathMLElement::mapToEntry): |
|
7691 (WebCore::MathMLElement::parseMappedAttribute): |
|
7692 * mathml/MathMLElement.h: |
|
7693 * mathml/mathattrs.in: |
|
7694 |
|
7695 2010-07-09 Xiaomei Ji <xji@chromium.org> |
|
7696 |
|
7697 Reviewed by David Levin. |
|
7698 |
|
7699 Fix characters with unicode-bidi-mirror property are not correctly |
|
7700 mirrored in Linux. |
|
7701 https://bugs.webkit.org/show_bug.cgi?id=41305 |
|
7702 |
|
7703 Since harfbuzz does not do mirroring, chromium should iterate each |
|
7704 character in the string and mirror it if needed before passing the |
|
7705 string to harfbuzz for shaping. |
|
7706 |
|
7707 Test: fast/text/international/bidi-mirror-he-ar.html |
|
7708 |
|
7709 * platform/graphics/chromium/FontLinux.cpp: |
|
7710 (WebCore::TextRunWalker::TextRunWalker): |
|
7711 (WebCore::TextRunWalker::~TextRunWalker): |
|
7712 (WebCore::TextRunWalker::mirrorCharacters): |
|
7713 |
|
7714 |
|
7715 2010-07-09 Anders Carlsson <andersca@apple.com> |
|
7716 |
|
7717 Reviewed by Simon Fraser. |
|
7718 |
|
7719 Instantiate Netscape plug-ins, pass geometry information to Plugin |
|
7720 https://bugs.webkit.org/show_bug.cgi?id=41960 |
|
7721 |
|
7722 * WebCore.exp.in: |
|
7723 Export ScrollView::contentsToWindow. |
|
7724 |
|
7725 2010-07-09 Patrick Gansterer <paroga@paroga.com> |
|
7726 |
|
7727 Reviewed by Kent Tamura. |
|
7728 |
|
7729 [WINCE] Buildfix for FrameWince after r47440 |
|
7730 https://bugs.webkit.org/show_bug.cgi?id=41904 |
|
7731 |
|
7732 * page/wince/FrameWince.cpp: Added property svn:eol-style. |
|
7733 (WebCore::computePageRectsForFrame): |
|
7734 (WebCore::imageFromSelection): |
|
7735 |
|
7736 2010-07-09 Vitaly Repeshko <vitalyr@chromium.org> |
|
7737 |
|
7738 Reviewed by Pavel Feldman. |
|
7739 |
|
7740 [v8] Call JS gc in a fresh context to avoid retaining the current one. |
|
7741 https://bugs.webkit.org/show_bug.cgi?id=41963 |
|
7742 http://crbug.com/46571 |
|
7743 |
|
7744 * bindings/v8/ScriptController.cpp: |
|
7745 (WebCore::ScriptController::collectGarbage): |
|
7746 |
|
7747 2010-07-09 Kenneth Russell <kbr@google.com> |
|
7748 |
|
7749 Reviewed by Dimitri Glazkov. |
|
7750 |
|
7751 Crash with uniform array test |
|
7752 https://bugs.webkit.org/show_bug.cgi?id=36028 |
|
7753 |
|
7754 * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp: |
|
7755 (WebCore::vertexAttribAndUniformHelperf): |
|
7756 (WebCore::uniformHelperi): |
|
7757 (WebCore::uniformMatrixHelper): |
|
7758 - Fixed type tests and casting of incoming arrays. |
|
7759 * html/canvas/WebGLRenderingContext.cpp: |
|
7760 (WebCore::WebGLRenderingContext::getUniform): |
|
7761 - Fixed crash when null WebGLUniform is passed to getUniform. |
|
7762 |
|
7763 2010-07-09 Chris Fleizach <cfleizach@apple.com> |
|
7764 |
|
7765 Reviewed by Darin Adler. |
|
7766 |
|
7767 AX: text editing not spoken by VO on web view contenteditable textbox |
|
7768 https://bugs.webkit.org/show_bug.cgi?id=41912 |
|
7769 |
|
7770 Test: platform/mac/accessibility/selection-value-changes-for-aria-textbox.html |
|
7771 |
|
7772 * accessibility/AccessibilityRenderObject.cpp: |
|
7773 (WebCore::AccessibilityRenderObject::renderObjectIsObservable): |
|
7774 |
|
7775 2010-07-09 Michael Nordman <michaeln@google.com> |
|
7776 |
|
7777 Reviewed by Dumitru Daniliuc. |
|
7778 |
|
7779 Use class ProgressEvent when raising appcache related progress events and |
|
7780 set the 'total', 'loaded', and 'lengthComputable' attributes. |
|
7781 Also raise the final progress event with the 'total' and 'loaded' attribute |
|
7782 values are equal to one another to keep pace with the spec for this feature. |
|
7783 https://bugs.webkit.org/show_bug.cgi?id=37602 |
|
7784 |
|
7785 Test: http/tests/appcache/progress-counter.html |
|
7786 |
|
7787 * loader/appcache/ApplicationCacheGroup.cpp: |
|
7788 (WebCore::ApplicationCacheGroup::ApplicationCacheGroup): |
|
7789 (WebCore::ApplicationCacheGroup::didFinishLoadingManifest): |
|
7790 (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete): |
|
7791 (WebCore::ApplicationCacheGroup::startLoadingEntry): |
|
7792 (WebCore::CallCacheListenerTask::create): |
|
7793 (WebCore::CallCacheListenerTask::performTask): |
|
7794 (WebCore::CallCacheListenerTask::CallCacheListenerTask): |
|
7795 (WebCore::ApplicationCacheGroup::postListenerTask): |
|
7796 * loader/appcache/ApplicationCacheGroup.h: |
|
7797 (WebCore::ApplicationCacheGroup::postListenerTask): |
|
7798 * loader/appcache/ApplicationCacheHost.cpp: |
|
7799 (WebCore::ApplicationCacheHost::notifyDOMApplicationCache): |
|
7800 (WebCore::ApplicationCacheHost::stopDeferringEvents): |
|
7801 (WebCore::ApplicationCacheHost::dispatchDOMEvent): |
|
7802 * loader/appcache/ApplicationCacheHost.h: |
|
7803 (WebCore::ApplicationCacheHost::DeferredEvent::DeferredEvent): |
|
7804 |
|
7805 2010-07-09 Sebastian Dröge <sebastian.droege@collabora.co.uk> |
|
7806 |
|
7807 Reviewed by Gustavo Noronha Silva. |
|
7808 |
|
7809 Bug 41340 - [GStreamer] Subtle race condition during seeks |
|
7810 https://bugs.webkit.org/show_bug.cgi?id=41340 |
|
7811 |
|
7812 * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: |
|
7813 (webKitWebSrcStop): |
|
7814 (webKitWebSrcNeedDataMainCb): |
|
7815 (webKitWebSrcNeedDataCb): |
|
7816 (webKitWebSrcEnoughDataMainCb): |
|
7817 (webKitWebSrcEnoughDataCb): |
|
7818 (webKitWebSrcSeekDataCb): |
|
7819 (StreamingClient::didFinishLoading): |
|
7820 Fix two subtle race conditions that can happen during seeks: |
|
7821 - The timeout callback could be called before the callback ID is |
|
7822 assigned to the instance private data. This causes the ID to |
|
7823 be set after the callback has finished and breaks all future |
|
7824 processing. |
|
7825 - The source must not go EOS while a seek is pending because |
|
7826 this confuses appsrc due to the different threads involved here. |
|
7827 |
|
7828 2010-07-09 Simon Hausmann <simon.hausmann@nokia.com> |
|
7829 |
|
7830 Reviewed by Tor Arne Vestbø. |
|
7831 |
|
7832 [Qt] Removed hard-coded enabled default of video support |
|
7833 |
|
7834 Properly detect video/audio instead of defaulting to true.Properly detect video/audio instead of defaulting to true.Properly detect video/audio instead of defaulting to true.Properly detect video/audio instead of defaulting to true. |
|
7835 |
|
7836 * WebCore.pri: |
|
7837 |
|
7838 2010-07-09 Ben Murdoch <benm@google.com> |
|
7839 |
|
7840 Reviewed by Steve Block. |
|
7841 |
|
7842 [Arm] Missing NaN check in XPath substring function |
|
7843 https://bugs.webkit.org/show_bug.cgi?id=41862 |
|
7844 |
|
7845 Test: fast/xpath/substring-nan-position.html |
|
7846 |
|
7847 * xml/XPathFunctions.cpp: |
|
7848 (WebCore::XPath::FunSubstring::evaluate): Add an isnan() |
|
7849 to the value returned from evaluating the position |
|
7850 argument and early out and return the empty string. |
|
7851 |
|
7852 2010-07-09 Simon Hausmann <simon.hausmann@nokia.com> |
|
7853 |
|
7854 Reviewed by Tor Arne Vestbø. |
|
7855 |
|
7856 [Qt] Prospective build fix. |
|
7857 |
|
7858 Moved the media element detection from WebCore.pro into WebCore.pri, where |
|
7859 all the features are detected. This is also used by build-webkit to determine |
|
7860 the defaults, which may be the reason for the build breakage. |
|
7861 |
|
7862 * WebCore.pri: |
|
7863 * WebCore.pro: |
|
7864 |
|
7865 2010-07-09 Simon Hausmann <simon.hausmann@nokia.com> |
|
7866 |
|
7867 Reviewed by Tor Arne Vestbø. |
|
7868 |
|
7869 [Qt] Re-enable support for QtMultimediaKit as backend for the media elements |
|
7870 |
|
7871 Experimental support is re-enabled if QtMobility is available and the Qt |
|
7872 version is 4.7 or above. |
|
7873 |
|
7874 * WebCore.pro: |
|
7875 * platform/graphics/MediaPlayer.cpp: |
|
7876 * platform/graphics/qt/MediaPlayerPrivateQt.cpp: |
|
7877 (WebCore::MediaPlayerPrivate::supportsType): Adapt to latest QtMultimediaKit API changes. |
|
7878 (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): |
|
7879 (WebCore::MediaPlayerPrivate::totalBytes): |
|
7880 |
|
7881 2010-07-09 Pavel Feldman <pfeldman@chromium.org> |
|
7882 |
|
7883 Reviewed by Yury Semikhatsky. |
|
7884 |
|
7885 Web Inspector: do not show default tooltip when detailed network info is available. |
|
7886 |
|
7887 https://bugs.webkit.org/show_bug.cgi?id=41957 |
|
7888 |
|
7889 * English.lproj/localizedStrings.js: |
|
7890 * inspector/front-end/ResourcesPanel.js: |
|
7891 (WebInspector.ResourcesPanel): |
|
7892 (WebInspector.ResourcesPanel.prototype.reset): |
|
7893 (WebInspector.ResourcesPanel.prototype.showResource): |
|
7894 (WebInspector.ResourcesPanel.prototype._getPopoverAnchor): |
|
7895 (WebInspector.ResourcesPanel.prototype._showPopover): |
|
7896 (WebInspector.ResourceTimeCalculator.prototype.computeBarGraphLabels): |
|
7897 |
|
7898 2010-07-09 François Sausset <sausset@gmail.com> |
|
7899 |
|
7900 Reviewed by Beth Dakin. |
|
7901 |
|
7902 Correct the default font variant of mtext (regular instead of italic). |
|
7903 https://bugs.webkit.org/show_bug.cgi?id=41626 |
|
7904 |
|
7905 Add test to be sure that only <mi> elements use italic fonts by default. |
|
7906 Update test with fractions to take into account the correct behaviour of mtext (regular instead of italic). |
|
7907 |
|
7908 * css/mathml.css: |
|
7909 (mi): |
|
7910 |
|
7911 2010-07-09 Tony Gentilcore <tonyg@chromium.org> |
|
7912 |
|
7913 Reviewed by Dimitri Glazkov. |
|
7914 |
|
7915 Implement performance.navigation.type |
|
7916 https://bugs.webkit.org/show_bug.cgi?id=41564 |
|
7917 |
|
7918 Tests: fast/dom/navigation-type-back-forward.html |
|
7919 fast/dom/navigation-type-navigate.html |
|
7920 fast/dom/navigation-type-reload.html |
|
7921 |
|
7922 * page/Navigation.cpp: |
|
7923 (WebCore::Navigation::type): |
|
7924 * page/Navigation.h: |
|
7925 (WebCore::Navigation::): |
|
7926 * page/Navigation.idl: |
|
7927 |
|
7928 2010-07-09 Pavel Feldman <pfeldman@chromium.org> |
|
7929 |
|
7930 Reviewed by Yury Semikhatsky. |
|
7931 |
|
7932 Web Inspector: hide AppCache until implemented. |
|
7933 |
|
7934 https://bugs.webkit.org/show_bug.cgi?id=41858 |
|
7935 |
|
7936 * inspector/front-end/StoragePanel.js: |
|
7937 (WebInspector.StoragePanel): |
|
7938 (WebInspector.StoragePanel.prototype.reset): |
|
7939 (WebInspector.StoragePanel.prototype.addApplicationCache): |
|
7940 |
|
7941 2010-07-09 François Sausset <sausset@gmail.com> |
|
7942 |
|
7943 Reviewed by Kenneth Rohde Christiansen. |
|
7944 |
|
7945 Set the good default behaviour for the columalign attribute on MathML mtable element |
|
7946 https://bugs.webkit.org/show_bug.cgi?id=41631 |
|
7947 |
|
7948 Test update: mathml/tables.xhtml |
|
7949 |
|
7950 * css/mathml.css: |
|
7951 (math): |
|
7952 |
|
7953 2010-07-09 Sheriff Bot <webkit.review.bot@gmail.com> |
|
7954 |
|
7955 Unreviewed, rolling out r62937. |
|
7956 http://trac.webkit.org/changeset/62937 |
|
7957 https://bugs.webkit.org/show_bug.cgi?id=41955 |
|
7958 |
|
7959 Crashes SnowLeopard leaks and Windows debug bot in fast/xsl |
|
7960 /xslt-relative-path.xml, with assertion in |
|
7961 XSLTProcessorLibxslt.cpp:264 (Requested by WildFox on |
|
7962 #webkit). |
|
7963 |
|
7964 * xml/XSLTProcessor.h: |
|
7965 (WebCore::XSLTProcessor::XSLTProcessor): |
|
7966 * xml/XSLTProcessorLibxslt.cpp: |
|
7967 (WebCore::docLoaderFunc): |
|
7968 (WebCore::setXSLTLoadCallBack): |
|
7969 (WebCore::xsltStylesheetPointer): |
|
7970 (WebCore::XSLTProcessor::transformToString): |
|
7971 |
|
7972 2010-07-09 Yael Aharon <yael.aharon@nokia.com> |
|
7973 |
|
7974 Reviewed by Laszlo Gombos. |
|
7975 |
|
7976 NotificationPresenter needs a cancelRequestPermission API |
|
7977 https://bugs.webkit.org/show_bug.cgi?id=41783 |
|
7978 |
|
7979 Updated NotificationPresenter API, to use ScriptExecutionContext instead of origin. |
|
7980 Added new API NotificationPresenter::cancelRequestsForPermision |
|
7981 The new API will be implemented and a test will be added in a followup patch. |
|
7982 |
|
7983 * notifications/Notification.cpp: |
|
7984 (WebCore::Notification::Notification): |
|
7985 * notifications/NotificationCenter.cpp: |
|
7986 (WebCore::NotificationCenter::checkPermission): |
|
7987 (WebCore::NotificationCenter::requestPermission): |
|
7988 (WebCore::NotificationCenter::disconnectFrame): |
|
7989 * notifications/NotificationCenter.h: |
|
7990 * notifications/NotificationPresenter.h: |
|
7991 |
|
7992 2010-07-09 Andreas Wictor <andreas.wictor@xcerion.com> |
|
7993 |
|
7994 Reviewed by Alexey Proskuryakov. |
|
7995 |
|
7996 Remove global variables from XSLTProcessorLibxslt.cpp |
|
7997 https://bugs.webkit.org/show_bug.cgi?id=41348 |
|
7998 |
|
7999 Remove the globalProcessor and globalDocLoader global variables |
|
8000 by using the _private field that exists on most libxml structs. |
|
8001 |
|
8002 No new tests, existing tests covers this. |
|
8003 |
|
8004 * xml/XSLTProcessor.h: |
|
8005 (WebCore::XSLTProcessor::sourceNode): |
|
8006 (WebCore::XSLTProcessor::XSLTProcessor): |
|
8007 * xml/XSLTProcessorLibxslt.cpp: |
|
8008 (WebCore::registeredXSLTProcessors): |
|
8009 (WebCore::registeredXSLStyleSheets): |
|
8010 (WebCore::docLoaderFunc): |
|
8011 (WebCore::clearSavedStyleSheetPointers): |
|
8012 (WebCore::xsltStylesheetPointer): |
|
8013 (WebCore::XSLTProcessor::transformToString): |
|
8014 |
|
8015 2010-07-09 Adam Barth <abarth@webkit.org> |
|
8016 |
|
8017 Unreviewed build fix. |
|
8018 |
|
8019 We recently taught the HTMLTokenizer to recognize self-closing tags, |
|
8020 <http://trac.webkit.org/changeset/62926>, but that confused the |
|
8021 LegacyHTMLTreeBuilder. It turns out that it's much happier if we never |
|
8022 say a tag is self-closing. |
|
8023 |
|
8024 * html/HTMLTreeBuilder.cpp: |
|
8025 (WebCore::convertToOldStyle): |
|
8026 |
|
8027 2010-07-09 Nikolas Zimmermann <nzimmermann@rim.com> |
|
8028 |
|
8029 Reviewed by Rob Buis. |
|
8030 |
|
8031 svg/custom/use-instanceRoot-event-bubbling.xhtml test crashes |
|
8032 https://bugs.webkit.org/show_bug.cgi?id=41931 |
|
8033 |
|
8034 Be careful to not mutate (marking it for recreation) the shadow tree, while building it. |
|
8035 The recent change that cloneNode() properly synchronizes the style/SVG attributes caused this problem. |
|
8036 |
|
8037 Fixes crash seen on the buildbots in svg/custom/use-instanceRoot-event-bubbling.xhtml. |
|
8038 |
|
8039 * svg/SVGUseElement.cpp: |
|
8040 (WebCore::SVGUseElement::SVGUseElement): |
|
8041 (WebCore::SVGUseElement::recalcStyle): |
|
8042 (WebCore::SVGUseElement::buildShadowAndInstanceTree): |
|
8043 (WebCore::SVGUseElement::invalidateShadowTree): |
|
8044 * svg/SVGUseElement.h: |
|
8045 (WebCore::SVGUseElement::setUpdatesBlocked): |
|
8046 |
|
8047 2010-07-09 Adam Barth <abarth@webkit.org> |
|
8048 |
|
8049 Reviewed by Eric Seidel. |
|
8050 |
|
8051 Skip leading newlines in <textarea> |
|
8052 https://bugs.webkit.org/show_bug.cgi?id=41947 |
|
8053 |
|
8054 We would have caught this earlier with the ASSERT. |
|
8055 |
|
8056 * html/HTMLTokenizer.cpp: |
|
8057 (WebCore::HTMLTokenizer::nextToken): |
|
8058 |
|
8059 2010-07-08 Pavel Feldman <pfeldman@chromium.org> |
|
8060 |
|
8061 Reviewed by Yury Semikhatsky. |
|
8062 |
|
8063 Web Inspector: Provide detailed network info in the resources panel. |
|
8064 |
|
8065 https://bugs.webkit.org/show_bug.cgi?id=40227 |
|
8066 |
|
8067 * English.lproj/localizedStrings.js: |
|
8068 * inspector/InspectorController.cpp: |
|
8069 (WebCore::InspectorController::willSendRequest): |
|
8070 (WebCore::InspectorController::didReceiveResponse): |
|
8071 * inspector/InspectorController.h: |
|
8072 * inspector/InspectorResource.cpp: |
|
8073 (WebCore::InspectorResource::InspectorResource): |
|
8074 (WebCore::InspectorResource::updateResponse): |
|
8075 (WebCore::InspectorResource::updateScriptObject): |
|
8076 (WebCore::InspectorResource::buildObjectForTiming): |
|
8077 * inspector/InspectorResource.h: |
|
8078 * inspector/front-end/ResourcesPanel.js: |
|
8079 (WebInspector.ResourcesPanel): |
|
8080 (WebInspector.ResourcesPanel.prototype.elementsToRestoreScrollPositionsFor): |
|
8081 (WebInspector.ResourcesPanel.prototype._getPopoverAnchor): |
|
8082 (WebInspector.ResourcesPanel.prototype._showPopover): |
|
8083 (WebInspector.ResourcesPanel.prototype.hide): |
|
8084 (WebInspector.ResourceTimeCalculator.prototype.computeBarGraphLabels): |
|
8085 (WebInspector.ResourceGraph): |
|
8086 * inspector/front-end/inspector.js: |
|
8087 (WebInspector.updateResource): |
|
8088 * platform/network/ResourceLoadTiming.h: |
|
8089 (WebCore::ResourceLoadTiming::create): |
|
8090 (WebCore::ResourceLoadTiming::deepCopy): |
|
8091 (WebCore::ResourceLoadTiming::operator==): |
|
8092 (WebCore::ResourceLoadTiming::ResourceLoadTiming): |
|
8093 * platform/network/ResourceRequestBase.h: |
|
8094 (WebCore::ResourceRequestBase::reportLoadTiming): |
|
8095 (WebCore::ResourceRequestBase::setReportLoadTiming): |
|
8096 (WebCore::ResourceRequestBase::ResourceRequestBase): |
|
8097 * platform/network/ResourceResponseBase.cpp: |
|
8098 (WebCore::ResourceResponseBase::connectionID): |
|
8099 (WebCore::ResourceResponseBase::setConnectionID): |
|
8100 * platform/network/ResourceResponseBase.h: |
|
8101 |
|
8102 2010-07-09 Eric Seidel <eric@webkit.org> |
|
8103 |
|
8104 Reviewed by Adam Barth. |
|
8105 |
|
8106 Implement self closing start tag state in the tokenizer |
|
8107 https://bugs.webkit.org/show_bug.cgi?id=41946 |
|
8108 |
|
8109 Amazingly we got this far w/o needing self closing. |
|
8110 The LegacyHTMLTreeBuilder clearly uses the self-closing |
|
8111 state, but the fact that we never exposed it seems to |
|
8112 not have caused any test failures. Sad. |
|
8113 |
|
8114 The new HTMLTreeBuilder only needs the self closing state |
|
8115 for foreign content mode (and a few parse error cases). |
|
8116 |
|
8117 * html/HTMLToken.h: |
|
8118 (WebCore::HTMLToken::setSelfClosing): |
|
8119 * html/HTMLTokenizer.cpp: |
|
8120 (WebCore::HTMLTokenizer::nextToken): |
|
8121 * html/HTMLTreeBuilder.cpp: |
|
8122 (WebCore::): |
|
8123 |
|
8124 2010-07-09 Eric Seidel <eric@webkit.org> |
|
8125 |
|
8126 Reviewed by Adam Barth. |
|
8127 |
|
8128 Add basic "in foreign content" support to the TreeBuilder |
|
8129 https://bugs.webkit.org/show_bug.cgi?id=41943 |
|
8130 |
|
8131 This is covered by numerous tests in html5lib/runner.html. |
|
8132 |
|
8133 "in foreign content" mode requires us to be able to process |
|
8134 tokens using the "secondary insertion mode". We have to set |
|
8135 a fake insertion mode to do that, so much of this code is enabling |
|
8136 setting of fake insertion modes, and then later restoration of the |
|
8137 insertion mode after execution. |
|
8138 |
|
8139 There is a lot more of foreign content mode to implement, but this is |
|
8140 a good start resulting in huge test progressions. |
|
8141 |
|
8142 * html/HTMLConstructionSite.cpp: |
|
8143 (WebCore::HTMLConstructionSite::insertSelfClosingHTMLElement): |
|
8144 - Use createHTMLElementAndAttachToCurrent instead of copy/paste code. |
|
8145 - No need to include HTMLElementFactory in this file. |
|
8146 * html/HTMLConstructionSite.h: |
|
8147 - RedirectToFosterParentGuard does not need to be a friend class. |
|
8148 * html/HTMLElementStack.cpp: |
|
8149 (WebCore::HTMLElementStack::isOnlyHTMLElementsInScope): |
|
8150 * html/HTMLElementStack.h: |
|
8151 * html/HTMLTreeBuilder.cpp: |
|
8152 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
8153 (WebCore::): |
|
8154 * html/HTMLTreeBuilder.h: |
|
8155 (WebCore::HTMLTreeBuilder::setInsertionMode): |
|
8156 (WebCore::HTMLTreeBuilder::isFakeInsertionMode): |
|
8157 (WebCore::HTMLTreeBuilder::setFakeInsertionMode): |
|
8158 |
|
8159 2010-07-09 Adam Barth <abarth@webkit.org> |
|
8160 |
|
8161 Reviewed by Eric Seidel. |
|
8162 |
|
8163 Coalesce text nodes when foster parenting |
|
8164 https://bugs.webkit.org/show_bug.cgi?id=41921 |
|
8165 |
|
8166 Introduces the notion of an AttachmentSite to the overall |
|
8167 HTMLConstructionSite. Maybe we should rename HTMLConstructionSite to |
|
8168 HTMLConstructionArea since we construct things all over the tree? :) |
|
8169 |
|
8170 There's something wrong in the internal layering in this class, but I |
|
8171 can't quite see what it is. I added a FIXME for the some of the |
|
8172 symptoms. |
|
8173 |
|
8174 * html/HTMLConstructionSite.cpp: |
|
8175 (WebCore::HTMLConstructionSite::attach): |
|
8176 (WebCore::HTMLConstructionSite::attachAtSite): |
|
8177 (WebCore::HTMLConstructionSite::insertTextNode): |
|
8178 (WebCore::HTMLConstructionSite::findFosterSite): |
|
8179 (WebCore::HTMLConstructionSite::fosterParent): |
|
8180 * html/HTMLConstructionSite.h: |
|
8181 |
|
8182 2010-07-08 Nikolas Zimmermann <nzimmermann@rim.com> |
|
8183 |
|
8184 Reviewed by Dirk Schulze. |
|
8185 |
|
8186 RenderSVGRoot does not include border/padding while repainting |
|
8187 https://bugs.webkit.org/show_bug.cgi?id=41854 |
|
8188 |
|
8189 RenderSVGRoot does not include border/padding in the repaint rect. |
|
8190 clippedOverflowRectForRepaint() was missing. Affects all DRT results, |
|
8191 as <svg> now gets properly sized. |
|
8192 |
|
8193 Test: svg/custom/repaint-moving-svg-and-div.xhtml |
|
8194 |
|
8195 * rendering/RenderSVGRoot.cpp: |
|
8196 (WebCore::RenderSVGRoot::repaintRectInLocalCoordinates): |
|
8197 (WebCore::RenderSVGRoot::clippedOverflowRectForRepaint): |
|
8198 * rendering/RenderSVGRoot.h: |
|
8199 |
|
8200 2010-07-09 Albert J. Wong <ajwong@chromium.org> |
|
8201 |
|
8202 Reviewed by Nikolas Zimmermann. |
|
8203 |
|
8204 Add RuntimeEnabledFeatures::timeRangesEnabled() required by r62880 |
|
8205 |
|
8206 https://bugs.webkit.org/show_bug.cgi?id=41935 |
|
8207 |
|
8208 * bindings/generic/RuntimeEnabledFeatures.cpp: |
|
8209 (WebCore::RuntimeEnabledFeatures::timeRangesEnabled): |
|
8210 Add in timeRangesEnabled() implementation. |
|
8211 * bindings/generic/RuntimeEnabledFeatures.h: |
|
8212 Add in timeRangesEnabled() declaration. |
|
8213 |
|
8214 |
|
8215 2010-07-09 Eric Seidel <eric@webkit.org> |
|
8216 |
|
8217 Reviewed by Adam Barth. |
|
8218 |
|
8219 Add setInsertionMode setter in preparation for "in foreign content" mode |
|
8220 https://bugs.webkit.org/show_bug.cgi?id=41942 |
|
8221 |
|
8222 "in foreign content" mode needs to be able to use a fake |
|
8223 insertion mode for processing. We need to be able to save the |
|
8224 original insertion mode, set a fake one, and then restore the original |
|
8225 if it wasn't changed. To detect changes, we need all callsites to |
|
8226 use a setInsertionMode accessor instead of m_insertionMode = |
|
8227 |
|
8228 No functional changes, thus no tests. |
|
8229 |
|
8230 * html/HTMLTreeBuilder.cpp: |
|
8231 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
8232 (WebCore::HTMLTreeBuilder::processColgroupEndTagForInColumnGroup): |
|
8233 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
8234 (WebCore::HTMLTreeBuilder::processStartTag): |
|
8235 (WebCore::HTMLTreeBuilder::processBodyEndTagForInBody): |
|
8236 (WebCore::HTMLTreeBuilder::setInsertionModeAndEnd): |
|
8237 (WebCore::HTMLTreeBuilder::processEndTagForInTableBody): |
|
8238 (WebCore::HTMLTreeBuilder::processEndTagForInCell): |
|
8239 (WebCore::HTMLTreeBuilder::processCaptionEndTagForInCaption): |
|
8240 (WebCore::HTMLTreeBuilder::processTrEndTagForInRow): |
|
8241 (WebCore::HTMLTreeBuilder::processEndTag): |
|
8242 (WebCore::HTMLTreeBuilder::processCharacter): |
|
8243 (WebCore::HTMLTreeBuilder::processDefaultForInTableTextMode): |
|
8244 (WebCore::HTMLTreeBuilder::processGenericRCDATAStartTag): |
|
8245 (WebCore::HTMLTreeBuilder::processGenericRawTextStartTag): |
|
8246 (WebCore::HTMLTreeBuilder::processScriptStartTag): |
|
8247 |
|
8248 2010-07-09 Eric Seidel <eric@webkit.org> |
|
8249 |
|
8250 Reviewed by Adam Barth. |
|
8251 |
|
8252 Add insertForeignElement in preparation for adding "in foreign content" support |
|
8253 https://bugs.webkit.org/show_bug.cgi?id=41940 |
|
8254 |
|
8255 No functional changes, thus no tests. |
|
8256 |
|
8257 * html/HTMLConstructionSite.cpp: |
|
8258 (WebCore::HTMLConstructionSite::insertForeignElement): |
|
8259 (WebCore::HTMLConstructionSite::createElement): |
|
8260 (WebCore::HTMLConstructionSite::createHTMLElement): |
|
8261 * html/HTMLConstructionSite.h: |
|
8262 |
|
8263 2010-07-09 Adam Barth <abarth@webkit.org> |
|
8264 |
|
8265 Reviewed by Eric Seidel. |
|
8266 |
|
8267 Implementing pending table characters |
|
8268 https://bugs.webkit.org/show_bug.cgi?id=41916 |
|
8269 |
|
8270 This turned out to not be as scary as I thought it would be. |
|
8271 |
|
8272 * html/HTMLTreeBuilder.cpp: |
|
8273 (WebCore::HTMLTreeBuilder::processDoctypeToken): |
|
8274 (WebCore::HTMLTreeBuilder::processStartTag): |
|
8275 (WebCore::HTMLTreeBuilder::processEndTag): |
|
8276 (WebCore::HTMLTreeBuilder::processComment): |
|
8277 (WebCore::HTMLTreeBuilder::processCharacter): |
|
8278 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
8279 (WebCore::HTMLTreeBuilder::processDefaultForInTableTextMode): |
|
8280 * html/HTMLTreeBuilder.h: |
|
8281 |
|
8282 2010-07-08 Adam Barth <abarth@webkit.org> |
|
8283 |
|
8284 Reviewed by Eric Seidel. |
|
8285 |
|
8286 Handle whitespace correctly |
|
8287 https://bugs.webkit.org/show_bug.cgi?id=41907 |
|
8288 |
|
8289 This patch introduces an extra memcpy in the character token pipeline. |
|
8290 I'll remove the memcpy in a future patch. |
|
8291 |
|
8292 * html/HTMLConstructionSite.cpp: |
|
8293 (WebCore::HTMLConstructionSite::insertTextNode): |
|
8294 * html/HTMLConstructionSite.h: |
|
8295 * html/HTMLTreeBuilder.cpp: |
|
8296 (WebCore::HTMLTreeBuilder::processCharacter): |
|
8297 * html/HTMLTreeBuilder.h: |
|
8298 |
|
8299 2010-07-09 Eric Seidel <eric@webkit.org> |
|
8300 |
|
8301 Reviewed by Adam Barth. |
|
8302 |
|
8303 Move more mode handling into functions for later re-use |
|
8304 https://bugs.webkit.org/show_bug.cgi?id=41939 |
|
8305 |
|
8306 No functional changes, thus no tests. |
|
8307 |
|
8308 * html/HTMLTreeBuilder.cpp: |
|
8309 (WebCore::HTMLTreeBuilder::processEndTagForInTableBody): |
|
8310 (WebCore::HTMLTreeBuilder::processEndTagForInRow): |
|
8311 (WebCore::HTMLTreeBuilder::processEndTagForInCell): |
|
8312 (WebCore::HTMLTreeBuilder::processEndTag): |
|
8313 * html/HTMLTreeBuilder.h: |
|
8314 |
|
8315 2010-07-09 Eric Seidel <eric@webkit.org> |
|
8316 |
|
8317 Reviewed by Adam Barth. |
|
8318 |
|
8319 Add new popUntilPopped functions to clean up code |
|
8320 https://bugs.webkit.org/show_bug.cgi?id=41936 |
|
8321 |
|
8322 Pretty self explanatory. Much awesome code reduction. |
|
8323 |
|
8324 No functional changes, thus no tests. |
|
8325 |
|
8326 * html/HTMLElementStack.cpp: |
|
8327 (WebCore::HTMLElementStack::popUntilPopped): |
|
8328 * html/HTMLElementStack.h: |
|
8329 * html/HTMLTreeBuilder.cpp: |
|
8330 (WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody): |
|
8331 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
8332 (WebCore::HTMLTreeBuilder::processEndTagForInBody): |
|
8333 (WebCore::HTMLTreeBuilder::processCaptionEndTagForInCaption): |
|
8334 (WebCore::HTMLTreeBuilder::processTableEndTagForInTable): |
|
8335 (WebCore::HTMLTreeBuilder::processEndTag): |
|
8336 |
|
8337 2010-07-09 Eric Seidel <eric@webkit.org> |
|
8338 |
|
8339 Unreviewed. Just renaming (discussed with Adam Barth). |
|
8340 |
|
8341 Rename createElement* to createHTMLElement* to better reflect |
|
8342 behavior. This is in preparation for adding foreign content support. |
|
8343 |
|
8344 * html/HTMLConstructionSite.cpp: |
|
8345 (WebCore::HTMLConstructionSite::createHTMLElementAndAttachToCurrent): |
|
8346 (WebCore::HTMLConstructionSite::insertHTMLHtmlElement): |
|
8347 (WebCore::HTMLConstructionSite::insertHTMLHeadElement): |
|
8348 (WebCore::HTMLConstructionSite::insertHTMLBodyElement): |
|
8349 (WebCore::HTMLConstructionSite::insertHTMLElement): |
|
8350 (WebCore::HTMLConstructionSite::insertSelfClosingHTMLElement): |
|
8351 (WebCore::HTMLConstructionSite::createHTMLElement): |
|
8352 * html/HTMLConstructionSite.h: |
|
8353 * html/HTMLTreeBuilder.cpp: |
|
8354 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
8355 |
|
8356 2010-07-09 Eric Seidel <eric@webkit.org> |
|
8357 |
|
8358 Unreviewed. Just renaming (discussed with Adam Barth). |
|
8359 |
|
8360 Rename insertElement to insertHTMLElement and |
|
8361 insertSelfClosingElement to insertSelfClosingHTMLElement |
|
8362 to better reflect what they actually do. This is in preparation |
|
8363 for adding foreign content support. |
|
8364 |
|
8365 * html/HTMLConstructionSite.cpp: |
|
8366 (WebCore::HTMLConstructionSite::insertHTMLElement): |
|
8367 (WebCore::HTMLConstructionSite::insertSelfClosingHTMLElement): |
|
8368 (WebCore::HTMLConstructionSite::insertFormattingElement): |
|
8369 (WebCore::HTMLConstructionSite::reconstructTheActiveFormattingElements): |
|
8370 (WebCore::HTMLConstructionSite::fosterParent): |
|
8371 * html/HTMLConstructionSite.h: |
|
8372 * html/HTMLTreeBuilder.cpp: |
|
8373 (WebCore::HTMLTreeBuilder::processCloseWhenNestedTag): |
|
8374 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
8375 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
8376 (WebCore::HTMLTreeBuilder::processStartTag): |
|
8377 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
8378 (WebCore::HTMLTreeBuilder::processStartTagForInHead): |
|
8379 (WebCore::HTMLTreeBuilder::processGenericRCDATAStartTag): |
|
8380 (WebCore::HTMLTreeBuilder::processGenericRawTextStartTag): |
|
8381 |
|
8382 2010-07-08 Rob Buis <rwlbuis@gmail.com> |
|
8383 |
|
8384 Reviewed by Eric Seidel. |
|
8385 |
|
8386 Implement SVGSVGElement.getElementById |
|
8387 https://bugs.webkit.org/show_bug.cgi?id=41655 |
|
8388 |
|
8389 Implement getElementById for SVGSVGElement by trying to |
|
8390 reuse Document.getElementById. If that fails to find an |
|
8391 SVG element in the document fragent do a subtree search. |
|
8392 |
|
8393 Test: svg/custom/svg-getelementid.xhtml |
|
8394 |
|
8395 * svg/SVGSVGElement.cpp: |
|
8396 (WebCore::SVGSVGElement::getElementById): |
|
8397 * svg/SVGSVGElement.h: |
|
8398 * svg/SVGSVGElement.idl: |
|
8399 |
|
8400 2010-07-08 Eric Seidel <eric@webkit.org> |
|
8401 |
|
8402 Reviewed by Adam Barth. |
|
8403 |
|
8404 Unwrap a few || blocks for easier readability |
|
8405 https://bugs.webkit.org/show_bug.cgi?id=41838 |
|
8406 |
|
8407 No functional change, thus no tests. |
|
8408 |
|
8409 * html/HTMLTreeBuilder.cpp: |
|
8410 (WebCore::HTMLTreeBuilder::adjustedLexerState): |
|
8411 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
8412 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
8413 (WebCore::HTMLTreeBuilder::processStartTag): |
|
8414 (WebCore::HTMLTreeBuilder::processEndTagForInBody): |
|
8415 (WebCore::HTMLTreeBuilder::processEndTag): |
|
8416 (WebCore::HTMLTreeBuilder::processComment): |
|
8417 (WebCore::HTMLTreeBuilder::processStartTagForInHead): |
|
8418 |
|
8419 2010-07-08 Sam Magnuson <smagnuson@netflix.com> |
|
8420 |
|
8421 Reviewed by Simon Hausmann. |
|
8422 |
|
8423 [Qt] for debugging purposes nice I'm contributing back my FPS |
|
8424 counter in the AnimationQtBase |
|
8425 https://bugs.webkit.org/show_bug.cgi?id=40381 |
|
8426 |
|
8427 Simply start a timer and count frames in the AnimationQtBase and |
|
8428 spit out the FPS count at the end of a single animation. |
|
8429 |
|
8430 No new tests: this is a simple debugging aid. |
|
8431 |
|
8432 * platform/graphics/qt/GraphicsLayerQt.cpp: |
|
8433 (WebCore::AnimationQt::updateState): |
|
8434 (WebCore::AnimationQt::updateCurrentTime): |
|
8435 (WebCore::TransformAnimationQt::updateState): |
|
8436 (WebCore::OpacityAnimationQt::updateState): |
|
8437 |
|
8438 2010-07-08 Ilya Tikhonovsky <loislo@chromium.org> |
|
8439 |
|
8440 Reviewed by Pavel Feldman. |
|
8441 |
|
8442 WebInspector: migrate InspectorDOMAgent to the generated version of |
|
8443 InspectorFrontend interface. This is the next step on the way to |
|
8444 Remote Debugging. |
|
8445 |
|
8446 * bindings/js/ScriptEventListener.cpp: |
|
8447 (WebCore::eventListenerHandlerBody): |
|
8448 (WebCore::eventListenerHandlerLocation): |
|
8449 * bindings/js/ScriptEventListener.h: |
|
8450 * bindings/v8/ScriptEventListener.cpp: |
|
8451 (WebCore::eventListenerHandlerBody): |
|
8452 (WebCore::eventListenerHandlerLocation): |
|
8453 * bindings/v8/ScriptEventListener.h: |
|
8454 * inspector/CodeGeneratorInspector.pm: |
|
8455 * inspector/InspectorCSSStore.cpp: |
|
8456 (WebCore::InspectorCSSStore::inspectorStyleSheet): |
|
8457 * inspector/InspectorController.cpp: |
|
8458 (WebCore::InspectorController::connectFrontend): |
|
8459 * inspector/InspectorController.h: |
|
8460 (WebCore::InspectorController::inspectorFrontend2): |
|
8461 * inspector/InspectorDOMAgent.cpp: |
|
8462 (WebCore::InspectorDOMAgent::InspectorDOMAgent): |
|
8463 (WebCore::InspectorDOMAgent::setDocument): |
|
8464 (WebCore::InspectorDOMAgent::handleEvent): |
|
8465 (WebCore::InspectorDOMAgent::pushChildNodesToFrontend): |
|
8466 (WebCore::InspectorDOMAgent::getEventListenersForNode): |
|
8467 (WebCore::InspectorDOMAgent::buildObjectForNode): |
|
8468 (WebCore::InspectorDOMAgent::buildArrayForElementAttributes): |
|
8469 (WebCore::InspectorDOMAgent::buildArrayForContainerChildren): |
|
8470 (WebCore::InspectorDOMAgent::buildObjectForEventListener): |
|
8471 (WebCore::InspectorDOMAgent::didInsertDOMNode): |
|
8472 (WebCore::InspectorDOMAgent::getStyles): |
|
8473 (WebCore::InspectorDOMAgent::getAllStyles): |
|
8474 (WebCore::InspectorDOMAgent::getStyleSheet): |
|
8475 (WebCore::InspectorDOMAgent::getRuleRangesForStyleSheetId): |
|
8476 (WebCore::InspectorDOMAgent::getInlineStyle): |
|
8477 (WebCore::InspectorDOMAgent::getComputedStyle): |
|
8478 (WebCore::InspectorDOMAgent::buildObjectForAttributeStyles): |
|
8479 (WebCore::InspectorDOMAgent::buildArrayForCSSRules): |
|
8480 (WebCore::InspectorDOMAgent::buildArrayForPseudoElements): |
|
8481 (WebCore::InspectorDOMAgent::applyStyleText): |
|
8482 (WebCore::InspectorDOMAgent::toggleStyleEnabled): |
|
8483 (WebCore::InspectorDOMAgent::setRuleSelector): |
|
8484 (WebCore::InspectorDOMAgent::addRule): |
|
8485 (WebCore::InspectorDOMAgent::buildObjectForStyle): |
|
8486 (WebCore::InspectorDOMAgent::populateObjectWithStyleProperties): |
|
8487 (WebCore::InspectorDOMAgent::buildArrayForDisabledStyleProperties): |
|
8488 (WebCore::InspectorDOMAgent::buildObjectForStyleSheet): |
|
8489 (WebCore::InspectorDOMAgent::buildObjectForRule): |
|
8490 (WebCore::InspectorDOMAgent::toArray): |
|
8491 (WebCore::InspectorDOMAgent::reportNodesAsSearchResults): |
|
8492 * inspector/InspectorDOMAgent.h: |
|
8493 (WebCore::InspectorDOMAgent::create): |
|
8494 * inspector/InspectorFrontend.cpp: |
|
8495 * inspector/InspectorFrontend.h: |
|
8496 * inspector/InspectorFrontend2.idl: |
|
8497 * inspector/front-end/inspector.js: |
|
8498 (WebInspector.dispatchMessageFromBackend): |
|
8499 |
|
8500 2010-07-08 Simon Fraser <simon.fraser@apple.com> |
|
8501 |
|
8502 Reviewed by Darin Adler. |
|
8503 |
|
8504 compositing/iframes/iframe-resize.html displays incorrectly after the resize |
|
8505 https://bugs.webkit.org/show_bug.cgi?id=41794 |
|
8506 |
|
8507 The clip and scroll layers of a composited iframe's RenderLayerCompositor are updated from |
|
8508 from updateGraphicsLayerGeometry(), but this is too early to get the correct layoutWidth and |
|
8509 layoutHeight from the FrameView which happen later in layout. So when a widget size changes, |
|
8510 call updateAfterWidgetResize() directly on the RenderLayerBacking (if any). |
|
8511 |
|
8512 * rendering/RenderLayerBacking.cpp: |
|
8513 (WebCore::RenderLayerBacking::updateAfterWidgetResize): New method that updates the clip |
|
8514 and scroll layers of the iframe's content RenderLayerCompositor. |
|
8515 (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): Call updateAfterWidgetResize() |
|
8516 * rendering/RenderLayerBacking.h: Add updateAfterWidgetResize(). |
|
8517 * rendering/RenderWidget.cpp: |
|
8518 (WebCore::RenderWidget::setWidgetGeometry): Call updateAfterWidgetResize(). |
|
8519 |
|
8520 2010-07-08 Simon Fraser <simon.fraser@apple.com> |
|
8521 |
|
8522 Reviewed by Dan Bernstein. |
|
8523 |
|
8524 Calling layoutTestController.layerTreeAsText() should update layout |
|
8525 https://bugs.webkit.org/show_bug.cgi?id=41818 |
|
8526 |
|
8527 Call updateLayout() on the document before obtaining the layer tree. |
|
8528 This will update compositing layers. |
|
8529 |
|
8530 * page/Frame.cpp: |
|
8531 (WebCore::Frame::layerTreeAsText): |
|
8532 |
|
8533 2010-07-08 Adam Barth <abarth@webkit.org> |
|
8534 |
|
8535 Reviewed by Eric Seidel. |
|
8536 |
|
8537 Get my head wrapped around processCharacter |
|
8538 https://bugs.webkit.org/show_bug.cgi?id=41812 |
|
8539 |
|
8540 The bulk of the patch is just stubbing out functions to document what |
|
8541 the spec tells us to do. I'll implement these functions in subsequent |
|
8542 patches. |
|
8543 |
|
8544 * html/HTMLConstructionSite.h: |
|
8545 (WebCore::HTMLConstructionSite::insertLeadingWhitespace): |
|
8546 (WebCore::HTMLConstructionSite::insertLeadingWhitespaceWithActiveFormattingElements): |
|
8547 * html/HTMLTreeBuilder.cpp: |
|
8548 (WebCore::HTMLTreeBuilder::processCharacter): |
|
8549 * html/HTMLTreeBuilder.h: |
|
8550 (WebCore::HTMLTreeBuilder::skipLeadingWhitespace): |
|
8551 |
|
8552 2010-07-08 Tony Chang <tony@chromium.org> |
|
8553 |
|
8554 Reviewed by Ojan Vafai. |
|
8555 |
|
8556 WebCore::InsertLineBreakCommand::shouldUseBreakElement ReadAV@NULL |
|
8557 https://bugs.webkit.org/show_bug.cgi?id=30116 |
|
8558 Fixing the crash causes text insertions on hidden elements to get ignored |
|
8559 (not a new bug). This is https://bugs.webkit.org/show_bug.cgi?id=40342 |
|
8560 |
|
8561 Test: editing/inserting/return-key-in-hidden-textarea.html |
|
8562 |
|
8563 * editing/InsertLineBreakCommand.cpp: |
|
8564 (WebCore::InsertLineBreakCommand::doApply): |
|
8565 * editing/InsertParagraphSeparatorCommand.cpp: |
|
8566 (WebCore::InsertParagraphSeparatorCommand::doApply): |
|
8567 |
|
8568 2010-07-08 Sam Weinig <sam@webkit.org> |
|
8569 |
|
8570 Reviewed by Oliver Hunt. |
|
8571 |
|
8572 Fix for https://bugs.webkit.org/show_bug.cgi?id=41923 |
|
8573 TimeRanges should expose a JS constructor |
|
8574 |
|
8575 * html/TimeRanges.idl: Remove [OmitConstructor]. |
|
8576 * page/DOMWindow.idl: Add constructor. |
|
8577 |
|
8578 2010-07-08 Erik Arvidsson <arv@chromium.org> |
|
8579 |
|
8580 Reviewed by Ojan Vafai. |
|
8581 |
|
8582 Add missing padding-end and margin-end CSS properties. |
|
8583 https://bugs.webkit.org/show_bug.cgi?id=25761 |
|
8584 |
|
8585 Tests: fast/css/margin-start-end.html |
|
8586 fast/css/padding-start-end.html |
|
8587 |
|
8588 * css/CSSComputedStyleDeclaration.cpp: |
|
8589 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): |
|
8590 * css/CSSParser.cpp: |
|
8591 (WebCore::CSSParser::parseValue): |
|
8592 * css/CSSPropertyNames.in: |
|
8593 * css/CSSStyleSelector.cpp: |
|
8594 (WebCore::CSSStyleSelector::applyProperty): |
|
8595 * inspector/front-end/SourceCSSTokenizer.js: |
|
8596 (WebInspector.SourceCSSTokenizer): |
|
8597 |
|
8598 2010-07-08 Aaron Boodman <aa@chromium.org> |
|
8599 |
|
8600 Reviewed by Timothy Hatcher. |
|
8601 |
|
8602 Add the ability for user scripts and user styles to affect just the top frame. |
|
8603 |
|
8604 https://bugs.webkit.org/show_bug.cgi?id=41529 |
|
8605 |
|
8606 Tests: userscripts/user-script-all-frames.html |
|
8607 userscripts/user-script-top-frame-only.html |
|
8608 userscripts/user-style-all-frames.html |
|
8609 userscripts/user-style-top-frame-only.html |
|
8610 |
|
8611 * WebCore.base.exp: Update PageGroup method signatures. |
|
8612 * dom/Document.cpp: |
|
8613 (WebCore::Document::pageGroupUserSheets): Check allFrames before injecting. |
|
8614 * page/Frame.cpp: |
|
8615 (WebCore::Frame::injectUserScriptsForWorld): Ditto. |
|
8616 * page/PageGroup.cpp: |
|
8617 (WebCore::PageGroup::addUserScriptToWorld): |
|
8618 (WebCore::PageGroup::addUserStyleSheetToWorld): |
|
8619 * page/PageGroup.h: |
|
8620 * page/UserScript.h: |
|
8621 (WebCore::UserScript::UserScript): |
|
8622 (WebCore::UserScript::injectedFrames): |
|
8623 * page/UserScriptTypes.h: |
|
8624 (WebCore::): |
|
8625 * page/UserStyleSheet.h: |
|
8626 (WebCore::UserStyleSheet::UserStyleSheet): |
|
8627 (WebCore::UserStyleSheet::injectedFrames): |
|
8628 |
|
8629 2010-07-08 Adele Peterson <adele@apple.com> |
|
8630 |
|
8631 Reviewed by Jon Honeycutt, Adam Roben, and Darin Adler. |
|
8632 |
|
8633 Fix for https://bugs.webkit.org/show_bug.cgi?id=41721 |
|
8634 <rdar://problem/8158561> Missing plug-in indicator should have a pressed state |
|
8635 |
|
8636 Test: plugins/clicking-missing-plugin-fires-delegate.html |
|
8637 |
|
8638 * html/HTMLPlugInElement.cpp: |
|
8639 (WebCore::HTMLPlugInElement::HTMLPlugInElement): Initialize m_isCapturingMouseEvents. |
|
8640 (WebCore::HTMLPlugInElement::detach): If we're still capturing when getting detached, clear the capturing node on the EventHandler. |
|
8641 (WebCore::HTMLPlugInElement::defaultEventHandler): Call handleMissingPluginIndicatorEvent when the missing plugin indicator is showing. |
|
8642 * html/HTMLPlugInElement.h: |
|
8643 (WebCore::HTMLPlugInElement::isCapturingMouseEvents): |
|
8644 (WebCore::HTMLPlugInElement::setIsCapturingMouseEvents): |
|
8645 * page/ChromeClient.h: |
|
8646 (WebCore::ChromeClient::shouldMissingPluginMessageBeButton): Added default implementation. |
|
8647 * rendering/RenderEmbeddedObject.cpp: |
|
8648 (WebCore::replacementTextRoundedRectPressedColor): |
|
8649 (WebCore::RenderEmbeddedObject::RenderEmbeddedObject): |
|
8650 (WebCore::RenderEmbeddedObject::setMissingPluginIndicatorIsPressed): Added. Causes a repaint when the state changes. |
|
8651 (WebCore::RenderEmbeddedObject::paintReplaced): Call getReplacementTextGeometry. |
|
8652 (WebCore::RenderEmbeddedObject::getReplacementTextGeometry): Factored this out so it can be used in paintReplaced and in isInMissingPluginIndicator. |
|
8653 (WebCore::RenderEmbeddedObject::isInMissingPluginIndicator): Hit test to see if the mouse event is in the missing plugin indicator. |
|
8654 (WebCore::RenderEmbeddedObject::handleMissingPluginIndicatorEvent): Capture mouse events as needed and track the pressed appearance. |
|
8655 * rendering/RenderEmbeddedObject.h: |
|
8656 |
|
8657 2010-07-08 James Robinson <jamesr@google.com> |
|
8658 |
|
8659 Reviewed by Darin Fisher. |
|
8660 |
|
8661 Allow resizing and getting the texture id from an offscreen GLES2Context |
|
8662 https://bugs.webkit.org/show_bug.cgi?id=41828 |
|
8663 |
|
8664 When using an offscreen GLES2Context the caller needs to be able to resize the backing store |
|
8665 managed by the embedder and get access to a texture id to pass to the compositor. WebGL |
|
8666 does these actions in an indirect way, it will be refactored to use this path. |
|
8667 |
|
8668 * platform/chromium/GLES2Context.h: |
|
8669 |
|
8670 2010-07-02 Ojan Vafai <ojan@chromium.org> |
|
8671 |
|
8672 Reviewed by Adam Barth. |
|
8673 |
|
8674 Crash in RenderObject::containingBlock when clearing selection in a display:none node. |
|
8675 https://bugs.webkit.org/show_bug.cgi?id=41523 |
|
8676 |
|
8677 updateStyleIfNeeded before clearing the selection in the RenderView. Otherwise, |
|
8678 m_selectionStart and m_selectionEnd in RenderView point to garbage object. |
|
8679 This fixes the crash because updateStyleIfNeeded clears the selection before |
|
8680 clobbering nodes that contain the selection. |
|
8681 |
|
8682 Test: editing/selection/crash-on-clear-selection.html |
|
8683 |
|
8684 * editing/SelectionController.cpp: |
|
8685 (WebCore::SelectionController::updateAppearance): |
|
8686 |
|
8687 2010-07-08 Brent Fulgham <bfulgham@webkit.org> |
|
8688 |
|
8689 Reviewed by Xan Lopez. |
|
8690 |
|
8691 Correct a mistake in calculating squiggle extents. The entire |
|
8692 quantity was being divided by two, rather than just the unitWidth. |
|
8693 This error caused the squiggle to be about half the expected length. |
|
8694 |
|
8695 * platform/graphics/cairo/DrawErrorUnderline.h: |
|
8696 (drawErrorUnderline): |
|
8697 |
|
8698 2010-07-08 John Abd-El-Malek <jam@chromium.org> |
|
8699 |
|
8700 Reviewed by Darin Fisher. |
|
8701 |
|
8702 [V8] Navigation policy doesn't play nicely with pepper plugins |
|
8703 https://bugs.webkit.org/show_bug.cgi?id=41864 |
|
8704 |
|
8705 * bindings/v8/V8Utilities.cpp: |
|
8706 (WebCore::callingOrEnteredFrame): |
|
8707 (WebCore::shouldAllowNavigation): |
|
8708 (WebCore::navigateIfAllowed): |
|
8709 |
|
8710 2010-07-08 Jon Honeycutt <jhoneycutt@apple.com> |
|
8711 |
|
8712 Missing plug-ins may cause an assertion failure. |
|
8713 https://bugs.webkit.org/show_bug.cgi?id=41900 |
|
8714 |
|
8715 Reviewed by Adele Peterson. |
|
8716 |
|
8717 Test: plugins/missing-plugin.html |
|
8718 |
|
8719 * plugins/PluginView.cpp: |
|
8720 (WebCore::PluginView::~PluginView): |
|
8721 Check whether m_instance is null before trying to remove it from the |
|
8722 map. Trying to remove a null instance results in an assertion failure. |
|
8723 (WebCore::PluginView::PluginView): |
|
8724 Initialize m_instance to 0, because there is an early return that may |
|
8725 skip its being assigned its proper value. |
|
8726 |
|
8727 2010-07-08 Darin Adler <darin@apple.com> |
|
8728 |
|
8729 Reviewed by Oliver Hunt. |
|
8730 |
|
8731 Fix a test failure seen only on the Leopard bot. |
|
8732 |
|
8733 * bindings/js/JSSharedWorkerCustom.cpp: |
|
8734 (WebCore::JSSharedWorkerConstructor::constructJSSharedWorker): |
|
8735 If SharedWorker::create returns an exception, don't try to create a wrapper |
|
8736 for its return value, which can be 0. |
|
8737 |
|
8738 2010-07-08 Albert J. Wong <ajwong@chromium.org> |
|
8739 |
|
8740 Not reviewed, build break fix for chromium. |
|
8741 |
|
8742 A new MediaControlElementType enum was added which caused a warning in |
|
8743 the Chromium build. |
|
8744 |
|
8745 * rendering/RenderMediaControlsChromium.cpp: |
|
8746 (WebCore::RenderMediaControlsChromium::paintMediaControlsPart): |
|
8747 Add MediaVolumeSliderMuteButton enumartion entry. |
|
8748 |
|
8749 2010-07-08 Dmitry Titov <dimich@chromium.org> |
|
8750 |
|
8751 Reviewed by David Levin. |
|
8752 |
|
8753 Remove IDL declarations and stubs for navigator.registerProtocolHandler and navigator.registerContentHandler. |
|
8754 https://bugs.webkit.org/show_bug.cgi?id=41878 |
|
8755 |
|
8756 This is practically a rollback of http://trac.webkit.org/changeset/50477. |
|
8757 |
|
8758 * page/Chrome.cpp: |
|
8759 * page/Chrome.h: |
|
8760 * page/ChromeClient.h: |
|
8761 * page/Navigator.cpp: |
|
8762 * page/Navigator.h: |
|
8763 * page/Navigator.idl: |
|
8764 |
|
8765 2010-07-08 Xan Lopez <xlopez@igalia.com> |
|
8766 |
|
8767 Reviewed by Darin Adler. |
|
8768 |
|
8769 Fix adoptRef assertion failures caused by stack-allocated ResourceHandle objects |
|
8770 https://bugs.webkit.org/show_bug.cgi?id=41823 |
|
8771 |
|
8772 Create the ResourceHandle manually for now instead of calling |
|
8773 ::create, since that methods does a few extra checks that make us |
|
8774 fail a couple of HTTP tests. |
|
8775 |
|
8776 * platform/network/soup/ResourceHandleSoup.cpp: |
|
8777 (WebCore::): |
|
8778 |
|
8779 2010-07-08 Alexey Proskuryakov <ap@apple.com> |
|
8780 |
|
8781 Reviewed by David Levin. |
|
8782 |
|
8783 https://bugs.webkit.org/show_bug.cgi?id=41886 |
|
8784 Shorten access control failure explanation messages |
|
8785 |
|
8786 * loader/CrossOriginAccessControl.cpp: |
|
8787 (WebCore::passesAccessControlCheck): |
|
8788 * loader/CrossOriginPreflightResultCache.cpp: |
|
8789 (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginMethod): |
|
8790 (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginHeaders): |
|
8791 Removed "response header field" parts from error text - it's long, but doesn't add much |
|
8792 to header field name. |
|
8793 |
|
8794 * platform/network/ResourceErrorBase.cpp: |
|
8795 * platform/network/ResourceErrorBase.h: |
|
8796 * xml/XMLHttpRequest.cpp: |
|
8797 (WebCore::XMLHttpRequest::didFail): |
|
8798 * loader/DocumentThreadableLoader.cpp: |
|
8799 (WebCore::DocumentThreadableLoader::DocumentThreadableLoader): |
|
8800 (WebCore::DocumentThreadableLoader::makeSimpleCrossOriginAccessRequest): |
|
8801 (WebCore::DocumentThreadableLoader::didReceiveResponse): |
|
8802 (WebCore::DocumentThreadableLoader::preflightFailure): |
|
8803 Renamed the constant for domain. WebCore shouldn't be creating errors observable by WebKit |
|
8804 clients, because it can't create a platform error, and cannot load a localized string. |
|
8805 We don't treat cross origin access check failures as true loading failures, so we don't tell |
|
8806 clients about these. |
|
8807 |
|
8808 2010-07-08 Eric Carlson <eric.carlson@apple.com> |
|
8809 |
|
8810 Reviewed by Dan Bernstein. |
|
8811 |
|
8812 Mac OS X media controls should have a way to adjust volume incrementally |
|
8813 https://bugs.webkit.org/show_bug.cgi?id=41718 |
|
8814 <rdar://problem/5679472> |
|
8815 |
|
8816 * css/CSSPrimitiveValueMappings.h: |
|
8817 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Handle MediaVolumeSliderMuteButtonPart. |
|
8818 |
|
8819 * css/CSSSelector.cpp: |
|
8820 (WebCore::CSSSelector::pseudoId): Handle PseudoMediaControlsVolumeSliderMuteButton. |
|
8821 (WebCore::nameToPseudoTypeMap): Define mediaControlsVolumeSliderMuteButton. |
|
8822 (WebCore::CSSSelector::extractPseudoType): Handle PseudoMediaControlsVolumeSliderMuteButton. |
|
8823 |
|
8824 * css/CSSSelector.h: |
|
8825 (WebCore::CSSSelector::): Define PseudoMediaControlsVolumeSliderMuteButton. |
|
8826 |
|
8827 * css/CSSValueKeywords.in: Define media-volume-slider-mute-button. |
|
8828 |
|
8829 * css/mediaControls.css: |
|
8830 (audio::-webkit-media-controls-volume-slider-mute-button, video::-webkit-media-controls-volume-slider-mute-button): New. |
|
8831 |
|
8832 * css/mediaControlsQuickTime.css: |
|
8833 (audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel): Add "overflow: visible" |
|
8834 so volume slider pop-up will be visible. |
|
8835 |
|
8836 (audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button): Make |
|
8837 mute button 14x12 instead of 15x14 so it matches the size in the volume slider. |
|
8838 |
|
8839 (audio::-webkit-media-controls-volume-slider-container, video::-webkit-media-controls-volume-slider-container): |
|
8840 (audio::-webkit-media-controls-volume-slider, video::-webkit-media-controls-volume-slider): |
|
8841 (audio::-webkit-media-controls-volume-slider-mute-button, video::-webkit-media-controls-volume-slider-mute-button): |
|
8842 New. |
|
8843 |
|
8844 * platform/ThemeTypes.h: Define MediaVolumeSliderMuteButtonPart. |
|
8845 |
|
8846 * rendering/MediaControlElements.cpp: |
|
8847 (WebCore::MediaControlInputElement::MediaControlInputElement): Handle MEDIA_CONTROLS_VOLUME_SLIDER_MUTE_BUTTON. |
|
8848 (WebCore::MediaControlMuteButtonElement::MediaControlMuteButtonElement): Add ButtonLocation |
|
8849 parameter both mute buttons can be created. |
|
8850 (WebCore::MediaControlMuteButtonElement::create): Ditto. |
|
8851 |
|
8852 * rendering/MediaControlElements.h: Define MediaVolumeSliderMuteButton and ButtonLocation. |
|
8853 |
|
8854 * rendering/RenderMedia.cpp: |
|
8855 (WebCore::RenderMedia::styleDidChange): Update volume slider mute button. |
|
8856 (WebCore::RenderMedia::createMuteButton): Pass ButtonLocation parameter to MediaControlMuteButtonElement::create. |
|
8857 (WebCore::RenderMedia::createVolumeSliderMuteButton): New. |
|
8858 (WebCore::RenderMedia::updateControls): Deal with volume slider mute button. |
|
8859 (WebCore::RenderMedia::updateVolumeSliderContainer): Don't assume all ports want to position |
|
8860 the volume slider in the same place, call new volumeSliderOffsetFromMuteButton theme function. |
|
8861 (WebCore::RenderMedia::forwardEvent): Handle volume slider mute button. |
|
8862 * rendering/RenderMedia.h: |
|
8863 |
|
8864 * rendering/RenderTheme.cpp: |
|
8865 (WebCore::RenderTheme::paint): Handle MediaVolumeSliderMuteButtonPart. |
|
8866 (WebCore::RenderTheme::volumeSliderOffsetFromMuteButton): New, return location previously hard |
|
8867 coded in RenderMedia::updateVolumeSliderContainer. |
|
8868 * rendering/RenderTheme.h: |
|
8869 |
|
8870 * rendering/RenderThemeMac.h: |
|
8871 * rendering/RenderThemeMac.mm: |
|
8872 (WebCore::RenderThemeMac::adjustMediaSliderThumbSize): Deal with the volume slider thumb. |
|
8873 (WebCore::RenderThemeMac::paintMediaVolumeSliderContainer): New, call the WKSI paint function |
|
8874 for this button. |
|
8875 (WebCore::RenderThemeMac::paintMediaVolumeSliderTrack): Ditto. |
|
8876 (WebCore::RenderThemeMac::paintMediaVolumeSliderThumb): Ditto. |
|
8877 (WebCore::RenderThemeMac::shouldRenderMediaControlPart): Draw the volume slider parts when |
|
8878 using the new controller UI for a movie that has audio. |
|
8879 (WebCore::RenderThemeMac::volumeSliderOffsetFromMuteButton): New, position the volume slider |
|
8880 directly above the mute button. |
|
8881 |
|
8882 * rendering/style/RenderStyleConstants.h: Define MEDIA_CONTROLS_VOLUME_SLIDER_MUTE_BUTTON. |
|
8883 |
|
8884 2010-07-08 Antonio Gomes <tonikitoo@webkit.org> |
|
8885 |
|
8886 Unreviewed complementary fix for r62815 |
|
8887 |
|
8888 One last time change made me blind to a "!" in a if statment. |
|
8889 |
|
8890 * editing/EditorCommand.cpp: |
|
8891 (WebCore::executeToggleStyle): |
|
8892 |
|
8893 2010-07-07 Ojan Vafai <ojan@chromium.org> |
|
8894 |
|
8895 Reviewed by Darin Adler. |
|
8896 |
|
8897 Regression: Selection anchor + focus swap when arrow keys after setBaseAndExtent |
|
8898 https://bugs.webkit.org/show_bug.cgi?id=32605 |
|
8899 |
|
8900 Only have selections be non-directional when they are set via the mouse. |
|
8901 Otherwise, all selections are directional. |
|
8902 |
|
8903 Test: editing/selection/extend-forward-after-set-base-and-extent.html |
|
8904 |
|
8905 * WebCore.base.exp: |
|
8906 * editing/SelectionController.cpp: |
|
8907 (WebCore::SelectionController::setSelection): |
|
8908 * editing/SelectionController.h: |
|
8909 (WebCore::SelectionController::setSelection): |
|
8910 * page/EventHandler.cpp: |
|
8911 (WebCore::EventHandler::selectClosestWordFromMouseEvent): |
|
8912 (WebCore::EventHandler::selectClosestWordOrLinkFromMouseEvent): |
|
8913 (WebCore::EventHandler::handleMousePressEventTripleClick): |
|
8914 (WebCore::EventHandler::handleMousePressEventSingleClick): |
|
8915 (WebCore::EventHandler::updateSelectionForMouseDrag): |
|
8916 |
|
8917 2010-07-08 Antonio Gomes <tonikitoo@webkit.org> |
|
8918 |
|
8919 Reviewed by Ojan Vafai. |
|
8920 |
|
8921 Refactor platform dependent editing behavior code out of Settings (part II) |
|
8922 https://bugs.webkit.org/show_bug.cgi?id=39854 |
|
8923 |
|
8924 Mac port is currently the only port relying on a style to be present on the start |
|
8925 of a selection to consider the style as applied or not. All other ports |
|
8926 have to have the style present in all text node of the selection for such. |
|
8927 |
|
8928 Patch makes situations that depend on this check like this to be controlled by |
|
8929 the EditingBehavior class. |
|
8930 |
|
8931 Refactoring, so no new tests needed. |
|
8932 |
|
8933 * editing/EditingBehavior.h: |
|
8934 (WebCore::EditingBehavior::shouldToggleStyleBasedOnStartOfSelection): |
|
8935 * editing/EditorCommand.cpp: |
|
8936 (WebCore::executeToggleStyle): |
|
8937 |
|
8938 2010-07-08 Anders Carlsson <andersca@apple.com> |
|
8939 |
|
8940 Reviewed by Sam Weinig. |
|
8941 |
|
8942 Add stubbed out PluginView class |
|
8943 https://bugs.webkit.org/show_bug.cgi?id=41879 |
|
8944 |
|
8945 Export functions needed by WebKit2. |
|
8946 |
|
8947 * WebCore.exp.in: |
|
8948 |
|
8949 2010-07-08 Ben Murdoch <benm@google.com> |
|
8950 |
|
8951 Reviewed by Pavel Feldman. |
|
8952 |
|
8953 Fix build break in V8ConsoleCustom.cpp |
|
8954 https://bugs.webkit.org/show_bug.cgi?id=40825 |
|
8955 |
|
8956 No new tests as just fixing a build break. |
|
8957 |
|
8958 * bindings/v8/custom/V8ConsoleCustom.cpp: Guard profilesAccessorGetter |
|
8959 appropriately. |
|
8960 |
|
8961 2010-07-08 Sam Weinig <sam@webkit.org> |
|
8962 |
|
8963 Reviewed by Anders Carlsson. |
|
8964 |
|
8965 Pass Page to BackForwardControllerClient::createBackForwardList since it |
|
8966 may be called before implementations of BackForwardControllerClient have |
|
8967 access to a Page. |
|
8968 |
|
8969 * history/BackForwardController.cpp: |
|
8970 (WebCore::BackForwardController::BackForwardController): |
|
8971 * history/BackForwardControllerClient.h: |
|
8972 |
|
8973 2010-07-08 Sheriff Bot <webkit.review.bot@gmail.com> |
|
8974 |
|
8975 Unreviewed, rolling out r62778. |
|
8976 http://trac.webkit.org/changeset/62778 |
|
8977 https://bugs.webkit.org/show_bug.cgi?id=41866 |
|
8978 |
|
8979 Broke svg/W3C-SVG-1.1/text-intro-05-t.svg in debug (Requested |
|
8980 by pfeldman on #webkit). |
|
8981 |
|
8982 * platform/graphics/chromium/FontLinux.cpp: |
|
8983 (WebCore::TextRunWalker::TextRunWalker): |
|
8984 (WebCore::TextRunWalker::~TextRunWalker): |
|
8985 |
|
8986 2010-07-08 Vitaly Repeshko <vitalyr@chromium.org> |
|
8987 |
|
8988 Reviewed by Pavel Feldman. |
|
8989 |
|
8990 Fix adoptRef usage violation in IDBObjectStoreRequest |
|
8991 https://bugs.webkit.org/show_bug.cgi?id=41869 |
|
8992 |
|
8993 * storage/IDBObjectStoreRequest.cpp: |
|
8994 (WebCore::IDBObjectStoreRequest::IDBObjectStoreRequest): |
|
8995 |
|
8996 2010-07-08 Sam Weinig <sam@webkit.org> |
|
8997 |
|
8998 Another chromium build fix. |
|
8999 |
|
9000 * history/BackForwardListChromium.cpp: |
|
9001 (WebCore::BackForwardListImpl::goBack): |
|
9002 (WebCore::BackForwardListImpl::goForward): |
|
9003 (WebCore::BackForwardListImpl::backListWithLimit): |
|
9004 (WebCore::BackForwardListImpl::forwardListWithLimit): |
|
9005 (WebCore::BackForwardListImpl::containsItem): |
|
9006 (WebCore::BackForwardListImpl::removeItem): |
|
9007 |
|
9008 2010-07-08 Sam Weinig <sam@webkit.org> |
|
9009 |
|
9010 Fix Chromium build. |
|
9011 |
|
9012 * WebCore.gyp/WebCore.gyp: |
|
9013 |
|
9014 2010-07-08 Sam Weinig <sam@webkit.org> |
|
9015 |
|
9016 Reviewed by Anders Carlsson. |
|
9017 |
|
9018 Patch for https://bugs.webkit.org/show_bug.cgi?id=41826 |
|
9019 Convert BackForwardList to an abstract base class and add BackForwardListImpl |
|
9020 as the concrete implementation of it. |
|
9021 |
|
9022 * CMakeLists.txt: |
|
9023 * GNUmakefile.am: |
|
9024 * WebCore.exp.in: |
|
9025 * WebCore.gypi: |
|
9026 * WebCore.pro: |
|
9027 * WebCore.vcproj/WebCore.vcproj: |
|
9028 * WebCore.xcodeproj/project.pbxproj: |
|
9029 * history/BackForwardController.cpp: |
|
9030 (WebCore::BackForwardController::BackForwardController): |
|
9031 * history/BackForwardController.h: |
|
9032 * history/BackForwardList.cpp: Removed. |
|
9033 * history/BackForwardList.h: |
|
9034 (WebCore::BackForwardList::~BackForwardList): |
|
9035 (WebCore::BackForwardList::isBackForwardListImpl): |
|
9036 (WebCore::BackForwardList::BackForwardList): |
|
9037 * history/BackForwardListChromium.cpp: |
|
9038 * history/BackForwardListImpl.cpp: Copied from WebCore/history/BackForwardList.cpp. |
|
9039 * history/BackForwardListImpl.h: Copied from WebCore/history/BackForwardList.h. |
|
9040 (WebCore::BackForwardListImpl::isBackForwardListImpl): |
|
9041 |
|
9042 2010-07-08 Vitaly Repeshko <vitalyr@chromium.org> |
|
9043 |
|
9044 Reviewed by Pavel Feldman. |
|
9045 |
|
9046 Fix adoptRef usage violations (mostly in chromium) |
|
9047 https://bugs.webkit.org/show_bug.cgi?id=41863 |
|
9048 |
|
9049 * bindings/v8/V8DOMWrapper.cpp: |
|
9050 (WebCore::V8DOMWrapper::wrapNativeNodeFilter): |
|
9051 * bindings/v8/V8NodeFilterCondition.h: |
|
9052 (WebCore::V8NodeFilterCondition::create): |
|
9053 * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp: |
|
9054 (WebCore::getNamedItems): |
|
9055 * bindings/v8/custom/V8HTMLCollectionCustom.cpp: |
|
9056 (WebCore::getNamedItems): |
|
9057 * bindings/v8/custom/V8HTMLFormElementCustom.cpp: |
|
9058 (WebCore::V8HTMLFormElement::namedPropertyGetter): |
|
9059 * bindings/v8/custom/V8HTMLSelectElementCustom.cpp: |
|
9060 (WebCore::V8HTMLSelectElement::namedPropertyGetter): |
|
9061 * bindings/v8/custom/V8NamedNodesCollection.h: |
|
9062 (WebCore::V8NamedNodesCollection::create): |
|
9063 (WebCore::V8NamedNodesCollection::V8NamedNodesCollection): |
|
9064 * storage/IDBDatabaseRequest.cpp: |
|
9065 (WebCore::IDBDatabaseRequest::IDBDatabaseRequest): |
|
9066 * storage/IndexedDatabaseRequest.cpp: |
|
9067 (WebCore::IndexedDatabaseRequest::IndexedDatabaseRequest): |
|
9068 |
|
9069 2010-07-08 Xan Lopez <xlopez@igalia.com> |
|
9070 |
|
9071 Reviewed by Gustavo Noronha. |
|
9072 |
|
9073 Silence a few noisy build rules. |
|
9074 |
|
9075 * GNUmakefile.am: |
|
9076 |
|
9077 2010-07-08 Andreas Kling <andreas.kling@nokia.com> |
|
9078 |
|
9079 Reviewed by Simon Hausmann. |
|
9080 |
|
9081 [Qt] Canvas putImageData() resets painter state |
|
9082 https://bugs.webkit.org/show_bug.cgi?id=41827 |
|
9083 |
|
9084 Use drawImage() to copy pixels in putImageData() instead of QPixmap::operator= |
|
9085 |
|
9086 Test: fast/canvas/canvas-state-intact-after-putImageData.html |
|
9087 |
|
9088 * platform/graphics/qt/ImageBufferQt.cpp: |
|
9089 (WebCore::putImageData): |
|
9090 |
|
9091 2010-07-08 Andrey Kosyakov <caseq@chromium.org> |
|
9092 |
|
9093 Reviewed by Pavel Feldman. |
|
9094 |
|
9095 Web Inspector: Do not invoke shortcuts popup upon bare '?' if it's typed |
|
9096 into an input field. |
|
9097 https://bugs.webkit.org/show_bug.cgi?id=41760 |
|
9098 |
|
9099 * inspector/front-end/inspector.js: |
|
9100 (WebInspector.documentKeyDown): |
|
9101 |
|
9102 2010-07-08 Patrick Gansterer <paroga@paroga.com> |
|
9103 |
|
9104 Reviewed by Kent Tamura. |
|
9105 |
|
9106 [WINCE] Buildfix for EventHandler |
|
9107 https://bugs.webkit.org/show_bug.cgi?id=41829 |
|
9108 |
|
9109 SM_MENUDROPALIGNMENT isn't supported on WinCE. |
|
9110 |
|
9111 * page/EventHandler.cpp: |
|
9112 (WebCore::EventHandler::sendContextMenuEventForKey): |
|
9113 |
|
9114 2010-07-08 Xiaomei Ji <xji@chromium.org> |
|
9115 |
|
9116 Reviewed by David Levin. |
|
9117 |
|
9118 Fix characters with unicode-bidi-mirror property are not correctly |
|
9119 mirrored in Linux. |
|
9120 https://bugs.webkit.org/show_bug.cgi?id=41305 |
|
9121 |
|
9122 Since harfbuzz does not do mirroring, chromium should iterate each |
|
9123 character in the string and mirror it if needed before passing the |
|
9124 string to harfbuzz for shaping. |
|
9125 |
|
9126 Test: fast/text/international/bidi-mirror-he-ar.html |
|
9127 |
|
9128 * platform/graphics/chromium/FontLinux.cpp: |
|
9129 (WebCore::TextRunWalker::TextRunWalker): |
|
9130 (WebCore::TextRunWalker::~TextRunWalker): |
|
9131 |
|
9132 2010-07-08 Nikolas Zimmermann <nzimmermann@rim.com> |
|
9133 |
|
9134 Reviewed by Rob Buis & Dirk Schulze. |
|
9135 |
|
9136 SVG text transformed incorrectly when a transform and gradient applied |
|
9137 https://bugs.webkit.org/show_bug.cgi?id=41563 |
|
9138 |
|
9139 When rendering filled/stroked text with a gradient, RenderSVGResourceGradient creates a mask image, |
|
9140 renders the text into the image, and then clips the current context against that image buffer, |
|
9141 and filling a rect afterwards. This happened in the wrong coordinate space so far. Don't actually |
|
9142 try to compute the right transformation matrix (which failed), but extract it directly from the |
|
9143 GraphicsContext and apply this transformation to the mask image context. |
|
9144 |
|
9145 Fixes pixellation in svg/batik/text/textEffect3.svg and makes the new test svg/custom/text-rotated-gradient.svg pass. |
|
9146 Only affects CoreGraphics platforms. |
|
9147 |
|
9148 Test: svg/custom/text-rotated-gradient.svg |
|
9149 |
|
9150 * rendering/RenderSVGResourceGradient.cpp: |
|
9151 (WebCore::absoluteTransformFromContext): |
|
9152 (WebCore::createMaskAndSwapContextForTextGradient): |
|
9153 (WebCore::clipToTextMask): |
|
9154 |
|
9155 2010-07-07 Alexander Pavlov <apavlov@chromium.org> |
|
9156 |
|
9157 Reviewed by Darin Fisher. |
|
9158 |
|
9159 [Chromium] Crash when re-entering message loop |
|
9160 https://bugs.webkit.org/show_bug.cgi?id=41697 |
|
9161 |
|
9162 A Chromium-specific test case will be submitted into Chromium shortly. |
|
9163 |
|
9164 * page/PageGroupLoadDeferrer.cpp: |
|
9165 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): |
|
9166 * page/PageGroupLoadDeferrer.h: |
|
9167 (WebCore::PageGroupLoadDeferrer::nextDeferrer): |
|
9168 |
|
9169 2010-07-07 Yury Semikhatsky <yurys@chromium.org> |
|
9170 |
|
9171 Reviewed by Pavel Feldman. |
|
9172 |
|
9173 Web Inspector: skip breakpoints when script is already paused |
|
9174 https://bugs.webkit.org/show_bug.cgi?id=41768 |
|
9175 |
|
9176 Test: inspector/debugger-no-nested-pause.html |
|
9177 |
|
9178 * bindings/v8/ScriptDebugServer.cpp: |
|
9179 (WebCore::ScriptDebugServer::handleV8DebugEvent): |
|
9180 |
|
9181 2010-07-08 Eric Seidel <eric@webkit.org> |
|
9182 |
|
9183 Reviewed by Adam Barth. |
|
9184 |
|
9185 WebCore/benchmarks/parser/html-parser.html spends a lot of time in deprecatedParseURL |
|
9186 https://bugs.webkit.org/show_bug.cgi?id=41807 |
|
9187 |
|
9188 Wow. This was an awful bug. We were always taking the slow case |
|
9189 every time we parsed a URL. This is about a 10% speedup on our |
|
9190 parsing benchmark, and might cause as much as a 1% speedup for Apple's |
|
9191 PLT (even though I can't run that). |
|
9192 |
|
9193 We still spend a lot of time in deprecatedParseURL. We might consider |
|
9194 inlining it if its being kept around much longer. |
|
9195 |
|
9196 No behavioral change, just fixing a broken optimization. |
|
9197 |
|
9198 * css/CSSHelper.cpp: |
|
9199 (WebCore::deprecatedParseURL): |
|
9200 - We only need to strip characters <= '\r', not >. |
|
9201 |
|
9202 2010-07-08 Yury Semikhatsky <yurys@chromium.org> |
|
9203 |
|
9204 Reviewed by Pavel Feldman. |
|
9205 |
|
9206 Web Inspector: factor out common part of debugger tests |
|
9207 https://bugs.webkit.org/show_bug.cgi?id=41836 |
|
9208 |
|
9209 * bindings/js/ScriptDebugServer.cpp: |
|
9210 (WebCore::ScriptDebugServer::recompileAllJSFunctions): postpone script recompilation if JS stack is not empty. |
|
9211 |
|
9212 2010-07-08 Patrick Gansterer <paroga@paroga.com> |
|
9213 |
|
9214 Reviewed by Kent Tamura. |
|
9215 |
|
9216 Buildfix for !ENABLE(SVG_ANIMATION) after r51567. |
|
9217 https://bugs.webkit.org/show_bug.cgi?id=41803 |
|
9218 |
|
9219 * svg/SVGDocumentExtensions.cpp: |
|
9220 (WebCore::SVGDocumentExtensions::sampleAnimationAtTime): |
|
9221 |
|
9222 2010-07-07 Pavel Podivilov <podivilov@chromium.org> |
|
9223 |
|
9224 Reviewed by Nate Chapin. |
|
9225 |
|
9226 [V8] Fix document wrapper memory leak in bindings. |
|
9227 https://bugs.webkit.org/show_bug.cgi?id=41771 |
|
9228 |
|
9229 * bindings/v8/custom/V8HTMLDocumentCustom.cpp: |
|
9230 (WebCore::V8HTMLDocument::WrapInShadowObject): Do not create static persistent handle |
|
9231 to shadowConstructor because it keeps the first context alive forever. |
|
9232 |
|
9233 2010-07-07 Andreas Kling <andreas.kling@nokia.com> |
|
9234 |
|
9235 Reviewed by Tor Arne Vestbø. |
|
9236 |
|
9237 [Qt] Enable smooth pixmap transforms by default |
|
9238 https://bugs.webkit.org/show_bug.cgi?id=41774 |
|
9239 |
|
9240 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
9241 (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate): |
|
9242 (WebCore::GraphicsContext::setImageInterpolationQuality): |
|
9243 |
|
9244 2010-07-07 Jesus Sanchez-Palencia <jesus@webkit.org> |
|
9245 |
|
9246 Reviewed by Antti Koivisto. |
|
9247 |
|
9248 [Qt] Missing include to build QtWebKit with WebKit2 in MediaPlayerPrivatePhonon.cpp |
|
9249 https://bugs.webkit.org/show_bug.cgi?id=41767 |
|
9250 |
|
9251 * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp: Add Logging.h include |
|
9252 |
|
9253 2010-07-07 Pavel Podivilov <podivilov@chromium.org> |
|
9254 |
|
9255 Reviewed by Yury Semikhatsky. |
|
9256 |
|
9257 Web Inspector: Move v8-related script offset conversion to DebuggerScript.js |
|
9258 https://bugs.webkit.org/show_bug.cgi?id=41755 |
|
9259 |
|
9260 * bindings/v8/ScriptDebugServer.cpp: |
|
9261 (WebCore::ScriptDebugServer::dispatchDidParseSource): |
|
9262 |
|
9263 2010-07-07 Nicolas Weber <thakis@chromium.org> |
|
9264 |
|
9265 Reviewed by Dimitri Glazkov. |
|
9266 https://bugs.webkit.org/show_bug.cgi?id=41580 |
|
9267 |
|
9268 Fix rendering of radial gradients in skia if both points of the |
|
9269 gradient are the same and r0 > 0. |
|
9270 |
|
9271 Test: fast/gradients/radial-centered.html |
|
9272 |
|
9273 * platform/graphics/skia/GradientSkia.cpp: |
|
9274 (WebCore::Gradient::platformGradient): |
|
9275 |
|
9276 2010-06-18 MORITA Hajime <morrita@google.com> |
|
9277 |
|
9278 Reviewed by Ojan Vafai. |
|
9279 |
|
9280 https://bugs.webkit.org/show_bug.cgi?id=26526 |
|
9281 Add support for input events (oninput) to contentEditable elements |
|
9282 |
|
9283 Made a default event handler on the Node to dispatch an input event when |
|
9284 webkitEditableContentChanged arrived. |
|
9285 |
|
9286 Test: fast/events/event-input-contentEditable.html |
|
9287 |
|
9288 * dom/Node.cpp: |
|
9289 (WebCore::Node::defaultEventHandler): |
|
9290 |
|
9291 2010-07-07 Darin Adler <darin@apple.com> |
|
9292 |
|
9293 Reviewed by Anders Carlsson. |
|
9294 |
|
9295 Fix adoptRef assertion failures caused by stack-allocated ResourceHandle objects |
|
9296 https://bugs.webkit.org/show_bug.cgi?id=41823 |
|
9297 |
|
9298 * platform/network/android/ResourceHandleAndroid.cpp: |
|
9299 (WebCore::ResourceHandle::loadResourceSynchronously): Use adoptRef and new instead |
|
9300 of allocating an object on the stack. |
|
9301 * platform/network/curl/ResourceHandleCurl.cpp: |
|
9302 (WebCore::ResourceHandle::loadResourceSynchronously): Ditto. |
|
9303 * platform/network/qt/ResourceHandleQt.cpp: |
|
9304 (WebCore::ResourceHandle::loadResourceSynchronously): Ditto. |
|
9305 |
|
9306 * platform/network/soup/ResourceHandleSoup.cpp: |
|
9307 (WebCore::ResourceHandle::loadResourceSynchronously): Use create instead of |
|
9308 allocating an object on the stack. |
|
9309 |
|
9310 2010-07-07 Joseph Pecoraro <joepeck@webkit.org> |
|
9311 |
|
9312 Rubber-stamped by Pavel Feldman. |
|
9313 |
|
9314 Web Inspector: All RefPtr arguments and return values should be changed to PassRefPtr according to common practice. |
|
9315 https://bugs.webkit.org/show_bug.cgi?id=41759 |
|
9316 |
|
9317 * inspector/CodeGeneratorInspector.pm: |
|
9318 |
|
9319 2010-07-07 Chris Fleizach <cfleizach@apple.com> |
|
9320 |
|
9321 Reviewed by Darin Adler. |
|
9322 |
|
9323 AX: TextArea should return AXSelectedTextRange of 0,0 if the cursor is not in the text area |
|
9324 https://bugs.webkit.org/show_bug.cgi?id=41810 |
|
9325 |
|
9326 Test: platform/mac/accessibility/selected-text-range-for-empty-textarea.html |
|
9327 |
|
9328 * accessibility/mac/AccessibilityObjectWrapper.mm: |
|
9329 (-[AccessibilityObjectWrapper accessibilityAttributeValue:]): |
|
9330 |
|
9331 2010-07-07 Chris Fleizach <cfleizach@apple.com> |
|
9332 |
|
9333 Reviewed by Beth Dakin. |
|
9334 |
|
9335 AX: Data table heuristics: assume data table if at least one row or column of TH cells exist |
|
9336 https://bugs.webkit.org/show_bug.cgi?id=41806 |
|
9337 |
|
9338 Test: platform/mac/accessibility/table-with-row-col-of-headers.html |
|
9339 |
|
9340 * accessibility/AccessibilityTable.cpp: |
|
9341 (WebCore::AccessibilityTable::isTableExposableThroughAccessibility): |
|
9342 |
|
9343 2010-07-07 Mark Rowe <mrowe@apple.com> |
|
9344 |
|
9345 Fix the build. |
|
9346 |
|
9347 Xcode decided to change the reference type from "Relative to Build Product" to "Relative to Group" |
|
9348 when I moved the file between folders. That's incredibly confusing so I'll file a bug against Xcode. |
|
9349 |
|
9350 * WebCore.xcodeproj/project.pbxproj: |
|
9351 |
|
9352 2010-07-07 Mark Rowe <mrowe@apple.com> |
|
9353 |
|
9354 Fix the MathML build. |
|
9355 |
|
9356 * html/HTMLTreeBuilder.cpp: |
|
9357 (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately): Fix a typo in a variable name. |
|
9358 |
|
9359 2010-07-07 James Hawkins <jhawkins@chromium.org> |
|
9360 |
|
9361 Reviewed by Dimitri Glazkov. |
|
9362 |
|
9363 Move setSuggestedValue() and suggestedValue() back to public as it's |
|
9364 now used by WebInputElement. |
|
9365 https://bugs.webkit.org/show_bug.cgi?id=41785 |
|
9366 |
|
9367 No new tests, as the method is only being used by Chromium's WebKit |
|
9368 API. |
|
9369 |
|
9370 * html/HTMLInputElement.h: |
|
9371 |
|
9372 2010-07-07 Mark Rowe <mrowe@apple.com> |
|
9373 |
|
9374 Rubber-stamped by Sam Weinig. |
|
9375 |
|
9376 Clean up the project file slightly. |
|
9377 |
|
9378 Remove obsolete .exp files, add the new .exp.in file, and move ExportFileGenerator.cpp in to the Exports collection. |
|
9379 |
|
9380 * WebCore.xcodeproj/project.pbxproj: |
|
9381 |
|
9382 2010-07-07 James Robinson <jamesr@chromium.org> and Vincent Scheib <schieb@chromium.org> |
|
9383 |
|
9384 Reviewed by Dimitri Glazkov. |
|
9385 |
|
9386 WebCore::GLES2Context should allow creating onscreen and offscreen contexts |
|
9387 https://bugs.webkit.org/show_bug.cgi?id=41492 |
|
9388 |
|
9389 You should be able to create a GLES2Context for rendering both on screen |
|
9390 and off screen (to a texture). Chromium's layer renderer (used for compositing) |
|
9391 does the former. Currently WebGL does the latter by side stepping the |
|
9392 WebCore::GLES2Context API completely. Longer term it should move over to using this. |
|
9393 |
|
9394 * platform/chromium/GLES2Context.h: |
|
9395 * platform/graphics/chromium/LayerRendererChromium.cpp: |
|
9396 (WebCore::LayerRendererChromium::initGL): |
|
9397 |
|
9398 2010-07-07 Simon Fraser <simon.fraser@apple.com> |
|
9399 |
|
9400 Reviewed by Dan Bernstein. |
|
9401 |
|
9402 Document::ownerElement() should return an HTMLFrameOwnerElement |
|
9403 https://bugs.webkit.org/show_bug.cgi?id=41789 |
|
9404 |
|
9405 Change return type of RenderLayerCompositor::enclosingIFrameElement() to |
|
9406 HTMLFrameOwnerElement*. No behavioral changes. |
|
9407 |
|
9408 * rendering/RenderLayerCompositor.cpp: |
|
9409 (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingIFrame): |
|
9410 (WebCore::RenderLayerCompositor::enclosingIFrameElement): |
|
9411 * rendering/RenderLayerCompositor.h: |
|
9412 |
|
9413 2010-07-07 Adam Barth <abarth@webkit.org> |
|
9414 |
|
9415 Reviewed by Sam Weinig. |
|
9416 |
|
9417 Add reverseFind to Vector and deploy in HTML5 parser |
|
9418 https://bugs.webkit.org/show_bug.cgi?id=41778 |
|
9419 |
|
9420 This patch moves reverseFind from begin an |
|
9421 HTMLFormattingElementList-specific concept to begin a general Vector |
|
9422 concept. Also, instead of using Entry as the type for operator==, we |
|
9423 now use elements directly. The old code compiled because the Entry |
|
9424 constructor wasn't explicit, which means we were churning refs on every |
|
9425 comparison! |
|
9426 |
|
9427 * html/HTMLFormattingElementList.cpp: |
|
9428 (WebCore::HTMLFormattingElementList::find): |
|
9429 (WebCore::HTMLFormattingElementList::bookmarkFor): |
|
9430 (WebCore::HTMLFormattingElementList::insertAt): |
|
9431 (WebCore::HTMLFormattingElementList::remove): |
|
9432 * html/HTMLFormattingElementList.h: |
|
9433 (WebCore::HTMLFormattingElementList::Entry::operator==): |
|
9434 (WebCore::HTMLFormattingElementList::Entry::operator!=): |
|
9435 |
|
9436 2010-07-07 Darin Adler <darin@apple.com> |
|
9437 |
|
9438 Reviewed by Adam Barth. |
|
9439 |
|
9440 Turn on adoptRef assertion for RefCounted |
|
9441 https://bugs.webkit.org/show_bug.cgi?id=41547 |
|
9442 |
|
9443 The WebCore part of this fixes all the assertions I saw in testing. |
|
9444 |
|
9445 * html/FileReader.cpp: |
|
9446 (WebCore::FileReader::readAsBinaryString): Added null checks. |
|
9447 Callers from JavaScript can pass the wrong type, which becomes null. |
|
9448 (WebCore::FileReader::readAsText): Ditto. |
|
9449 (WebCore::FileReader::readAsDataURL): Ditto. |
|
9450 |
|
9451 * html/FileStreamClient.h: Removed unneeded include. |
|
9452 |
|
9453 * html/FileStreamProxy.cpp: |
|
9454 (WebCore::FileStreamProxy::FileStreamProxy): Made inline and moved |
|
9455 some of the code, including the ref, into the create function. |
|
9456 (WebCore::FileStreamProxy::create): Moved some of the code from |
|
9457 the constructor here. It's safe to ref once the object has been |
|
9458 created and adopted. |
|
9459 |
|
9460 * html/FileStreamProxy.h: Changed create function to no longer be |
|
9461 inlined. Also removed an unneeded include. |
|
9462 |
|
9463 * page/EventSource.cpp: |
|
9464 (WebCore::EventSource::EventSource): Made inline, changed arguments |
|
9465 and moved code that involves the need to ref this object into the |
|
9466 create function. Also moved failure handling out there since it's |
|
9467 cleaner to have a function that fails than a constructor. For |
|
9468 example, the function can return 0. |
|
9469 (WebCore::EventSource::create): Moved some of the code from the |
|
9470 constructor here. |
|
9471 |
|
9472 * page/EventSource.h: Removed unneeded includes. Made the |
|
9473 creation function non-inline. Changed the arguments to the constructor. |
|
9474 |
|
9475 * storage/StorageAreaSync.cpp: |
|
9476 (WebCore::StorageAreaSync::StorageAreaSync): Made inline. Moved |
|
9477 code that requires ref'ing this object out to the create function. |
|
9478 (WebCore::StorageAreaSync::create): Moved some of the code from the |
|
9479 constructor here. |
|
9480 |
|
9481 * storage/StorageAreaSync.h: Removed unneeded includes. Changed |
|
9482 the type of one of the constructor arguments from String to |
|
9483 const String&. |
|
9484 |
|
9485 * workers/SharedWorker.cpp: |
|
9486 (WebCore::SharedWorker::SharedWorker): Made inline. Moved most of |
|
9487 the setup code out of here into the create function. |
|
9488 (WebCore::SharedWorker::create): Moved the code here. |
|
9489 |
|
9490 * workers/SharedWorker.h: Removed unneeded includes. Made the |
|
9491 create function non-inline. Marked the toSharedWorker override private |
|
9492 to catch people doing an unnecessary virtual function call if they |
|
9493 already have a SharedWorker*. |
|
9494 |
|
9495 * workers/Worker.cpp: |
|
9496 (WebCore::Worker::Worker): Made inline. Moved most of the setup code |
|
9497 out of here into the create function. |
|
9498 (WebCore::Worker::create): Moved the code here. |
|
9499 |
|
9500 * workers/Worker.h: Made the create function non-inline. Changed |
|
9501 the arguments to the constructor. |
|
9502 |
|
9503 2010-07-07 Chris Fleizach <cfleizach@apple.com> |
|
9504 |
|
9505 Reviewed by Beth Dakin. |
|
9506 |
|
9507 AX: when a node's role changes, the AX tree might need to be updated |
|
9508 https://bugs.webkit.org/show_bug.cgi?id=41784 |
|
9509 |
|
9510 Test: platform/mac/accessibility/update-children-when-aria-role-changes.html |
|
9511 |
|
9512 * accessibility/AccessibilityRenderObject.cpp: |
|
9513 (WebCore::AccessibilityRenderObject::AccessibilityRenderObject): |
|
9514 (WebCore::AccessibilityRenderObject::updateAccessibilityRole): |
|
9515 |
|
9516 2010-07-07 Chris Fleizach <cfleizach@apple.com> |
|
9517 |
|
9518 Reviewed by Beth Dakin. |
|
9519 |
|
9520 AX: when an element uses role="text" but no aria-label, it should default to textUnderElement() |
|
9521 https://bugs.webkit.org/show_bug.cgi?id=41780 |
|
9522 |
|
9523 Test: platform/mac/accessibility/static-text-role-uses-text-under-element.html |
|
9524 |
|
9525 * accessibility/AccessibilityRenderObject.cpp: |
|
9526 (WebCore::AccessibilityRenderObject::stringValue): |
|
9527 Fallback to textUnderElement() if text() does not return any explicitly set text. |
|
9528 (WebCore::AccessibilityRenderObject::accessibilityIsIgnored): |
|
9529 Remove erroneous check to ignore text elements that didn't have a explicit text value. |
|
9530 |
|
9531 2010-07-07 Simon Fraser <simon.fraser@apple.com> |
|
9532 |
|
9533 Reviewed by Darin Adler. |
|
9534 |
|
9535 Document::ownerElement() should return an HTMLFrameOwnerElement |
|
9536 https://bugs.webkit.org/show_bug.cgi?id=41789 |
|
9537 |
|
9538 Change the return type of Document::ownerElement() to an HTMLFrameOwnerElement, for better |
|
9539 type checking. No behavioral changes. |
|
9540 |
|
9541 * accessibility/mac/AccessibilityObjectWrapper.mm: |
|
9542 * dom/Document.cpp: |
|
9543 (WebCore::Document::ownerElement): |
|
9544 * dom/Document.h: |
|
9545 * editing/SelectionController.cpp: |
|
9546 * rendering/RenderBoxModelObject.cpp: |
|
9547 * rendering/RenderLayer.cpp: |
|
9548 * rendering/RenderView.cpp: |
|
9549 |
|
9550 2010-07-07 Simon Fraser <simon.fraser@apple.com> |
|
9551 |
|
9552 Reviewed by Dan Bernstein. |
|
9553 |
|
9554 REGRESSION: GMail becomes blank after closing other tabs |
|
9555 https://bugs.webkit.org/show_bug.cgi?id=40421 |
|
9556 |
|
9557 RenderLayerCompositor's attach/detachRootPlatformLayer methods use |
|
9558 setNeedsStyleRecalc() in order to trigger acclerated compositing layers |
|
9559 to be hooked together across iframe boundaries. However, it was possible |
|
9560 for these to get called while inside of Document::recalcStyle(), which |
|
9561 is bad because it can cause the recalc to fail to get processed. |
|
9562 |
|
9563 Fix this by using the existing queuePostAttachCallback() functionality |
|
9564 to delay the call to setNeedsStyleRecalc() if post-attach callbacks |
|
9565 are suspended (indicating that we're inside recalcStyle()). |
|
9566 |
|
9567 No new tests because I wasn't able to make a test that shows the problem. |
|
9568 |
|
9569 * dom/ContainerNode.h: Make queuePostAttachCallback() public. |
|
9570 * dom/ContainerNode.cpp: |
|
9571 (WebCore::ContainerNode::postAttachCallbacksAreSuspended): Added; returns |
|
9572 whether s_attachDepth is non-zero. |
|
9573 |
|
9574 * rendering/RenderLayerCompositor.cpp: |
|
9575 (WebCore::RenderLayerCompositor::attachRootPlatformLayer): Call scheduleNeedsStyleRecalc() |
|
9576 instead of setNeedsStyleRecalc(). |
|
9577 (WebCore::RenderLayerCompositor::detachRootPlatformLayer): Ditto. |
|
9578 (WebCore::needsStyleRecalcCallback): Here we call setNeedsStyleRecalc(). |
|
9579 (WebCore::RenderLayerCompositor::scheduleNeedsStyleRecalc): |
|
9580 (WebCore::RenderLayerCompositor::notifyIFramesOfCompositingChange): |
|
9581 * rendering/RenderLayerCompositor.h: Add scheduleNeedsStyleRecalc(). |
|
9582 |
|
9583 2010-07-06 Simon Fraser <simon.fraser@apple.com> |
|
9584 |
|
9585 Reviewed by Dan Bernstein. |
|
9586 |
|
9587 Incorrect compositing order with negative z-index |
|
9588 https://bugs.webkit.org/show_bug.cgi?id=38959 |
|
9589 |
|
9590 When painting the contents of compositing layers whose phase is "GraphicsLayerPaintBackground" |
|
9591 (indicating that they are used for the background of elements with negative z-index children), |
|
9592 we need to paint the non-composited negative-z-order descendants at the end of the background phase, so |
|
9593 they appear behind composited negative-z-order descendants. |
|
9594 |
|
9595 Test: compositing/z-order/negative-z-index.html |
|
9596 |
|
9597 * rendering/RenderLayerBacking.cpp: |
|
9598 (WebCore::RenderLayerBacking::paintIntoLayer): |
|
9599 |
|
9600 2010-07-06 Simon Fraser <simon.fraser@apple.com> |
|
9601 |
|
9602 Reviewed by Dan Bernstein. |
|
9603 |
|
9604 Incorrect compositing order with negative z-index |
|
9605 https://bugs.webkit.org/show_bug.cgi?id=38959 |
|
9606 |
|
9607 Prerequisite: adopt new paintList() method that was added when painting compositing layer contents. |
|
9608 No behavioral changes. |
|
9609 |
|
9610 * rendering/RenderLayerBacking.cpp: |
|
9611 (WebCore::RenderLayerBacking::paintIntoLayer): |
|
9612 |
|
9613 2010-07-07 Adam Barth <abarth@webkit.org> |
|
9614 |
|
9615 Unreviewed. |
|
9616 |
|
9617 Fix ASSERT in Eric's previous patch. I think he tested his patch in |
|
9618 Release and not Debug. |
|
9619 |
|
9620 * html/HTMLFormattingElementList.h: |
|
9621 (WebCore::HTMLFormattingElementList::Entry::Entry): |
|
9622 (WebCore::HTMLFormattingElementList::findIndex): |
|
9623 |
|
9624 2010-07-07 Eric Seidel <eric@webkit.org> |
|
9625 |
|
9626 Reviewed by Adam Barth. |
|
9627 |
|
9628 Grease the TreeBuilder's lightning |
|
9629 https://bugs.webkit.org/show_bug.cgi?id=41756 |
|
9630 |
|
9631 Brings the new TreeBuilder from 7s to 3s on the parser benchmark. |
|
9632 This makes performance comparable to the old parser. |
|
9633 |
|
9634 We have not begun to fight! There is so much fat left on these bones. |
|
9635 |
|
9636 * html/HTMLFormattingElementList.cpp: |
|
9637 (WebCore::HTMLFormattingElementList::find): |
|
9638 (WebCore::HTMLFormattingElementList::bookmarkFor): |
|
9639 (WebCore::HTMLFormattingElementList::insertAt): |
|
9640 (WebCore::HTMLFormattingElementList::remove): |
|
9641 * html/HTMLFormattingElementList.h: |
|
9642 (WebCore::HTMLFormattingElementList::findIndex): |
|
9643 |
|
9644 2010-07-07 Eric Seidel <eric@webkit.org> |
|
9645 |
|
9646 Reviewed by Adam Barth. |
|
9647 |
|
9648 HTMLTreeBuilder is way too slow |
|
9649 https://bugs.webkit.org/show_bug.cgi?id=41754 |
|
9650 |
|
9651 This takes us from 14s to 7s on our parsing benchmark. |
|
9652 That's still much slower than the old tree builder, but there |
|
9653 is a huge amount of fat left to trim. |
|
9654 |
|
9655 Vector<T> wasn't able to inline all the Entry functions when |
|
9656 they were buried in the cpp. Turns out the active formatting elements |
|
9657 list is very hot. |
|
9658 |
|
9659 I'm not sure Vector<T> is going to be the right data structure for us |
|
9660 in the end, but it has done alright for bring-up. |
|
9661 |
|
9662 * html/HTMLFormattingElementList.cpp: |
|
9663 * html/HTMLFormattingElementList.h: |
|
9664 (WebCore::HTMLFormattingElementList::Entry::Entry): |
|
9665 (WebCore::HTMLFormattingElementList::Entry::~Entry): |
|
9666 (WebCore::HTMLFormattingElementList::Entry::isMarker): |
|
9667 (WebCore::HTMLFormattingElementList::Entry::element): |
|
9668 (WebCore::HTMLFormattingElementList::Entry::replaceElement): |
|
9669 (WebCore::HTMLFormattingElementList::Entry::operator==): |
|
9670 (WebCore::HTMLFormattingElementList::Entry::operator!=): |
|
9671 |
|
9672 2010-07-06 Darin Adler <darin@apple.com> |
|
9673 |
|
9674 Reviewed by Adam Barth. |
|
9675 |
|
9676 More OwnPtr work, including making clear set the pointer to 0 before deletion |
|
9677 https://bugs.webkit.org/show_bug.cgi?id=41727 |
|
9678 |
|
9679 * WebCore.exp.in: Updated. |
|
9680 |
|
9681 * css/CSSSelector.h: |
|
9682 (WebCore::CSSSelector::RareData::RareData): Use adoptPtr. |
|
9683 (WebCore::CSSSelector::createRareData): Ditto. |
|
9684 * dom/SpaceSplitString.h: |
|
9685 (WebCore::SpaceSplitString::SpaceSplitString): Ditto. |
|
9686 (WebCore::SpaceSplitString::set): Ditto. |
|
9687 * history/CachedFrame.cpp: |
|
9688 (WebCore::CachedFrame::CachedFrame): Ditto. |
|
9689 (WebCore::CachedFrame::setCachedFramePlatformData): Ditto. |
|
9690 |
|
9691 * history/CachedFrame.h: Use PassOwnPtr. |
|
9692 |
|
9693 * loader/appcache/ApplicationCacheGroup.cpp: |
|
9694 (WebCore::CallCacheListenerTask::create): Use adoptPtr. |
|
9695 * loader/appcache/ApplicationCacheStorage.cpp: |
|
9696 (WebCore::ApplicationCacheStorage::storeCopyOfCache): Ditto. |
|
9697 * platform/PurgeableBuffer.h: |
|
9698 (WebCore::PurgeableBuffer::create): Ditto. |
|
9699 * platform/graphics/GlyphMetricsMap.h: |
|
9700 (WebCore::::locatePageSlowCase): Ditto. |
|
9701 * platform/graphics/GraphicsLayer.h: |
|
9702 (WebCore::AnimationValue::AnimationValue): Ditto. |
|
9703 (WebCore::TransformAnimationValue::TransformAnimationValue): Ditto. |
|
9704 * platform/graphics/MediaPlayer.h: |
|
9705 (WebCore::MediaPlayer::create): Ditto. |
|
9706 * platform/graphics/SimpleFontData.h: |
|
9707 (WebCore::SimpleFontData::boundsForGlyph): Ditto. |
|
9708 * platform/mac/PurgeableBufferMac.cpp: |
|
9709 (WebCore::PurgeableBuffer::create): Ditto. |
|
9710 * rendering/InlineFlowBox.h: |
|
9711 (WebCore::InlineFlowBox::setHorizontalOverflowPositions): Ditto. |
|
9712 (WebCore::InlineFlowBox::setVerticalOverflowPositions): Ditto. |
|
9713 * rendering/RootInlineBox.h: |
|
9714 (WebCore::RootInlineBox::floats): Ditto. |
|
9715 * rendering/style/RenderStyle.h: |
|
9716 (WebCore::InheritedFlags::inheritAnimations): Ditto. |
|
9717 (WebCore::InheritedFlags::inheritTransitions): Ditto. |
|
9718 |
|
9719 * rendering/style/SVGRenderStyleDefs.h: Use PassOwnPtr. |
|
9720 |
|
9721 2010-07-07 Sam Weinig <sam@webkit.org> |
|
9722 |
|
9723 Reviewed by Anders Carlsson. |
|
9724 |
|
9725 Patch for https://bugs.webkit.org/show_bug.cgi?id=41772 |
|
9726 Add basic piping for BackForwardControllerClient. |
|
9727 |
|
9728 * WebCore.exp.in: |
|
9729 * WebCore.xcodeproj/project.pbxproj: |
|
9730 * history/BackForwardController.cpp: |
|
9731 (WebCore::BackForwardController::BackForwardController): |
|
9732 * history/BackForwardControllerClient.h: |
|
9733 * page/Page.cpp: |
|
9734 (WebCore::Page::Page): |
|
9735 * page/Page.h: |
|
9736 * svg/graphics/SVGImage.cpp: |
|
9737 (WebCore::SVGImage::dataChanged): |
|
9738 |
|
9739 2010-07-07 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
9740 |
|
9741 Unreviewed build fix after r62577. |
|
9742 |
|
9743 [EFL] build fix after r62577 |
|
9744 https://bugs.webkit.org/show_bug.cgi?id=41764 |
|
9745 |
|
9746 No new functionality so no new tests. |
|
9747 |
|
9748 2010-07-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> |
|
9749 |
|
9750 Reviewed by Xan Lopez. |
|
9751 |
|
9752 [GTK] Scrollbars sometimes go dead and stop scrolling the view |
|
9753 https://bugs.webkit.org/show_bug.cgi?id=41711 |
|
9754 |
|
9755 Rework the setGtkAdjustment function slightly, make it have an |
|
9756 early return, and be more readable. |
|
9757 |
|
9758 * platform/gtk/ScrollViewGtk.cpp: |
|
9759 (WebCore::ScrollView::setGtkAdjustments): |
|
9760 |
|
9761 2010-07-07 Kristian Monsen <kristianm@google.com> |
|
9762 |
|
9763 Reviewed by Steve Block. |
|
9764 |
|
9765 Updating Android to use the UserGestureIndicator class instead of Android specific code. |
|
9766 The rest of the changes are in parts of the Android port which are yet to be upstreamed. |
|
9767 |
|
9768 No change in behavior, so no new test. |
|
9769 |
|
9770 * platform/network/android/ResourceRequest.h: |
|
9771 (WebCore::ResourceRequest::ResourceRequest): |
|
9772 (WebCore::ResourceRequest::doUpdateResourceRequest): |
|
9773 |
|
9774 2010-07-07 Andy Estes <aestes@apple.com> |
|
9775 |
|
9776 Reviewed by Adam Barth. |
|
9777 |
|
9778 Allow a beforeload listener to prevent loading of images in <object> tags. |
|
9779 https://bugs.webkit.org/show_bug.cgi?id=41027 |
|
9780 <rdar://problem/8120596> |
|
9781 |
|
9782 Tests: fast/dom/beforeload/image-object-before-load-innerHTML.html |
|
9783 fast/dom/beforeload/image-object-before-load.html |
|
9784 |
|
9785 * html/HTMLObjectElement.cpp: |
|
9786 (WebCore::HTMLObjectElement::attach): Do not call |
|
9787 RenderImage::setCachedImage() at the end of attach(). Instead, allow |
|
9788 this to happen conditionally after beforeload is dispatched. |
|
9789 * loader/ImageLoader.cpp: |
|
9790 (WebCore::ImageLoader::dispatchPendingBeforeLoadEvent): Render fallback |
|
9791 content if an object's load was cancelled. |
|
9792 |
|
9793 2010-07-06 Nikolas Zimmermann <nzimmermann@rim.com> |
|
9794 |
|
9795 Reviewed by Dirk Schulze. |
|
9796 |
|
9797 <use> on <font-face> causes crashes, if SVGUseElement gets detached |
|
9798 https://bugs.webkit.org/show_bug.cgi?id=41621 |
|
9799 |
|
9800 Do not call removeFromMappedElementSheet() from the SVGFontFaceElement destructor, |
|
9801 as that can potentially cause the element to be reattached while destructing. |
|
9802 |
|
9803 In order to fix the crash in the testcase, the order of calling the base-class detach |
|
9804 method in SVGUseElement and the instance/shadow tree destruction has to be reversed, |
|
9805 matching the order in removedFromDocument(). |
|
9806 |
|
9807 Test: svg/custom/use-font-face-crash.svg |
|
9808 |
|
9809 * svg/SVGFontFaceElement.cpp: |
|
9810 (WebCore::SVGFontFaceElement::~SVGFontFaceElement): Remove removeFromMappedElementSheet() call. |
|
9811 * svg/SVGUseElement.cpp: |
|
9812 (WebCore::SVGUseElement::detach): Reverse order of calling base-class detach method and instance/shadow tree destruction. |
|
9813 |
|
9814 2010-07-07 Steve Block <steveblock@google.com> |
|
9815 |
|
9816 Reviewed by Adam Barth. |
|
9817 |
|
9818 document.createEvent() should support DeviceOrientationEvent |
|
9819 https://bugs.webkit.org/show_bug.cgi?id=41618 |
|
9820 |
|
9821 Tests: fast/dom/DeviceOrientation/create-event.html |
|
9822 |
|
9823 * dom/Document.cpp: |
|
9824 (WebCore::Document::createEvent): |
|
9825 |
|
9826 2010-07-07 Yury Semikhatsky <yurys@chromium.org> |
|
9827 |
|
9828 Reviewed by Pavel Feldman. |
|
9829 |
|
9830 Web Inspector: show functions from internal browser scripts on the call stack if they |
|
9831 are there. |
|
9832 https://bugs.webkit.org/show_bug.cgi?id=41762 |
|
9833 |
|
9834 * English.lproj/localizedStrings.js: |
|
9835 * inspector/front-end/CallStackSidebarPane.js: |
|
9836 (WebInspector.CallStackSidebarPane.prototype.update): |
|
9837 |
|
9838 2010-07-07 Ilya Tikhonovsky <loislo@chromium.org> |
|
9839 |
|
9840 Reviewed by Pavel Feldman. |
|
9841 |
|
9842 Web Inspector: All RefPtr arguments and return values should be |
|
9843 changed to PassRefPtr whenever it is possible according to common practice. |
|
9844 https://bugs.webkit.org/show_bug.cgi?id=41759 |
|
9845 |
|
9846 * inspector/CodeGeneratorInspector.pm: |
|
9847 * inspector/InspectorTimelineAgent.cpp: |
|
9848 (WebCore::InspectorTimelineAgent::pushGCEventRecords): |
|
9849 (WebCore::InspectorTimelineAgent::didInstallTimer): |
|
9850 (WebCore::InspectorTimelineAgent::didRemoveTimer): |
|
9851 (WebCore::InspectorTimelineAgent::didScheduleResourceRequest): |
|
9852 (WebCore::InspectorTimelineAgent::willSendResourceRequest): |
|
9853 (WebCore::InspectorTimelineAgent::didFinishLoadingResource): |
|
9854 (WebCore::InspectorTimelineAgent::didMarkTimeline): |
|
9855 (WebCore::InspectorTimelineAgent::didMarkDOMContentEvent): |
|
9856 (WebCore::InspectorTimelineAgent::didMarkLoadEvent): |
|
9857 (WebCore::InspectorTimelineAgent::addRecordToTimeline): |
|
9858 (WebCore::InspectorTimelineAgent::setHeapSizeStatistic): |
|
9859 (WebCore::InspectorTimelineAgent::pushCurrentRecord): |
|
9860 * inspector/InspectorTimelineAgent.h: |
|
9861 (WebCore::InspectorTimelineAgent::TimelineRecordEntry::TimelineRecordEntry): |
|
9862 * inspector/TimelineRecordFactory.cpp: |
|
9863 (WebCore::TimelineRecordFactory::createGenericRecord): |
|
9864 (WebCore::TimelineRecordFactory::createGCEventData): |
|
9865 (WebCore::TimelineRecordFactory::createFunctionCallData): |
|
9866 (WebCore::TimelineRecordFactory::createEventDispatchData): |
|
9867 (WebCore::TimelineRecordFactory::createGenericTimerData): |
|
9868 (WebCore::TimelineRecordFactory::createTimerInstallData): |
|
9869 (WebCore::TimelineRecordFactory::createXHRReadyStateChangeData): |
|
9870 (WebCore::TimelineRecordFactory::createXHRLoadData): |
|
9871 (WebCore::TimelineRecordFactory::createEvaluateScriptData): |
|
9872 (WebCore::TimelineRecordFactory::createMarkTimelineData): |
|
9873 (WebCore::TimelineRecordFactory::createScheduleResourceRequestData): |
|
9874 (WebCore::TimelineRecordFactory::createResourceSendRequestData): |
|
9875 (WebCore::TimelineRecordFactory::createResourceReceiveResponseData): |
|
9876 (WebCore::TimelineRecordFactory::createResourceFinishData): |
|
9877 (WebCore::TimelineRecordFactory::createReceiveResourceData): |
|
9878 (WebCore::TimelineRecordFactory::createPaintData): |
|
9879 (WebCore::TimelineRecordFactory::createParseHTMLData): |
|
9880 * inspector/TimelineRecordFactory.h: |
|
9881 |
|
9882 2010-07-07 Antti Koivisto <koivisto@iki.fi> |
|
9883 |
|
9884 Reviewed by Kenneth Rohde Christiansen. |
|
9885 |
|
9886 [Qt] Initial WebKit2 implementation |
|
9887 https://bugs.webkit.org/show_bug.cgi?id=40233 |
|
9888 |
|
9889 Export some event conversion functions needed for WebKit2. |
|
9890 |
|
9891 * platform/PlatformKeyboardEvent.h: |
|
9892 * platform/qt/PlatformKeyboardEventQt.cpp: |
|
9893 (WebCore::keyIdentifierForQtKeyCode): |
|
9894 (WebCore::windowsKeyCodeForKeyEvent): |
|
9895 |
|
9896 2010-07-06 Steve Block <steveblock@google.com> |
|
9897 |
|
9898 Reviewed by Adam Barth. |
|
9899 |
|
9900 DeviceOrientationEventConstructor should be exposed at window.DeviceOrientationEvent |
|
9901 https://bugs.webkit.org/show_bug.cgi?id=41685 |
|
9902 |
|
9903 Test: fast/dom/Window/window-properties-device-orientation.html |
|
9904 fast/dom/DeviceOrientation/window-property.txt |
|
9905 |
|
9906 * page/DOMWindow.idl: |
|
9907 |
|
9908 2010-07-07 Sheriff Bot <webkit.review.bot@gmail.com> |
|
9909 |
|
9910 Unreviewed, rolling out r62645. |
|
9911 http://trac.webkit.org/changeset/62645 |
|
9912 https://bugs.webkit.org/show_bug.cgi?id=41757 |
|
9913 |
|
9914 "Broken inspector tests on several platforms" (Requested by |
|
9915 eseidel on #webkit). |
|
9916 |
|
9917 * inspector/front-end/ScriptView.js: |
|
9918 (WebInspector.ScriptView.prototype._addBreakpoint): |
|
9919 * inspector/front-end/ScriptsPanel.js: |
|
9920 (WebInspector.ScriptsPanel): |
|
9921 (WebInspector.ScriptsPanel.prototype._resourceLoadingFinished): |
|
9922 (WebInspector.ScriptsPanel.prototype._breakpointAdded): |
|
9923 (WebInspector.ScriptsPanel.prototype._scriptOrResourceForURLAndLine): |
|
9924 (WebInspector.ScriptsPanel.prototype._showScriptOrResource): |
|
9925 (WebInspector.ScriptsPanel.prototype._toggleBreakpointsClicked): |
|
9926 * inspector/front-end/SourceView.js: |
|
9927 (WebInspector.SourceView.prototype._addBreakpoint): |
|
9928 |
|
9929 2010-07-07 Steve Block <steveblock@google.com> |
|
9930 |
|
9931 Reviewed by Adam Barth. |
|
9932 |
|
9933 JavaInstanceV8 needs to push a local reference frame to avoid table overflow. |
|
9934 https://bugs.webkit.org/show_bug.cgi?id=41516 |
|
9935 |
|
9936 This change is required to help prevent the Java virtual machine from |
|
9937 running out of local references. The Java virtual machine supports only |
|
9938 a limited number of local references. Normally, local references are |
|
9939 cleared when the native method returns. |
|
9940 |
|
9941 This change adds calls to PushLocalFrame() and PopLocalFrame() around |
|
9942 each invocation of a method on JavaInstance. These calls instruct the |
|
9943 virtual machine to clear local references when the frame is popped. |
|
9944 This means that in the case where many calls to JavaInstance methods |
|
9945 are made within the same native call, local references are cleared as |
|
9946 soon as they are no longer needed, thus conserving references. |
|
9947 |
|
9948 This change mirrors exactly JavaInstanceJSC. |
|
9949 |
|
9950 No new tests. |
|
9951 |
|
9952 * bridge/jni/v8/JavaInstanceV8.cpp: |
|
9953 (JavaInstance::virtualBegin): |
|
9954 (JavaInstance::virtualEnd): |
|
9955 * bridge/jni/v8/JavaInstanceV8.h: |
|
9956 |
|
9957 2010-07-06 Yury Semikhatsky <yurys@chromium.org> |
|
9958 |
|
9959 Reviewed by Pavel Feldman. |
|
9960 |
|
9961 Inspector should remember the size of sidebars set by the user |
|
9962 https://bugs.webkit.org/show_bug.cgi?id=19207 |
|
9963 |
|
9964 * inspector/front-end/AbstractTimelinePanel.js: |
|
9965 (WebInspector.AbstractTimelinePanel): |
|
9966 * inspector/front-end/AuditsPanel.js: |
|
9967 (WebInspector.AuditsPanel): |
|
9968 * inspector/front-end/ConsolePanel.js: |
|
9969 (WebInspector.ConsolePanel): |
|
9970 * inspector/front-end/ElementsPanel.js: |
|
9971 (WebInspector.ElementsPanel.prototype.rightSidebarResizerDragEnd): |
|
9972 * inspector/front-end/Panel.js: |
|
9973 (WebInspector.Panel): |
|
9974 (WebInspector.Panel.prototype.get toolbarItemClass): |
|
9975 (WebInspector.Panel.prototype.show): |
|
9976 (WebInspector.Panel.prototype.createSidebar): |
|
9977 (WebInspector.Panel.prototype.get _sidebarWidthSettingName): |
|
9978 (WebInspector.Panel.prototype._endSidebarDragging): |
|
9979 (WebInspector.Panel.prototype.updateSidebarWidth): |
|
9980 (WebInspector.Panel.prototype.restoreSidebarWidth): |
|
9981 (WebInspector.Panel.prototype.saveSidebarWidth): |
|
9982 * inspector/front-end/ProfilesPanel.js: |
|
9983 (WebInspector.ProfilesPanel): |
|
9984 * inspector/front-end/ResourcesPanel.js: |
|
9985 (WebInspector.ResourcesPanel): |
|
9986 (WebInspector.ResourcesPanel.prototype.resourceTrackingWasEnabled): |
|
9987 * inspector/front-end/ScriptsPanel.js: |
|
9988 (WebInspector.ScriptsPanel): |
|
9989 (WebInspector.ScriptsPanel.prototype._endSidebarResizeDrag): |
|
9990 (WebInspector.ScriptsPanel.prototype._sidebarResizeDrag): |
|
9991 (WebInspector.ScriptsPanel.prototype.setSidebarWidth): |
|
9992 * inspector/front-end/Settings.js: |
|
9993 (WebInspector.populateApplicationSettings): |
|
9994 * inspector/front-end/StoragePanel.js: |
|
9995 (WebInspector.StoragePanel): |
|
9996 * inspector/front-end/TimelinePanel.js: |
|
9997 (WebInspector.TimelinePanel): |
|
9998 |
|
9999 2010-07-05 Steve Block <steveblock@google.com> |
|
10000 |
|
10001 Reviewed by Adam Barth. |
|
10002 |
|
10003 DeviceOrientation should be renamed to DeviceOrientationController |
|
10004 https://bugs.webkit.org/show_bug.cgi?id=41608 |
|
10005 |
|
10006 No new tests, renaming only. |
|
10007 |
|
10008 * Android.mk: |
|
10009 * CMakeLists.txt: |
|
10010 * GNUmakefile.am: |
|
10011 * WebCore.gypi: |
|
10012 * WebCore.pro: |
|
10013 * WebCore.vcproj/WebCore.vcproj: |
|
10014 * WebCore.xcodeproj/project.pbxproj: |
|
10015 * dom/DeviceOrientation.cpp: Removed. |
|
10016 * dom/DeviceOrientation.h: Removed. |
|
10017 * dom/DeviceOrientationController.cpp: Copied from WebCore/dom/DeviceOrientation.cpp. |
|
10018 (WebCore::DeviceOrientationController::DeviceOrientationController): |
|
10019 (WebCore::DeviceOrientationController::onDeviceOrientationChange): |
|
10020 * dom/DeviceOrientationController.h: Copied from WebCore/dom/DeviceOrientation.h. |
|
10021 * page/Page.cpp: |
|
10022 (WebCore::Page::Page): |
|
10023 * page/Page.h: |
|
10024 (WebCore::Page::deviceOrientationController): |
|
10025 |
|
10026 2010-07-07 Pavel Podivilov <podivilov@chromium.org> |
|
10027 |
|
10028 Reviewed by Yury Semikhatsky. |
|
10029 |
|
10030 Web Inspector: do not activate all breakpoints on page reload |
|
10031 https://bugs.webkit.org/show_bug.cgi?id=41461 |
|
10032 |
|
10033 Test: inspector/debugger-breakpoints-not-activated-on-reload.html |
|
10034 |
|
10035 * inspector/front-end/ScriptView.js: |
|
10036 (WebInspector.ScriptView.prototype._addBreakpoint): |
|
10037 * inspector/front-end/ScriptsPanel.js: |
|
10038 (WebInspector.ScriptsPanel): |
|
10039 (WebInspector.ScriptsPanel.prototype._breakpointAdded): |
|
10040 (WebInspector.ScriptsPanel.prototype.toggleBreakpointsClicked): |
|
10041 * inspector/front-end/SourceView.js: |
|
10042 (WebInspector.SourceView.prototype._addBreakpoint): |
|
10043 |
|
10044 2010-07-07 Nikolas Zimmermann <nzimmermann@rim.com> |
|
10045 |
|
10046 Not reviewed. Rollout r62633 - test crashes after some last-minute modifications. |
|
10047 |
|
10048 * svg/SVGFontFaceElement.cpp: |
|
10049 (WebCore::SVGFontFaceElement::~SVGFontFaceElement): |
|
10050 |
|
10051 2010-07-07 Eric Seidel <eric@webkit.org> |
|
10052 |
|
10053 Reviewed by Adam Barth. |
|
10054 |
|
10055 Fix </html> handling in before head mode |
|
10056 https://bugs.webkit.org/show_bug.cgi?id=41752 |
|
10057 |
|
10058 Covered by html5lib/runner.html. |
|
10059 |
|
10060 * html/HTMLTreeBuilder.cpp: |
|
10061 (WebCore::HTMLTreeBuilder::processEndTag): |
|
10062 |
|
10063 2010-07-07 Eric Seidel <eric@webkit.org> |
|
10064 |
|
10065 Reviewed by Adam Barth. |
|
10066 |
|
10067 </div> pops too many <div> elements in body |
|
10068 https://bugs.webkit.org/show_bug.cgi?id=41751 |
|
10069 |
|
10070 Another missing return! |
|
10071 |
|
10072 While tracking this down I added some debugging code to both the |
|
10073 open elements stack and the active formatting elements list. |
|
10074 |
|
10075 I also unwrapped a very long || chain to make it more readable. |
|
10076 |
|
10077 * html/HTMLElementStack.cpp: |
|
10078 (WebCore::HTMLElementStack::show): |
|
10079 * html/HTMLElementStack.h: |
|
10080 * html/HTMLFormattingElementList.cpp: |
|
10081 (WebCore::HTMLFormattingElementList::show): |
|
10082 * html/HTMLFormattingElementList.h: |
|
10083 * html/HTMLTreeBuilder.cpp: |
|
10084 (WebCore::HTMLTreeBuilder::processEndTagForInBody): |
|
10085 |
|
10086 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10087 |
|
10088 Reviewed by Adam Barth. |
|
10089 |
|
10090 HTMLTreeBuilder needs to handle <table><input> |
|
10091 https://bugs.webkit.org/show_bug.cgi?id=41744 |
|
10092 |
|
10093 * html/HTMLTreeBuilder.cpp: |
|
10094 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
10095 |
|
10096 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10097 |
|
10098 Reviewed by Adam Barth. |
|
10099 |
|
10100 Teach HTMLTreeBuilder how to handle <button><button> |
|
10101 https://bugs.webkit.org/show_bug.cgi?id=41743 |
|
10102 |
|
10103 * html/HTMLTreeBuilder.cpp: |
|
10104 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
10105 |
|
10106 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10107 |
|
10108 Reviewed by Adam Barth. |
|
10109 |
|
10110 Teach TreeBuilder how to handle <form><form> |
|
10111 https://bugs.webkit.org/show_bug.cgi?id=41741 |
|
10112 |
|
10113 * html/HTMLTreeBuilder.cpp: |
|
10114 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
10115 |
|
10116 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10117 |
|
10118 Reviewed by Adam Barth. |
|
10119 |
|
10120 <table> should auto-close <p> when not in quirks mode |
|
10121 https://bugs.webkit.org/show_bug.cgi?id=41740 |
|
10122 |
|
10123 This is already covered by multiple tests in html5lib/runner.html |
|
10124 |
|
10125 * html/HTMLTreeBuilder.cpp: |
|
10126 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
10127 |
|
10128 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10129 |
|
10130 Reviewed by Adam Barth. |
|
10131 |
|
10132 Make "in body" character handling reconstruct active formatting elements |
|
10133 https://bugs.webkit.org/show_bug.cgi?id=41739 |
|
10134 |
|
10135 This fixes a bunch of tests, and due to some other bug in our |
|
10136 formatting code, regresses two. I'll fix that bug in a separate |
|
10137 patch. |
|
10138 |
|
10139 * html/HTMLTreeBuilder.cpp: |
|
10140 (WebCore::HTMLTreeBuilder::processCharacter): |
|
10141 |
|
10142 2010-07-06 Nikolas Zimmermann <nzimmermann@rim.com> |
|
10143 |
|
10144 Reviewed by Darin Adler. |
|
10145 |
|
10146 <use> on <font-face> causes crashes, if SVGUseElement gets detached |
|
10147 https://bugs.webkit.org/show_bug.cgi?id=41621 |
|
10148 |
|
10149 Do not call removeFromMappedElementSheet() from the destructor, as the call to document()->updateStyleSelector() that can potentially |
|
10150 cause the element to be reattached while destructing. It's not needed at all, because removedFromDocument() is called before destruction, |
|
10151 which already calls removeFromMappedElementSheet() - at this point it's still safe to update the style selector. |
|
10152 |
|
10153 The crash is reproducable when using <use> on <font-face>. |
|
10154 |
|
10155 Test: svg/custom/use-font-face-crash.svg |
|
10156 |
|
10157 * svg/SVGFontFaceElement.cpp: |
|
10158 (WebCore::SVGFontFaceElement::~SVGFontFaceElement): |
|
10159 |
|
10160 2010-07-07 Hayato Ito <hayato@chromium.org> |
|
10161 |
|
10162 Reviewed by Darin Adler. |
|
10163 |
|
10164 Rolling out 'page-break-inside:avoid' part of the r54929. |
|
10165 Rebased the related layout tests, which are now expected to fail, as well. |
|
10166 |
|
10167 https://bugs.webkit.org/show_bug.cgi?id=41532 |
|
10168 |
|
10169 * rendering/RenderBlock.cpp: |
|
10170 (WebCore::RenderBlock::paintChildren): |
|
10171 |
|
10172 2010-07-07 Mark Rowe <mrowe@apple.com> |
|
10173 |
|
10174 Fix failures in a handful of Java-related tests. |
|
10175 |
|
10176 * WebCore.exp.in: Remove an extraneous ENABLE_ from an #if so that the condition |
|
10177 evalutes to true when we expect it to. |
|
10178 |
|
10179 2010-07-06 Pavel Feldman <pfeldman@chromium.org> |
|
10180 |
|
10181 Reviewed by Joseph Pecoraro. |
|
10182 |
|
10183 Web Inspector: provide line numbers for inline styles. |
|
10184 |
|
10185 https://bugs.webkit.org/show_bug.cgi?id=41691 |
|
10186 |
|
10187 Test: inspector/styles-source-lines-inline.html |
|
10188 |
|
10189 * css/CSSParser.cpp: |
|
10190 (WebCore::CSSParser::parseSheet): |
|
10191 * css/CSSParser.h: |
|
10192 * css/CSSStyleSheet.cpp: |
|
10193 (WebCore::CSSStyleSheet::parseString): |
|
10194 (WebCore::CSSStyleSheet::parseStringAtLine): |
|
10195 * css/CSSStyleSheet.h: |
|
10196 * dom/StyleElement.cpp: |
|
10197 (WebCore::StyleElement::process): |
|
10198 (WebCore::StyleElement::createSheet): |
|
10199 * dom/StyleElement.h: |
|
10200 * html/HTMLStyleElement.cpp: |
|
10201 (WebCore::HTMLStyleElement::HTMLStyleElement): |
|
10202 (WebCore::HTMLStyleElement::finishParsingChildren): |
|
10203 * html/HTMLStyleElement.h: |
|
10204 * inspector/InspectorCSSStore.cpp: |
|
10205 (WebCore::InspectorCSSStore::getRuleRangesForStyleSheet): |
|
10206 * inspector/InspectorDOMAgent.cpp: |
|
10207 (WebCore::InspectorDOMAgent::buildObjectForRule): |
|
10208 * inspector/front-end/DOMAgent.js: |
|
10209 (WebInspector.CSSStyleDeclaration.parseRule): |
|
10210 * inspector/front-end/StylesSidebarPane.js: |
|
10211 (WebInspector.StylePropertiesSection.else.linkifyUncopyable): |
|
10212 (WebInspector.StylePropertiesSection): |
|
10213 |
|
10214 2010-07-06 Dan Bernstein <mitz@apple.com> |
|
10215 |
|
10216 Reviewed by Jon Honeycutt. |
|
10217 |
|
10218 <rdar://problem/8163651> Wrong value type being supplied for kCTTypesetterOptionForcedEmbeddingLevel key |
|
10219 |
|
10220 No change in behavior, so no new test. |
|
10221 |
|
10222 * platform/graphics/mac/ComplexTextControllerCoreText.cpp: |
|
10223 (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText): Use CFNumber instances |
|
10224 as the values of the kCTTypesetterOptionForcedEmbeddingLevel key, instead of CFBooleans. |
|
10225 |
|
10226 2010-07-06 Mark Rowe <mrowe@apple.com> |
|
10227 |
|
10228 Fix production builds on Mac OS X. |
|
10229 |
|
10230 * DerivedSources.make: Don't try and generate the export file during the installhdrs build phase. |
|
10231 It's not useful until much later in the build process, and it's not possible to generate it until |
|
10232 after the tool has been compiled anyway. |
|
10233 * WebCore.xcodeproj/project.pbxproj: Tweak how the ICU and forwarding headers are copied so that it |
|
10234 works in production builds once more. |
|
10235 |
|
10236 2010-07-06 Steve Falkenburg <sfalken@apple.com> |
|
10237 |
|
10238 Reviewed by Simon Fraser. |
|
10239 |
|
10240 Expose URL matching from WebUserContentURLPattern |
|
10241 https://bugs.webkit.org/show_bug.cgi?id=41726 |
|
10242 <rdar://problem/7910144> |
|
10243 |
|
10244 * WebCore.exp.in: Export UserContentURLPattern::matches for use in WebKit. |
|
10245 |
|
10246 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10247 |
|
10248 Reviewed by Adam Barth. |
|
10249 |
|
10250 Fix <nobr><nobr> case in HTMLTreeBuilder |
|
10251 https://bugs.webkit.org/show_bug.cgi?id=41735 |
|
10252 |
|
10253 We were both not handling <nobr> correctly, as well as |
|
10254 never hitting the <nobr> case because our formatting |
|
10255 elements check was overzealous. |
|
10256 |
|
10257 * html/HTMLTreeBuilder.cpp: |
|
10258 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
10259 |
|
10260 2010-07-06 Adam Barth <abarth@webkit.org> |
|
10261 |
|
10262 Reviewed by Eric Seidel. |
|
10263 |
|
10264 Implement start table tag in table mode |
|
10265 https://bugs.webkit.org/show_bug.cgi?id=41736 |
|
10266 |
|
10267 * html/HTMLTreeBuilder.cpp: |
|
10268 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
10269 (WebCore::HTMLTreeBuilder::processTableEndTagForInTable): |
|
10270 (WebCore::HTMLTreeBuilder::processEndTagForInTable): |
|
10271 * html/HTMLTreeBuilder.h: |
|
10272 |
|
10273 2010-07-06 Adam Barth <abarth@webkit.org> |
|
10274 |
|
10275 Reviewed by Eric Seidel. |
|
10276 |
|
10277 Implement "act as if the banana has been peeled" (for lack of a better term) |
|
10278 https://bugs.webkit.org/show_bug.cgi?id=41734 |
|
10279 |
|
10280 The spec has a tricky passage that says "whenever a node would be |
|
10281 inserted into the current node, it must instead be foster parented." |
|
10282 This patch attempts to implement that requirement. |
|
10283 |
|
10284 * html/HTMLConstructionSite.cpp: |
|
10285 (WebCore::HTMLConstructionSite::attach): |
|
10286 (WebCore::HTMLConstructionSite::HTMLConstructionSite): |
|
10287 (WebCore::HTMLConstructionSite::insertHTMLHtmlElement): |
|
10288 (WebCore::HTMLConstructionSite::insertHTMLHeadElement): |
|
10289 (WebCore::HTMLConstructionSite::insertHTMLBodyElement): |
|
10290 (WebCore::HTMLConstructionSite::insertScriptElement): |
|
10291 (WebCore::HTMLConstructionSite::fosterParent): |
|
10292 * html/HTMLConstructionSite.h: |
|
10293 (WebCore::HTMLConstructionSite::RedirectToFosterParentGuard::RedirectToFosterParentGuard): |
|
10294 (WebCore::HTMLConstructionSite::RedirectToFosterParentGuard::~RedirectToFosterParentGuard): |
|
10295 * html/HTMLTreeBuilder.cpp: |
|
10296 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
10297 (WebCore::HTMLTreeBuilder::processEndTagForInTable): |
|
10298 * html/HTMLTreeBuilder.h: |
|
10299 |
|
10300 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10301 |
|
10302 Reviewed by Adam Barth. |
|
10303 |
|
10304 Fix </optgroup> in "in select" mode |
|
10305 https://bugs.webkit.org/show_bug.cgi?id=41733 |
|
10306 |
|
10307 I had to add a oneBelowTop() accessor. |
|
10308 I added some ASSERTs after looking at the fragment case |
|
10309 documentation. I'm now convinced that top() and oneBeforeTop() |
|
10310 should never be NULL, so we just ASSERT they aren't. |
|
10311 |
|
10312 This is a very obscure corner of the HTML spec, but at least |
|
10313 we have a test for it. This makes one more html5lib test pass. |
|
10314 |
|
10315 * html/HTMLConstructionSite.h: |
|
10316 (WebCore::HTMLConstructionSite::oneBelowTop): |
|
10317 * html/HTMLElementStack.cpp: |
|
10318 (WebCore::HTMLElementStack::topRecord): |
|
10319 (WebCore::HTMLElementStack::top): |
|
10320 (WebCore::HTMLElementStack::oneBelowTop): |
|
10321 * html/HTMLElementStack.h: |
|
10322 * html/HTMLTreeBuilder.cpp: |
|
10323 (WebCore::HTMLTreeBuilder::processEndTag): |
|
10324 |
|
10325 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10326 |
|
10327 Reviewed by Adam Barth. |
|
10328 |
|
10329 Fix "in row" "Anything else" handling of end tags |
|
10330 https://bugs.webkit.org/show_bug.cgi?id=41731 |
|
10331 |
|
10332 I also fixed </br> handling to follow the spec more closely |
|
10333 since it implementation was old and didn't use all our |
|
10334 new processFake* hotness. |
|
10335 |
|
10336 This is already covered by 3 tests, however we don't |
|
10337 pass them yet, due to lack of table foster parenting |
|
10338 code (which Adam is working on as we speak). |
|
10339 |
|
10340 * html/HTMLTreeBuilder.cpp: |
|
10341 (WebCore::HTMLTreeBuilder::processEndTagForInBody): |
|
10342 (WebCore::HTMLTreeBuilder::processEndTag): |
|
10343 |
|
10344 2010-07-06 Mark Rowe <mrowe@apple.com> |
|
10345 |
|
10346 Fix clean builds on Mac OS X. |
|
10347 |
|
10348 Since "Copy Forwarding and ICU Headers" was split in to a separate target |
|
10349 from the WebCore framework it no longer had automatica access to the |
|
10350 PRIVATE_HEADERS_FOLDER_PATH variable. This caused it to copy the header |
|
10351 files in to the wrong location. Fix that by giving PRIVATE_HEADERS_FOLDER_PATH |
|
10352 its correct value and ensuring that the path exists. |
|
10353 |
|
10354 * WebCore.xcodeproj/project.pbxproj: |
|
10355 |
|
10356 2010-07-06 Sam Weinig <sam@webkit.org> |
|
10357 |
|
10358 Fix Gtk build. |
|
10359 |
|
10360 * GNUmakefile.am: |
|
10361 |
|
10362 2010-07-06 Mark Rowe <mrowe@apple.com> |
|
10363 |
|
10364 Tiger build fix. |
|
10365 |
|
10366 Don't use WebCore's LDFLAGS when building WebCoreExportFileGenerator. |
|
10367 |
|
10368 * WebCore.xcodeproj/project.pbxproj: |
|
10369 |
|
10370 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10371 |
|
10372 Reviewed by Adam Barth. |
|
10373 |
|
10374 "In cell" does not correctly handle <td><tr> or <td><td> |
|
10375 https://bugs.webkit.org/show_bug.cgi?id=41729 |
|
10376 |
|
10377 This change is mostly cleanup to try and prevent forgetting |
|
10378 tag name checks in the future by using inlines to reduce |
|
10379 copy/paste code. |
|
10380 |
|
10381 3 little bugs in InCellMode: |
|
10382 - Missing trTag from the long or statement (reason for the cleanup) |
|
10383 - Used || instead of && |
|
10384 - Forgot to reprocess the tag after closeTheCell() |
|
10385 |
|
10386 * html/HTMLTreeBuilder.cpp: |
|
10387 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
10388 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
10389 (WebCore::HTMLTreeBuilder::processStartTag): |
|
10390 (WebCore::HTMLTreeBuilder::processEndTagForInTable): |
|
10391 (WebCore::HTMLTreeBuilder::processEndTag): |
|
10392 |
|
10393 2010-07-06 Adam Barth <abarth@webkit.org> |
|
10394 |
|
10395 Reviewed by Eric Seidel. |
|
10396 |
|
10397 Move fosterParent to HTMLConstructionSite |
|
10398 https://bugs.webkit.org/show_bug.cgi?id=41728 |
|
10399 |
|
10400 This paves the way for handling the default case of InTableMode |
|
10401 properly. |
|
10402 |
|
10403 * html/HTMLConstructionSite.cpp: |
|
10404 (WebCore::HTMLConstructionSite::fosterParent): |
|
10405 * html/HTMLConstructionSite.h: |
|
10406 * html/HTMLTreeBuilder.cpp: |
|
10407 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
10408 |
|
10409 2010-07-06 Adam Barth <abarth@webkit.org> |
|
10410 |
|
10411 Rubber-stamped by Eric Seidel. |
|
10412 |
|
10413 Move HTMLConstructionSite to its own file. No behavior change. |
|
10414 |
|
10415 * Android.mk: |
|
10416 * CMakeLists.txt: |
|
10417 * GNUmakefile.am: |
|
10418 * WebCore.gypi: |
|
10419 * WebCore.pro: |
|
10420 * WebCore.vcproj/WebCore.vcproj: |
|
10421 * WebCore.xcodeproj/project.pbxproj: |
|
10422 * html/HTMLConstructionSite.cpp: Copied from WebCore/html/HTMLTreeBuilder.cpp. |
|
10423 (WebCore::HTMLNames::hasImpliedEndTag): |
|
10424 (WebCore::HTMLConstructionSite::attach): |
|
10425 (WebCore::HTMLConstructionSite::HTMLConstructionSite): |
|
10426 (WebCore::HTMLConstructionSite::~HTMLConstructionSite): |
|
10427 (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML): |
|
10428 (WebCore::HTMLConstructionSite::mergeAttributesFromTokenIntoElement): |
|
10429 (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagInBody): |
|
10430 (WebCore::HTMLConstructionSite::insertHTMLBodyStartTagInBody): |
|
10431 * html/HTMLConstructionSite.h: Copied from WebCore/html/HTMLTreeBuilder.h. |
|
10432 * html/HTMLTreeBuilder.cpp: |
|
10433 * html/HTMLTreeBuilder.h: |
|
10434 |
|
10435 2010-07-06 Mark Rowe <mrowe@apple.com> |
|
10436 |
|
10437 Build fix. |
|
10438 |
|
10439 The path to the generated file needs to be relative to the built product directory, |
|
10440 not to the project file. |
|
10441 |
|
10442 * WebCore.xcodeproj/project.pbxproj: |
|
10443 |
|
10444 2010-07-06 Mark Rowe <mrowe@apple.com> |
|
10445 |
|
10446 Reviewed by Darin Adler. |
|
10447 |
|
10448 <http://webkit.org/b/41725> REGRESSION(r62283): No longer possible to build for Tiger from SnowLeopard due to export file shenanigans |
|
10449 |
|
10450 Change how the exports file is generated. Rather than having the logic for which symbols |
|
10451 to include be encoded in a Makefile that concatenated separate files, the logic is now |
|
10452 encoded as #if's in the base exports file. This ensures that the exact same preprocessor |
|
10453 settings are used when determining which symbols to export as when compiling the code that |
|
10454 defines the symbols. |
|
10455 |
|
10456 * DerivedSources.make: Remove logic that determines which export files to concatenate. |
|
10457 Replace with an invocation of WebCoreExportFileGenerator. |
|
10458 * WebCore.3DRendering.exp: Removed. |
|
10459 * WebCore.AcceleratedCompositing.exp: Removed. |
|
10460 * WebCore.ClientBasedGeolocation.exp: Removed. |
|
10461 * WebCore.ContextMenus.exp: Removed. |
|
10462 * WebCore.DashboardSupport.exp: Removed. |
|
10463 * WebCore.DragSupport.exp: Removed. |
|
10464 * WebCore.Geolocation.exp: Removed. |
|
10465 * WebCore.Inspector.exp: Removed. |
|
10466 * WebCore.JNI.exp: Removed. |
|
10467 * WebCore.NPAPI.exp: Removed. |
|
10468 * WebCore.OrientationEvents.exp: Removed. |
|
10469 * WebCore.PluginHostProcess.exp: Removed. |
|
10470 * WebCore.ProtectionSpaceAuthCallback.exp: Removed. |
|
10471 * WebCore.SVG.Animation.exp: Removed. |
|
10472 * WebCore.SVG.Filters.exp: Removed. |
|
10473 * WebCore.SVG.ForeignObject.exp: Removed. |
|
10474 * WebCore.SVG.exp: Removed. |
|
10475 * WebCore.Tiger.exp: Removed. |
|
10476 * WebCore.Video.exp: Removed. |
|
10477 * WebCore.VideoProxy.exp: Removed. |
|
10478 * WebCore.exp.in: Renamed from WebCore/WebCore.base.exp. Merge the individual .exp |
|
10479 files in, wrapping the appropriate parts with the necessary #if's. |
|
10480 * WebCore.xcodeproj/project.pbxproj: |
|
10481 * make-exports-file-generator: Added. |
|
10482 |
|
10483 2010-07-06 Sam Weinig <sam@webkit.org> |
|
10484 |
|
10485 Reviewed by Anders Carlsson. |
|
10486 |
|
10487 Patch for https://bugs.webkit.org/show_bug.cgi?id=41723 |
|
10488 Add BackForwardController class |
|
10489 |
|
10490 - Add BackForwardController which currently only forwards to the existing |
|
10491 BackForwardList implementation. This is a first step toward allowing |
|
10492 for a proxying BackForwardList implementation. |
|
10493 |
|
10494 * CMakeLists.txt: |
|
10495 * GNUmakefile.am: |
|
10496 * WebCore.base.exp: |
|
10497 * WebCore.gypi: |
|
10498 * WebCore.pro: |
|
10499 * WebCore.vcproj/WebCore.vcproj: |
|
10500 * WebCore.xcodeproj/project.pbxproj: |
|
10501 * history/BackForwardController.cpp: Added. |
|
10502 (WebCore::BackForwardController::BackForwardController): |
|
10503 (WebCore::BackForwardController::~BackForwardController): |
|
10504 * history/BackForwardController.h: Added. |
|
10505 (WebCore::BackForwardController::client): |
|
10506 (WebCore::BackForwardController::list): |
|
10507 * history/BackForwardControllerClient.h: Added. |
|
10508 (WebCore::BackForwardControllerClient::~BackForwardControllerClient): |
|
10509 * page/Page.cpp: |
|
10510 (WebCore::Page::Page): |
|
10511 (WebCore::Page::~Page): |
|
10512 (WebCore::Page::backForwardList): |
|
10513 (WebCore::Page::goBack): |
|
10514 (WebCore::Page::goForward): |
|
10515 (WebCore::Page::canGoBackOrForward): |
|
10516 (WebCore::Page::goBackOrForward): |
|
10517 (WebCore::Page::getHistoryLength): |
|
10518 * page/Page.h: |
|
10519 |
|
10520 2010-07-06 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> |
|
10521 |
|
10522 Unreviewed. |
|
10523 |
|
10524 Fixes regression on API test by disabling the scrollbars before |
|
10525 configuring the adjustments. |
|
10526 |
|
10527 * platform/gtk/ScrollViewGtk.cpp: |
|
10528 (WebCore::ScrollView::setGtkAdjustments): |
|
10529 |
|
10530 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10531 |
|
10532 Reviewed by Adam Barth. |
|
10533 |
|
10534 Add support for <li>, <dd> and <dt> nested tag closing |
|
10535 https://bugs.webkit.org/show_bug.cgi?id=41720 |
|
10536 |
|
10537 li, dd, and dt have nearly identical logic in HTML5, so I |
|
10538 attempted to make them share as much code as possible. |
|
10539 |
|
10540 This fixes a bunch of subtests for html5lib/runner.html |
|
10541 |
|
10542 * html/HTMLTreeBuilder.cpp: |
|
10543 (WebCore::HTMLTreeBuilder::processCloseWhenNestedTag): |
|
10544 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
10545 (WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody): |
|
10546 (WebCore::HTMLTreeBuilder::furthestBlockForFormattingElement): |
|
10547 * html/HTMLTreeBuilder.h: |
|
10548 |
|
10549 2010-07-06 Adam Barth <abarth@webkit.org> |
|
10550 |
|
10551 Reviewed by Eric Seidel. |
|
10552 |
|
10553 Factor HTMLConstructionSite out of HTMLTreeBuilder |
|
10554 https://bugs.webkit.org/show_bug.cgi?id=41716 |
|
10555 |
|
10556 The HTMLContructionSite is the model object on which the |
|
10557 HTMLTreeBuilder (a controller) acts. |
|
10558 |
|
10559 No behavior change. I'll move this class into its own file in a |
|
10560 followup patch. |
|
10561 |
|
10562 * html/HTMLFormattingElementList.h: |
|
10563 (WebCore::HTMLFormattingElementList::at): |
|
10564 * html/HTMLTreeBuilder.cpp: |
|
10565 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
10566 (WebCore::HTMLConstructionSite::HTMLConstructionSite): |
|
10567 (WebCore::HTMLTreeBuilder::passTokenToLegacyParser): |
|
10568 (WebCore::HTMLTreeBuilder::processDoctypeToken): |
|
10569 (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML): |
|
10570 (WebCore::HTMLConstructionSite::mergeAttributesFromTokenIntoElement): |
|
10571 (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagInBody): |
|
10572 (WebCore::HTMLConstructionSite::insertHTMLBodyStartTagInBody): |
|
10573 (WebCore::HTMLTreeBuilder::processFakePEndTagIfPInScope): |
|
10574 (WebCore::HTMLTreeBuilder::processIsindexStartTagForInBody): |
|
10575 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
10576 (WebCore::HTMLTreeBuilder::processColgroupEndTagForInColumnGroup): |
|
10577 (WebCore::HTMLTreeBuilder::closeTheCell): |
|
10578 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
10579 (WebCore::HTMLTreeBuilder::processStartTag): |
|
10580 (WebCore::HTMLTreeBuilder::processBodyEndTagForInBody): |
|
10581 (WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody): |
|
10582 (WebCore::HTMLTreeBuilder::furthestBlockForFormattingElement): |
|
10583 (WebCore::HTMLTreeBuilder::findFosterParentFor): |
|
10584 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
10585 (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately): |
|
10586 (WebCore::HTMLTreeBuilder::processEndTagForInBody): |
|
10587 (WebCore::HTMLTreeBuilder::processCaptionEndTagForInCaption): |
|
10588 (WebCore::HTMLTreeBuilder::processTrEndTagForInRow): |
|
10589 (WebCore::HTMLTreeBuilder::processEndTagForInTable): |
|
10590 (WebCore::HTMLTreeBuilder::processEndTag): |
|
10591 (WebCore::HTMLTreeBuilder::processComment): |
|
10592 (WebCore::HTMLTreeBuilder::processCharacter): |
|
10593 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
10594 (WebCore::HTMLTreeBuilder::processDefaultForBeforeHTMLMode): |
|
10595 (WebCore::HTMLTreeBuilder::processStartTagForInHead): |
|
10596 (WebCore::HTMLConstructionSite::insertDoctype): |
|
10597 (WebCore::HTMLConstructionSite::insertComment): |
|
10598 (WebCore::HTMLConstructionSite::insertCommentOnDocument): |
|
10599 (WebCore::HTMLConstructionSite::insertCommentOnHTMLHtmlElement): |
|
10600 (WebCore::HTMLConstructionSite::createElementAndAttachToCurrent): |
|
10601 (WebCore::HTMLConstructionSite::insertHTMLHtmlElement): |
|
10602 (WebCore::HTMLConstructionSite::insertHTMLHeadElement): |
|
10603 (WebCore::HTMLConstructionSite::insertHTMLBodyElement): |
|
10604 (WebCore::HTMLConstructionSite::insertElement): |
|
10605 (WebCore::HTMLConstructionSite::insertSelfClosingElement): |
|
10606 (WebCore::HTMLConstructionSite::insertFormattingElement): |
|
10607 (WebCore::HTMLTreeBuilder::processGenericRCDATAStartTag): |
|
10608 (WebCore::HTMLTreeBuilder::processGenericRawTextStartTag): |
|
10609 (WebCore::HTMLConstructionSite::insertScriptElement): |
|
10610 (WebCore::HTMLTreeBuilder::processScriptStartTag): |
|
10611 (WebCore::HTMLConstructionSite::insertTextNode): |
|
10612 (WebCore::HTMLConstructionSite::createElement): |
|
10613 (WebCore::HTMLTreeBuilder::indexOfFirstUnopenFormattingElement): |
|
10614 (WebCore::HTMLTreeBuilder::reconstructTheActiveFormattingElements): |
|
10615 (WebCore::HTMLTreeBuilder::generateImpliedEndTagsWithExclusion): |
|
10616 (WebCore::HTMLTreeBuilder::generateImpliedEndTags): |
|
10617 * html/HTMLTreeBuilder.h: |
|
10618 (WebCore::HTMLConstructionSite::currentElement): |
|
10619 (WebCore::HTMLConstructionSite::openElements): |
|
10620 (WebCore::HTMLConstructionSite::activeFormattingElements): |
|
10621 (WebCore::HTMLConstructionSite::head): |
|
10622 (WebCore::HTMLConstructionSite::form): |
|
10623 (WebCore::HTMLConstructionSite::releaseForm): |
|
10624 (WebCore::HTMLConstructionSite::setForm): |
|
10625 (WebCore::HTMLConstructionSite::fragmentScriptingPermission): |
|
10626 (WebCore::HTMLConstructionSite::attach): |
|
10627 |
|
10628 2010-07-06 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> |
|
10629 |
|
10630 Reviewed by Xan Lopez. |
|
10631 |
|
10632 [GTK] Scrollbars sometimes go dead and stop scrolling the view |
|
10633 https://bugs.webkit.org/show_bug.cgi?id=41711 |
|
10634 |
|
10635 Fixes GtkScrolledWindow scrollbars not actually scrolling the page |
|
10636 in certain conditions. No tests because it is hard to reproduce, |
|
10637 and depends on interaction with a widget that is outside of the |
|
10638 WebView, which is tricky. |
|
10639 |
|
10640 * platform/gtk/ScrollViewGtk.cpp: |
|
10641 (WebCore::ScrollView::setGtkAdjustments): |
|
10642 |
|
10643 2010-07-06 Darin Adler <darin@apple.com> |
|
10644 |
|
10645 Reviewed by Geoffrey Garen. |
|
10646 |
|
10647 Simplify access to element attribute map, removing unneeded functions |
|
10648 https://bugs.webkit.org/show_bug.cgi?id=41703 |
|
10649 |
|
10650 * css/CSSStyleSelector.cpp: |
|
10651 (WebCore::CSSStyleSelector::canShareStyleWithElement): Use the |
|
10652 attributeMap function instead of the mappedAttributes function. |
|
10653 (WebCore::CSSStyleSelector::styleForElement): Ditto. |
|
10654 |
|
10655 * dom/Element.cpp: |
|
10656 (WebCore::Element::~Element): Renamed namedAttrMap to m_attributeMap. |
|
10657 (WebCore::Element::removeAttribute): Ditto. |
|
10658 (WebCore::Element::getAttribute): Ditto. |
|
10659 (WebCore::Element::setAttribute): Ditto. |
|
10660 (WebCore::Element::setAttributeMap): Ditto. |
|
10661 (WebCore::Element::hasAttributes): Ditto. |
|
10662 (WebCore::Element::createAttributeMap): Ditto. |
|
10663 (WebCore::Element::insertedIntoDocument): Ditto. |
|
10664 (WebCore::Element::removedFromDocument): Ditto. |
|
10665 (WebCore::Element::getURLAttribute): Ditto. |
|
10666 |
|
10667 * dom/Element.h: Removed unneeded virtual attributes function. |
|
10668 Made read-only argument to attributes function default to false. |
|
10669 (Later, we'll eliminate this.) Renamed namedAttrMap to m_attributeMap |
|
10670 and made it private instead of protected. |
|
10671 |
|
10672 * dom/StyledElement.cpp: |
|
10673 (WebCore::StyledElement::attributeChanged): Use attributeMap function |
|
10674 instead of namedAttrMap data member or mappedAttributes function. |
|
10675 (WebCore::StyledElement::classAttributeChanged): Ditto. |
|
10676 (WebCore::StyledElement::parseMappedAttribute): Ditto. |
|
10677 |
|
10678 * dom/StyledElement.h: Removed mappedAttributes function and changed |
|
10679 callers to use attributeMap function instead. |
|
10680 |
|
10681 * html/HTMLInputElement.cpp: |
|
10682 (WebCore::HTMLInputElement::setInputType): Use attributeMap instead of |
|
10683 mappedAttributes. |
|
10684 * svg/SVGStyledElement.cpp: |
|
10685 (WebCore::SVGStyledElement::getPresentationAttribute): Ditto. |
|
10686 |
|
10687 2010-07-06 Anders Carlsson <andersca@apple.com> |
|
10688 |
|
10689 Reviewed by Sam Weinig. |
|
10690 |
|
10691 Add a build rule that removes the old generated Obj-C bindings for PluginArray and MimeTypeArray. |
|
10692 |
|
10693 * DerivedSources.make: |
|
10694 |
|
10695 2010-07-06 Adam Barth <abarth@webkit.org> |
|
10696 |
|
10697 Unreviewed. |
|
10698 |
|
10699 Make the remaining insertion modes explicit. |
|
10700 |
|
10701 * html/HTMLTreeBuilder.cpp: |
|
10702 (WebCore::HTMLTreeBuilder::processStartTag): |
|
10703 (WebCore::HTMLTreeBuilder::processEndTag): |
|
10704 (WebCore::HTMLTreeBuilder::processCharacter): |
|
10705 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
10706 |
|
10707 2010-07-06 Alexey Proskuryakov <ap@apple.com> |
|
10708 |
|
10709 Not reviewed, fixing a simple copy/paste mistake. |
|
10710 |
|
10711 https://bugs.webkit.org/show_bug.cgi?id=41156 |
|
10712 Cross origin XMLHttpRequest should log the reason why connection failed |
|
10713 |
|
10714 Covered by xmlhttprequest/access-control-basic-non-simple-deny-cached.html |
|
10715 |
|
10716 * loader/CrossOriginPreflightResultCache.cpp: |
|
10717 (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginHeaders): Fix incorrectly |
|
10718 copy/pasted header field name. |
|
10719 |
|
10720 2010-07-06 Xan Lopez <xlopez@igalia.com> |
|
10721 |
|
10722 GTK+ fixes for the DOM plug-in renaming Apocalypse. |
|
10723 |
|
10724 * GNUmakefile.am: |
|
10725 |
|
10726 2010-07-06 Anders Carlsson <andersca@apple.com> |
|
10727 |
|
10728 Yet another Windows build fix. |
|
10729 |
|
10730 * DerivedSources.cpp: |
|
10731 |
|
10732 2010-07-06 Anders Carlsson <andersca@apple.com> |
|
10733 |
|
10734 Fix Windows build. |
|
10735 |
|
10736 * WebCore.vcproj/WebCore.vcproj: |
|
10737 |
|
10738 2010-07-06 Anders Carlsson <andersca@apple.com> |
|
10739 |
|
10740 More build fixes. |
|
10741 |
|
10742 * WebCore.gypi: |
|
10743 * WebCore.pro: |
|
10744 |
|
10745 2010-07-06 Anders Carlsson <andersca@apple.com> |
|
10746 |
|
10747 Try to fix Qt build. |
|
10748 |
|
10749 * WebCore.pro: |
|
10750 |
|
10751 2010-07-06 Anders Carlsson <andersca@apple.com> |
|
10752 |
|
10753 Attempt to fix GTK+ build. |
|
10754 |
|
10755 * GNUmakefile.am: |
|
10756 |
|
10757 2010-07-06 Adam Barth <abarth@webkit.org> |
|
10758 |
|
10759 Address reviewer comments from https://bugs.webkit.org/show_bug.cgi?id=41671 |
|
10760 |
|
10761 Deploy isTableBodyContextTag where possible. No behavior change. |
|
10762 |
|
10763 * html/HTMLTreeBuilder.cpp: |
|
10764 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
10765 (WebCore::HTMLTreeBuilder::processStartTag): |
|
10766 (WebCore::HTMLTreeBuilder::processEndTagForInTable): |
|
10767 (WebCore::HTMLTreeBuilder::processEndTag): |
|
10768 |
|
10769 2010-07-06 Anders Carlsson <andersca@apple.com> |
|
10770 |
|
10771 Build fixes. |
|
10772 |
|
10773 * WebCore.gypi: |
|
10774 * bindings/js/JSBindingsAllInOne.cpp: |
|
10775 |
|
10776 2010-07-06 Anders Carlsson <andersca@apple.com> |
|
10777 |
|
10778 Reviewed by Sam Weinig. |
|
10779 |
|
10780 DOM plug-in related renames |
|
10781 https://bugs.webkit.org/show_bug.cgi?id=41709 |
|
10782 |
|
10783 This is in preparation for using "Plugin" for something other than a DOM object. |
|
10784 |
|
10785 MimeType => DOMMimeType |
|
10786 MimeTypeArray => DOMMimeTypeArray |
|
10787 Plugin => DOMPlugin |
|
10788 PluginArray => DOMPluginArray |
|
10789 |
|
10790 * CMakeLists.txt: |
|
10791 * DerivedSources.make: |
|
10792 * GNUmakefile.am: |
|
10793 * WebCore.pri: |
|
10794 * WebCore.vcproj/WebCore.vcproj: |
|
10795 * WebCore.xcodeproj/project.pbxproj: |
|
10796 * bindings/js/JSDOMMimeTypeArrayCustom.cpp: Added. |
|
10797 (WebCore::JSDOMMimeTypeArray::canGetItemsForName): |
|
10798 (WebCore::JSDOMMimeTypeArray::nameGetter): |
|
10799 * bindings/js/JSDOMPluginArrayCustom.cpp: Added. |
|
10800 (WebCore::JSDOMPluginArray::canGetItemsForName): |
|
10801 (WebCore::JSDOMPluginArray::nameGetter): |
|
10802 * bindings/js/JSDOMPluginCustom.cpp: Added. |
|
10803 (WebCore::JSDOMPlugin::canGetItemsForName): |
|
10804 (WebCore::JSDOMPlugin::nameGetter): |
|
10805 * bindings/js/JSMimeTypeArrayCustom.cpp: Removed. |
|
10806 * bindings/js/JSPluginArrayCustom.cpp: Removed. |
|
10807 * bindings/js/JSPluginCustom.cpp: Removed. |
|
10808 * bindings/scripts/CodeGeneratorJS.pm: |
|
10809 * page/DOMWindow.idl: |
|
10810 * page/Navigator.cpp: |
|
10811 (WebCore::Navigator::plugins): |
|
10812 (WebCore::Navigator::mimeTypes): |
|
10813 * page/Navigator.h: |
|
10814 * page/Navigator.idl: |
|
10815 * plugins/DOMMimeType.cpp: Added. |
|
10816 (WebCore::DOMMimeType::DOMMimeType): |
|
10817 (WebCore::DOMMimeType::~DOMMimeType): |
|
10818 (WebCore::DOMMimeType::type): |
|
10819 (WebCore::DOMMimeType::suffixes): |
|
10820 (WebCore::DOMMimeType::description): |
|
10821 (WebCore::DOMMimeType::enabledPlugin): |
|
10822 * plugins/DOMMimeType.h: Added. |
|
10823 (WebCore::DOMMimeType::create): |
|
10824 (WebCore::DOMMimeType::mimeClassInfo): |
|
10825 * plugins/DOMMimeType.idl: Added. |
|
10826 * plugins/DOMMimeTypeArray.cpp: Added. |
|
10827 (WebCore::DOMMimeTypeArray::DOMMimeTypeArray): |
|
10828 (WebCore::DOMMimeTypeArray::~DOMMimeTypeArray): |
|
10829 (WebCore::DOMMimeTypeArray::length): |
|
10830 (WebCore::DOMMimeTypeArray::item): |
|
10831 (WebCore::DOMMimeTypeArray::canGetItemsForName): |
|
10832 (WebCore::DOMMimeTypeArray::namedItem): |
|
10833 (WebCore::DOMMimeTypeArray::getPluginData): |
|
10834 * plugins/DOMMimeTypeArray.h: Added. |
|
10835 (WebCore::DOMMimeTypeArray::create): |
|
10836 (WebCore::DOMMimeTypeArray::disconnectFrame): |
|
10837 * plugins/DOMMimeTypeArray.idl: Added. |
|
10838 * plugins/DOMPlugin.cpp: Added. |
|
10839 (WebCore::DOMPlugin::DOMPlugin): |
|
10840 (WebCore::DOMPlugin::~DOMPlugin): |
|
10841 (WebCore::DOMPlugin::name): |
|
10842 (WebCore::DOMPlugin::filename): |
|
10843 (WebCore::DOMPlugin::description): |
|
10844 (WebCore::DOMPlugin::length): |
|
10845 (WebCore::DOMPlugin::item): |
|
10846 (WebCore::DOMPlugin::canGetItemsForName): |
|
10847 (WebCore::DOMPlugin::namedItem): |
|
10848 * plugins/DOMPlugin.h: Added. |
|
10849 (WebCore::DOMPlugin::create): |
|
10850 (WebCore::DOMPlugin::pluginInfo): |
|
10851 * plugins/DOMPlugin.idl: Added. |
|
10852 * plugins/DOMPluginArray.cpp: Added. |
|
10853 (WebCore::DOMPluginArray::DOMPluginArray): |
|
10854 (WebCore::DOMPluginArray::~DOMPluginArray): |
|
10855 (WebCore::DOMPluginArray::length): |
|
10856 (WebCore::DOMPluginArray::item): |
|
10857 (WebCore::DOMPluginArray::canGetItemsForName): |
|
10858 (WebCore::DOMPluginArray::namedItem): |
|
10859 (WebCore::DOMPluginArray::refresh): |
|
10860 (WebCore::DOMPluginArray::pluginData): |
|
10861 * plugins/DOMPluginArray.h: Added. |
|
10862 (WebCore::DOMPluginArray::create): |
|
10863 (WebCore::DOMPluginArray::disconnectFrame): |
|
10864 * plugins/DOMPluginArray.idl: Added. |
|
10865 * plugins/MimeType.cpp: Removed. |
|
10866 * plugins/MimeType.h: Removed. |
|
10867 * plugins/MimeType.idl: Removed. |
|
10868 * plugins/MimeTypeArray.cpp: Removed. |
|
10869 * plugins/MimeTypeArray.h: Removed. |
|
10870 * plugins/MimeTypeArray.idl: Removed. |
|
10871 * plugins/Plugin.cpp: Removed. |
|
10872 * plugins/Plugin.h: Removed. |
|
10873 * plugins/Plugin.idl: Removed. |
|
10874 * plugins/PluginArray.cpp: Removed. |
|
10875 * plugins/PluginArray.h: Removed. |
|
10876 * plugins/PluginArray.idl: Removed. |
|
10877 |
|
10878 2010-07-06 Alexey Proskuryakov <ap@apple.com> |
|
10879 |
|
10880 Reviewed by Darin Adler. |
|
10881 |
|
10882 https://bugs.webkit.org/show_bug.cgi?id=41156 |
|
10883 Cross origin XMLHttpRequest should log the reason why connection failed |
|
10884 |
|
10885 Covered by multiple existing tests. |
|
10886 |
|
10887 * loader/CrossOriginAccessControl.cpp: |
|
10888 (WebCore::passesAccessControlCheck): |
|
10889 * loader/CrossOriginAccessControl.h: |
|
10890 * loader/CrossOriginPreflightResultCache.cpp: |
|
10891 (WebCore::CrossOriginPreflightResultCacheItem::parse): |
|
10892 (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginMethod): |
|
10893 (WebCore::CrossOriginPreflightResultCacheItem::allowsCrossOriginHeaders): |
|
10894 (WebCore::CrossOriginPreflightResultCacheItem::allowsRequest): |
|
10895 * loader/CrossOriginPreflightResultCache.h: |
|
10896 Functions that check requests now take a string argument for error explanation. |
|
10897 |
|
10898 * loader/DocumentThreadableLoader.cpp: |
|
10899 (WebCore::DocumentThreadableLoader::DocumentThreadableLoader): Make an informative error |
|
10900 if crossOriginRequestPolicy is DenyCrossOriginRequests. This doesn't currently go anywhere, |
|
10901 since XMLHttpRequest is the only client that logs from didFail(), and it of course supports |
|
10902 cross origin requests. |
|
10903 (WebCore::DocumentThreadableLoader::makeSimpleCrossOriginAccessRequest): Make an informative |
|
10904 error when trying to e.g. send a cross origin XMLHttpRequest to ftp://. |
|
10905 (WebCore::DocumentThreadableLoader::didReceiveResponse): Pass error explanation from cross |
|
10906 origin access control code. |
|
10907 (WebCore::DocumentThreadableLoader::preflightFailure): Ditto. |
|
10908 |
|
10909 * loader/DocumentThreadableLoader.h: preflightFailure() now takes arguments. |
|
10910 |
|
10911 * platform/network/ResourceErrorBase.cpp: |
|
10912 * platform/network/ResourceErrorBase.h: |
|
10913 Added a constant for WebKit error domain. |
|
10914 |
|
10915 * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::didFail): Report the error to console. |
|
10916 One day we'll be able to also provide script file and line number here, so it's best to |
|
10917 pass error all the way down to XHR for reporting. |
|
10918 |
|
10919 2010-07-06 Pavel Podivilov <podivilov@chromium.org> |
|
10920 |
|
10921 Reviewed by Pavel Feldman. |
|
10922 |
|
10923 Web Inspector: convert script offset to webkit format in v8 ScriptDebugServer |
|
10924 https://bugs.webkit.org/show_bug.cgi?id=41696 |
|
10925 |
|
10926 * bindings/v8/ScriptDebugServer.cpp: |
|
10927 (WebCore::ScriptDebugServer::dispatchDidParseSource): |
|
10928 |
|
10929 2010-07-06 Adam Barth <abarth@webkit.org> |
|
10930 |
|
10931 Reviewed by Eric Seidel. |
|
10932 |
|
10933 Implement InTableBodyMode |
|
10934 https://bugs.webkit.org/show_bug.cgi?id=41671 |
|
10935 |
|
10936 In the process of implementing this patch, Eric and I discussed some of |
|
10937 the high-level organization of the HTMLTreeBuilder class. We'd like to |
|
10938 split it up into smaller pieces. In the meantime, I've reordered some |
|
10939 of the declarations in the header to make the relations between the |
|
10940 different kinds of functions clearer. |
|
10941 |
|
10942 * html/HTMLElementStack.cpp: |
|
10943 * html/HTMLTreeBuilder.cpp: |
|
10944 (WebCore::HTMLTreeBuilder::processIsindexStartTagForInBody): |
|
10945 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
10946 (WebCore::HTMLTreeBuilder::processStartTagForInTable): |
|
10947 (WebCore::HTMLTreeBuilder::processStartTag): |
|
10948 (WebCore::HTMLTreeBuilder::processEndTagForInTable): |
|
10949 (WebCore::HTMLTreeBuilder::processEndTag): |
|
10950 (WebCore::HTMLTreeBuilder::processCharacter): |
|
10951 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
10952 * html/HTMLTreeBuilder.h: |
|
10953 |
|
10954 2010-07-06 Leandro Pereira <leandro@profusion.mobi> |
|
10955 |
|
10956 Unreviewed build fix. |
|
10957 |
|
10958 [EFL] Generate code for RemoteInspector. |
|
10959 |
|
10960 * CMakeLists.txt: |
|
10961 |
|
10962 2010-07-06 Varun Jain <varunjain@chromium.org> |
|
10963 |
|
10964 Reviewed by Oliver Hunt. |
|
10965 |
|
10966 Implementing CURVE_TO_CUBIC specification for SVG Path Segments. Currently, |
|
10967 curves specified in relative cordinates such as using createCurvetoCubicRel() |
|
10968 javascript function are not displayed. |
|
10969 |
|
10970 SVG CurvetoCubic Path not implemented for relative cordinates |
|
10971 https://bugs.webkit.org/show_bug.cgi?id=41294 |
|
10972 |
|
10973 Test: svg/custom/svg-curve-with-relative-cordinates.html |
|
10974 |
|
10975 * svg/SVGPathSegList.cpp: |
|
10976 (WebCore::SVGPathSegList::toPathData): |
|
10977 |
|
10978 2010-07-06 Alexey Proskuryakov <ap@apple.com> |
|
10979 |
|
10980 Roll out patch for https://bugs.webkit.org/show_bug.cgi?id=41348 "Remove global variables |
|
10981 from XSLTProcessorLibxslt.cpp", as it causes crashes on buildbot. |
|
10982 |
|
10983 * xml/XSLTProcessor.h: |
|
10984 (WebCore::XSLTProcessor::xslStylesheet): |
|
10985 (WebCore::XSLTProcessor::XSLTProcessor): |
|
10986 * xml/XSLTProcessorLibxslt.cpp: |
|
10987 (WebCore::docLoaderFunc): |
|
10988 (WebCore::setXSLTLoadCallBack): |
|
10989 (WebCore::xsltStylesheetPointer): |
|
10990 (WebCore::XSLTProcessor::transformToString): |
|
10991 |
|
10992 2010-07-06 Eric Seidel <eric@webkit.org> |
|
10993 |
|
10994 Reviewed by Adam Barth. |
|
10995 |
|
10996 Add processing for "in cell" mode and end tag processing for "in row" |
|
10997 https://bugs.webkit.org/show_bug.cgi?id=41688 |
|
10998 |
|
10999 I added several new table tests, not all of which pass yet. |
|
11000 Remaining failures exist due to lack of full "in table body" mode |
|
11001 support, which Adam has an outstanding patch for. |
|
11002 I believe all of the various branches added by this change are |
|
11003 covered now by our tests. |
|
11004 |
|
11005 * html/HTMLElementStack.cpp: |
|
11006 - Added QualifiedName versions of inScope functions. |
|
11007 Using tagName.localName() is wrong for non-HTML elements, |
|
11008 in preparation for supporting foreign content we should centralize |
|
11009 our handling of QualifiedName in these functions instead of |
|
11010 sprinkling more .localName() calls around the code. |
|
11011 (WebCore::HTMLElementStack::inScope): |
|
11012 (WebCore::HTMLElementStack::inListItemScope): |
|
11013 (WebCore::HTMLElementStack::inTableScope): |
|
11014 * html/HTMLElementStack.h: |
|
11015 * html/HTMLFormattingElementList.cpp: |
|
11016 (WebCore::HTMLFormattingElementList::Entry::operator==): |
|
11017 (WebCore::HTMLFormattingElementList::Entry::operator!=): |
|
11018 - Calling element() on markers will assert, so use m_element. |
|
11019 * html/HTMLTreeBuilder.cpp: |
|
11020 (WebCore::HTMLTreeBuilder::closeTheCell): |
|
11021 - Implemented per the spec. |
|
11022 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11023 - Use isTableBodyContextTag where possible. |
|
11024 - Add InCellMode. |
|
11025 (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately): |
|
11026 - Use isTableBodyContextTag where possible. |
|
11027 (WebCore::HTMLTreeBuilder::processTrEndTagForInRow): |
|
11028 - This code is needed from at least two callsites. |
|
11029 (WebCore::HTMLTreeBuilder::processEndTag): |
|
11030 - Add InCellMode and InRowMode |
|
11031 (WebCore::HTMLTreeBuilder::processCharacter): |
|
11032 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
11033 * html/HTMLTreeBuilder.h: |
|
11034 |
|
11035 2010-07-06 Eric Seidel <eric@webkit.org> |
|
11036 |
|
11037 Reviewed by Adam Barth. |
|
11038 |
|
11039 Make <a> auto-close any parent <a> tag |
|
11040 https://bugs.webkit.org/show_bug.cgi?id=41684 |
|
11041 |
|
11042 I first fixed <a> to auto-close surrounding <a> tags. |
|
11043 That caused about 3 more test passes and one new test failure. |
|
11044 The test failure was due to <marque> not adding a marker |
|
11045 to the active formatting elements. |
|
11046 |
|
11047 So I made a one-line change to fix <marque>. However that hit an |
|
11048 ASSERT due to a bug in indexOfFirstUnopenFormattingElement. |
|
11049 Fixing indexOfFirstUnopenFormattingElement fixed another bunch of |
|
11050 Adoption Agency related tests (clearly this was the second typo |
|
11051 which was causing all the adoption agency failures). |
|
11052 |
|
11053 However fixing <marque> and indexOfFirstUnopenFormattingElement, |
|
11054 added yet another failure due to missing support for </p> |
|
11055 automatically adding an implicit <p> tag. Fixing </p> finally |
|
11056 got the tests to a stable (all improving) state. |
|
11057 |
|
11058 In the end, these 4 minor (and very well tested) tweaks fixed a total |
|
11059 of 9 subtests in html5lib/runner.html. |
|
11060 Another subtest progressed, but did not fully pass due to missing |
|
11061 <table> foster-parenting support. |
|
11062 |
|
11063 * html/HTMLTreeBuilder.cpp: |
|
11064 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
11065 (WebCore::HTMLTreeBuilder::processEndTagForInBody): |
|
11066 (WebCore::HTMLTreeBuilder::indexOfFirstUnopenFormattingElement): |
|
11067 |
|
11068 2010-07-02 Philippe Normand <pnormand@igalia.com> |
|
11069 |
|
11070 Reviewed by Xan Lopez |
|
11071 |
|
11072 [GStreamer] can't seek past maxTimeLoaded value |
|
11073 https://bugs.webkit.org/show_bug.cgi?id=40526 |
|
11074 |
|
11075 Extended the seekable range to the whole media. This allows video |
|
11076 played with progressive download to be seeked past the current |
|
11077 buffered position. |
|
11078 |
|
11079 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: |
|
11080 (WebCore::MediaPlayerPrivateGStreamer::maxTimeSeekable): |
|
11081 (WebCore::MediaPlayerPrivateGStreamer::updateStates): |
|
11082 |
|
11083 2010-07-06 Andreas Wictor <andreas.wictor@xcerion.com> |
|
11084 |
|
11085 Reviewed by Alexey Proskuryakov. |
|
11086 |
|
11087 Remove global variables from XSLTProcessorLibxslt.cpp |
|
11088 https://bugs.webkit.org/show_bug.cgi?id=41348 |
|
11089 |
|
11090 Remove the globalProcessor and globalDocLoader global variables |
|
11091 by using the _private field that exists on most libxml structs. |
|
11092 |
|
11093 No new tests, existing tests covers this. |
|
11094 |
|
11095 * xml/XSLTProcessor.h: |
|
11096 (WebCore::XSLTProcessor::sourceNode): |
|
11097 (WebCore::XSLTProcessor::XSLTProcessor): |
|
11098 * xml/XSLTProcessorLibxslt.cpp: |
|
11099 (WebCore::registredXSLTProcessors): |
|
11100 (WebCore::registredXSLStyleSheets): |
|
11101 (WebCore::docLoaderFunc): |
|
11102 (WebCore::xsltStylesheetPointer): |
|
11103 (WebCore::XSLTProcessor::transformToString): |
|
11104 |
|
11105 2010-07-06 Darin Adler <darin@apple.com> |
|
11106 |
|
11107 Fix Cairo build. |
|
11108 |
|
11109 * platform/graphics/cairo/GraphicsContextCairo.cpp: |
|
11110 (WebCore::GraphicsContext::createPlatformShadow): Removed unnneded release |
|
11111 in code that passes a PassOwnPtr to another PassOwnPtr. |
|
11112 |
|
11113 2010-07-06 Darin Adler <darin@apple.com> |
|
11114 |
|
11115 Fix Chromium build. |
|
11116 |
|
11117 * platform/graphics/skia/SkiaUtils.cpp: |
|
11118 (WebCore::scratchContext): Use leakPtr instead of release. |
|
11119 |
|
11120 2010-07-06 Martin Robinson <mrobinson@igalia.com> |
|
11121 |
|
11122 Unreviewed. |
|
11123 |
|
11124 Build fix after r62549. |
|
11125 |
|
11126 * GNUmakefile.am: Generate RemoteInspector files by manually listing |
|
11127 them instead of building them into libWebCoreJS.la. |
|
11128 |
|
11129 2010-07-06 Darin Adler <darin@apple.com> |
|
11130 |
|
11131 Reviewed by Adam Barth. |
|
11132 |
|
11133 Add adoptPtr and leakPtr functions for OwnPtr and PassOwnPtr |
|
11134 https://bugs.webkit.org/show_bug.cgi?id=41320 |
|
11135 |
|
11136 Made code changes required because of the change to the release function. |
|
11137 The equivalent to the old release function is now named leakPtr and |
|
11138 should be used sparingly. The new release function returns a PassOwnPtr. |
|
11139 |
|
11140 * css/CSSFontFaceSource.cpp: |
|
11141 (WebCore::CSSFontFaceSource::getFontData): Changed code to call |
|
11142 leakPtr instead of release. |
|
11143 * css/CSSParser.cpp: |
|
11144 (WebCore::CSSParser::addProperty): Ditto. |
|
11145 |
|
11146 * css/CSSSegmentedFontFace.cpp: |
|
11147 (WebCore::CSSSegmentedFontFace::getFontData): Removed unneeded type |
|
11148 casting. Not sure why this changed the type to FontData* and then |
|
11149 casted back to SimpleFontData*. |
|
11150 |
|
11151 * css/MediaQuery.cpp: |
|
11152 (WebCore::MediaQuery::MediaQuery): Removed call to release on a |
|
11153 PassOwnPtr, since the data member is now an OwnPtr. |
|
11154 (WebCore::MediaQuery::~MediaQuery): Removed now-unneeded delete. |
|
11155 * css/MediaQuery.h: Changed m_expressions to be an OwnPtr. |
|
11156 |
|
11157 * html/HTMLToken.h: |
|
11158 (WebCore::AtomicHTMLToken::AtomicHTMLToken): Use assignment instead |
|
11159 of the set function since there are no raw pointers involved. |
|
11160 * loader/CachedResource.cpp: |
|
11161 (WebCore::CachedResource::makePurgeable): Ditto. |
|
11162 |
|
11163 * loader/CrossOriginPreflightResultCache.cpp: |
|
11164 (WebCore::CrossOriginPreflightResultCache::appendEntry): Use |
|
11165 leakPtr instead of release, and also add FIXME about deleting the |
|
11166 old value if the original and URL are already in the map. I |
|
11167 believe dealing with this FIXME may fix a storage leak. |
|
11168 |
|
11169 * loader/CrossOriginPreflightResultCache.h: Change the argument |
|
11170 to be PassOwnPtr instead of a raw pointer, since this function |
|
11171 does take ownership. |
|
11172 |
|
11173 * loader/DocumentThreadableLoader.cpp: |
|
11174 (WebCore::DocumentThreadableLoader::DocumentThreadableLoader): |
|
11175 Use assignment instead of the set function since there are no raw |
|
11176 pointers involved. |
|
11177 * loader/FrameLoader.cpp: |
|
11178 (WebCore::FrameLoader::startIconLoader): Ditto. |
|
11179 * loader/TextResourceDecoder.cpp: |
|
11180 (WebCore::TextResourceDecoder::decode): Ditto. |
|
11181 (WebCore::TextResourceDecoder::flush): Ditto. |
|
11182 |
|
11183 * page/DOMTimer.cpp: |
|
11184 (WebCore::DOMTimer::fired): Use OwnPtr instead of an explicit |
|
11185 delete. |
|
11186 |
|
11187 * platform/CrossThreadCopier.h: Removed explicit code that tried |
|
11188 to copy PassOwnPtr in a complicated way. It did nothing different |
|
11189 from just returning the PassOwnPtr. This presumably was done because |
|
11190 PassRefPtr has issues when copied cross-thread, but there are no |
|
11191 similar issues for PassOwnPtr. Someone with more experience than I |
|
11192 might be able to remove the specialization altogether, because |
|
11193 CrossThreadCopierPassThrough does the right thing in this case. |
|
11194 |
|
11195 * platform/SharedBuffer.cpp: |
|
11196 (WebCore::SharedBuffer::adoptPurgeableBuffer): Changed argument to |
|
11197 be a PassOwnPtr. |
|
11198 (WebCore::SharedBuffer::releasePurgeableBuffer): Changed result to |
|
11199 be a PassOwnPtr. |
|
11200 * platform/SharedBuffer.h: Updated for changes above. |
|
11201 |
|
11202 * rendering/RenderSVGResourceFilter.cpp: |
|
11203 (WebCore::RenderSVGResourceFilter::applyResource): Changed one site |
|
11204 to use assignment instead of the set function since there are no raw |
|
11205 pointers involved. Changed another site to use leakPtr instead |
|
11206 of release. |
|
11207 |
|
11208 * rendering/RenderSVGResourceGradient.cpp: |
|
11209 (WebCore::createMaskAndSwapContextForTextGradient): Use assignment |
|
11210 instead of the set function since there are no raw pointers involved. |
|
11211 |
|
11212 * rendering/style/RenderStyle.cpp: |
|
11213 (WebCore::RenderStyle::setContent): Use leakPtr instead of release. |
|
11214 (WebCore::RenderStyle::setBoxShadow): Ditto. |
|
11215 |
|
11216 * workers/DefaultSharedWorkerRepository.cpp: |
|
11217 (WebCore::DefaultSharedWorkerRepository::connectToWorker): |
|
11218 Removed unneeded call to release function in a code path that passes |
|
11219 a PassOwnPtr to a function that takes a PassOwnPtr. |
|
11220 |
|
11221 * workers/WorkerContext.cpp: |
|
11222 (WebCore::WorkerContext::setTimeout): Changed argument type to PassOwnPtr. |
|
11223 (WebCore::WorkerContext::setInterval): Ditto. |
|
11224 * workers/WorkerContext.h: Updated for changes above. |
|
11225 |
|
11226 * workers/WorkerMessagingProxy.cpp: |
|
11227 (WebCore::WorkerMessagingProxy::postMessageToWorkerObject): |
|
11228 (WebCore::WorkerMessagingProxy::postMessageToWorkerContext): |
|
11229 Removed unneeded call to release function in code paths that pass |
|
11230 a PassOwnPtr to a function that takes a PassOwnPtr. |
|
11231 |
|
11232 2010-07-06 Ilya Tikhonovsky <loislo@chromium.org> |
|
11233 |
|
11234 Reviewed by Yury Semikhatsky. |
|
11235 |
|
11236 WebInspector: generator part of the patch for bug 40675. |
|
11237 On the way to Remote Debugging we want to support JSON serialization |
|
11238 on both sides of WebInspector transport. |
|
11239 As far as InspectorFrontend class is a simple proxy to WebInspector |
|
11240 it would be better to generate it from an IDL file. |
|
11241 We have generator infrastructure for binding and will reuse it for |
|
11242 new generator. |
|
11243 https://bugs.webkit.org/show_bug.cgi?id=41692 |
|
11244 |
|
11245 |
|
11246 * CMakeLists.txt: |
|
11247 * DerivedSources.make: |
|
11248 * GNUmakefile.am: |
|
11249 * WebCore.gyp/WebCore.gyp: |
|
11250 * WebCore.gyp/scripts/rule_binding.py: |
|
11251 * WebCore.gypi: |
|
11252 * WebCore.pri: |
|
11253 * WebCore.vcproj/WebCore.vcproj: |
|
11254 * WebCore.xcodeproj/project.pbxproj: |
|
11255 * bindings/scripts/CodeGenerator.pm: |
|
11256 * bindings/scripts/IDLParser.pm: |
|
11257 * bindings/scripts/generate-bindings.pl: |
|
11258 * inspector/CodeGeneratorInspector.pm: Added. |
|
11259 * inspector/InspectorController.cpp: |
|
11260 (WebCore::InspectorController::connectFrontend): |
|
11261 (WebCore::InspectorController::startTimelineProfiler): |
|
11262 * inspector/InspectorController.h: |
|
11263 * inspector/InspectorFrontend.cpp: |
|
11264 * inspector/InspectorFrontend.h: |
|
11265 * inspector/InspectorFrontend2.idl: Added. |
|
11266 * inspector/InspectorTimelineAgent.cpp: |
|
11267 (WebCore::InspectorTimelineAgent::InspectorTimelineAgent): |
|
11268 (WebCore::InspectorTimelineAgent::resetFrontendProxyObject): |
|
11269 (WebCore::InspectorTimelineAgent::addRecordToTimeline): |
|
11270 * inspector/InspectorTimelineAgent.h: |
|
11271 |
|
11272 2010-07-06 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> |
|
11273 |
|
11274 Rubber-stamped by Xan Lopez. |
|
11275 |
|
11276 [GTK] Crashes when going back with page cache in unknown circunstances |
|
11277 https://bugs.webkit.org/show_bug.cgi?id=41710 |
|
11278 |
|
11279 Also NULL-check document, in hopes of fixing this hard to |
|
11280 reproduce crash that we are getting reported quite a bit. |
|
11281 |
|
11282 * page/FrameView.cpp: |
|
11283 (WebCore::FrameView::windowClipRect): |
|
11284 |
|
11285 2010-07-05 Ilya Tikhonovsky <loislo@chromium.org> |
|
11286 |
|
11287 Reviewed by Yury Semikhatsky. |
|
11288 |
|
11289 Web Inspector: On the way to Remote Debuging we want to support JSON |
|
11290 serialization on both sides of WebInspector transport. As far as |
|
11291 InspectorFrontend class is a simple proxy to WebInspector it would |
|
11292 be better to generate it from an IDL file. We have generator |
|
11293 infostructure for binding and will reuse it for new generator. |
|
11294 https://bugs.webkit.org/show_bug.cgi?id=40675 |
|
11295 |
|
11296 * bindings/js/ScriptCallStack.cpp: |
|
11297 (WebCore::ScriptCallStack::stackTrace): |
|
11298 * bindings/js/ScriptCallStack.h: |
|
11299 * bindings/v8/ScriptCallStack.cpp: |
|
11300 (WebCore::ScriptCallStack::stackTrace): |
|
11301 * bindings/v8/ScriptCallStack.h: |
|
11302 * inspector/InspectorFrontend.cpp: |
|
11303 (WebCore::InspectorFrontend::addRecordToTimeline): |
|
11304 * inspector/InspectorFrontend.h: |
|
11305 * inspector/InspectorTimelineAgent.cpp: |
|
11306 (WebCore::InspectorTimelineAgent::pushGCEventRecords): |
|
11307 (WebCore::InspectorTimelineAgent::willCallFunction): |
|
11308 (WebCore::InspectorTimelineAgent::willDispatchEvent): |
|
11309 (WebCore::InspectorTimelineAgent::willLayout): |
|
11310 (WebCore::InspectorTimelineAgent::willRecalculateStyle): |
|
11311 (WebCore::InspectorTimelineAgent::willPaint): |
|
11312 (WebCore::InspectorTimelineAgent::willWriteHTML): |
|
11313 (WebCore::InspectorTimelineAgent::didWriteHTML): |
|
11314 (WebCore::InspectorTimelineAgent::didInstallTimer): |
|
11315 (WebCore::InspectorTimelineAgent::didRemoveTimer): |
|
11316 (WebCore::InspectorTimelineAgent::willFireTimer): |
|
11317 (WebCore::InspectorTimelineAgent::willChangeXHRReadyState): |
|
11318 (WebCore::InspectorTimelineAgent::willLoadXHR): |
|
11319 (WebCore::InspectorTimelineAgent::willEvaluateScript): |
|
11320 (WebCore::InspectorTimelineAgent::didScheduleResourceRequest): |
|
11321 (WebCore::InspectorTimelineAgent::willSendResourceRequest): |
|
11322 (WebCore::InspectorTimelineAgent::willReceiveResourceData): |
|
11323 (WebCore::InspectorTimelineAgent::willReceiveResourceResponse): |
|
11324 (WebCore::InspectorTimelineAgent::didFinishLoadingResource): |
|
11325 (WebCore::InspectorTimelineAgent::didMarkTimeline): |
|
11326 (WebCore::InspectorTimelineAgent::didMarkDOMContentEvent): |
|
11327 (WebCore::InspectorTimelineAgent::didMarkLoadEvent): |
|
11328 (WebCore::InspectorTimelineAgent::addRecordToTimeline): |
|
11329 (WebCore::InspectorTimelineAgent::setHeapSizeStatistic): |
|
11330 (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord): |
|
11331 (WebCore::InspectorTimelineAgent::pushCurrentRecord): |
|
11332 * inspector/InspectorTimelineAgent.h: |
|
11333 (WebCore::InspectorTimelineAgent::TimelineRecordEntry::TimelineRecordEntry): |
|
11334 * inspector/TimelineRecordFactory.cpp: |
|
11335 (WebCore::TimelineRecordFactory::createGenericRecord): |
|
11336 (WebCore::TimelineRecordFactory::createGCEventData): |
|
11337 (WebCore::TimelineRecordFactory::createFunctionCallData): |
|
11338 (WebCore::TimelineRecordFactory::createEventDispatchData): |
|
11339 (WebCore::TimelineRecordFactory::createGenericTimerData): |
|
11340 (WebCore::TimelineRecordFactory::createTimerInstallData): |
|
11341 (WebCore::TimelineRecordFactory::createXHRReadyStateChangeData): |
|
11342 (WebCore::TimelineRecordFactory::createXHRLoadData): |
|
11343 (WebCore::TimelineRecordFactory::createEvaluateScriptData): |
|
11344 (WebCore::TimelineRecordFactory::createMarkTimelineData): |
|
11345 (WebCore::TimelineRecordFactory::createScheduleResourceRequestData): |
|
11346 (WebCore::TimelineRecordFactory::createResourceSendRequestData): |
|
11347 (WebCore::TimelineRecordFactory::createResourceReceiveResponseData): |
|
11348 (WebCore::TimelineRecordFactory::createResourceFinishData): |
|
11349 (WebCore::TimelineRecordFactory::createReceiveResourceData): |
|
11350 (WebCore::TimelineRecordFactory::createPaintData): |
|
11351 (WebCore::TimelineRecordFactory::createParseHTMLData): |
|
11352 * inspector/TimelineRecordFactory.h: |
|
11353 |
|
11354 2010-07-06 Adam Barth <abarth@webkit.org> |
|
11355 |
|
11356 Reviewed by Eric Seidel. |
|
11357 |
|
11358 Implement InColgroupMode |
|
11359 https://bugs.webkit.org/show_bug.cgi?id=41663 |
|
11360 |
|
11361 * html/HTMLTreeBuilder.cpp: |
|
11362 (WebCore::HTMLTreeBuilder::processColgroupEndTagForInColumnGroup): |
|
11363 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11364 (WebCore::HTMLTreeBuilder::processEndTag): |
|
11365 (WebCore::HTMLTreeBuilder::processCharacter): |
|
11366 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
11367 * html/HTMLTreeBuilder.h: |
|
11368 |
|
11369 2010-07-06 Eric Seidel <eric@webkit.org> |
|
11370 |
|
11371 Reviewed by Adam Barth. |
|
11372 |
|
11373 Implement bookmarking for HTML5 Adoption Agency algorithm |
|
11374 https://bugs.webkit.org/show_bug.cgi?id=41659 |
|
11375 |
|
11376 Was easier than I expected it to be. |
|
11377 Fixes a bunch of html5lib/runner.html tests. |
|
11378 |
|
11379 * html/HTMLFormattingElementList.cpp: |
|
11380 (WebCore::HTMLFormattingElementList::bookmarkFor): |
|
11381 (WebCore::HTMLFormattingElementList::insertAt): |
|
11382 * html/HTMLFormattingElementList.h: |
|
11383 (WebCore::HTMLFormattingElementList::Bookmark::Bookmark): |
|
11384 (WebCore::HTMLFormattingElementList::Bookmark::moveToAfter): |
|
11385 (WebCore::HTMLFormattingElementList::Bookmark::elementBefore): |
|
11386 (WebCore::HTMLFormattingElementList::Bookmark::elementAfter): |
|
11387 * html/HTMLTreeBuilder.cpp: |
|
11388 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
11389 |
|
11390 2010-07-06 Adam Barth <abarth@webkit.org> |
|
11391 |
|
11392 Reviewed by Eric Seidel. |
|
11393 |
|
11394 Implement more of InTableMode |
|
11395 https://bugs.webkit.org/show_bug.cgi?id=41652 |
|
11396 |
|
11397 By the time we got around to landing this patch, it turns out to be |
|
11398 just a bit of cleanup (the functional changes where landed already.) |
|
11399 |
|
11400 * html/HTMLTreeBuilder.cpp: |
|
11401 (WebCore::HTMLTreeBuilder::processCharacter): |
|
11402 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
11403 |
|
11404 2010-07-06 Sheriff Bot <webkit.review.bot@gmail.com> |
|
11405 |
|
11406 Unreviewed, rolling out r62529. |
|
11407 http://trac.webkit.org/changeset/62529 |
|
11408 https://bugs.webkit.org/show_bug.cgi?id=41661 |
|
11409 |
|
11410 http/tests/inspector/resource-har-conversion.html is broken |
|
11411 (Requested by yutak on #webkit). |
|
11412 |
|
11413 * inspector/InspectorController.cpp: |
|
11414 (WebCore::InspectorController::addResource): |
|
11415 (WebCore::InspectorController::removeResource): |
|
11416 * inspector/InspectorController.h: |
|
11417 * inspector/InspectorResource.cpp: |
|
11418 (WebCore::InspectorResource::InspectorResource): |
|
11419 (WebCore::InspectorResource::updateScriptObject): |
|
11420 (WebCore::InspectorResource::cachedResource): |
|
11421 (WebCore::InspectorResource::type): |
|
11422 (WebCore::InspectorResource::resourceData): |
|
11423 * inspector/InspectorResource.h: |
|
11424 (WebCore::InspectorResource::): |
|
11425 (WebCore::InspectorResource::create): |
|
11426 * inspector/front-end/Resource.js: |
|
11427 (WebInspector.Resource.Type.toString): |
|
11428 (WebInspector.Resource.prototype.set type): |
|
11429 (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType): |
|
11430 * inspector/front-end/ResourceView.js: |
|
11431 (WebInspector.ResourceView.prototype._refreshRequestHeaders): |
|
11432 (WebInspector.ResourceView.prototype._refreshResponseHeaders): |
|
11433 (WebInspector.ResourceView.prototype._refreshHeaders): |
|
11434 * inspector/front-end/inspector.css: |
|
11435 (.resources-category-scripts, .resources-category-xhr, .resources-category-fonts, .resources-category-other): |
|
11436 * inspector/front-end/inspector.js: |
|
11437 (WebInspector.loaded): |
|
11438 (WebInspector.updateResource): |
|
11439 * websockets/WebSocketChannel.cpp: |
|
11440 (WebCore::WebSocketChannel::WebSocketChannel): |
|
11441 (WebCore::WebSocketChannel::disconnect): |
|
11442 (WebCore::WebSocketChannel::didOpen): |
|
11443 (WebCore::WebSocketChannel::didClose): |
|
11444 (WebCore::WebSocketChannel::processBuffer): |
|
11445 * websockets/WebSocketChannel.h: |
|
11446 |
|
11447 2010-07-06 Adam Barth <abarth@webkit.org> |
|
11448 |
|
11449 Reviewed by Eric Seidel. |
|
11450 |
|
11451 Implement InCaptionMode |
|
11452 https://bugs.webkit.org/show_bug.cgi?id=41660 |
|
11453 |
|
11454 Implementing this mode also turned up a subtle bug in the adoption |
|
11455 agency code. |
|
11456 |
|
11457 * html/HTMLTreeBuilder.cpp: |
|
11458 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11459 (WebCore::HTMLTreeBuilder::processCaptionEndTagForInCaption): |
|
11460 (WebCore::HTMLTreeBuilder::processEndTag): |
|
11461 (WebCore::HTMLTreeBuilder::processCharacter): |
|
11462 (WebCore::HTMLTreeBuilder::indexOfFirstUnopenFormattingElement): |
|
11463 - We're supposed to reutrn the first *unopened* formatting element. |
|
11464 The old code returned the first *opened* formatting element. |
|
11465 * html/HTMLTreeBuilder.h: |
|
11466 |
|
11467 2010-07-06 Adam Barth <abarth@webkit.org> |
|
11468 |
|
11469 Reviewed by Eric Seidel. |
|
11470 |
|
11471 Implement defaut cases for InTableMode |
|
11472 https://bugs.webkit.org/show_bug.cgi?id=41656 |
|
11473 |
|
11474 * html/HTMLTreeBuilder.cpp: |
|
11475 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11476 (WebCore::HTMLTreeBuilder::processEndTagForInBody): |
|
11477 (WebCore::HTMLTreeBuilder::processEndTag): |
|
11478 * html/HTMLTreeBuilder.h: |
|
11479 |
|
11480 2010-07-05 Nikolas Zimmermann <nzimmermann@rim.com> |
|
11481 |
|
11482 Reviewed by Dirk Schulze. |
|
11483 |
|
11484 SVGRenderContainer forces too many kids to relayout |
|
11485 https://bugs.webkit.org/show_bug.cgi?id=15391 |
|
11486 |
|
11487 Fixing a long-standing performance issue. We should only ever need to relayout container children when the parent bounds change. |
|
11488 The bounds of a container can only change, if the outermost RenderSVGRoot container uses relative length values and its size changes. |
|
11489 This can either happen when the window resizes for standalone SVG documents, or if an enclosing RenderBox changes width/height values. |
|
11490 |
|
11491 Only relayout container children if the container has selfNeedsLayout() true, or if the parent bounds change. |
|
11492 Lively Kernel doesn't do any relayouts anymore, except if you change the Safari window size, this is a great progression. |
|
11493 |
|
11494 * rendering/RenderPath.cpp: |
|
11495 (WebCore::RenderPath::layout): No need to special case Path updates, if the element uses relative lengths. SVGRenderSupport now handles this case. |
|
11496 * rendering/RenderSVGContainer.cpp: |
|
11497 (WebCore::RenderSVGContainer::layout): Fix some style issues. |
|
11498 * rendering/RenderSVGContainer.h: |
|
11499 (WebCore::RenderSVGContainer::setDrawsContents): Inlined for speed. |
|
11500 (WebCore::RenderSVGContainer::drawsContents): Ditto. |
|
11501 * rendering/RenderSVGRoot.cpp: |
|
11502 (WebCore::RenderSVGRoot::RenderSVGRoot): Initialize m_isLayoutSizeChanged to false. |
|
11503 (WebCore::RenderSVGRoot::layout): Set m_isLayoutSizeChanged=true when the RenderSVGRoot size changes during layout. |
|
11504 (WebCore::RenderSVGRoot::calcViewport): Remove hasRelativeLengths() special case. |
|
11505 * rendering/RenderSVGRoot.h: |
|
11506 (WebCore::RenderSVGRoot::isLayoutSizeChanged): New function, which returns true during layout() if the outermost <svg> size changes. |
|
11507 * rendering/RenderSVGViewportContainer.cpp: |
|
11508 (WebCore::RenderSVGViewportContainer::calcViewport): Cleanup code, and remove obsolete hasRelativeLengths() special case. |
|
11509 * rendering/SVGRenderSupport.cpp: |
|
11510 (WebCore::svgRootTreeObject): Added helper function, that returns the RenderSVGRoot for a given RenderObject. |
|
11511 (WebCore::SVGRenderSupport::layoutChildren): Remove FIXME, only relayout container children, if the parent bounds change and the child uses relative lengths. |
|
11512 * svg/SVGStyledElement.cpp: |
|
11513 (WebCore::SVGStyledElement::updateRelativeLengthsInformation): Implemented this function. Keeps track of relative lengths elements, so that the |
|
11514 hasRelativeLengths() information is always up2date. |
|
11515 * svg/SVGStyledElement.h: |
|
11516 (WebCore::SVGStyledElement::hasRelativeLengths): Don't call the virtual selfHasRelativeLengths() information, just return wheter m_elementsWithRelativeLengths is not empty. |
|
11517 |
|
11518 2010-07-05 Yuzo Fujishima <yuzo@google.com> |
|
11519 |
|
11520 Reviewed by Dan Bernstein. |
|
11521 |
|
11522 Fix for Bug 41509 - Ranges for @font-face unicode-range must be separated by commas |
|
11523 https://bugs.webkit.org/show_bug.cgi?id=41509 |
|
11524 |
|
11525 Test: fast/css/font-face-multiple-ranges-for-unicode-range.html |
|
11526 |
|
11527 * css/CSSParser.cpp: |
|
11528 (WebCore::CSSParser::parseFontFaceUnicodeRange): |
|
11529 |
|
11530 2010-07-05 Yuta Kitamura <yutak@chromium.org> |
|
11531 |
|
11532 Reviewed by Pavel Feldman. |
|
11533 |
|
11534 Add WebSocket resource type to Web Inspector. |
|
11535 |
|
11536 When a new WebSocket connection is established, a line for that connection |
|
11537 will appear in Web Inspector's Resources tab. If the resource name is |
|
11538 clicked, the details of handshake request and response will be shown. |
|
11539 |
|
11540 Web Inspector: WebSocket in Resources tab |
|
11541 https://bugs.webkit.org/show_bug.cgi?id=40768 |
|
11542 |
|
11543 * inspector/InspectorController.cpp: |
|
11544 (WebCore::InspectorController::addResource): WebSocket resource does not |
|
11545 have an associated loader, thus frame might be null. Need to check it. |
|
11546 (WebCore::InspectorController::removeResource): Ditto. |
|
11547 (WebCore::InspectorController::didCreateWebSocket): |
|
11548 (WebCore::InspectorController::willSendWebSocketHandshakeRequest): |
|
11549 (WebCore::InspectorController::didReceiveWebSocketHandshakeResponse): |
|
11550 (WebCore::InspectorController::didCloseWebSocket): |
|
11551 * inspector/InspectorController.h: |
|
11552 * inspector/InspectorResource.cpp: Add null checks of m_loader and m_frame, |
|
11553 because WebSocket does not have a loader and we need to allow null for |
|
11554 these variables. |
|
11555 (WebCore::createReadableStringFromBinary): |
|
11556 (WebCore::InspectorResource::InspectorResource): |
|
11557 (WebCore::InspectorResource::create): Factory function of |
|
11558 regular (non-WebSocket) resources. |
|
11559 (WebCore::InspectorResource::createWebSocket): Factory function of |
|
11560 WebSocket resources. |
|
11561 (WebCore::InspectorResource::updateWebSocketRequest): |
|
11562 (WebCore::InspectorResource::updateWebSocketResponse): |
|
11563 (WebCore::InspectorResource::updateScriptObject): |
|
11564 (WebCore::InspectorResource::cachedResource): |
|
11565 (WebCore::InspectorResource::type): |
|
11566 (WebCore::InspectorResource::resourceData): |
|
11567 * inspector/InspectorResource.h: |
|
11568 (WebCore::InspectorResource::): |
|
11569 (WebCore::InspectorResource::markWebSocket): |
|
11570 * inspector/front-end/Resource.js: |
|
11571 (WebInspector.Resource.Type.toString): |
|
11572 (WebInspector.Resource.prototype.set type): |
|
11573 (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType): |
|
11574 * inspector/front-end/ResourceView.js: |
|
11575 (WebInspector.ResourceView.prototype._refreshRequestHeaders): |
|
11576 (WebInspector.ResourceView.prototype._refreshResponseHeaders): |
|
11577 (WebInspector.ResourceView.prototype._refreshHeaders): |
|
11578 * inspector/front-end/inspector.css: |
|
11579 (.resources-category-websockets, .resources-category-other): |
|
11580 (.resources-category-websockets .resources-graph-bar): |
|
11581 (.resources-category-websockets.resource-cached .resources-graph-bar): |
|
11582 * inspector/front-end/inspector.js: |
|
11583 (WebInspector.loaded): |
|
11584 (WebInspector.updateResource): |
|
11585 * websockets/WebSocketChannel.cpp: |
|
11586 (WebCore::WebSocketChannel::WebSocketChannel): |
|
11587 (WebCore::WebSocketChannel::disconnect): |
|
11588 (WebCore::WebSocketChannel::didOpen): |
|
11589 (WebCore::WebSocketChannel::didClose): |
|
11590 (WebCore::WebSocketChannel::processBuffer): |
|
11591 (WebCore::WebSocketChannel::identifier): |
|
11592 * websockets/WebSocketChannel.h: |
|
11593 |
|
11594 2010-07-05 Yury Semikhatsky <yurys@chromium.org> |
|
11595 |
|
11596 Unreviewed. Fix Chromium build. |
|
11597 |
|
11598 * inspector/InspectorApplicationCacheAgent.cpp: |
|
11599 (WebCore::InspectorApplicationCacheAgent::fillResourceList): |
|
11600 (WebCore::InspectorApplicationCacheAgent::getApplicationCaches): |
|
11601 |
|
11602 2010-07-05 Adam Barth <abarth@webkit.org> |
|
11603 |
|
11604 Unreviewed. |
|
11605 |
|
11606 Move processStartTagForInBody to its own function. |
|
11607 |
|
11608 * html/HTMLTreeBuilder.cpp: |
|
11609 (WebCore::HTMLTreeBuilder::processStartTagForInBody): |
|
11610 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11611 * html/HTMLTreeBuilder.cpp.orig: Added. |
|
11612 * html/HTMLTreeBuilder.h: |
|
11613 |
|
11614 2010-07-05 Eric Seidel <eric@webkit.org> |
|
11615 |
|
11616 Reviewed by Adam Barth. |
|
11617 |
|
11618 Fix one more notImplemented in h1-h6 start tag handling |
|
11619 https://bugs.webkit.org/show_bug.cgi?id=41654 |
|
11620 |
|
11621 * html/HTMLTreeBuilder.cpp: |
|
11622 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11623 |
|
11624 2010-07-05 Eric Seidel <eric@webkit.org> |
|
11625 |
|
11626 Unreviewed. Just fixing proess to process. |
|
11627 Clearly Adam and I can't spell. Thankfully MikeSmith can. |
|
11628 |
|
11629 Add <isindex> support, per HTML5 |
|
11630 https://bugs.webkit.org/show_bug.cgi?id=41650 |
|
11631 |
|
11632 * html/HTMLTreeBuilder.cpp: |
|
11633 (WebCore::HTMLTreeBuilder::processFakeStartTag): |
|
11634 (WebCore::HTMLTreeBuilder::processFakeEndTag): |
|
11635 (WebCore::HTMLTreeBuilder::processIsindexStartTagForBody): |
|
11636 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11637 * html/HTMLTreeBuilder.h: |
|
11638 |
|
11639 2010-07-05 Eric Seidel <eric@webkit.org> |
|
11640 |
|
11641 Reviewed by Adam Barth. |
|
11642 |
|
11643 Add <isindex> support, per HTML5 |
|
11644 https://bugs.webkit.org/show_bug.cgi?id=41650 |
|
11645 |
|
11646 Covered by html5lib/runner.html including a new |
|
11647 isindex.dat test suite. |
|
11648 |
|
11649 * html/HTMLToken.h: |
|
11650 (WebCore::AtomicHTMLToken::AtomicHTMLToken): |
|
11651 - Support passing attributes to the constructor. |
|
11652 (WebCore::AtomicHTMLToken::name): |
|
11653 (WebCore::AtomicHTMLToken::setName): |
|
11654 (WebCore::AtomicHTMLToken::getAttributeItem): |
|
11655 (WebCore::AtomicHTMLToken::attributes): |
|
11656 (WebCore::AtomicHTMLToken::takeAtributes): |
|
11657 - Reduces ref-churn, and makes it possible for callers |
|
11658 to modify attributes w/o affecting future uses of the attributes. |
|
11659 (WebCore::AtomicHTMLToken::usesName): |
|
11660 - Used by ASSERTS. |
|
11661 (WebCore::AtomicHTMLToken::usesAttributes): |
|
11662 - Used by ASSERTS. |
|
11663 * html/HTMLTreeBuilder.cpp: |
|
11664 (WebCore::convertToOldStyle): |
|
11665 - Can't be const, now that we use takeAttributes() |
|
11666 (WebCore::HTMLTreeBuilder::insertHTMLStartTagBeforeHTML): |
|
11667 (WebCore::HTMLTreeBuilder::proesssFakeStartTag): |
|
11668 - New function. I'm not sure this is the perfect design |
|
11669 (I'd kinda like AtomicHTMLToken to be copyable so we can |
|
11670 have create functions for it), but this makes the callsites |
|
11671 using fake tokens much more readable. |
|
11672 (WebCore::HTMLTreeBuilder::proesssFakeEndTag): |
|
11673 (WebCore::HTMLTreeBuilder::processFakeCharacters): |
|
11674 (WebCore::HTMLTreeBuilder::attributesForIsindexInput): |
|
11675 (WebCore::HTMLTreeBuilder::processIsindexStartTagForBody): |
|
11676 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11677 (WebCore::HTMLTreeBuilder::insertScriptElement): |
|
11678 - Use takeAttributes() for less ref-churn. |
|
11679 (WebCore::HTMLTreeBuilder::createElement): ditto |
|
11680 (WebCore::HTMLTreeBuilder::finished): |
|
11681 - Remove bogus use of AtomicHTMLToken constructor which |
|
11682 wasn't even being used now that we support emitting EOF tokens |
|
11683 from the Tokenizer directly. |
|
11684 * html/HTMLTreeBuilder.h: |
|
11685 |
|
11686 2010-07-05 Adam Barth <abarth@webkit.org> |
|
11687 |
|
11688 Reviewed by Eric Seidel. |
|
11689 |
|
11690 ASSERT that we're processing the correct type of token |
|
11691 https://bugs.webkit.org/show_bug.cgi?id=41647 |
|
11692 |
|
11693 Making these asserts work required a small (non-observable) tweak to |
|
11694 some old code. |
|
11695 |
|
11696 * html/HTMLTreeBuilder.cpp: |
|
11697 (WebCore::HTMLTreeBuilder::processDoctypeToken): |
|
11698 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11699 (WebCore::HTMLTreeBuilder::processBodyEndTagForInBody): |
|
11700 (WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody): |
|
11701 (WebCore::HTMLTreeBuilder::processEndTag): |
|
11702 (WebCore::HTMLTreeBuilder::processComment): |
|
11703 (WebCore::HTMLTreeBuilder::processCharacter): |
|
11704 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
11705 (WebCore::HTMLTreeBuilder::processStartTagForInHead): |
|
11706 |
|
11707 2010-07-05 Adam Barth <abarth@webkit.org> |
|
11708 |
|
11709 Reviewed by Eric Seidel. |
|
11710 |
|
11711 Implement in select in table |
|
11712 https://bugs.webkit.org/show_bug.cgi?id=41646 |
|
11713 |
|
11714 This mode is mostly a fall-through to the InSelectMode. |
|
11715 |
|
11716 * html/HTMLTreeBuilder.cpp: |
|
11717 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11718 (WebCore::HTMLTreeBuilder::processEndTag): |
|
11719 (WebCore::HTMLTreeBuilder::processCharacter): |
|
11720 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
11721 |
|
11722 2010-07-05 Adam Barth <abarth@webkit.org> |
|
11723 |
|
11724 Reviewed by Eric Seidel. |
|
11725 |
|
11726 Implement basic text node coalescing |
|
11727 https://bugs.webkit.org/show_bug.cgi?id=41623 |
|
11728 |
|
11729 This patch isn't the end-all, be-all of text node coalescing, but it's |
|
11730 a good start. |
|
11731 |
|
11732 * dom/CharacterData.cpp: |
|
11733 (WebCore::CharacterData::parserAppendData): |
|
11734 (WebCore::CharacterData::appendData): |
|
11735 * dom/CharacterData.h: |
|
11736 - Added a new method to dance around mutation events. |
|
11737 * html/HTMLTreeBuilder.cpp: |
|
11738 (WebCore::HTMLTreeBuilder::insertTextNode): |
|
11739 |
|
11740 2010-07-05 Adam Barth <abarth@webkit.org> |
|
11741 |
|
11742 Reviewed by Eric Seidel. |
|
11743 |
|
11744 Implement InSelectMode |
|
11745 https://bugs.webkit.org/show_bug.cgi?id=41627 |
|
11746 |
|
11747 * html/HTMLTreeBuilder.cpp: |
|
11748 (WebCore::HTMLTreeBuilder::processStartTag): |
|
11749 (WebCore::HTMLTreeBuilder::processEndTag): |
|
11750 (WebCore::HTMLTreeBuilder::processCharacter): |
|
11751 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
11752 |
|
11753 2010-07-05 Fady Samuel <fsamuel@chromium.org> |
|
11754 |
|
11755 Reviewed by Darin Adler. |
|
11756 |
|
11757 Fixed a svg crash when setting class of an svg ellipse object. |
|
11758 |
|
11759 Altering the CSS class of an attached SVG element causes WebKit to crash |
|
11760 https://bugs.webkit.org/show_bug.cgi?id=40857 |
|
11761 |
|
11762 Test: svg/css/svg-ellipse-render-crash.html |
|
11763 |
|
11764 * dom/StyledElement.cpp: |
|
11765 (WebCore::StyledElement::classAttributeChanged): |
|
11766 |
|
11767 2010-07-05 Dan Bernstein <mitz@apple.com> |
|
11768 |
|
11769 Reviewed by Sam Weinig. |
|
11770 |
|
11771 Reproducible crash with Optimize Legibility extension |
|
11772 https://bugs.webkit.org/show_bug.cgi?id=41585 |
|
11773 |
|
11774 Test: fast/css/text-rendering-priority.html |
|
11775 |
|
11776 Moved the text-rendering CSS property to the “high priority” group, because applying it |
|
11777 during style selection invalidates the font. |
|
11778 |
|
11779 * css/CSSPropertyNames.in: Moved text-rendering to the “high priority” section at the top. |
|
11780 * css/CSSStyleSelector.cpp: |
|
11781 (WebCore::CSSStyleSelector::applyDeclarations): Updated compile-time assertion. |
|
11782 |
|
11783 2010-07-05 Dan Bernstein <mitz@apple.com> |
|
11784 |
|
11785 Reviewed by Sam Weinig. |
|
11786 |
|
11787 optimizeLegibility doesn't play nice with fonts that do not have a space glyph |
|
11788 https://bugs.webkit.org/show_bug.cgi?id=41599 |
|
11789 |
|
11790 No test because none of the fonts available to DumpRenderTree are missing a space glyph. |
|
11791 |
|
11792 * rendering/RenderBlockLineLayout.cpp: |
|
11793 (WebCore::RenderBlock::findNextLineBreak): When the font does not map the space character |
|
11794 to a glyph, a fallback font is used for space. Therefore, wordTrailingSpaceWidth must be |
|
11795 initialized with the width of a space as measured by the Font rather than with the cached |
|
11796 space width. |
|
11797 |
|
11798 2010-07-05 Eric Seidel <eric@webkit.org> |
|
11799 |
|
11800 Reviewed by Adam Barth. |
|
11801 |
|
11802 Implement HTML5's "reset insertion mode appropriately" |
|
11803 https://bugs.webkit.org/show_bug.cgi?id=41628 |
|
11804 |
|
11805 This has some minimal testing. One from my previous |
|
11806 </table> patch, and a few from the main suite. |
|
11807 |
|
11808 Mostly resetInsertionModeAppropriately isn't used yet |
|
11809 but we're about to add a bunch of states which do use it |
|
11810 and our test coverage will expand further as we do. |
|
11811 |
|
11812 * html/HTMLTreeBuilder.cpp: |
|
11813 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
11814 (WebCore::HTMLTreeBuilder::setInsertionModeAndEnd): |
|
11815 (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately): |
|
11816 * html/HTMLTreeBuilder.h: |
|
11817 |
|
11818 2010-07-04 Eric Seidel <eric@webkit.org> |
|
11819 |
|
11820 Reviewed by Adam Barth. |
|
11821 |
|
11822 Add </table> support for "in table" insertion mode |
|
11823 https://bugs.webkit.org/show_bug.cgi?id=41591 |
|
11824 |
|
11825 resetInsertionModeAppropriately isn't implemented yet, however |
|
11826 I've added a test for the usage I added. |
|
11827 |
|
11828 * html/HTMLTreeBuilder.cpp: |
|
11829 (WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately): |
|
11830 (WebCore::HTMLTreeBuilder::processEndTag): |
|
11831 * html/HTMLTreeBuilder.h: |
|
11832 |
|
11833 2010-07-05 Joseph Pecoraro <joepeck@webkit.org> |
|
11834 |
|
11835 Unreviewed build fix for r62503. |
|
11836 |
|
11837 Chromium missing method. Filed bug 41632 to track. |
|
11838 |
|
11839 * loader/appcache/ApplicationCacheHost.h: |
|
11840 (WebCore::ApplicationCacheHost::applicationCache): |
|
11841 |
|
11842 2010-07-05 Joseph Pecoraro <joepeck@webkit.org> |
|
11843 |
|
11844 Unreviewed build fix for r62503. |
|
11845 |
|
11846 Missed GTK's build file. |
|
11847 |
|
11848 * GNUmakefile.am: |
|
11849 |
|
11850 2010-07-05 Joseph Pecoraro <joepeck@webkit.org> |
|
11851 |
|
11852 Unreviewed build fix for r62503. |
|
11853 |
|
11854 Pass a blank ResourceResponse instead of passing 0. |
|
11855 |
|
11856 * loader/appcache/ApplicationCacheGroup.cpp: |
|
11857 (WebCore::ApplicationCacheGroup::createResourceHandle): |
|
11858 |
|
11859 2010-07-05 Joseph Pecoraro <joepeck@webkit.org> |
|
11860 |
|
11861 Unreviewed build fix for r62503. |
|
11862 |
|
11863 Forward declare ApplicationCache for Chromium. |
|
11864 |
|
11865 * loader/appcache/ApplicationCacheHost.h: |
|
11866 |
|
11867 2010-07-05 Joseph Pecoraro <joepeck@webkit.org> |
|
11868 |
|
11869 Reviewed by Pavel Feldman. |
|
11870 |
|
11871 WebInspector: HTML5 Offline Web Applications Support (ApplicationCache) |
|
11872 https://bugs.webkit.org/show_bug.cgi?id=24529 |
|
11873 |
|
11874 Parts of this patch were written by Kavita Kanetkar <kkanetkar@chromium.org>. |
|
11875 |
|
11876 Part 2: Pulling ApplicationCache Resources to Display in the Inspector. |
|
11877 |
|
11878 The InspectorApplicationCacheAgent gathers the information it |
|
11879 needs and forwards it on to the inspector. |
|
11880 |
|
11881 * inspector/InspectorApplicationCacheAgent.cpp: |
|
11882 (WebCore::InspectorApplicationCacheAgent::fillResourceList): get information about the resources. |
|
11883 (WebCore::InspectorApplicationCacheAgent::getApplicationCaches): gathers all the information from the ApplicationCacheHost. |
|
11884 (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCache): |
|
11885 (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources): |
|
11886 (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCacheResource): |
|
11887 * inspector/InspectorApplicationCacheAgent.h: defines structures to hold information about caches and resources. |
|
11888 (WebCore::InspectorApplicationCacheAgent::ApplicationCacheInfo::ApplicationCacheInfo): |
|
11889 (WebCore::InspectorApplicationCacheAgent::ResourceInfo::ResourceInfo): |
|
11890 (WebCore::InspectorApplicationCacheAgent::~InspectorApplicationCacheAgent): |
|
11891 * loader/appcache/ApplicationCacheHost.h: |
|
11892 (WebCore::ApplicationCacheHost::applicationCacheForInspector): new convention, public cache accessor for the inspector. |
|
11893 (WebCore::ApplicationCacheHost::documentLoader): added const. |
|
11894 |
|
11895 The User Interface uses a DataGrid, like Cookies. |
|
11896 |
|
11897 * inspector/front-end/ApplicationCacheItemsView.js: |
|
11898 (WebInspector.ApplicationCacheItemsView.prototype._update): |
|
11899 (WebInspector.ApplicationCacheItemsView.prototype._updateCallback): |
|
11900 (WebInspector.ApplicationCacheItemsView.prototype._createDataGrid): |
|
11901 (WebInspector.ApplicationCacheItemsView.prototype._populateDataGrid.numberCompare): |
|
11902 (WebInspector.ApplicationCacheItemsView.prototype._populateDataGrid.localeCompare): |
|
11903 (WebInspector.ApplicationCacheItemsView.prototype._populateDataGrid): |
|
11904 |
|
11905 The usual frontend pull workflow, except this goes through |
|
11906 InspectorApplicationCacheAgent instead of InspectorController. |
|
11907 |
|
11908 * inspector/InspectorBackend.cpp: |
|
11909 (WebCore::InspectorBackend::getApplicationCaches): |
|
11910 (WebCore::InspectorBackend::inspectorApplicationCacheAgent): |
|
11911 * inspector/InspectorBackend.h: |
|
11912 * inspector/InspectorBackend.idl: |
|
11913 * inspector/InspectorFrontend.cpp: |
|
11914 (WebCore::InspectorFrontend::didGetApplicationCaches): |
|
11915 * inspector/InspectorFrontend.h: |
|
11916 * inspector/front-end/DOMAgent.js: |
|
11917 (WebInspector.DOMNode.prototype.hasChildNodes): style fix. |
|
11918 (WebInspector.DOMAgent.prototype.nodeForId): style fix. |
|
11919 (WebInspector.ApplicationCache.getApplicationCachesAsync): pull. |
|
11920 (WebInspector.Cookies.getCookiesAsync): |
|
11921 * inspector/front-end/StoragePanel.js: |
|
11922 (WebInspector.StoragePanel.prototype.updateManifest): |
|
11923 (WebInspector.ApplicationCacheSidebarTreeElement.prototype.onselect): |
|
11924 * inspector/front-end/inspector.js: |
|
11925 (WebInspector.updateResource): |
|
11926 (WebInspector._addAppCacheDomain): |
|
11927 (WebInspector.reset): |
|
11928 |
|
11929 Miscellaneous. Localized Strings and fixes. |
|
11930 |
|
11931 * English.lproj/localizedStrings.js: "Type", "%s (%s)" |
|
11932 * inspector/InspectorController.cpp: |
|
11933 (WebCore::InspectorController::deleteCookie): |
|
11934 * inspector/InspectorController.h: |
|
11935 |
|
11936 2010-07-04 Joseph Pecoraro <joepeck@webkit.org> |
|
11937 |
|
11938 Reviewed by Pavel Feldman. |
|
11939 |
|
11940 WebInspector: HTML5 Offline Web Applications Support (ApplicationCache) |
|
11941 https://bugs.webkit.org/show_bug.cgi?id=24529 |
|
11942 |
|
11943 Part 1: Backend -> Frontend Messages. ApplicationCache Status and Connectivity Status. |
|
11944 |
|
11945 This patch adds an InspectorApplicationCacheAgent to monitor application |
|
11946 cache changes, starts a UI in the Storage panel, handles the boilerplate |
|
11947 of adding new files. |
|
11948 |
|
11949 Added an agent to encapsulate and handle the application cache logic. |
|
11950 This is similar to the timeline agent. |
|
11951 |
|
11952 * inspector/InspectorApplicationCacheAgent.cpp: Added. |
|
11953 (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent): |
|
11954 (WebCore::InspectorApplicationCacheAgent::~InspectorApplicationCacheAgent): |
|
11955 (WebCore::InspectorApplicationCacheAgent::didReceiveManifestResponse): |
|
11956 (WebCore::InspectorApplicationCacheAgent::updateApplicationCacheStatus): |
|
11957 (WebCore::InspectorApplicationCacheAgent::updateNetworkState): |
|
11958 * inspector/InspectorApplicationCacheAgent.h: Added. |
|
11959 |
|
11960 InspectorController owns an InspectorApplicationCacheAgent. This |
|
11961 handles its lifetime management. |
|
11962 |
|
11963 * inspector/InspectorController.cpp: |
|
11964 (WebCore::InspectorController::~InspectorController): |
|
11965 (WebCore::InspectorController::connectFrontend): create the agent with a frontend. |
|
11966 (WebCore::InspectorController::disconnectFrontend): remove the agent when closing. |
|
11967 (WebCore::InspectorController::releaseFrontendLifetimeAgents): |
|
11968 * inspector/InspectorController.h: |
|
11969 |
|
11970 User Interface for ApplicationCache in the StoragePanel. This follows |
|
11971 very closely to Cookies, it will have a sortable table of items. The |
|
11972 status bar contains connectivity and application cache status |
|
11973 indicators which update when backend messages are received. There |
|
11974 are some stubs which the next part will implement. |
|
11975 |
|
11976 * inspector/front-end/ApplicationCacheItemsView.js: Added. |
|
11977 (WebInspector.ApplicationCacheItemsView): |
|
11978 (WebInspector.ApplicationCacheItemsView.prototype.get statusBarItems): refresh, delete, connectivity, application cache status. |
|
11979 (WebInspector.ApplicationCacheItemsView.prototype.show): |
|
11980 (WebInspector.ApplicationCacheItemsView.prototype.hide): |
|
11981 (WebInspector.ApplicationCacheItemsView.prototype.updateStatus): this is the application cache status indicator. |
|
11982 (WebInspector.ApplicationCacheItemsView.prototype.updateNetworkState): this is the online/offline connectivity indicator. |
|
11983 (WebInspector.ApplicationCacheItemsView.prototype._update): |
|
11984 (WebInspector.ApplicationCacheItemsView.prototype._updateCallback): |
|
11985 (WebInspector.ApplicationCacheItemsView.prototype._createDataGrid): |
|
11986 (WebInspector.ApplicationCacheItemsView.prototype._populateDataGrid): |
|
11987 (WebInspector.ApplicationCacheItemsView.prototype.resize): |
|
11988 (WebInspector.ApplicationCacheItemsView.prototype._deleteButtonClicked): |
|
11989 (WebInspector.ApplicationCacheItemsView.prototype._deleteCallback): |
|
11990 (WebInspector.ApplicationCacheItemsView.prototype._refreshButtonClicked): |
|
11991 |
|
11992 The usual dispatch flow from the backend, to the frontend, to the |
|
11993 panel, and then to the visible view. Some slight refactoring to |
|
11994 eliminate duplicated code. |
|
11995 |
|
11996 * inspector/InspectorFrontend.cpp: |
|
11997 (WebCore::InspectorFrontend::updateDOMStorage): |
|
11998 (WebCore::InspectorFrontend::didGetApplicationCaches): |
|
11999 (WebCore::InspectorFrontend::updateApplicationCacheStatus): |
|
12000 * inspector/InspectorFrontend.h: |
|
12001 * inspector/front-end/StoragePanel.js: |
|
12002 (WebInspector.StoragePanel): |
|
12003 (WebInspector.StoragePanel.prototype.reset): |
|
12004 (WebInspector.StoragePanel.prototype.addApplicationCache): |
|
12005 (WebInspector.StoragePanel.prototype.showDatabase): |
|
12006 (WebInspector.StoragePanel.prototype.showDOMStorage): |
|
12007 (WebInspector.StoragePanel.prototype.showCookies): |
|
12008 (WebInspector.StoragePanel.prototype.showApplicationCache): |
|
12009 (WebInspector.StoragePanel.prototype._genericViewSetup): |
|
12010 (WebInspector.StoragePanel.prototype.updateApplicationCacheStatus): |
|
12011 (WebInspector.StoragePanel.prototype.updateNetworkState): |
|
12012 (WebInspector.CookieSidebarTreeElement.prototype.set subtitle): |
|
12013 (WebInspector.ApplicationCacheSidebarTreeElement): |
|
12014 (WebInspector.ApplicationCacheSidebarTreeElement.prototype.onselect): |
|
12015 (WebInspector.ApplicationCacheSidebarTreeElement.prototype.get mainTitle): |
|
12016 (WebInspector.ApplicationCacheSidebarTreeElement.prototype.set mainTitle): |
|
12017 (WebInspector.ApplicationCacheSidebarTreeElement.prototype.get subtitle): |
|
12018 (WebInspector.ApplicationCacheSidebarTreeElement.prototype.set subtitle): |
|
12019 * inspector/front-end/inspector.js: |
|
12020 (WebInspector.dispatch.delayDispatch): |
|
12021 (WebInspector.dispatch): |
|
12022 (WebInspector._addAppCacheDomain): |
|
12023 (WebInspector.addDOMStorage): |
|
12024 (WebInspector.updateDOMStorage): |
|
12025 |
|
12026 Notify the InspectorApplicationCacheAgent on application cache changes |
|
12027 or specifics. Notify the InspectorController on generic resource events. |
|
12028 That is because ApplicationCacheController is a ResourceClient and needs |
|
12029 to trigger the resource events normally handled by ResourceLoader. |
|
12030 |
|
12031 * loader/appcache/ApplicationCacheGroup.cpp: |
|
12032 (WebCore::inspectorUpdateApplicationCacheStatus): helper method to prevent duplicated code. |
|
12033 (WebCore::ApplicationCacheGroup::setNewestCache): status change. |
|
12034 (WebCore::ApplicationCacheGroup::makeObsolete): status change. |
|
12035 (WebCore::ApplicationCacheGroup::update): status change. |
|
12036 (WebCore::ApplicationCacheGroup::createResourceHandle): resource event. |
|
12037 (WebCore::ApplicationCacheGroup::willSendRequest): resource event. |
|
12038 (WebCore::ApplicationCacheGroup::didReceiveResponse): resource event. |
|
12039 (WebCore::ApplicationCacheGroup::didReceiveData): resource event. |
|
12040 (WebCore::ApplicationCacheGroup::didFinishLoading): resource event. |
|
12041 (WebCore::ApplicationCacheGroup::didFail): resource event. |
|
12042 (WebCore::ApplicationCacheGroup::didFinishLoadingManifest): resource event. |
|
12043 (WebCore::ApplicationCacheGroup::manifestNotFound): status change. |
|
12044 (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete): status change. |
|
12045 (WebCore::ApplicationCacheGroup::setUpdateStatus): single access point for status changes. |
|
12046 * loader/appcache/ApplicationCacheGroup.h: |
|
12047 * page/Page.cpp: |
|
12048 (WebCore::networkStateChanged): connectivity status change. |
|
12049 |
|
12050 Final inspector details to add the new file, style new elements, |
|
12051 images, and localized strings. |
|
12052 |
|
12053 * inspector/front-end/inspector.css: |
|
12054 (.application-cache-sidebar-tree-item .icon): |
|
12055 (.timeline-records-counter, .storage-application-cache-status, .storage-application-cache-connectivity): |
|
12056 (.storage-application-cache-status-icon, .storage-application-cache-connectivity-icon): |
|
12057 (.status-bar-divider): |
|
12058 (.storage-application-cache-status, .storage-application-cache-connectivity): |
|
12059 * inspector/front-end/inspector.html: |
|
12060 * inspector/front-end/Images/applicationCache.png: Added. |
|
12061 * English.lproj/localizedStrings.js: "APPLICATION CACHE", "No Application Cache information available.", "Online", "Offline" |
|
12062 |
|
12063 Updated build files. |
|
12064 |
|
12065 * CMakeLists.txt: |
|
12066 * WebCore.gypi: |
|
12067 * WebCore.pro: |
|
12068 * WebCore.vcproj/WebCore.vcproj: |
|
12069 * WebCore.xcodeproj/project.pbxproj: |
|
12070 * inspector/front-end/WebKit.qrc: |
|
12071 |
|
12072 2010-07-05 Eric Seidel <eric@webkit.org> |
|
12073 |
|
12074 Reviewed by Adam Barth. |
|
12075 |
|
12076 Add basic <col> support to the treebuilder |
|
12077 https://bugs.webkit.org/show_bug.cgi?id=41590 |
|
12078 |
|
12079 * html/HTMLTreeBuilder.cpp: |
|
12080 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12081 |
|
12082 2010-07-05 Eric Seidel <eric@webkit.org> |
|
12083 |
|
12084 Reviewed by Adam Barth. |
|
12085 |
|
12086 Add basic "in row" mode to support <td> and <th> insertion |
|
12087 https://bugs.webkit.org/show_bug.cgi?id=41588 |
|
12088 |
|
12089 Also fixed <td> or <th> as a direct child of <table>. |
|
12090 |
|
12091 Most of this was covered by html5lib/runner.html tests, |
|
12092 but I had to add a new tables01.dat to cover the <th> cases. |
|
12093 |
|
12094 * html/HTMLElementStack.cpp: |
|
12095 (WebCore::HTMLNames::isTableRowScopeMarker): |
|
12096 (WebCore::HTMLElementStack::popUntilTableRowScopeMarker): |
|
12097 * html/HTMLElementStack.h: |
|
12098 * html/HTMLTreeBuilder.cpp: |
|
12099 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12100 |
|
12101 2010-07-05 Eric Seidel <eric@webkit.org> |
|
12102 |
|
12103 Reviewed by Adam Barth. |
|
12104 |
|
12105 Finish implementing "any other end tag" for "in body" mode |
|
12106 https://bugs.webkit.org/show_bug.cgi?id=41582 |
|
12107 |
|
12108 I believe I found a "bug" in the HTML5 spec when writing this: |
|
12109 http://www.w3.org/Bugs/Public/show_bug.cgi?id=10080 |
|
12110 |
|
12111 * html/HTMLTreeBuilder.cpp: |
|
12112 (WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody): |
|
12113 (WebCore::HTMLTreeBuilder::processEndTag): |
|
12114 * html/HTMLTreeBuilder.h: |
|
12115 |
|
12116 2010-07-05 Martin Robinson <mrobinson@igalia.com> |
|
12117 |
|
12118 Unreviewed. |
|
12119 |
|
12120 Add a missing slash to the list of generated sources. This |
|
12121 was missing from a previous build fix. |
|
12122 |
|
12123 * GNUmakefile.am: |
|
12124 |
|
12125 2010-07-05 Pavel Feldman <pfeldman@chromium.org> |
|
12126 |
|
12127 Reviewed by Joseph Pecoraro. |
|
12128 |
|
12129 Web Inspector: preserve scroll positions in source frame when switching between panes. |
|
12130 |
|
12131 https://bugs.webkit.org/show_bug.cgi?id=41620 |
|
12132 |
|
12133 * inspector/front-end/ScriptsPanel.js: |
|
12134 (WebInspector.ScriptsPanel.prototype.hide): |
|
12135 * inspector/front-end/SourceFrame.js: |
|
12136 (WebInspector.SourceFrame.prototype.set visible): |
|
12137 * inspector/front-end/SourceView.js: |
|
12138 (WebInspector.SourceView.prototype.hide): |
|
12139 |
|
12140 2010-07-05 Rob Buis <rwlbuis@gmail.com> |
|
12141 |
|
12142 Reviewed by Dirk Schulze. |
|
12143 |
|
12144 IE SVG test fails |
|
12145 https://bugs.webkit.org/show_bug.cgi?id=41619 |
|
12146 |
|
12147 Make SVGSVGElement.createSVGTransform create a SVGTransform with the |
|
12148 right type, thereby fixing the IE test. |
|
12149 |
|
12150 Test: svg/custom/svg-createsvgtransform-type.html |
|
12151 |
|
12152 * svg/SVGSVGElement.cpp: |
|
12153 (WebCore::SVGSVGElement::createSVGTransform): |
|
12154 |
|
12155 2010-07-05 Pavel Feldman <pfeldman@chromium.org> |
|
12156 |
|
12157 Reviewed by Yury Semikhatsky. |
|
12158 |
|
12159 Web Inspector: computed style pane is not updated when styles pane is collapsed. |
|
12160 |
|
12161 https://bugs.webkit.org/show_bug.cgi?id=41615 |
|
12162 |
|
12163 * inspector/front-end/ElementsPanel.js: |
|
12164 (WebInspector.ElementsPanel.prototype.updateStyles): |
|
12165 |
|
12166 2010-07-05 Nikolas Zimmermann <nzimmermann@rim.com> |
|
12167 |
|
12168 Reviewed by Dirk Schulze. |
|
12169 |
|
12170 Logic to track whether elements are using relative lengths is incomplete |
|
12171 https://bugs.webkit.org/show_bug.cgi?id=41566 |
|
12172 |
|
12173 Add logic to all SVG elements which create renderes to expose a method |
|
12174 "bool selfHasRelativeLengths()", that returns whether the element uses relative |
|
12175 lengths (eg. <rect x="50%"...). This will be used soon to avoid relayouts of |
|
12176 container children, when the bounds have not changed. |
|
12177 |
|
12178 A new method SVGStyledElement::updateRelativeLengthsInformation() is added, |
|
12179 which is called from the various svgAttributeChanged() methods and insertedIntoDocument/removedFromDocument. |
|
12180 It will be implemented in a follow-up patch. This patch does not affect any test behaviour related |
|
12181 to relayouting. As SVGFilterElement finally got a proper svgAttributeChanged() method, it now |
|
12182 properly invalidates clients on attribute changes - covered by a new test. |
|
12183 |
|
12184 Tests: svg/custom/relative-sized-inner-svg.xhtml |
|
12185 svg/custom/relative-sized-use-without-attributes-on-symbol.xhtml |
|
12186 svg/filters/filter-width-update.svg |
|
12187 |
|
12188 * rendering/RenderPath.cpp: |
|
12189 (WebCore::RenderPath::layout): Rename hasRelativeValues to hasRelativeLengths. |
|
12190 * rendering/RenderSVGRoot.cpp: |
|
12191 (WebCore::RenderSVGRoot::layout): Ditto. |
|
12192 (WebCore::RenderSVGRoot::calcViewport): Ditto. |
|
12193 * rendering/RenderSVGViewportContainer.cpp: |
|
12194 (WebCore::RenderSVGViewportContainer::calcViewport): Ditto |
|
12195 * rendering/SVGRenderSupport.cpp: |
|
12196 (WebCore::SVGRenderSupport::layoutChildren): Ditto. |
|
12197 * svg/SVGCircleElement.cpp: |
|
12198 (WebCore::SVGCircleElement::svgAttributeChanged): Call updateRelativeLengthsInformation() if any attribute which may contain relative lengths changes. |
|
12199 (WebCore::SVGCircleElement::selfHasRelativeLengths): Ditto. Same for all other SVG*Elements below. |
|
12200 * svg/SVGCircleElement.h: |
|
12201 * svg/SVGEllipseElement.cpp: |
|
12202 (WebCore::SVGEllipseElement::svgAttributeChanged): |
|
12203 (WebCore::SVGEllipseElement::selfHasRelativeLengths): |
|
12204 * svg/SVGEllipseElement.h: |
|
12205 * svg/SVGFilterElement.cpp: |
|
12206 (WebCore::SVGFilterElement::svgAttributeChanged): |
|
12207 (WebCore::SVGFilterElement::selfHasRelativeLengths): |
|
12208 * svg/SVGFilterElement.h: |
|
12209 * svg/SVGForeignObjectElement.cpp: |
|
12210 (WebCore::SVGForeignObjectElement::svgAttributeChanged): |
|
12211 (WebCore::SVGForeignObjectElement::selfHasRelativeLengths): |
|
12212 * svg/SVGForeignObjectElement.h: |
|
12213 * svg/SVGImageElement.cpp: |
|
12214 (WebCore::SVGImageElement::svgAttributeChanged): |
|
12215 (WebCore::SVGImageElement::selfHasRelativeLengths): |
|
12216 * svg/SVGImageElement.h: |
|
12217 * svg/SVGLineElement.cpp: |
|
12218 (WebCore::SVGLineElement::svgAttributeChanged): |
|
12219 (WebCore::SVGLineElement::selfHasRelativeLengths): |
|
12220 * svg/SVGLineElement.h: |
|
12221 * svg/SVGLinearGradientElement.cpp: |
|
12222 (WebCore::SVGLinearGradientElement::svgAttributeChanged): |
|
12223 (WebCore::SVGLinearGradientElement::selfHasRelativeLengths): |
|
12224 * svg/SVGLinearGradientElement.h: |
|
12225 * svg/SVGMarkerElement.cpp: |
|
12226 (WebCore::SVGMarkerElement::svgAttributeChanged): |
|
12227 (WebCore::SVGMarkerElement::selfHasRelativeLengths): |
|
12228 * svg/SVGMarkerElement.h: |
|
12229 * svg/SVGMaskElement.cpp: |
|
12230 (WebCore::SVGMaskElement::svgAttributeChanged): |
|
12231 (WebCore::SVGMaskElement::selfHasRelativeLengths): |
|
12232 * svg/SVGMaskElement.h: |
|
12233 * svg/SVGPatternElement.cpp: |
|
12234 (WebCore::SVGPatternElement::svgAttributeChanged): |
|
12235 (WebCore::SVGPatternElement::selfHasRelativeLengths): |
|
12236 * svg/SVGPatternElement.h: |
|
12237 * svg/SVGRadialGradientElement.cpp: |
|
12238 (WebCore::SVGRadialGradientElement::svgAttributeChanged): |
|
12239 (WebCore::SVGRadialGradientElement::selfHasRelativeLengths): |
|
12240 * svg/SVGRadialGradientElement.h: |
|
12241 * svg/SVGRectElement.cpp: |
|
12242 (WebCore::SVGRectElement::svgAttributeChanged): |
|
12243 (WebCore::SVGRectElement::selfHasRelativeLengths): |
|
12244 * svg/SVGRectElement.h: |
|
12245 * svg/SVGSVGElement.cpp: |
|
12246 (WebCore::SVGSVGElement::svgAttributeChanged): |
|
12247 (WebCore::SVGSVGElement::selfHasRelativeLengths): |
|
12248 * svg/SVGSVGElement.h: |
|
12249 * svg/SVGStyledElement.cpp: |
|
12250 (WebCore::SVGStyledElement::insertedIntoDocument): Call updateRelativeLengthsInformation(). |
|
12251 (WebCore::SVGStyledElement::removedFromDocument): Ditto. |
|
12252 (WebCore::SVGStyledElement::updateRelativeLengthsInformation): Not implemented so far. Will land in a follow-up patch, together with the render tree changes. |
|
12253 * svg/SVGStyledElement.h: |
|
12254 (WebCore::SVGStyledElement::hasRelativeLengths): Devirtualized. For now, just call selfHasRelativeLengths() - this will change in a follow-up patch. |
|
12255 (WebCore::SVGStyledElement::updateRelativeLengthsInformation): |
|
12256 (WebCore::SVGStyledElement::selfHasRelativeLengths): Renamed from hasRelativeValues(). |
|
12257 * svg/SVGSymbolElement.cpp: |
|
12258 (WebCore::SVGSymbolElement::svgAttributeChanged): |
|
12259 (WebCore::SVGSymbolElement::selfHasRelativeLengths): |
|
12260 * svg/SVGSymbolElement.h: |
|
12261 * svg/SVGTextContentElement.cpp: |
|
12262 (WebCore::SVGTextContentElement::selfHasRelativeLengths): |
|
12263 * svg/SVGTextContentElement.h: |
|
12264 * svg/SVGTextPathElement.cpp: |
|
12265 (WebCore::SVGTextPathElement::svgAttributeChanged): |
|
12266 (WebCore::SVGTextPathElement::insertedIntoDocument): Call right base class' method. Skipped one in the hierachy before. |
|
12267 (WebCore::SVGTextPathElement::selfHasRelativeLengths): |
|
12268 * svg/SVGTextPathElement.h: |
|
12269 * svg/SVGTextPositioningElement.cpp: |
|
12270 (WebCore::SVGTextPositioningElement::svgAttributeChanged): |
|
12271 (WebCore::listContainsRelativeValue): New helper funtion that checks wheter a SVGLengthList contains relative lengths. |
|
12272 (WebCore::SVGTextPositioningElement::selfHasRelativeLengths): |
|
12273 * svg/SVGTextPositioningElement.h: |
|
12274 * svg/SVGUseElement.cpp: |
|
12275 (WebCore::SVGUseElement::insertedIntoDocument): Call right base class' method. Skipped on in the hierachy before. |
|
12276 (WebCore::SVGUseElement::removedFromDocument): Ditto. |
|
12277 (WebCore::SVGUseElement::svgAttributeChanged): |
|
12278 (WebCore::SVGUseElement::buildShadowAndInstanceTree): Call updateRelativeLengthsInformation() after building the shadow tree. |
|
12279 (WebCore::SVGUseElement::selfHasRelativeLengths): Same as all other methods, except that it includes the shadow tree root element. |
|
12280 * svg/SVGUseElement.h: |
|
12281 |
|
12282 2010-07-05 Pavel Feldman <pfeldman@chromium.org> |
|
12283 |
|
12284 Reviewed by Yury Semikhatsky. |
|
12285 |
|
12286 Web Inspector: Problem with copying a code from Scripts panel. |
|
12287 |
|
12288 https://bugs.webkit.org/show_bug.cgi?id=40432 |
|
12289 |
|
12290 * inspector/front-end/TextViewer.js: |
|
12291 (WebInspector.TextViewer.prototype._getSelection): |
|
12292 (WebInspector.TextViewer.prototype._selectionToPosition): |
|
12293 |
|
12294 2010-07-05 Nikolas Zimmermann <nzimmermann@rim.com> |
|
12295 |
|
12296 Reviewed by Dirk Schulze / Darin Adler. |
|
12297 |
|
12298 Node.cloneNode does not work on SVG nodes |
|
12299 https://bugs.webkit.org/show_bug.cgi?id=41421 |
|
12300 |
|
12301 Be sure to synchronize animated SVG properties before checking whether NamedNodeMap exists. |
|
12302 When creating a SVG element from JS, and setting all attributes via SVG DOM, and not using setAttribute |
|
12303 the NamedNodeMap does not exist. When cloning such an element, be sure to synchronize SVG <-> XML DOM |
|
12304 attributes before attempting to clone, otherwhise the SVG animated properties are lost while cloning. |
|
12305 |
|
12306 Test: svg/custom/clone-element-with-animated-svg-properties.html |
|
12307 |
|
12308 * dom/Element.cpp: |
|
12309 (WebCore::Element::cloneElementWithoutChildren): |
|
12310 |
|
12311 2010-07-05 Antti Koivisto <koivisto@iki.fi> |
|
12312 |
|
12313 Revert unplanned project file change. |
|
12314 |
|
12315 * WebCore.pri: |
|
12316 * WebCore.pro: |
|
12317 |
|
12318 2010-07-05 Nikolas Zimmermann <nzimmermann@rim.com> |
|
12319 |
|
12320 Reviewed by Darin Adler. |
|
12321 |
|
12322 Memory corruption with SVG <use> element |
|
12323 https://bugs.webkit.org/show_bug.cgi?id=40994 |
|
12324 |
|
12325 Fix race condition in svgAttributeChanged. Never call svgAttributeChanged() from attributeChanged() |
|
12326 when we're synchronizing SVG attributes. It leads to either unnecessary extra work being done or |
|
12327 crashes. Especially together with <polyline>/<polygon> which always synchronize the SVGAnimatedPoints |
|
12328 datastructure with the points attribute, no matter if there are changes are not. This should be |
|
12329 furhter optimized, but this fix is sane and fixes the root of the evil races. |
|
12330 |
|
12331 Test: svg/custom/use-property-synchronization-crash.svg |
|
12332 |
|
12333 * svg/SVGElement.cpp: |
|
12334 (WebCore::SVGElement::attributeChanged): |
|
12335 |
|
12336 2010-07-05 Yury Semikhatsky <yurys@chromium.org> |
|
12337 |
|
12338 Reviewed by Pavel Feldman. |
|
12339 |
|
12340 [v8] Web Inspector: remove v8-specific code dealing with getOwnPropertyNames from InjectedScript.js |
|
12341 https://bugs.webkit.org/show_bug.cgi?id=41595 |
|
12342 |
|
12343 * inspector/front-end/InjectedScript.js: |
|
12344 (injectedScriptConstructor): |
|
12345 |
|
12346 2010-07-04 Rob Buis <rwlbuis@gmail.com> |
|
12347 |
|
12348 Reviewed by Dirk Schulze. |
|
12349 |
|
12350 SVG polygons should draw polygons up to the first parsing error |
|
12351 https://bugs.webkit.org/show_bug.cgi?id=41140 |
|
12352 |
|
12353 Render polygons up until the first parsing error. |
|
12354 |
|
12355 Test: svg/custom/poly-parsing-error.html |
|
12356 |
|
12357 * svg/SVGPolyElement.cpp: |
|
12358 (WebCore::SVGPolyElement::parseMappedAttribute): |
|
12359 |
|
12360 2010-07-04 Alice Liu <alice.liu@apple.com> |
|
12361 |
|
12362 Reviewed by Dan Bernstein. |
|
12363 |
|
12364 Crash reading past end of block in UniscribeController::shapeAndPlaceItem |
|
12365 https://bugs.webkit.org/show_bug.cgi?id=41554 |
|
12366 |
|
12367 Test: platform/win/fast/text/uniscribe-item-boundary-crash.html |
|
12368 |
|
12369 * platform/graphics/win/UniscribeController.cpp: |
|
12370 (WebCore::UniscribeController::shapeAndPlaceItem): |
|
12371 Don't look one past the end of str. Instead look to the next item, if applicable. |
|
12372 |
|
12373 2010-07-04 Eric Seidel <eric@webkit.org> |
|
12374 |
|
12375 Reviewed by Adam Barth. |
|
12376 |
|
12377 Add basic "in table body" mode to support <tr> insertion |
|
12378 https://bugs.webkit.org/show_bug.cgi?id=41587 |
|
12379 |
|
12380 This also adds a (currently untestable?) |
|
12381 popUntilTableBodyScopeMarker code path. |
|
12382 Any tags which would be between a tbody a <tr> would end up |
|
12383 foster parented outside the <table>. I think the spec was |
|
12384 just being over-cautious with popUntilTableBodyScopeMarker. |
|
12385 |
|
12386 * html/HTMLElementStack.cpp: |
|
12387 (WebCore::HTMLNames::isTableScopeMarker): |
|
12388 (WebCore::HTMLNames::isTableBodyScopeMarker): |
|
12389 (WebCore::HTMLElementStack::popUntilTableBodyScopeMarker): |
|
12390 * html/HTMLElementStack.h: |
|
12391 * html/HTMLTreeBuilder.cpp: |
|
12392 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12393 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
12394 |
|
12395 2010-07-04 Anders Carlsson <andersca@apple.com> |
|
12396 |
|
12397 Fix Windows build. |
|
12398 |
|
12399 * WebCore.vcproj/WebCore.vcproj: |
|
12400 |
|
12401 2010-07-04 Eric Seidel <eric@webkit.org> |
|
12402 |
|
12403 Reviewed by Adam Barth. |
|
12404 |
|
12405 HTMLTreeBuilder needs an adoption agency |
|
12406 https://bugs.webkit.org/show_bug.cgi?id=41453 |
|
12407 |
|
12408 Fix Qt Minimal build. SVGNames.h should always |
|
12409 be generated, even when SVG is off, however that's |
|
12410 not how things currently work. |
|
12411 |
|
12412 * html/HTMLTreeBuilder.cpp: |
|
12413 |
|
12414 2010-07-04 Eric Seidel <eric@webkit.org> |
|
12415 |
|
12416 Reviewed by Adam Barth. |
|
12417 |
|
12418 Add a very basic InTable insertion mode |
|
12419 https://bugs.webkit.org/show_bug.cgi?id=41581 |
|
12420 |
|
12421 There is still a bunch of low-hanging fruit left for this |
|
12422 mode, but even this most-basic support lets us pass 6 more tests. :) |
|
12423 |
|
12424 It's a progression, ship it! :) |
|
12425 |
|
12426 * html/HTMLElementStack.cpp: |
|
12427 (WebCore::HTMLNames::isScopeMarker): |
|
12428 (WebCore::HTMLNames::isListItemScopeMarker): |
|
12429 (WebCore::HTMLNames::isTableScopeMarker): |
|
12430 (WebCore::HTMLElementStack::popUntilTableScopeMarker): |
|
12431 * html/HTMLElementStack.h: |
|
12432 * html/HTMLFormattingElementList.cpp: |
|
12433 (WebCore::HTMLFormattingElementList::appendMarker): |
|
12434 * html/HTMLFormattingElementList.h: |
|
12435 * html/HTMLTreeBuilder.cpp: |
|
12436 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12437 * html/HTMLTreeBuilder.h: |
|
12438 |
|
12439 2010-07-01 Eric Seidel <eric@webkit.org> |
|
12440 |
|
12441 Reviewed by Adam Barth. |
|
12442 |
|
12443 HTMLTreeBuilder needs an adoption agency |
|
12444 https://bugs.webkit.org/show_bug.cgi?id=41453 |
|
12445 |
|
12446 This changes some test results, but only makes the simplest |
|
12447 adoption agency cases pass. I think the code is likely |
|
12448 very close, but further iteration to make this change larger |
|
12449 seems counter-productive. I recommend we check in this |
|
12450 progression and work from here. |
|
12451 |
|
12452 * dom/ContainerNode.cpp: |
|
12453 (WebCore::ContainerNode::addChildCommon): |
|
12454 - Make sure callers don't assume this will reparent. |
|
12455 (WebCore::ContainerNode::parserAddChild): |
|
12456 - Update comment to document lack of reparenting behavior. |
|
12457 * html/HTMLElementStack.cpp: |
|
12458 (WebCore::HTMLElementStack::ElementRecord::ElementRecord): |
|
12459 (WebCore::HTMLElementStack::ElementRecord::~ElementRecord): |
|
12460 (WebCore::HTMLElementStack::ElementRecord::replaceElement): |
|
12461 (WebCore::HTMLElementStack::ElementRecord::isAbove): |
|
12462 - Added for debugging. |
|
12463 (WebCore::HTMLElementStack::pushHTMLHtmlElement): |
|
12464 (WebCore::HTMLElementStack::insertAbove): |
|
12465 - Needed for the adoption agency. |
|
12466 (WebCore::HTMLElementStack::topRecord): |
|
12467 (WebCore::HTMLElementStack::bottom): |
|
12468 (WebCore::HTMLElementStack::removeHTMLHeadElement): |
|
12469 (WebCore::HTMLElementStack::remove): |
|
12470 (WebCore::HTMLElementStack::find): |
|
12471 (WebCore::HTMLElementStack::topmost): |
|
12472 (WebCore::HTMLElementStack::contains): |
|
12473 (WebCore::HTMLElementStack::htmlElement): |
|
12474 (WebCore::HTMLElementStack::headElement): |
|
12475 (WebCore::HTMLElementStack::bodyElement): |
|
12476 (WebCore::HTMLElementStack::pushCommon): |
|
12477 (WebCore::HTMLElementStack::removeNonTopCommon): |
|
12478 - Fix the name to match top/bottom. |
|
12479 * html/HTMLElementStack.h: |
|
12480 (WebCore::HTMLElementStack::ElementRecord::element): |
|
12481 (WebCore::HTMLElementStack::ElementRecord::next): |
|
12482 (WebCore::HTMLElementStack::ElementRecord::releaseNext): |
|
12483 (WebCore::HTMLElementStack::ElementRecord::setNext): |
|
12484 * html/HTMLFormattingElementList.cpp: |
|
12485 (WebCore::HTMLFormattingElementList::closestElementInScopeWithName): |
|
12486 (WebCore::HTMLFormattingElementList::contains): |
|
12487 (WebCore::HTMLFormattingElementList::find): |
|
12488 (WebCore::HTMLFormattingElementList::remove): |
|
12489 * html/HTMLFormattingElementList.h: |
|
12490 (WebCore::HTMLFormattingElementList::isEmpty): |
|
12491 (WebCore::HTMLFormattingElementList::size): |
|
12492 * html/HTMLTreeBuilder.cpp: |
|
12493 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12494 (WebCore::HTMLTreeBuilder::furthestBlockForFormattingElement): |
|
12495 - Part of the Adoption Agency algorithm. |
|
12496 (WebCore::HTMLTreeBuilder::findFosterParentFor): |
|
12497 - Used to move mis-nested content out of tables. |
|
12498 This doesn't seem to work quite right yet. |
|
12499 (WebCore::HTMLTreeBuilder::reparentChildren): |
|
12500 (WebCore::HTMLTreeBuilder::callTheAdoptionAgency): |
|
12501 - The ridiculously long/complicated adoption agency algorithm from HTML5. |
|
12502 (WebCore::HTMLTreeBuilder::processEndTag): |
|
12503 * html/HTMLTreeBuilder.h: |
|
12504 |
|
12505 2010-07-04 Justin Schuh <jschuh@chromium.org> |
|
12506 |
|
12507 Reviewed by Darin Adler. |
|
12508 |
|
12509 Remove custom src bindings for HTMLFrameElement and HTMLIFrameElement |
|
12510 https://bugs.webkit.org/show_bug.cgi?id=41578 |
|
12511 |
|
12512 Remove bindings obsoleted by: http://trac.webkit.org/changeset/59866 |
|
12513 No new tests because behavior is not changed. |
|
12514 |
|
12515 * Android.jscbindings.mk: |
|
12516 * Android.v8bindings.mk: |
|
12517 * CMakeLists.txt: |
|
12518 * GNUmakefile.am: |
|
12519 * WebCore.gypi: |
|
12520 * WebCore.pro: |
|
12521 * WebCore.vcproj/WebCore.vcproj: |
|
12522 * WebCore.xcodeproj/project.pbxproj: |
|
12523 * bindings/js/JSBindingsAllInOne.cpp: |
|
12524 * bindings/js/JSHTMLFrameElementCustom.cpp: |
|
12525 * bindings/js/JSHTMLIFrameElementCustom.cpp: Removed. |
|
12526 * bindings/v8/custom/V8HTMLFrameElementCustom.cpp: |
|
12527 * bindings/v8/custom/V8HTMLIFrameElementCustom.cpp: Removed. |
|
12528 * html/HTMLFrameElement.idl: |
|
12529 * html/HTMLIFrameElement.idl: |
|
12530 |
|
12531 2010-07-03 Adam Barth <abarth@webkit.org> |
|
12532 |
|
12533 Reviewed by Maciej Stachowiak. |
|
12534 |
|
12535 Implement AfterAfterFramesetMode |
|
12536 https://bugs.webkit.org/show_bug.cgi?id=41561 |
|
12537 |
|
12538 This mode is almost unobservable. The main way to observe it seems to |
|
12539 be seeing where comment nodes get attached to the DOM. |
|
12540 |
|
12541 * html/HTMLTreeBuilder.cpp: |
|
12542 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12543 (WebCore::HTMLTreeBuilder::processEndTag): |
|
12544 (WebCore::HTMLTreeBuilder::processComment): |
|
12545 (WebCore::HTMLTreeBuilder::processCharacter): |
|
12546 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
12547 |
|
12548 2010-07-03 Zhenyao Mo <zmo@google.com> |
|
12549 |
|
12550 Reviewed by Dimitri Glazkov. |
|
12551 |
|
12552 WebGLRenderingContext::vertexAttrib* leads to possible out-of-range vector member visit |
|
12553 https://bugs.webkit.org/show_bug.cgi?id=41572 |
|
12554 |
|
12555 * html/canvas/WebGLRenderingContext.cpp: Fix the out-of-range vector member visit, also refactor the code. |
|
12556 (WebCore::WebGLRenderingContext::vertexAttrib1f): |
|
12557 (WebCore::WebGLRenderingContext::vertexAttrib1fv): |
|
12558 (WebCore::WebGLRenderingContext::vertexAttrib2f): |
|
12559 (WebCore::WebGLRenderingContext::vertexAttrib2fv): |
|
12560 (WebCore::WebGLRenderingContext::vertexAttrib3f): |
|
12561 (WebCore::WebGLRenderingContext::vertexAttrib3fv): |
|
12562 (WebCore::WebGLRenderingContext::vertexAttrib4f): |
|
12563 (WebCore::WebGLRenderingContext::vertexAttrib4fv): |
|
12564 (WebCore::WebGLRenderingContext::vertexAttribfImpl): |
|
12565 (WebCore::WebGLRenderingContext::vertexAttribfvImpl): |
|
12566 * html/canvas/WebGLRenderingContext.h: Helper function declaration. |
|
12567 |
|
12568 2010-07-03 Jeremy Orlow <jorlow@chromium.org> |
|
12569 |
|
12570 Ugh. Have to put the destructor in the .h file since the .ccp isn't compiled yet. |
|
12571 |
|
12572 * storage/IDBKey.h: |
|
12573 (WebCore::IDBKey::~IDBKey): |
|
12574 |
|
12575 2010-07-03 Jeremy Orlow <jorlow@chromium.org> |
|
12576 |
|
12577 Build fix. Forgot destructor. |
|
12578 |
|
12579 * storage/IDBKey.cpp: |
|
12580 (WebCore::IDBKey::~IDBKey): |
|
12581 |
|
12582 2010-06-26 Jeremy Orlow <jorlow@chromium.org> |
|
12583 |
|
12584 Reviewed by Dumitru Daniliuc. |
|
12585 |
|
12586 Support for keys and in-memory storage for IndexedDB |
|
12587 https://bugs.webkit.org/show_bug.cgi?id=41252 |
|
12588 |
|
12589 It'll take some time to get data persistence working for IndexedDB, |
|
12590 so until then, we'll just store everything in an in memory tree. |
|
12591 The tree uses WTF::AVLTree and is a template so that it can be used by |
|
12592 object stores (IDBKey -> SerializedScriptValue) and indexes (IDBKey -> |
|
12593 IDBKey). This class will be used in a subsequent patch. |
|
12594 |
|
12595 Also add an IDBKey type that represents one of these keys. We use a |
|
12596 custom toJS function in a way similar to IDBAny to convert from WebCore |
|
12597 to a JS value. For converting the other way, we have to teach the code |
|
12598 generators what to do (unfortunately). This is done in a way similar |
|
12599 to serialized script value. Unlike serialized script value, IDBKey is |
|
12600 in WebCore and only a helper function is JS engine specific. |
|
12601 |
|
12602 This code is not accessable from layout tests. (Will fix in |
|
12603 https://bugs.webkit.org/show_bug.cgi?id=41250) The bindings tests |
|
12604 show us that the generated bindings are what we expect. |
|
12605 |
|
12606 * ForwardingHeaders/wtf/AVLTree.h: Added. |
|
12607 * bindings/js/IDBBindingUtilities.cpp: Added. |
|
12608 (WebCore::createIDBKeyFromValue): |
|
12609 * bindings/js/IDBBindingUtilities.h: Added. |
|
12610 * bindings/js/JSIDBKeyCustom.cpp: Added. |
|
12611 (WebCore::toJS): |
|
12612 * bindings/scripts/CodeGeneratorJS.pm: |
|
12613 * bindings/scripts/CodeGeneratorV8.pm: |
|
12614 * bindings/scripts/test/CPP/WebDOMTestObj.cpp: |
|
12615 (WebDOMTestObj::idbKey): |
|
12616 * bindings/scripts/test/CPP/WebDOMTestObj.h: |
|
12617 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: |
|
12618 (webkit_dom_test_obj_idb_key): |
|
12619 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: |
|
12620 * bindings/scripts/test/JS/JSTestObj.cpp: |
|
12621 (WebCore::): |
|
12622 (WebCore::jsTestObjPrototypeFunctionIdbKey): |
|
12623 * bindings/scripts/test/JS/JSTestObj.h: |
|
12624 * bindings/scripts/test/ObjC/DOMTestObj.h: |
|
12625 * bindings/scripts/test/ObjC/DOMTestObj.mm: |
|
12626 (-[DOMTestObj idbKey:]): |
|
12627 * bindings/scripts/test/TestObj.idl: |
|
12628 * bindings/scripts/test/V8/V8TestObj.cpp: |
|
12629 (WebCore::TestObjInternal::idbKeyCallback): |
|
12630 (WebCore::): |
|
12631 * bindings/v8/IDBBindingUtilities.cpp: Added. |
|
12632 (WebCore::createIDBKeyFromValue): |
|
12633 * bindings/v8/IDBBindingUtilities.h: Added. |
|
12634 * bindings/v8/custom/V8IDBKeyCustom.cpp: Added. |
|
12635 (WebCore::toV8): |
|
12636 * storage/IDBCallbacks.h: |
|
12637 * storage/IDBKey.cpp: Added. |
|
12638 (WebCore::IDBKey::IDBKey): |
|
12639 (WebCore::IDBKey::~IDBKey): |
|
12640 * storage/IDBKey.h: Added. |
|
12641 (WebCore::IDBKey::create): |
|
12642 (WebCore::IDBKey::): |
|
12643 (WebCore::IDBKey::type): |
|
12644 (WebCore::IDBKey::string): |
|
12645 (WebCore::IDBKey::number): |
|
12646 * storage/IDBKey.idl: Added. |
|
12647 * storage/IDBKeyTree.h: Added. |
|
12648 (WebCore::IDBKeyTree::create): |
|
12649 (WebCore::IDBKeyTree::AVLTreeAbstractor::get_less): |
|
12650 (WebCore::IDBKeyTree::AVLTreeAbstractor::set_less): |
|
12651 (WebCore::IDBKeyTree::AVLTreeAbstractor::get_greater): |
|
12652 (WebCore::IDBKeyTree::AVLTreeAbstractor::set_greater): |
|
12653 (WebCore::IDBKeyTree::AVLTreeAbstractor::get_balance_factor): |
|
12654 (WebCore::IDBKeyTree::AVLTreeAbstractor::set_balance_factor): |
|
12655 (WebCore::IDBKeyTree::AVLTreeAbstractor::null): |
|
12656 (WebCore::IDBKeyTree::AVLTreeAbstractor::compare_key_node): |
|
12657 (WebCore::IDBKeyTree::AVLTreeAbstractor::compare_node_node): |
|
12658 (WebCore::::IDBKeyTree): |
|
12659 (WebCore::::~IDBKeyTree): |
|
12660 (WebCore::::AVLTreeAbstractor::compare_key_key): |
|
12661 (WebCore::::get): |
|
12662 (WebCore::::insert): |
|
12663 (WebCore::::remove): |
|
12664 |
|
12665 2010-07-03 Jon Honeycutt <jhoneycutt@apple.com> |
|
12666 |
|
12667 The missing plug-in indicator should be clickable |
|
12668 |
|
12669 https://bugs.webkit.org/show_bug.cgi?id=41550 |
|
12670 <rdar://problem/8132162> |
|
12671 |
|
12672 From an original patch by Kevin Decker. |
|
12673 |
|
12674 Reviewed by Darin Adler. |
|
12675 |
|
12676 * html/HTMLPlugInElement.cpp: |
|
12677 (WebCore::HTMLPlugInElement::defaultEventHandler): |
|
12678 If the renderer is a RenderEmbeddedWidget showing the missing plug-in |
|
12679 indicator, and the event is a click even, call the ChromeClient's |
|
12680 missingPluginButtonClicked() function. |
|
12681 |
|
12682 * page/ChromeClient.h: |
|
12683 (WebCore::ChromeClient::missingPluginButtonClicked): |
|
12684 Declare missingPluginButtonClicked(), and stub the default |
|
12685 implementation. |
|
12686 |
|
12687 * rendering/RenderEmbeddedObject.cpp: |
|
12688 (WebCore::RenderEmbeddedObject::RenderEmbeddedObject): |
|
12689 Initialize m_showsMissingPluginIndicator. |
|
12690 (WebCore::RenderEmbeddedObject::setShowsMissingPluginIndicator): |
|
12691 Assert that we're not currently showing any replacement text. Set |
|
12692 m_showsMissingPluginIndicator after setting the replacement text. |
|
12693 (WebCore::RenderEmbeddedObject::setShowsCrashedPluginIndicator): |
|
12694 Add the same assert as above. |
|
12695 |
|
12696 * rendering/RenderEmbeddedObject.h: |
|
12697 (WebCore::RenderEmbeddedObject::showsMissingPluginIndicator): |
|
12698 Getter for m_showsMissingPluginIndicator. |
|
12699 |
|
12700 2010-07-02 Oliver Hunt <oliver@apple.com> |
|
12701 |
|
12702 Reviewed by Geoffrey Garen. |
|
12703 |
|
12704 Move BOM handling out of the lexer and parser |
|
12705 https://bugs.webkit.org/show_bug.cgi?id=41539 |
|
12706 |
|
12707 Update WebCore to ensure that SourceProviders don't |
|
12708 produce strings with BOMs in them. |
|
12709 |
|
12710 * bindings/js/ScriptSourceProvider.h: |
|
12711 (WebCore::ScriptSourceProvider::ScriptSourceProvider): |
|
12712 * bindings/js/StringSourceProvider.h: |
|
12713 (WebCore::StringSourceProvider::StringSourceProvider): |
|
12714 * loader/CachedScript.cpp: |
|
12715 (WebCore::CachedScript::CachedScript): |
|
12716 (WebCore::CachedScript::script): |
|
12717 * loader/CachedScript.h: |
|
12718 (WebCore::CachedScript::): |
|
12719 CachedScript now stores decoded data with the BOMs stripped, |
|
12720 and caches the presence of BOMs across memory purges. |
|
12721 |
|
12722 2010-07-03 Xan Lopez <xlopez@igalia.com> |
|
12723 |
|
12724 Include DerivedSources/WebCore before DerivedSources/ |
|
12725 |
|
12726 Recently DerivedSources generation was changed, with some files no |
|
12727 longer being generated in the toplevel DerivedSources |
|
12728 directory. Since that directory is first in the -I flags the build |
|
12729 can be broken in some cases by including old files unless a 'make |
|
12730 clean' is done. Change the -I order to fix the build in the 32 bit |
|
12731 Release bot. |
|
12732 |
|
12733 * GNUmakefile.am: |
|
12734 |
|
12735 2010-07-03 Erik Arvidsson <arv@chromium.org> |
|
12736 |
|
12737 Reviewed by Ojan Vafai. |
|
12738 |
|
12739 Fix issue where a contextmenu event was reporting the wrong target if |
|
12740 the context menu was shown due to pressing the context menu key |
|
12741 (or Shift+F10). |
|
12742 |
|
12743 Split sendContextMenuForEvent into one case for keyboard events and use |
|
12744 that when the contextmenu event should be dispatched due to a keypress. |
|
12745 |
|
12746 For the keboard case we now use the focused node as the target for the |
|
12747 event and use the clipped rect to determine the position of the menu. |
|
12748 |
|
12749 https://bugs.webkit.org/show_bug.cgi?id=38129 |
|
12750 |
|
12751 Use manual test since DRT does not handle context menu keys. |
|
12752 |
|
12753 * manual-tests/win/contextmenu-key.html: Added. |
|
12754 * page/EventHandler.cpp: |
|
12755 (WebCore::EventHandler::sendContextMenuEvent): |
|
12756 (WebCore::EventHandler::sendContextMenuEventForKey): |
|
12757 * page/EventHandler.h: |
|
12758 |
|
12759 2010-07-03 Dirk Schulze <krit@webkit.org> |
|
12760 |
|
12761 Unreviewed sort of XCode project file. |
|
12762 |
|
12763 * WebCore.xcodeproj/project.pbxproj: |
|
12764 |
|
12765 2010-07-03 Kwang Yul Seo <skyul@company100.net> |
|
12766 |
|
12767 Reviewed by Kent Tamura. |
|
12768 |
|
12769 [BREWMP] Port Widget |
|
12770 https://bugs.webkit.org/show_bug.cgi?id=41538 |
|
12771 |
|
12772 Make Widget a dummy class. WebKit Brew MP uses the full screen mode |
|
12773 and does not use the window system introduced in Brew MP. |
|
12774 |
|
12775 * platform/Widget.h: |
|
12776 * platform/brew/WidgetBrew.cpp: Added. |
|
12777 (WebCore::Widget::Widget): |
|
12778 (WebCore::Widget::~Widget): |
|
12779 (WebCore::Widget::frameRect): |
|
12780 (WebCore::Widget::setFrameRect): |
|
12781 (WebCore::Widget::setFocus): |
|
12782 (WebCore::Widget::setCursor): |
|
12783 (WebCore::Widget::show): |
|
12784 (WebCore::Widget::hide): |
|
12785 (WebCore::Widget::paint): |
|
12786 (WebCore::Widget::setIsSelected): |
|
12787 |
|
12788 2010-07-03 Adam Barth <abarth@webkit.org> |
|
12789 |
|
12790 Reviewed by Eric Seidel. |
|
12791 |
|
12792 Implement AfterFramesetMode |
|
12793 https://bugs.webkit.org/show_bug.cgi?id=41560 |
|
12794 |
|
12795 * html/HTMLTreeBuilder.cpp: |
|
12796 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12797 (WebCore::HTMLTreeBuilder::processEndTag): |
|
12798 (WebCore::HTMLTreeBuilder::processCharacter): |
|
12799 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
12800 |
|
12801 2010-07-02 Adam Barth <abarth@webkit.org> |
|
12802 |
|
12803 Reviewed by Eric Seidel. |
|
12804 |
|
12805 Implement InFramesetMode |
|
12806 https://bugs.webkit.org/show_bug.cgi?id=41559 |
|
12807 |
|
12808 Pretty straighforward. We still don't handle character tokens |
|
12809 correctly. |
|
12810 |
|
12811 * html/HTMLTreeBuilder.cpp: |
|
12812 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12813 (WebCore::HTMLTreeBuilder::processEndTag): |
|
12814 (WebCore::HTMLTreeBuilder::processCharacter): |
|
12815 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
12816 |
|
12817 2010-07-02 Adam Barth <abarth@webkit.org> |
|
12818 |
|
12819 Reviewed by Eric Seidel. |
|
12820 |
|
12821 Handle <frameset> InBody |
|
12822 https://bugs.webkit.org/show_bug.cgi?id=41558 |
|
12823 |
|
12824 Handling the <frameset> tag in the InBody mode is somewhat delicate. |
|
12825 |
|
12826 * html/HTMLElementStack.cpp: |
|
12827 (WebCore::HTMLElementStack::popHTMLBodyElement): |
|
12828 (WebCore::HTMLElementStack::popUntil): |
|
12829 (WebCore::HTMLElementStack::popCommon): |
|
12830 * html/HTMLElementStack.h: |
|
12831 * html/HTMLTreeBuilder.cpp: |
|
12832 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12833 |
|
12834 2010-07-02 Adam Barth <abarth@webkit.org> |
|
12835 |
|
12836 Reviewed by Eric Seidel. |
|
12837 |
|
12838 Special handling of <rp> and <rt> tags |
|
12839 https://bugs.webkit.org/show_bug.cgi?id=41557 |
|
12840 |
|
12841 So sayeth the spec. |
|
12842 |
|
12843 * html/HTMLTreeBuilder.cpp: |
|
12844 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12845 |
|
12846 2010-07-02 Adam Barth <abarth@webkit.org> |
|
12847 |
|
12848 Reviewed by Eric Seidel. |
|
12849 |
|
12850 Implement special optgroup processing |
|
12851 https://bugs.webkit.org/show_bug.cgi?id=41556 |
|
12852 |
|
12853 * html/HTMLTreeBuilder.cpp: |
|
12854 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12855 |
|
12856 2010-07-02 Adam Barth <abarth@webkit.org> |
|
12857 |
|
12858 Reviewed by Eric Seidel. |
|
12859 |
|
12860 Handle <image> in new parser |
|
12861 https://bugs.webkit.org/show_bug.cgi?id=41555 |
|
12862 |
|
12863 This patch is kind of goofy but apparently how the world works. |
|
12864 |
|
12865 * html/HTMLToken.h: |
|
12866 (WebCore::AtomicHTMLToken::setName): |
|
12867 * html/HTMLTreeBuilder.cpp: |
|
12868 (WebCore::HTMLTreeBuilder::processStartTag): |
|
12869 |
|
12870 2010-07-02 Kwang Yul Seo <skyul@company100.net> |
|
12871 |
|
12872 Reviewed by Alexey Proskuryakov. |
|
12873 |
|
12874 Remove extra semicolon at the end of HTMLTreeBuilder::attach |
|
12875 https://bugs.webkit.org/show_bug.cgi?id=41546 |
|
12876 |
|
12877 This is not critical, but the extra semicolon at the end of HTMLTreeBuilder::attach |
|
12878 causes a warning in RVCT. |
|
12879 |
|
12880 * html/HTMLTreeBuilder.h: |
|
12881 (WebCore::HTMLTreeBuilder::attach): |
|
12882 |
|
12883 2010-07-02 Tony Gentilcore <tonyg@chromium.org> |
|
12884 |
|
12885 Reviewed by Darin Adler. |
|
12886 |
|
12887 Performance::disconnectFrame() needs to disconnect its children |
|
12888 https://bugs.webkit.org/show_bug.cgi?id=41533 |
|
12889 |
|
12890 No new tests because no new functionality. |
|
12891 |
|
12892 * page/Performance.cpp: |
|
12893 (WebCore::Performance::disconnectFrame): |
|
12894 |
|
12895 2010-07-02 Luiz Agostini <luiz.agostini@openbossa.org> |
|
12896 |
|
12897 Reviewed by Sam Weinig. |
|
12898 |
|
12899 Checking if WTF_USE_JSC is defined before redefining it in config.h |
|
12900 https://bugs.webkit.org/show_bug.cgi?id=41530 |
|
12901 |
|
12902 * config.h: |
|
12903 |
|
12904 2010-07-02 Tony Gentilcore <tonyg@chromium.org> |
|
12905 |
|
12906 Reviewed by Dimitri Glazkov. |
|
12907 |
|
12908 Add vendor prefix to window.performance |
|
12909 https://bugs.webkit.org/show_bug.cgi?id=41525 |
|
12910 |
|
12911 No new tests because window.performance tests not landed yet. |
|
12912 |
|
12913 * page/DOMWindow.cpp: |
|
12914 (WebCore::DOMWindow::webkitPerformance): |
|
12915 * page/DOMWindow.h: |
|
12916 (WebCore::DOMWindow::optionalWebkitPerformance): |
|
12917 * page/DOMWindow.idl: |
|
12918 |
|
12919 2010-07-02 Zoltan Herczeg <zherczeg@webkit.org> |
|
12920 |
|
12921 Reviewed by Oliver Hunt. |
|
12922 |
|
12923 Minor fix: Diffuse constant is float (not integer) |
|
12924 https://bugs.webkit.org/show_bug.cgi?id=10412 |
|
12925 |
|
12926 * svg/SVGFEDiffuseLightingElement.cpp: |
|
12927 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute): |
|
12928 |
|
12929 2010-07-02 Martin Robinson <mrobinson@igalia.com> |
|
12930 |
|
12931 Unreviewed. |
|
12932 |
|
12933 Build fix for GTK+. Try to force a rebuild of the HTMLNames.h |
|
12934 file first by touching HTMLTagNames.in. |
|
12935 |
|
12936 * html/HTMLTagNames.in: |
|
12937 |
|
12938 2010-07-02 Andreas Kling <andreas.kling@nokia.com> |
|
12939 |
|
12940 Reviewed by Oliver Hunt. |
|
12941 |
|
12942 RGB colors should be clamped to the 0-255 range |
|
12943 https://bugs.webkit.org/show_bug.cgi?id=39482 |
|
12944 |
|
12945 Spec link: |
|
12946 http://www.whatwg.org/specs/web-apps/current-work/#colors |
|
12947 |
|
12948 Test: fast/canvas/canvas-color-clamping.html |
|
12949 |
|
12950 * css/CSSParser.cpp: |
|
12951 (WebCore::parseColorInt): |
|
12952 (WebCore::CSSParser::parseColor): |
|
12953 (WebCore::parseColorIntFromValue): |
|
12954 (WebCore::CSSParser::parseColorParameters): |
|
12955 |
|
12956 2010-07-02 Sheriff Bot <webkit.review.bot@gmail.com> |
|
12957 |
|
12958 Unreviewed, rolling out r62410. |
|
12959 http://trac.webkit.org/changeset/62410 |
|
12960 https://bugs.webkit.org/show_bug.cgi?id=41549 |
|
12961 |
|
12962 accursed last minute changes (Requested by olliej on #webkit). |
|
12963 |
|
12964 * bindings/js/ScriptSourceProvider.h: |
|
12965 (WebCore::ScriptSourceProvider::ScriptSourceProvider): |
|
12966 * bindings/js/StringSourceProvider.h: |
|
12967 (WebCore::StringSourceProvider::StringSourceProvider): |
|
12968 * loader/CachedScript.cpp: |
|
12969 (WebCore::CachedScript::CachedScript): |
|
12970 (WebCore::CachedScript::script): |
|
12971 * loader/CachedScript.h: |
|
12972 |
|
12973 2010-07-02 Martin Robinson <mrobinson@igalia.com> |
|
12974 |
|
12975 Unreviewed. |
|
12976 |
|
12977 Further Build fix for GTK+. Also include HTMLElementFactory.h in |
|
12978 the list of dependencies. |
|
12979 |
|
12980 * GNUmakefile.am: |
|
12981 |
|
12982 2010-07-02 Martin Robinson <mrobinson@igalia.com> |
|
12983 |
|
12984 Unreviewed. |
|
12985 |
|
12986 Build fix for GTK+. *Names.{cpp,h} targets should now include the |
|
12987 header files. Also adds the header files to the generated sources list. |
|
12988 |
|
12989 * GNUmakefile.am: |
|
12990 |
|
12991 2010-07-02 Dumitru Daniliuc <dumi@chromium.org> |
|
12992 |
|
12993 Reviewed by Darin Fisher. |
|
12994 |
|
12995 DB clean up. |
|
12996 https://bugs.webkit.org/show_bug.cgi?id=41404 |
|
12997 |
|
12998 1. Made all DatabaseTasks internal classes of Database and made |
|
12999 the Database methods called by those tasks private. |
|
13000 2. Removed the Database::stop{ed}() methods. |
|
13001 3. Removed the code that kept track of open databases from |
|
13002 ScriptExecutionContext (no longer needed). |
|
13003 4. Made minor changes to Database::closeImmediately() to make it |
|
13004 possible for DatabaseThread to call that method instead of |
|
13005 close(). |
|
13006 5. Minor fix to DatabaseTracker: addOpenDatabase() should call |
|
13007 OriginQuotaManager::addDatabase() if the origin quota manager |
|
13008 is not tracking this origin. |
|
13009 6. Removed Database::performPolicyChecks(). We already update the |
|
13010 DB size after each transaction, and we enforce a max size for |
|
13011 the DB at the beginning of each transaction. |
|
13012 |
|
13013 * dom/ScriptExecutionContext.cpp: |
|
13014 (WebCore::ScriptExecutionContext::stopDatabases): |
|
13015 * dom/ScriptExecutionContext.h: |
|
13016 (WebCore::ScriptExecutionContext::hasOpenDatabases): |
|
13017 * storage/Database.cpp: |
|
13018 (WebCore::Database::openDatabase): |
|
13019 (WebCore::Database::Database): |
|
13020 (WebCore::Database::markAsDeletedAndClose): |
|
13021 (WebCore::Database::close): |
|
13022 (WebCore::Database::closeImmediately): |
|
13023 * storage/Database.h: |
|
13024 * storage/DatabaseTask.cpp: |
|
13025 (WebCore::DatabaseTask::performTask): |
|
13026 (WebCore::Database::DatabaseOpenTask::DatabaseOpenTask): |
|
13027 (WebCore::Database::DatabaseOpenTask::doPerformTask): |
|
13028 (WebCore::Database::DatabaseOpenTask::debugTaskName): |
|
13029 (WebCore::Database::DatabaseCloseTask::DatabaseCloseTask): |
|
13030 (WebCore::Database::DatabaseCloseTask::doPerformTask): |
|
13031 (WebCore::Database::DatabaseCloseTask::debugTaskName): |
|
13032 (WebCore::Database::DatabaseTransactionTask::DatabaseTransactionTask): |
|
13033 (WebCore::Database::DatabaseTransactionTask::doPerformTask): |
|
13034 (WebCore::Database::DatabaseTransactionTask::debugTaskName): |
|
13035 (WebCore::Database::DatabaseTableNamesTask::DatabaseTableNamesTask): |
|
13036 (WebCore::Database::DatabaseTableNamesTask::doPerformTask): |
|
13037 (WebCore::Database::DatabaseTableNamesTask::debugTaskName): |
|
13038 * storage/DatabaseTask.h: |
|
13039 (WebCore::Database::DatabaseOpenTask::create): |
|
13040 (WebCore::Database::DatabaseCloseTask::create): |
|
13041 (WebCore::Database::DatabaseTransactionTask::create): |
|
13042 (WebCore::Database::DatabaseTableNamesTask::create): |
|
13043 * storage/DatabaseThread.cpp: |
|
13044 (WebCore::DatabaseThread::databaseThread): |
|
13045 * storage/DatabaseTracker.cpp: |
|
13046 (WebCore::DatabaseTracker::addOpenDatabase): |
|
13047 * storage/SQLTransaction.cpp: |
|
13048 (WebCore::SQLTransaction::executeSQL): |
|
13049 (WebCore::SQLTransaction::checkAndHandleClosedDatabase): |
|
13050 |
|
13051 2010-07-02 Oliver Hunt <oliver@apple.com> |
|
13052 |
|
13053 Reviewed by Geoffrey Garen. |
|
13054 |
|
13055 Move BOM handling out of the lexer and parser |
|
13056 https://bugs.webkit.org/show_bug.cgi?id=41539 |
|
13057 |
|
13058 Update WebCore to ensure that SourceProviders don't |
|
13059 produce strings with BOMs in them. |
|
13060 |
|
13061 * bindings/js/ScriptSourceProvider.h: |
|
13062 (WebCore::ScriptSourceProvider::ScriptSourceProvider): |
|
13063 * bindings/js/StringSourceProvider.h: |
|
13064 (WebCore::StringSourceProvider::StringSourceProvider): |
|
13065 * loader/CachedScript.cpp: |
|
13066 (WebCore::CachedScript::CachedScript): |
|
13067 (WebCore::CachedScript::script): |
|
13068 * loader/CachedScript.h: |
|
13069 (WebCore::CachedScript::): |
|
13070 CachedScript now stores decoded data with the BOMs stripped, |
|
13071 and caches the presence of BOMs across memory purges. |
|
13072 |
|
13073 2010-07-02 Sam Weinig <sam@webkit.org> |
|
13074 |
|
13075 Add missing symbol to exports file. |
|
13076 |
|
13077 * WebCore.base.exp: |
|
13078 |
|
13079 2010-07-02 Abhishek Arya <inferno@chromium.org> |
|
13080 |
|
13081 Reviewed by Darin Fisher. |
|
13082 |
|
13083 Remove the extra setFailed() call in JPEG decoder to prevent |
|
13084 re-using an already freed object. |
|
13085 https://bugs.webkit.org/show_bug.cgi?id=41487 |
|
13086 |
|
13087 Test: fast/images/large-size-image-crash.html |
|
13088 |
|
13089 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp: |
|
13090 (WebCore::JPEGImageReader::decode): |
|
13091 |
|
13092 2010-07-02 Peter Beverloo <peter@lvp-media.com> |
|
13093 |
|
13094 Reviewed by Maciej Stachowiak. |
|
13095 |
|
13096 Add the HTML5 <mark> element. Text content of the element will have |
|
13097 a yellow background color and black text. |
|
13098 |
|
13099 Test: fast/html/mark-element.html |
|
13100 Tests for <p> closing, phrasing child content and residual style. |
|
13101 |
|
13102 * css/html.css: |
|
13103 (mark): |
|
13104 * html/HTMLElement.cpp: |
|
13105 (WebCore::inlineTagList): |
|
13106 * html/HTMLTagNames.in: |
|
13107 * html/LegacyHTMLTreeBuilder.cpp: |
|
13108 (WebCore::LegacyHTMLTreeBuilder::getNode): |
|
13109 (WebCore::LegacyHTMLTreeBuilder::isInline): |
|
13110 (WebCore::LegacyHTMLTreeBuilder::isResidualStyleTag): |
|
13111 |
|
13112 2010-07-02 Zhenyao Mo <zmo@google.com> |
|
13113 |
|
13114 Reviewed by Dimitri Glazkov. |
|
13115 |
|
13116 Fix issues in boundary situations for WebGLRenderingContext::drawArrays/drawElements |
|
13117 https://bugs.webkit.org/show_bug.cgi?id=41473 |
|
13118 |
|
13119 * WebCore.gypi: Add CheckedInt.h. |
|
13120 * WebCore.xcodeproj/project.pbxproj: Add CheckedInt.h. |
|
13121 * html/canvas/CheckedInt.h: Added support of safe integer operations. |
|
13122 (mozilla::CheckedInt_internal::integer_type_manually_recorded_info::): |
|
13123 (mozilla::CheckedInt_internal::is_unsupported_type::): |
|
13124 (mozilla::CheckedInt_internal::): |
|
13125 (mozilla::CheckedInt_internal::integer_traits::): |
|
13126 (mozilla::CheckedInt_internal::integer_traits::min): |
|
13127 (mozilla::CheckedInt_internal::integer_traits::max): |
|
13128 (mozilla::CheckedInt_internal::has_sign_bit): |
|
13129 (mozilla::CheckedInt_internal::binary_complement): |
|
13130 (mozilla::CheckedInt_internal::is_in_range): |
|
13131 (mozilla::CheckedInt_internal::is_add_valid): |
|
13132 (mozilla::CheckedInt_internal::is_sub_valid): |
|
13133 (mozilla::CheckedInt_internal::is_mul_valid): |
|
13134 (mozilla::CheckedInt_internal::is_div_valid): |
|
13135 (mozilla::CheckedInt::CheckedInt): |
|
13136 (mozilla::CheckedInt::value): |
|
13137 (mozilla::CheckedInt::valid): |
|
13138 (mozilla::CheckedInt::operator -): |
|
13139 (mozilla::CheckedInt::operator ==): |
|
13140 (mozilla::CheckedInt::operator !=): |
|
13141 (mozilla::operator /): |
|
13142 (mozilla::cast_to_CheckedInt_impl::run): |
|
13143 (mozilla::): |
|
13144 (mozilla::cast_to_CheckedInt): |
|
13145 (mozilla::operator ==): |
|
13146 * html/canvas/WebGLRenderingContext.cpp: |
|
13147 (WebCore::WebGLRenderingContext::validateIndexArrayConservative): Fix a bug against 0-size buffer situation. |
|
13148 (WebCore::WebGLRenderingContext::drawArrays): Deal with overflows and count==0 situation. |
|
13149 (WebCore::WebGLRenderingContext::drawElements): Deal with count==0 situation. |
|
13150 |
|
13151 2010-07-02 Zhenyao Mo <zmo@google.com> |
|
13152 |
|
13153 Reviewed by Dimitri Glazkov. |
|
13154 |
|
13155 linkProgram should fail when vertex/fragment shaders are not both present |
|
13156 https://bugs.webkit.org/show_bug.cgi?id=41380 |
|
13157 |
|
13158 Test: fast/canvas/webgl/program-test.html |
|
13159 |
|
13160 * html/canvas/WebGLProgram.cpp: Add flag for link failure due to missing shaders. |
|
13161 (WebCore::WebGLProgram::WebGLProgram): |
|
13162 * html/canvas/WebGLProgram.h: Add interface for linkFailure flag. |
|
13163 (WebCore::WebGLProgram::isLinkFailureFlagSet): |
|
13164 (WebCore::WebGLProgram::setLinkFailureFlag): |
|
13165 * html/canvas/WebGLRenderingContext.cpp: |
|
13166 (WebCore::WebGLRenderingContext::getProgramParameter): Intercept when linkFailureFlag is set. |
|
13167 (WebCore::WebGLRenderingContext::linkProgram): Check if there are missing shaders and don't link if yes. |
|
13168 * html/canvas/WebGLShader.cpp: Cache shader type. |
|
13169 (WebCore::WebGLShader::WebGLShader): |
|
13170 * html/canvas/WebGLShader.h: Ditto. |
|
13171 (WebCore::WebGLShader::getType): |
|
13172 |
|
13173 2010-07-02 Qi Zhang <qi.2.zhang@nokia.com> |
|
13174 |
|
13175 Reviewed by Laszlo Gombos. |
|
13176 |
|
13177 [Qt] Failed on http://philip.html5.org/tests/canvas/suite/tests/2d.drawImage.negativesource.html |
|
13178 |
|
13179 Support negative width and height in canvas image draw |
|
13180 |
|
13181 * platform/graphics/FloatRect.h: |
|
13182 * platform/graphics/qt/FloatRectQt.cpp: |
|
13183 (WebCore::FloatRect::normalized): |
|
13184 * platform/graphics/qt/ImageQt.cpp: |
|
13185 (WebCore::BitmapImage::draw): |
|
13186 |
|
13187 2010-06-24 Dimitri Glazkov <dglazkov@chromium.org> |
|
13188 |
|
13189 Reviewed by Alexey Proskuryakov. |
|
13190 |
|
13191 REGRESSION: Enter does not trigger submit of forms when focus is on select. |
|
13192 https://bugs.webkit.org/show_bug.cgi?id=39532 |
|
13193 |
|
13194 Restore behavior where hitting "Enter" on a select element attempts to submit |
|
13195 form implicitly. |
|
13196 |
|
13197 * dom/SelectElement.cpp: |
|
13198 (WebCore::SelectElement::menuListDefaultEventHandler): Added htmlForm argument, |
|
13199 and attempting to submit implicitly. |
|
13200 (WebCore::SelectElement::listBoxDefaultEventHandler): Ditto. |
|
13201 (WebCore::SelectElement::defaultEventHandler): Plumbed through htmlForm argument. |
|
13202 * dom/SelectElement.h: Added htmlForm argument to method declaration. |
|
13203 * html/HTMLSelectElement.cpp: |
|
13204 (WebCore::HTMLSelectElement::defaultEventHandler): Changed to provide submitting form |
|
13205 as the argument. |
|
13206 |
|
13207 2010-07-02 Kent Tamura <tkent@chromium.org> |
|
13208 |
|
13209 Reviewed by Darin Fisher. |
|
13210 |
|
13211 [Chromium] Support indeterminate checkbox for Linux, and a small fix for Windows |
|
13212 https://bugs.webkit.org/show_bug.cgi?id=41508 |
|
13213 |
|
13214 * rendering/RenderThemeChromiumSkia.cpp: |
|
13215 (WebCore::RenderThemeChromiumSkia::paintCheckbox): |
|
13216 Use dedicated images for indeterminate states. |
|
13217 * rendering/RenderThemeChromiumWin.cpp: |
|
13218 (WebCore::RenderThemeChromiumWin::determineClassicState): |
|
13219 Do not use DFCS_CHECKED in a case of indeterminate state in |
|
13220 order to have consistent appearance of indeterminate checkbox. |
|
13221 |
|
13222 2010-07-02 Brent Fulgham <bfulgham@webkit.org> |
|
13223 |
|
13224 Reviewed by Gustavo Noronha Silva. |
|
13225 |
|
13226 Fixes https://bugs.webkit.org/show_bug.cgi?id=41323. |
|
13227 Provides an implementation of the 'squiggle' used for |
|
13228 bad grammar or spelling, based on the Pango logic used |
|
13229 by the GTK builds. |
|
13230 |
|
13231 No new tests. Covered by LayoutTests/editing/spelling |
|
13232 |
|
13233 * WebCore.vcproj/WebCore.vcproj: Add new file holding underline |
|
13234 implementation, set to build only for WinCairo port. |
|
13235 * platform/graphics/cairo/DrawErrorUnderline.cpp: Added. |
|
13236 (drawErrorUnderline): New file containing the squiggle drawing |
|
13237 logic based on the Pango implementation. Placed in its own file |
|
13238 to isolate licenses. |
|
13239 * platform/graphics/cairo/GraphicsContextCairo.cpp: |
|
13240 (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar): |
|
13241 Have WinCairo build call new 'drawErrorUnderline' implementation. |
|
13242 |
|
13243 2010-07-02 Martin Robinson <mrobinson@igalia.com> |
|
13244 |
|
13245 Reviewed by Gustavo Noronha Silva. |
|
13246 |
|
13247 [GTK] Separate DerivedSources per-project |
|
13248 https://bugs.webkit.org/show_bug.cgi?id=41109 |
|
13249 |
|
13250 Generate WebCore derived sources in <builddir>/DerivedSources/WebCore. |
|
13251 |
|
13252 * GNUmakefile.am: |
|
13253 |
|
13254 2010-07-02 Zhenyao Mo <zmo@google.com> |
|
13255 |
|
13256 Reviewed by Dimitri Glazkov. |
|
13257 |
|
13258 Implement OpenGL ES 2.0 semantics for vertex attribute 0 |
|
13259 https://bugs.webkit.org/show_bug.cgi?id=41300 |
|
13260 |
|
13261 Test: fast/canvas/webgl/gl-bind-attrib-location-test.html |
|
13262 fast/canvas/webgl/gl-vertex-attrib.html |
|
13263 |
|
13264 * html/canvas/WebGLProgram.cpp: |
|
13265 (WebCore::WebGLProgram::numActiveAttribLocations): const. |
|
13266 (WebCore::WebGLProgram::getActiveAttribLocation): const. |
|
13267 (WebCore::WebGLProgram::isUsingVertexAttrib0): Determine whether vertex attrib 0 is used by the program. |
|
13268 * html/canvas/WebGLProgram.h: Declare isUsingVertexAttrib0. |
|
13269 * html/canvas/WebGLRenderingContext.cpp: |
|
13270 (WebCore::WebGLRenderingContext::WebGLRenderingContext): Deal with vertex attrib 0. |
|
13271 (WebCore::WebGLRenderingContext::disableVertexAttribArray): Ditto. |
|
13272 (WebCore::WebGLRenderingContext::drawArrays): Ditto. |
|
13273 (WebCore::WebGLRenderingContext::drawElements): Ditto. |
|
13274 (WebCore::WebGLRenderingContext::getVertexAttrib): Use cached value instead of calling glGetVertexAtrtrib. |
|
13275 (WebCore::WebGLRenderingContext::vertexAttrib1f): Validate input, deal with vertex attrib 0. |
|
13276 (WebCore::WebGLRenderingContext::vertexAttrib1fv): Ditto. |
|
13277 (WebCore::WebGLRenderingContext::vertexAttrib2f): Ditto. |
|
13278 (WebCore::WebGLRenderingContext::vertexAttrib2fv): Ditto. |
|
13279 (WebCore::WebGLRenderingContext::vertexAttrib3f): Ditto. |
|
13280 (WebCore::WebGLRenderingContext::vertexAttrib3fv): Ditto. |
|
13281 (WebCore::WebGLRenderingContext::vertexAttrib4f): Ditto. |
|
13282 (WebCore::WebGLRenderingContext::vertexAttrib4fv): Ditto. |
|
13283 (WebCore::WebGLRenderingContext::vertexAttribPointer): Ditto. |
|
13284 (WebCore::WebGLRenderingContext::handleNPOTTextures): Move isGLES2Compliant() to caller. |
|
13285 (WebCore::WebGLRenderingContext::vertexAttribImpl): Helper for vertexAttribNfv. |
|
13286 (WebCore::WebGLRenderingContext::initVertexAttrib0): Initialize vertex attrib 0. |
|
13287 (WebCore::WebGLRenderingContext::simulateVertexAttrib0): Simulate vertex attrib 0. |
|
13288 (WebCore::WebGLRenderingContext::restoreStatesAfterVertexAttrib0Simulation): Restore states after simulating vertex attrib 0. |
|
13289 * html/canvas/WebGLRenderingContext.h: |
|
13290 (WebCore::WebGLRenderingContext::VertexAttribState::VertexAttribState): Tracking full vertex attrib states. |
|
13291 (WebCore::WebGLRenderingContext::VertexAttribState::initValue): Init value to [0,0,0,1]. |
|
13292 |
|
13293 2010-07-02 Zhenyao Mo <zmo@google.com> |
|
13294 |
|
13295 Reviewed by Dimitri Glazkov. |
|
13296 |
|
13297 Need to validate the size of the incoming arrays for uniform* functions |
|
13298 https://bugs.webkit.org/show_bug.cgi?id=41383 |
|
13299 |
|
13300 * html/canvas/WebGLRenderingContext.cpp: Validate input array size. |
|
13301 (WebCore::WebGLRenderingContext::uniform1fv): |
|
13302 (WebCore::WebGLRenderingContext::uniform1iv): |
|
13303 (WebCore::WebGLRenderingContext::uniform2fv): |
|
13304 (WebCore::WebGLRenderingContext::uniform2iv): |
|
13305 (WebCore::WebGLRenderingContext::uniform3fv): |
|
13306 (WebCore::WebGLRenderingContext::uniform3iv): |
|
13307 (WebCore::WebGLRenderingContext::uniform4fv): |
|
13308 (WebCore::WebGLRenderingContext::uniform4iv): |
|
13309 (WebCore::WebGLRenderingContext::uniformMatrix2fv): |
|
13310 (WebCore::WebGLRenderingContext::uniformMatrix3fv): |
|
13311 (WebCore::WebGLRenderingContext::uniformMatrix4fv): |
|
13312 (WebCore::WebGLRenderingContext::validateUniformParameters): |
|
13313 (WebCore::WebGLRenderingContext::validateUniformMatrixParameters): |
|
13314 * html/canvas/WebGLRenderingContext.h: Add helper functions. |
|
13315 |
|
13316 2010-07-02 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> |
|
13317 |
|
13318 Reviewed by Simon Hausmann. |
|
13319 |
|
13320 [Qt] Canvas arcTo() should draw straight line to p1 if p0, p1 and p2 are collinear |
|
13321 |
|
13322 The implementation of PathQt's addArcTo() was not float-safe and also had |
|
13323 a case where it drew an 'infinite' line, which is not part of the spec. |
|
13324 |
|
13325 http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-arcto |
|
13326 |
|
13327 We now use qFuzzyCompare() in both cases. The method isPointOnPathBorder() |
|
13328 also had the same problem, and was refactored a bit in the process of fixing |
|
13329 the bug. |
|
13330 |
|
13331 Initial patch by Andreas Kling. |
|
13332 |
|
13333 https://bugs.webkit.org/show_bug.cgi?id=41412 |
|
13334 |
|
13335 * platform/graphics/qt/PathQt.cpp: |
|
13336 |
|
13337 2010-07-02 Yury Semikhatsky <yurys@chromium.org> |
|
13338 |
|
13339 Reviewed by Pavel Feldman. |
|
13340 |
|
13341 [v8] Web Inspector: inspected page crashes on attempt to change iframe's src attribute |
|
13342 https://bugs.webkit.org/show_bug.cgi?id=41511 |
|
13343 |
|
13344 Tests: fast/events/popup-blocked-from-fake-user-gesture.html |
|
13345 http/tests/inspector/change-iframe-src.html |
|
13346 |
|
13347 * bindings/v8/ScriptController.cpp: |
|
13348 (WebCore::ScriptController::processingUserGesture): use V8Proxy from the ScriptController instead of one |
|
13349 from the call stack. Get event directly from hidden property to avoid unnecessary checks. |
|
13350 * bindings/v8/V8AbstractEventListener.cpp: |
|
13351 (WebCore::V8AbstractEventListener::invokeEventHandler): |
|
13352 * bindings/v8/V8HiddenPropertyName.h: |
|
13353 * bindings/v8/custom/V8DOMWindowCustom.cpp: |
|
13354 (WebCore::V8DOMWindow::eventAccessorGetter): |
|
13355 (WebCore::V8DOMWindow::eventAccessorSetter): |
|
13356 |
|
13357 2010-07-02 Adam Barth <abarth@webkit.org> |
|
13358 |
|
13359 Reviewed by Eric Seidel. |
|
13360 |
|
13361 Fix tokenization of <!-----> |
|
13362 https://bugs.webkit.org/show_bug.cgi?id=41505 |
|
13363 |
|
13364 I noticed this error when browsing through the HTML5lib failures. |
|
13365 We're adding an extra character to the comment token, contrary to what |
|
13366 the spec says to do. |
|
13367 |
|
13368 * html/HTMLTokenizer.cpp: |
|
13369 (WebCore::HTMLTokenizer::nextToken): |
|
13370 |
|
13371 2010-07-02 Adam Barth <abarth@webkit.org> |
|
13372 |
|
13373 Reviewed by Eric Seidel. |
|
13374 |
|
13375 Implement processFakePEndTagIfPInScope |
|
13376 https://bugs.webkit.org/show_bug.cgi?id=41503 |
|
13377 |
|
13378 This is a common idiom because <p> likes to close itself. |
|
13379 |
|
13380 * html/HTMLTreeBuilder.cpp: |
|
13381 (WebCore::HTMLTreeBuilder::processFakePEndTagIfPInScope): |
|
13382 (WebCore::HTMLTreeBuilder::processStartTag): |
|
13383 * html/HTMLTreeBuilder.h: |
|
13384 |
|
13385 2010-07-02 Adam Barth <abarth@webkit.org> |
|
13386 |
|
13387 Reviewed by Eric Seidel. |
|
13388 |
|
13389 Implement AfterAfterBodyMode |
|
13390 https://bugs.webkit.org/show_bug.cgi?id=41501 |
|
13391 |
|
13392 In implementing this mode, I noticed a bug in the character processing |
|
13393 of the AfterBodyMode, which I fixed by adding a break statement. Also, |
|
13394 to get one of the new tests to pass, I needed to implement one |
|
13395 notImplemented() in the InBody insertion mode. Yay for testing. |
|
13396 |
|
13397 * html/HTMLTreeBuilder.cpp: |
|
13398 (WebCore::HTMLTreeBuilder::processStartTag): |
|
13399 (WebCore::HTMLTreeBuilder::processEndTag): |
|
13400 (WebCore::HTMLTreeBuilder::processComment): |
|
13401 (WebCore::HTMLTreeBuilder::processCharacter): |
|
13402 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
13403 |
|
13404 2010-07-02 Sheriff Bot <webkit.review.bot@gmail.com> |
|
13405 |
|
13406 Unreviewed, rolling out r62371. |
|
13407 http://trac.webkit.org/changeset/62371 |
|
13408 https://bugs.webkit.org/show_bug.cgi?id=41515 |
|
13409 |
|
13410 "Breaks media/controls-drag-timebar.html on 32-Bit Release" |
|
13411 (Requested by philn-tp on #webkit). |
|
13412 |
|
13413 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: |
|
13414 (WebCore::MediaPlayerPrivateGStreamer::maxTimeSeekable): |
|
13415 (WebCore::MediaPlayerPrivateGStreamer::updateStates): |
|
13416 |
|
13417 2010-06-28 Philippe Normand <pnormand@igalia.com> |
|
13418 |
|
13419 Reviewed by Xan Lopez. |
|
13420 |
|
13421 [GStreamer] can't seek past maxTimeLoaded value |
|
13422 https://bugs.webkit.org/show_bug.cgi?id=40526 |
|
13423 |
|
13424 Extended the seekable range to the whole media. This allows video |
|
13425 played with progressive download to be seeked past the current |
|
13426 buffered position. |
|
13427 |
|
13428 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: |
|
13429 (WebCore::MediaPlayerPrivateGStreamer::maxTimeSeekable): |
|
13430 (WebCore::MediaPlayerPrivateGStreamer::updateStates): |
|
13431 |
|
13432 2010-07-02 Adam Barth <abarth@webkit.org> |
|
13433 |
|
13434 Reviewed by Eric Seidel. |
|
13435 |
|
13436 Implement AfterBodyMode for HTML5 tree builder |
|
13437 https://bugs.webkit.org/show_bug.cgi?id=41500 |
|
13438 |
|
13439 In the coarse of implementing this state, I ran into an ASSERT in how |
|
13440 </br> tags where handled, which I fixed. Technically, that could be a |
|
13441 separate patch, but it seemed harmless to include it here (with tests). |
|
13442 |
|
13443 * html/HTMLTreeBuilder.cpp: |
|
13444 (WebCore::HTMLTreeBuilder::processStartTag): |
|
13445 (WebCore::HTMLTreeBuilder::processEndTag): |
|
13446 (WebCore::HTMLTreeBuilder::processComment): |
|
13447 (WebCore::HTMLTreeBuilder::processCharacter): |
|
13448 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
13449 (WebCore::HTMLTreeBuilder::insertCommentOnHTMLHtmlElement): |
|
13450 * html/HTMLTreeBuilder.h: |
|
13451 |
|
13452 2010-07-02 Adam Barth <abarth@webkit.org> |
|
13453 |
|
13454 Reviewed by Eric Seidel. |
|
13455 |
|
13456 Handle <base> and friends in AfterHeadMode |
|
13457 https://bugs.webkit.org/show_bug.cgi?id=41502 |
|
13458 |
|
13459 Implement notImplemented() per spec. |
|
13460 |
|
13461 * html/HTMLTreeBuilder.cpp: |
|
13462 (WebCore::HTMLTreeBuilder::processStartTag): |
|
13463 |
|
13464 2010-07-01 Oliver Hunt <oliver@apple.com> |
|
13465 |
|
13466 Build fix |
|
13467 |
|
13468 * dom/Document.h: |
|
13469 |
|
13470 2010-07-01 Oliver Hunt <oliver@apple.com> |
|
13471 |
|
13472 Reviewed by Maciej Stachowiak. |
|
13473 |
|
13474 Add a FixedArray template to encapsulate fixed length arrays |
|
13475 https://bugs.webkit.org/show_bug.cgi?id=41506 |
|
13476 |
|
13477 Add forwarding header, and replace a few fixed length arrays |
|
13478 with the new FixedArray type. |
|
13479 |
|
13480 * ForwardingHeaders/wtf/FixedArray.h: Added. |
|
13481 * dom/Document.h: |
|
13482 * platform/graphics/GlyphMetricsMap.h: |
|
13483 |
|
13484 2010-07-01 Simon Fraser <simon.fraser@apple.com> |
|
13485 |
|
13486 No review. |
|
13487 |
|
13488 Fix a link warning in 32-bit by not explicitly exporting WebCore::GraphicsLayer::syncCompositingStateForThisLayerOnly(). |
|
13489 |
|
13490 * WebCore.AcceleratedCompositing.exp: |
|
13491 |
|
13492 2010-07-01 Tony Gentilcore <tonyg@chromium.org> |
|
13493 |
|
13494 Reviewed by Dimitri Glazkov. |
|
13495 |
|
13496 Add window.performance.navigation namespace |
|
13497 https://bugs.webkit.org/show_bug.cgi?id=41442 |
|
13498 |
|
13499 Adds window.performance.navigation namespace consisting of ".type" |
|
13500 and ".redirectCount". As part of this change, I renmaed "NavigationTiming" |
|
13501 to just "Timing" to avoid confusion. |
|
13502 |
|
13503 No new tests because tests will be added in a subsequent patch when |
|
13504 functionality is added. |
|
13505 |
|
13506 * Android.mk: |
|
13507 * CMakeLists.txt: |
|
13508 * DerivedSources.cpp: |
|
13509 * DerivedSources.make: |
|
13510 * GNUmakefile.am: |
|
13511 * WebCore.gypi: |
|
13512 * WebCore.pri: |
|
13513 * WebCore.pro: |
|
13514 * WebCore.vcproj/WebCore.vcproj: |
|
13515 * WebCore.xcodeproj/project.pbxproj: |
|
13516 * page/Navigation.cpp: Added. |
|
13517 (WebCore::Navigation::Navigation): |
|
13518 (WebCore::Navigation::frame): |
|
13519 (WebCore::Navigation::disconnectFrame): |
|
13520 (WebCore::Navigation::type): |
|
13521 (WebCore::Navigation::redirectCount): |
|
13522 * page/Navigation.h: Added. |
|
13523 (WebCore::Navigation::create): |
|
13524 * page/Navigation.idl: Added. |
|
13525 * page/NavigationTiming.cpp: Removed. |
|
13526 * page/NavigationTiming.h: Removed. |
|
13527 * page/NavigationTiming.idl: Removed. |
|
13528 * page/Performance.cpp: |
|
13529 (WebCore::Performance::navigation): |
|
13530 (WebCore::Performance::timing): |
|
13531 * page/Performance.h: |
|
13532 * page/Performance.idl: |
|
13533 * page/Timing.cpp: Added. |
|
13534 (WebCore::Timing::Timing): |
|
13535 (WebCore::Timing::frame): |
|
13536 (WebCore::Timing::disconnectFrame): |
|
13537 (WebCore::Timing::navigationStart): |
|
13538 * page/Timing.h: Added. |
|
13539 (WebCore::Timing::create): |
|
13540 * page/Timing.idl: Added. |
|
13541 |
|
13542 2010-07-01 Daniel Cheng <dcheng@chromium.org> |
|
13543 |
|
13544 Reviewed by Jian Li. |
|
13545 |
|
13546 [chromium] Dragging a link triggers an assert when accessing event.dataTransfer.types |
|
13547 https://bugs.webkit.org/show_bug.cgi?id=41493 |
|
13548 |
|
13549 ClipboardChromium::writeURL violates ClipboardChromium's assumption that uriList will always |
|
13550 be non-empty if url is valid. |
|
13551 |
|
13552 No new tests. |
|
13553 |
|
13554 * platform/chromium/ClipboardChromium.cpp: |
|
13555 (WebCore::ClipboardChromium::writeURL): |
|
13556 |
|
13557 2010-07-01 Andreas Kling <andreas.kling@nokia.com> |
|
13558 |
|
13559 Reviewed by Tor Arne Vestbø. |
|
13560 |
|
13561 [Qt] Clamp color stops passed to QGradient to 1.0 |
|
13562 [https://bugs.webkit.org/show_bug.cgi?id=41484 |
|
13563 |
|
13564 Fixes an issue where color stops would be silently dropped from radial gradients. |
|
13565 |
|
13566 * platform/graphics/qt/GradientQt.cpp: |
|
13567 (WebCore::Gradient::platformGradient): |
|
13568 |
|
13569 2010-07-01 Eric Seidel <eric@webkit.org> |
|
13570 |
|
13571 Reviewed by Adam Barth. |
|
13572 |
|
13573 HTMLTokenizer should ASSERT that it never emits a null character |
|
13574 https://bugs.webkit.org/show_bug.cgi?id=41448 |
|
13575 |
|
13576 No functional change, thus no tests. These ASSERTs would have |
|
13577 caught the coding error which caused the trouble in bug 41436 |
|
13578 (which was fixed by bug 41439). |
|
13579 |
|
13580 * html/HTMLToken.h: |
|
13581 (WebCore::HTMLToken::beginStartTag): |
|
13582 (WebCore::HTMLToken::beginCharacter): |
|
13583 (WebCore::HTMLToken::beginDOCTYPE): |
|
13584 (WebCore::HTMLToken::appendToName): |
|
13585 (WebCore::HTMLToken::appendToComment): |
|
13586 (WebCore::HTMLToken::appendToAttributeName): |
|
13587 (WebCore::HTMLToken::appendToAttributeValue): |
|
13588 (WebCore::HTMLToken::appendToPublicIdentifier): |
|
13589 (WebCore::HTMLToken::appendToSystemIdentifier): |
|
13590 |
|
13591 2010-07-01 Andreas Kling <andreas.kling@nokia.com> |
|
13592 |
|
13593 Reviewed by Tor Arne Vestbø. |
|
13594 |
|
13595 Canvas: Don't paint with empty radial gradients |
|
13596 https://bugs.webkit.org/show_bug.cgi?id=41190 |
|
13597 |
|
13598 If a radial gradient has x0==x1 && y0==y1 && r0==r1, don't paint with it. |
|
13599 |
|
13600 * html/canvas/CanvasRenderingContext2D.cpp: |
|
13601 (WebCore::CanvasRenderingContext2D::fillRect): |
|
13602 * platform/graphics/Gradient.h: |
|
13603 (WebCore::Gradient::isZeroSize): |
|
13604 |
|
13605 2010-07-01 Tony Gentilcore <tonyg@chromium.org> |
|
13606 |
|
13607 Reviewed by Adam Barth. |
|
13608 |
|
13609 Add interface for network platform to pass up timing information |
|
13610 https://bugs.webkit.org/show_bug.cgi?id=41437 |
|
13611 |
|
13612 The Web Timing feature requires the network platform to expose detailed |
|
13613 timing information for the main resource. This patch adds that data to |
|
13614 the ResourceResponseBase. Since the 82 bytes of information is only |
|
13615 needed for the main resource, it is a RefPtr to avoid using the memory |
|
13616 for other resource types. |
|
13617 |
|
13618 No new tests because no new functionality. |
|
13619 |
|
13620 * GNUmakefile.am: |
|
13621 * WebCore.gypi: |
|
13622 * WebCore.pro: |
|
13623 * WebCore.vcproj/WebCore.vcproj: |
|
13624 * WebCore.xcodeproj/project.pbxproj: |
|
13625 * platform/network/ResourceLoadTiming.h: Added. |
|
13626 (WebCore::ResourceLoadTiming::create): |
|
13627 (WebCore::ResourceLoadTiming::deepCopy): |
|
13628 (WebCore::ResourceLoadTiming::operator==): |
|
13629 (WebCore::ResourceLoadTiming::operator!=): |
|
13630 (WebCore::ResourceLoadTiming::ResourceLoadTiming): |
|
13631 * platform/network/ResourceResponseBase.cpp: |
|
13632 (WebCore::ResourceResponseBase::adopt): |
|
13633 (WebCore::ResourceResponseBase::copyData): |
|
13634 (WebCore::ResourceResponseBase::resourceLoadTiming): |
|
13635 (WebCore::ResourceResponseBase::setResourceLoadTiming): |
|
13636 (WebCore::ResourceResponseBase::compare): |
|
13637 * platform/network/ResourceResponseBase.h: |
|
13638 |
|
13639 2010-07-01 Sheriff Bot <webkit.review.bot@gmail.com> |
|
13640 |
|
13641 Unreviewed, rolling out r62321. |
|
13642 http://trac.webkit.org/changeset/62321 |
|
13643 https://bugs.webkit.org/show_bug.cgi?id=41494 |
|
13644 |
|
13645 Broke the non-win builds. (Requested by dumi on #webkit). |
|
13646 |
|
13647 * dom/ScriptExecutionContext.cpp: |
|
13648 (WebCore::ScriptExecutionContext::addOpenDatabase): |
|
13649 (WebCore::ScriptExecutionContext::removeOpenDatabase): |
|
13650 (WebCore::ScriptExecutionContext::stopDatabases): |
|
13651 * dom/ScriptExecutionContext.h: |
|
13652 * storage/Database.cpp: |
|
13653 (WebCore::Database::openDatabase): |
|
13654 (WebCore::Database::Database): |
|
13655 (WebCore::Database::markAsDeletedAndClose): |
|
13656 (WebCore::ContextRemoveOpenDatabaseTask::create): |
|
13657 (WebCore::ContextRemoveOpenDatabaseTask::performTask): |
|
13658 (WebCore::ContextRemoveOpenDatabaseTask::isCleanupTask): |
|
13659 (WebCore::ContextRemoveOpenDatabaseTask::ContextRemoveOpenDatabaseTask): |
|
13660 (WebCore::Database::close): |
|
13661 (WebCore::Database::closeImmediately): |
|
13662 (WebCore::Database::stop): |
|
13663 (WebCore::Database::performPolicyChecks): |
|
13664 * storage/Database.h: |
|
13665 (WebCore::Database::): |
|
13666 (WebCore::Database::stopped): |
|
13667 * storage/DatabaseTask.cpp: |
|
13668 (WebCore::DatabaseTask::performTask): |
|
13669 (WebCore::DatabaseOpenTask::DatabaseOpenTask): |
|
13670 (WebCore::DatabaseOpenTask::doPerformTask): |
|
13671 (WebCore::DatabaseOpenTask::debugTaskName): |
|
13672 (WebCore::DatabaseCloseTask::DatabaseCloseTask): |
|
13673 (WebCore::DatabaseCloseTask::doPerformTask): |
|
13674 (WebCore::DatabaseCloseTask::debugTaskName): |
|
13675 (WebCore::DatabaseTransactionTask::DatabaseTransactionTask): |
|
13676 (WebCore::DatabaseTransactionTask::~DatabaseTransactionTask): |
|
13677 (WebCore::DatabaseTransactionTask::doPerformTask): |
|
13678 (WebCore::DatabaseTransactionTask::debugTaskName): |
|
13679 (WebCore::DatabaseTableNamesTask::DatabaseTableNamesTask): |
|
13680 (WebCore::DatabaseTableNamesTask::doPerformTask): |
|
13681 (WebCore::DatabaseTableNamesTask::debugTaskName): |
|
13682 * storage/DatabaseTask.h: |
|
13683 (WebCore::DatabaseOpenTask::create): |
|
13684 (WebCore::DatabaseCloseTask::create): |
|
13685 (WebCore::DatabaseTransactionTask::create): |
|
13686 (WebCore::DatabaseTableNamesTask::create): |
|
13687 * storage/DatabaseThread.cpp: |
|
13688 (WebCore::DatabaseThread::databaseThread): |
|
13689 * storage/DatabaseTracker.cpp: |
|
13690 (WebCore::DatabaseTracker::addOpenDatabase): |
|
13691 * storage/SQLTransaction.cpp: |
|
13692 (WebCore::SQLTransaction::executeSQL): |
|
13693 (WebCore::SQLTransaction::checkAndHandleClosedDatabase): |
|
13694 |
|
13695 2010-07-01 Xan Lopez <xlopez@igalia.com> |
|
13696 |
|
13697 Reviewed by Gustavo Noronha. |
|
13698 |
|
13699 [GTK] Stop using GdkRegion in 3.x mode |
|
13700 https://bugs.webkit.org/show_bug.cgi?id=41463 |
|
13701 |
|
13702 Make us compile without using GdkRegion, since it's gone from GTK+ |
|
13703 3.x. |
|
13704 |
|
13705 * platform/graphics/IntRect.h: |
|
13706 * platform/graphics/cairo/GraphicsContextCairo.cpp: |
|
13707 (WebCore::GraphicsContext::drawFocusRing): |
|
13708 * platform/graphics/gtk/FontGtk.cpp: |
|
13709 (WebCore::cairo_region_shrink): |
|
13710 (WebCore::Font::drawComplexText): |
|
13711 * platform/gtk/GtkPluginWidget.cpp: |
|
13712 (WebCore::GtkPluginWidget::paint): |
|
13713 * platform/gtk/RenderThemeGtk.h: |
|
13714 * platform/gtk/ScrollbarGtk.cpp: |
|
13715 (ScrollbarGtk::paint): |
|
13716 |
|
13717 2010-06-30 Dumitru Daniliuc <dumi@chromium.org> |
|
13718 |
|
13719 Reviewed by Darin Fisher. |
|
13720 |
|
13721 DB clean up. |
|
13722 https://bugs.webkit.org/show_bug.cgi?id=41404 |
|
13723 |
|
13724 1. Made all DatabaseTasks internal classes of Database and made |
|
13725 the Database methods called by those tasks private. |
|
13726 2. Removed the Database::stop{ed}() methods. |
|
13727 3. Removed the code that kept track of open databases from |
|
13728 ScriptExecutionContext (no longer needed). |
|
13729 4. Made minor changes to Database::closeImmediately() to make it |
|
13730 possible for DatabaseThread to call that method instead of |
|
13731 close(). |
|
13732 5. Minor fix to DatabaseTracker: addOpenDatabase() should call |
|
13733 OriginQuotaManager::addDatabase() if the origin quota manager |
|
13734 is not tracking this origin. |
|
13735 6. Removed Database::performPolicyChecks(). We already update the |
|
13736 DB size after each transaction, and we enforce a max size for |
|
13737 the DB at the beginning of each transaction. |
|
13738 |
|
13739 * dom/ScriptExecutionContext.cpp: |
|
13740 (WebCore::ScriptExecutionContext::stopDatabases): |
|
13741 * dom/ScriptExecutionContext.h: |
|
13742 (WebCore::ScriptExecutionContext::hasOpenDatabases): |
|
13743 * storage/Database.cpp: |
|
13744 (WebCore::Database::openDatabase): |
|
13745 (WebCore::Database::Database): |
|
13746 (WebCore::Database::markAsDeletedAndClose): |
|
13747 (WebCore::Database::close): |
|
13748 (WebCore::Database::closeImmediately): |
|
13749 * storage/Database.h: |
|
13750 * storage/DatabaseTask.cpp: |
|
13751 (WebCore::DatabaseTask::performTask): |
|
13752 (WebCore::Database::DatabaseOpenTask::DatabaseOpenTask): |
|
13753 (WebCore::Database::DatabaseOpenTask::doPerformTask): |
|
13754 (WebCore::Database::DatabaseOpenTask::debugTaskName): |
|
13755 (WebCore::Database::DatabaseCloseTask::DatabaseCloseTask): |
|
13756 (WebCore::Database::DatabaseCloseTask::doPerformTask): |
|
13757 (WebCore::Database::DatabaseCloseTask::debugTaskName): |
|
13758 (WebCore::Database::DatabaseTransactionTask::DatabaseTransactionTask): |
|
13759 (WebCore::Database::DatabaseTransactionTask::doPerformTask): |
|
13760 (WebCore::Database::DatabaseTransactionTask::debugTaskName): |
|
13761 (WebCore::Database::DatabaseTableNamesTask::DatabaseTableNamesTask): |
|
13762 (WebCore::Database::DatabaseTableNamesTask::doPerformTask): |
|
13763 (WebCore::Database::DatabaseTableNamesTask::debugTaskName): |
|
13764 * storage/DatabaseTask.h: |
|
13765 (WebCore::Database::DatabaseOpenTask::create): |
|
13766 (WebCore::Database::DatabaseCloseTask::create): |
|
13767 (WebCore::Database::DatabaseTransactionTask::create): |
|
13768 (WebCore::Database::DatabaseTableNamesTask::create): |
|
13769 * storage/DatabaseThread.cpp: |
|
13770 (WebCore::DatabaseThread::databaseThread): |
|
13771 * storage/DatabaseTracker.cpp: |
|
13772 (WebCore::DatabaseTracker::addOpenDatabase): |
|
13773 * storage/SQLTransaction.cpp: |
|
13774 (WebCore::SQLTransaction::executeSQL): |
|
13775 (WebCore::SQLTransaction::checkAndHandleClosedDatabase): |
|
13776 |
|
13777 2010-07-01 Kent Tamura <tkent@chromium.org> |
|
13778 |
|
13779 Reviewed by Darin Fisher. |
|
13780 |
|
13781 [Chromium] Support indeterminate checkbox for Windows |
|
13782 https://bugs.webkit.org/show_bug.cgi?id=41444 |
|
13783 |
|
13784 * rendering/RenderThemeChromiumWin.cpp: |
|
13785 (WebCore::RenderThemeChromiumWin::determineState): |
|
13786 Check isIndeterminate() and set an appropriate flag value. |
|
13787 |
|
13788 2010-07-01 Alexey Proskuryakov <ap@apple.com> |
|
13789 |
|
13790 Reviewed by Dan Bernstein. |
|
13791 |
|
13792 https://bugs.webkit.org/show_bug.cgi?id=41488 |
|
13793 <rdar://problem/7487420> Crash in SubresourceLoader::create when load is initiated from plug-in destructor |
|
13794 |
|
13795 Test: plugins/js-from-destroy.html |
|
13796 |
|
13797 * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::create): Null check active |
|
13798 document loader. |
|
13799 |
|
13800 2010-07-01 Andy Estes <aestes@apple.com> |
|
13801 |
|
13802 Reviewed by Darin Adler. |
|
13803 |
|
13804 <rdar://problem/8113003> Correctly fire beforeload events for images |
|
13805 added to the DOM using .innerHTML. |
|
13806 https://bugs.webkit.org/show_bug.cgi?id=40919 |
|
13807 |
|
13808 Test: fast/dom/beforeload/image-before-load-innerHTML.html |
|
13809 |
|
13810 * html/LegacyHTMLDocumentParser.cpp: |
|
13811 (WebCore::LegacyHTMLDocumentParser::write): Do not fire synchronous |
|
13812 image beforeload events immediately after parsing a document fragment. |
|
13813 Let the events fire later, giving the fragment time to potentially be |
|
13814 inserted into the document. |
|
13815 |
|
13816 2010-07-01 Andreas Kling <andreas.kling@nokia.com> |
|
13817 |
|
13818 Reviewed by Tor Arne Vestbø. |
|
13819 |
|
13820 Canvas: bezierCurveTo() and quadraticCurveTo() must ensure subpaths |
|
13821 https://bugs.webkit.org/show_bug.cgi?id=41192 |
|
13822 |
|
13823 If the current path is empty, bezierCurveTo() and quadraticCurveTo() will now |
|
13824 move to the (first) control point before adding the curve. |
|
13825 |
|
13826 Spec links: |
|
13827 http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-beziercurveto |
|
13828 http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-quadraticcurveto |
|
13829 |
|
13830 * html/canvas/CanvasRenderingContext2D.cpp: |
|
13831 (WebCore::CanvasRenderingContext2D::quadraticCurveTo): |
|
13832 (WebCore::CanvasRenderingContext2D::bezierCurveTo): |
|
13833 |
|
13834 2010-07-01 Andreas Kling <andreas.kling@nokia.com> |
|
13835 |
|
13836 Reviewed by Darin Adler. |
|
13837 |
|
13838 Canvas element cannot have negative width or height (HTML5 spec 4.8.11) |
|
13839 https://bugs.webkit.org/show_bug.cgi?id=39149 |
|
13840 |
|
13841 If assigned a negative value, it should default to 300 for width and 150 for height. |
|
13842 |
|
13843 Spec link: |
|
13844 http://www.whatwg.org/specs/web-apps/current-work/#attr-canvas-width |
|
13845 |
|
13846 Test: fast/canvas/canvas-negative-size.html |
|
13847 |
|
13848 * html/HTMLCanvasElement.cpp: |
|
13849 (WebCore::HTMLCanvasElement::reset): |
|
13850 |
|
13851 2010-07-01 Darin Adler <darin@apple.com> |
|
13852 |
|
13853 Reviewed by Steve Falkenburg. |
|
13854 |
|
13855 Turn on adoptRef assertion for TreeShared. |
|
13856 |
|
13857 * platform/TreeShared.h: Remove LOOSE_TREE_SHARED and all the ifdefs. |
|
13858 Actually, I used LOOSE_REF_COUNTED by accident in a few places, but |
|
13859 removing them all now. |
|
13860 |
|
13861 * rendering/ShadowElement.cpp: |
|
13862 (WebCore::ShadowBlockElement::create): Added adoptRef. This was a |
|
13863 storage leak before, probably recently introduced r61324. |
|
13864 (WebCore::ShadowInputElement::create): Ditto. |
|
13865 |
|
13866 2010-07-01 Xan Lopez <xlopez@igalia.com> |
|
13867 |
|
13868 Reviewed by Gustavo Noronha. |
|
13869 |
|
13870 Only include the geolocation IDL in the GObject DOM bindings set |
|
13871 if geolocation is enabled. |
|
13872 |
|
13873 * GNUmakefile.am: |
|
13874 |
|
13875 2010-07-01 Timothy Hatcher <timothy@apple.com> |
|
13876 |
|
13877 Provide a WebView preference to disable DNS prefetching. |
|
13878 |
|
13879 https://bugs.webkit.org/show_bug.cgi?id=28825 |
|
13880 rdar://problem/7181249 |
|
13881 |
|
13882 Reviewed by Darin Adler. |
|
13883 |
|
13884 * WebCore.base.exp: Added Settings::setDNSPrefetchingEnabled. |
|
13885 * dom/Document.cpp: |
|
13886 (WebCore::Document::initDNSPrefetch): Check settings->dnsPrefetchingEnabled(). |
|
13887 * page/Settings.cpp: |
|
13888 (WebCore::Settings::Settings): Set m_dnsPrefetchingEnabled to true. |
|
13889 (WebCore::Settings::setDNSPrefetchingEnabled): Added. Set m_dnsPrefetchingEnabled. |
|
13890 * page/Settings.h: |
|
13891 (WebCore::Settings::dnsPrefetchingEnabled): Added. Return m_dnsPrefetchingEnabled. |
|
13892 |
|
13893 2010-07-01 Simon Fraser <simon.fraser@apple.com> |
|
13894 |
|
13895 Reviewed by Darin Adler. |
|
13896 |
|
13897 Get accelerated compositing working with webkit2 |
|
13898 https://bugs.webkit.org/show_bug.cgi?id=41084 |
|
13899 |
|
13900 Step 2: add a method, syncCompositingStateForThisLayerOnly(), to GraphicsLayer to commit |
|
13901 batched changes non-recursively. This allows us to use GraphicsLayer in places where we |
|
13902 don't want to kick off a recursive commit of the entire tree. |
|
13903 |
|
13904 * platform/graphics/GraphicsLayer.h: |
|
13905 (WebCore::GraphicsLayer::syncCompositingStateForThisLayerOnly): |
|
13906 * platform/graphics/mac/GraphicsLayerCA.h: |
|
13907 * platform/graphics/mac/GraphicsLayerCA.mm: |
|
13908 (WebCore::GraphicsLayerCA::syncCompositingStateForThisLayerOnly): |
|
13909 * WebCore.AcceleratedCompositing.exp: Export the new method for use in WebKit2. |
|
13910 |
|
13911 2010-07-01 Simon Fraser <simon.fraser@apple.com> |
|
13912 |
|
13913 Reviewed by Sam Weinig. |
|
13914 |
|
13915 Get accelerated compositing working with webkit2 |
|
13916 https://bugs.webkit.org/show_bug.cgi?id=41084 |
|
13917 |
|
13918 Step 1: add a new .exp file for WebCore, which exports symbols only when USE(ACCELERATED_COMPOSITING) |
|
13919 is defined. |
|
13920 |
|
13921 Also export WebCore::FloatSize::FloatSize(WebCore::IntSize const&) from WebCore. |
|
13922 |
|
13923 * DerivedSources.make: |
|
13924 * WebCore.AcceleratedCompositing.exp: Added. |
|
13925 * WebCore.base.exp: |
|
13926 * WebCore.xcodeproj/project.pbxproj: |
|
13927 |
|
13928 2010-07-01 Alexey Proskuryakov <ap@apple.com> |
|
13929 |
|
13930 Reviewed by Darin Adler. |
|
13931 |
|
13932 <rdar://problem/8148656> <https://bugs.webkit.org/show_bug.cgi?id=41431> |
|
13933 REGRESSION (r49411): Various crashes due to JavaScript execution during plug-in destruction |
|
13934 |
|
13935 Test: plugins/write-xssauditor-from-destroy.html |
|
13936 |
|
13937 Fix specific known cases that also crash in same process case. I don't know if there is |
|
13938 any rule for when documentLoader should be checked for being null, it looks like a mess. |
|
13939 |
|
13940 * loader/FrameLoader.cpp: |
|
13941 (WebCore::FrameLoader::referrer): |
|
13942 * page/XSSAuditor.cpp: |
|
13943 (WebCore::XSSAuditor::findInRequest): |
|
13944 |
|
13945 2010-07-01 Andreas Kling <andreas.kling@nokia.com> |
|
13946 |
|
13947 Reviewed by Darin Adler. |
|
13948 |
|
13949 The HTML5 canvas 2d.drawImage.zerocanvas test does not pass |
|
13950 https://bugs.webkit.org/show_bug.cgi?id=40271 |
|
13951 |
|
13952 Throw INVALID_STATE_ERR when attempting to draw a canvas with zero width or height. |
|
13953 |
|
13954 Spec link: |
|
13955 http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-drawimage |
|
13956 |
|
13957 * bindings/js/JSCanvasRenderingContext2DCustom.cpp: |
|
13958 (WebCore::JSCanvasRenderingContext2D::drawImage): Call setDOMException after drawImage(canvas, x, y) |
|
13959 * html/canvas/CanvasRenderingContext2D.cpp: |
|
13960 (WebCore::CanvasRenderingContext2D::drawImage): |
|
13961 |
|
13962 2010-07-01 Andreas Kling <andreas.kling@nokia.com> |
|
13963 |
|
13964 Reviewed by Oliver Hunt. |
|
13965 |
|
13966 [Qt] Canvas: clip() should use non-zero winding rule |
|
13967 https://bugs.webkit.org/show_bug.cgi?id=41466 |
|
13968 |
|
13969 Use non-zero winding number rule when clipping a GraphicsContext from canvas. |
|
13970 Fixes appearance of the "pill" in the web inspector. |
|
13971 |
|
13972 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
13973 (WebCore::GraphicsContext::canvasClip): |
|
13974 |
|
13975 2010-07-01 Sheriff Bot <webkit.review.bot@gmail.com> |
|
13976 |
|
13977 Unreviewed, rolling out r62246. |
|
13978 http://trac.webkit.org/changeset/62246 |
|
13979 https://bugs.webkit.org/show_bug.cgi?id=41470 |
|
13980 |
|
13981 "Worker tests are broken in Chromium" (Requested by yurys on |
|
13982 #webkit). |
|
13983 |
|
13984 * bindings/v8/ScriptController.cpp: |
|
13985 (WebCore::ScriptController::processingUserGesture): |
|
13986 * bindings/v8/V8AbstractEventListener.cpp: |
|
13987 (WebCore::V8AbstractEventListener::invokeEventHandler): |
|
13988 * bindings/v8/V8HiddenPropertyName.h: |
|
13989 * bindings/v8/custom/V8DOMWindowCustom.cpp: |
|
13990 (WebCore::V8DOMWindow::eventAccessorGetter): |
|
13991 (WebCore::V8DOMWindow::eventAccessorSetter): |
|
13992 |
|
13993 2010-07-01 Andreas Kling <andreas.kling@nokia.com> |
|
13994 |
|
13995 Reviewed by Tor Arne Vestbø. |
|
13996 |
|
13997 Canvas: Exception erroneously thrown for drawImage() when image.complete=false |
|
13998 https://bugs.webkit.org/show_bug.cgi?id=33968 |
|
13999 |
|
14000 Do nothing in drawImage() if called with an image whose 'complete' |
|
14001 attribute is false, or a video whose readyState is either HAVE_NOTHING |
|
14002 or HAVE_METADATA. |
|
14003 |
|
14004 Spec link: |
|
14005 http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-drawimage |
|
14006 |
|
14007 Test: fast/canvas/canvas-drawImage-incomplete.html |
|
14008 |
|
14009 * html/canvas/CanvasRenderingContext2D.cpp: |
|
14010 (WebCore::CanvasRenderingContext2D::drawImage): |
|
14011 |
|
14012 2010-07-01 Justin Schuh <jschuh@chromium.org> |
|
14013 |
|
14014 Reviewed by Dan Bernstein. |
|
14015 |
|
14016 Prevent crash on counter destruction |
|
14017 https://bugs.webkit.org/show_bug.cgi?id=40032 |
|
14018 |
|
14019 Added counter destruction to RenderWidget::destroy() |
|
14020 |
|
14021 Test: fast/css/counters/destroy-counter-crash.html |
|
14022 |
|
14023 * rendering/RenderWidget.cpp: |
|
14024 (WebCore::RenderWidget::destroy): |
|
14025 |
|
14026 2010-07-01 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
14027 |
|
14028 Unreviewed build fix after r62215. |
|
14029 |
|
14030 No new functionality, so no new tests. |
|
14031 |
|
14032 * CMakeLists.txt: Add missing files and re-sort. |
|
14033 |
|
14034 2010-07-01 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> |
|
14035 |
|
14036 Reviewed by Kenneth Rohde Christiansen. |
|
14037 |
|
14038 [Qt] Remove an unneeded assert. |
|
14039 |
|
14040 This assert is triggered for example while showing the falling leaves demo. |
|
14041 GraphicsLayerQtImpl::toGraphicsLayerQtImpl asserts that its input |
|
14042 pointer is null. Looking at the uses of this method it seems like |
|
14043 it is expected to return null if a null pointer is given to it. |
|
14044 |
|
14045 * platform/graphics/qt/GraphicsLayerQt.cpp: |
|
14046 (WebCore::toGraphicsLayerQtImpl): |
|
14047 |
|
14048 2010-06-16 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> |
|
14049 |
|
14050 Reviewed by Simon Hausmann. |
|
14051 |
|
14052 [Qt] Fix qmake vcproj generation for QtWebKit. |
|
14053 |
|
14054 qmake use TARGET=/LIBS+= -lTARGET to create dependencies |
|
14055 between projects in a subdir template. |
|
14056 |
|
14057 Since when compiling outside of Qt we hijack the target name of |
|
14058 QtWebKit to add the configuration and version suffix to the binary |
|
14059 filename, qmake can't establish the WebCore project as a dependency |
|
14060 to QtTestBrowser. |
|
14061 |
|
14062 This patch makes sure that the target is not hijacked on the |
|
14063 first of the three passes where the dependencies are determined. |
|
14064 |
|
14065 * WebCore.pro: |
|
14066 |
|
14067 2010-07-01 Nikolas Zimmermann <nzimmermann@rim.com> |
|
14068 |
|
14069 Reviewed by Dirk Schulze. |
|
14070 |
|
14071 SVGRenderStyle::diff() is missing |
|
14072 https://bugs.webkit.org/show_bug.cgi?id=41455 |
|
14073 |
|
14074 Don't just return StyleDifferenceLayout when two SVGRenderStyle objects differ. |
|
14075 Figure out when to repaint, and as last resort do a relayout. |
|
14076 |
|
14077 Lively Kernel doesn't do any relayouts anymore, same for lots of demos in the IE9 testcenter. |
|
14078 |
|
14079 * rendering/style/RenderStyle.cpp: |
|
14080 (WebCore::RenderStyle::diff): |
|
14081 * rendering/style/SVGRenderStyle.cpp: |
|
14082 (WebCore::SVGRenderStyle::diff): |
|
14083 * rendering/style/SVGRenderStyle.h: |
|
14084 |
|
14085 2010-07-01 Antti Koivisto <koivisto@iki.fi> |
|
14086 |
|
14087 Revert accidental commit. |
|
14088 |
|
14089 * platform/network/qt/ResourceRequestQt.cpp: |
|
14090 (WebCore::ResourceRequest::toNetworkRequest): |
|
14091 |
|
14092 2010-07-01 Patrick Gansterer <paroga@paroga.com> |
|
14093 |
|
14094 Reviewed by Nikolas Zimmermann. |
|
14095 |
|
14096 Buildfix for !ENABLE(SVG_FOREIGN_OBJECT) after r62196. |
|
14097 https://bugs.webkit.org/show_bug.cgi?id=40984 |
|
14098 |
|
14099 * rendering/SVGRenderSupport.cpp: |
|
14100 (WebCore::SVGRenderSupport::finishRenderSVGContent): |
|
14101 |
|
14102 2010-07-04 Patrick Gansterer <paroga@paroga.com> |
|
14103 |
|
14104 Reviewed by Dirk Schulze. |
|
14105 |
|
14106 Buildfix for !ENABLE(FILTERS) after r62238. |
|
14107 https://bugs.webkit.org/show_bug.cgi?id=41456 |
|
14108 |
|
14109 * rendering/SVGRenderSupport.cpp: |
|
14110 (WebCore::SVGRenderSupport::prepareToRenderSVGContent): |
|
14111 |
|
14112 2010-07-01 MORITA Hajime <morrita@google.com> |
|
14113 |
|
14114 Unreviewed build fix. |
|
14115 |
|
14116 * rendering/RenderInputSpeech.cpp: |
|
14117 (WebCore::RenderInputSpeech::paintInputFieldSpeechButton): |
|
14118 * rendering/RenderInputSpeech.h: |
|
14119 * rendering/RenderTheme.cpp: |
|
14120 (WebCore::RenderTheme::paintInputFieldSpeechButton): |
|
14121 * rendering/RenderTheme.h: |
|
14122 |
|
14123 2010-07-01 Satish Sampath <satish@chromium.org> |
|
14124 |
|
14125 Reviewed by Kent Tamura. |
|
14126 |
|
14127 Rendering the speech button in input elements. |
|
14128 https://bugs.webkit.org/show_bug.cgi?id=40984 |
|
14129 |
|
14130 The button currently has only one state and rendered as an image on all platforms. Subsequent |
|
14131 patches will add user input handling and more states + rendering code to the button. The |
|
14132 button's appearance can be customized by individual ports in their RenderTheme implementation |
|
14133 if required. |
|
14134 |
|
14135 Tests: platform/mac/fast/forms/input-appearance-numberandspeech.html |
|
14136 platform/mac/fast/forms/input-appearance-searchandspeech.html |
|
14137 platform/mac/fast/forms/input-appearance-speechbutton.html |
|
14138 |
|
14139 * GNUmakefile.am: |
|
14140 * Resources/inputSpeech.png: Added. |
|
14141 * Resources/inputSpeech.tiff: Added. Used by the Mac implementation. |
|
14142 * WebCore.gypi: |
|
14143 * WebCore.pro: |
|
14144 * WebCore.qrc: |
|
14145 * WebCore.xcodeproj/project.pbxproj: |
|
14146 * platform/graphics/qt/ImageQt.cpp: |
|
14147 (loadResourcePixmap): Load the speech button images for Qt port. |
|
14148 * rendering/RenderInputSpeech.cpp: Added. |
|
14149 (WebCore::RenderInputSpeech::adjustInputFieldSpeechButtonStyle): Sets the button's dimensions. |
|
14150 (WebCore::RenderInputSpeech::paintInputFieldSpeechButton): |
|
14151 * rendering/RenderInputSpeech.h: Added. |
|
14152 * rendering/RenderTextControlSingleLine.cpp: |
|
14153 (WebCore::RenderTextControlSingleLine::layout): |
|
14154 (WebCore::RenderTextControlSingleLine::forwardEvent): |
|
14155 (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded): Create the speech button. |
|
14156 (WebCore::RenderTextControlSingleLine::createInnerBlockStyle): |
|
14157 * rendering/RenderTheme.cpp: |
|
14158 (WebCore::RenderTheme::adjustStyle): |
|
14159 (WebCore::RenderTheme::paint): |
|
14160 (WebCore::RenderTheme::adjustInputFieldSpeechButtonStyle): |
|
14161 (WebCore::RenderTheme::paintInputFieldSpeechButton): |
|
14162 * rendering/RenderTheme.h: |
|
14163 * rendering/RenderThemeMac.mm: |
|
14164 (WebCore::RenderThemeMac::paintSearchFieldCancelButton): Get cancel button to render to the left of |
|
14165 speech button when enabled. |
|
14166 |
|
14167 2010-07-01 Mario Sanchez Prada <msanchez@igalia.com> |
|
14168 |
|
14169 Reviewed by Xan Lopez. |
|
14170 |
|
14171 [GTK] Extra nullcheck needed at SelectionControllerGtk.cpp |
|
14172 https://bugs.webkit.org/show_bug.cgi?id=41447 |
|
14173 |
|
14174 Extra null check added. |
|
14175 |
|
14176 * editing/gtk/SelectionControllerGtk.cpp: |
|
14177 (WebCore::SelectionController::notifyAccessibilityForSelectionChange): |
|
14178 |
|
14179 2010-07-01 Yury Semikhatsky <yurys@chromium.org> |
|
14180 |
|
14181 Reviewed by Adam Barth. |
|
14182 |
|
14183 [v8] Web Inspector: inspected page crashes on attempt to change iframe's src attribute |
|
14184 https://bugs.webkit.org/show_bug.cgi?id=41350 |
|
14185 |
|
14186 Tests: fast/events/popup-blocked-from-fake-user-gesture.html |
|
14187 http/tests/inspector/change-iframe-src.html |
|
14188 |
|
14189 * bindings/v8/ScriptController.cpp: |
|
14190 (WebCore::ScriptController::processingUserGesture): use V8Proxy from the ScriptController instead of one |
|
14191 from the call stack. Get event directly from hidden property to avoid unnecessary checks. |
|
14192 * bindings/v8/V8AbstractEventListener.cpp: |
|
14193 (WebCore::V8AbstractEventListener::invokeEventHandler): |
|
14194 * bindings/v8/V8HiddenPropertyName.h: |
|
14195 * bindings/v8/custom/V8DOMWindowCustom.cpp: |
|
14196 (WebCore::V8DOMWindow::eventAccessorGetter): |
|
14197 (WebCore::V8DOMWindow::eventAccessorSetter): |
|
14198 |
|
14199 2010-07-01 Nikolas Zimmermann <nzimmermann@rim.com> |
|
14200 |
|
14201 Reviewed by Dirk Schulze. |
|
14202 |
|
14203 RenderSVGContainer/RenderSVGRoot report wrong strokeBoundingBox() |
|
14204 https://bugs.webkit.org/show_bug.cgi?id=41450 |
|
14205 |
|
14206 strokeBoundingBox() was reporting the repaintRectInLocalCoordinates() for children of a container, |
|
14207 instead of the actual strokeBoundingBox(). Only visible in WebInspector when looking at a container |
|
14208 which has a resource applied and contains a children which also has a resource applied. |
|
14209 |
|
14210 Doesn't affect any test results. |
|
14211 |
|
14212 * rendering/RenderSVGContainer.cpp: |
|
14213 (WebCore::RenderSVGContainer::objectBoundingBox): |
|
14214 (WebCore::RenderSVGContainer::strokeBoundingBox): |
|
14215 (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates): |
|
14216 * rendering/RenderSVGRoot.cpp: |
|
14217 (WebCore::RenderSVGRoot::objectBoundingBox): Deinlined this functions, it's virtual so there's no gain. |
|
14218 (WebCore::RenderSVGRoot::strokeBoundingBox): Ditto. |
|
14219 (WebCore::RenderSVGRoot::repaintRectInLocalCoordinates): |
|
14220 * rendering/RenderSVGRoot.h: |
|
14221 * rendering/SVGRenderSupport.cpp: |
|
14222 (WebCore::SVGRenderSupport::computeContainerBoundingBox): |
|
14223 * rendering/SVGRenderSupport.h: Add enum controlling the mode of container bounding box mode calculation. |
|
14224 |
|
14225 2010-07-01 Zoltan Herczeg <zherczeg@webkit.org> |
|
14226 |
|
14227 Reviewed by Nikolas Zimmermann. |
|
14228 |
|
14229 Implementing feConvolveMatrix svg filter |
|
14230 https://bugs.webkit.org/show_bug.cgi?id=5861 |
|
14231 |
|
14232 The implementation is optimized for speed, and uses |
|
14233 multiple algorithms for different parts of the image. |
|
14234 See SVGFEConvolveMatrixElement.cpp for a detailed |
|
14235 description. |
|
14236 |
|
14237 * svg/SVGFEConvolveMatrixElement.cpp: |
|
14238 (WebCore::SVGFEConvolveMatrixElement::build): |
|
14239 * svg/graphics/filters/SVGFEConvolveMatrix.cpp: |
|
14240 (WebCore::clampRGBAValue): |
|
14241 (WebCore::FEConvolveMatrix::fastSetInteriorPixels): |
|
14242 (WebCore::FEConvolveMatrix::getPixelValue): |
|
14243 (WebCore::FEConvolveMatrix::fastSetOuterPixels): |
|
14244 (WebCore::FEConvolveMatrix::setInteriorPixels): |
|
14245 (WebCore::FEConvolveMatrix::setOuterPixels): |
|
14246 (WebCore::FEConvolveMatrix::apply): |
|
14247 * svg/graphics/filters/SVGFEConvolveMatrix.h: |
|
14248 (WebCore::FEConvolveMatrix::uniteChildEffectSubregions): |
|
14249 |
|
14250 2010-07-01 Adam Barth <abarth@webkit.org> |
|
14251 |
|
14252 Reviewed by Eric Seidel. |
|
14253 |
|
14254 Abstract 'a'-'z' checks into a function |
|
14255 https://bugs.webkit.org/show_bug.cgi?id=41438 |
|
14256 |
|
14257 Hopefully this version is more readable. |
|
14258 |
|
14259 * html/HTMLTokenizer.cpp: |
|
14260 (WebCore::HTMLTokenizer::nextToken): |
|
14261 |
|
14262 2010-07-01 Adam Barth <abarth@webkit.org> |
|
14263 |
|
14264 Reviewed by Eric Seidel. |
|
14265 |
|
14266 Parameter names in frame src URLs parsed incorrectly if resembles HTML entity code followed by underscore |
|
14267 https://bugs.webkit.org/show_bug.cgi?id=41345 |
|
14268 |
|
14269 Apparently whether an HTML entity requires a trailing semicolon varies |
|
14270 depending on the entity. The full table is in the spec: |
|
14271 |
|
14272 http://www.whatwg.org/specs/web-apps/current-work/multipage/named-character-references.html#named-character-references |
|
14273 |
|
14274 I believe branch added in this patch is accurate. At some point, I'll |
|
14275 add a full test suite for all the named entities. |
|
14276 |
|
14277 * html/HTMLEntityParser.cpp: |
|
14278 (WebCore::consumeHTMLEntity): |
|
14279 |
|
14280 2010-07-01 Eric Seidel <eric@webkit.org> |
|
14281 |
|
14282 Unreviewed. Fix paste-o in Gtk build file. |
|
14283 |
|
14284 Split out HTMLFormattingElementList into its own file |
|
14285 https://bugs.webkit.org/show_bug.cgi?id=41440 |
|
14286 |
|
14287 * GNUmakefile.am: |
|
14288 |
|
14289 2010-07-01 Nikolas Zimmermann <nzimmermann@rim.com> |
|
14290 |
|
14291 Reviewed by Eric Seidel & Dirk Schulze. |
|
14292 |
|
14293 Performance regression for setting content of <text> in SVG |
|
14294 https://bugs.webkit.org/show_bug.cgi?id=36564 |
|
14295 |
|
14296 Dramatically reducing the number of repaintRectInLocalCoordinates() calls needed while painting. |
|
14297 Do not pass the repaintRect to prepareToRenderSVGContent, only calculate it if opacity < 1 or -webkit-svg-shadow is set. |
|
14298 Most noticeable is that RenderSVGRoot had to visit all children, before actually painting, just to calculate the repaint rect. |
|
14299 And as RenderSVGRoot never carries shadow or opacity it was completly useless. |
|
14300 |
|
14301 RenderSVGContainer also called repaintRectInLocalCoordinates, but the result is only needed when painting outlines, which is a rare case. |
|
14302 These modifications fix the performance regression and the number of repaintRectInLocalCoordinate calls for the complex example in |
|
14303 the bug report with 500 runs shrinks from 1.7 million calls to less than 105.000. |
|
14304 |
|
14305 50 runs without the patch: ~ 520.8ms |
|
14306 50 runs with the patch : ~ 501.8ms |
|
14307 |
|
14308 The test calls setTimeout(0) 50 times, that already accounts for the 500ms. So setting the content of a <text> |
|
14309 element withs clippers applied, is very cheap now. |
|
14310 |
|
14311 Also remove the need to pass in a filter argument to prepareToRenderSVGContent/finishRenderSVGContent, it can easily be grabbed |
|
14312 of the cache - just like all other resources are handled, simplifying the code. |
|
14313 |
|
14314 * rendering/RenderPath.cpp: |
|
14315 (WebCore::RenderPath::paint): |
|
14316 * rendering/RenderSVGContainer.cpp: |
|
14317 (WebCore::RenderSVGContainer::paint): |
|
14318 (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates): |
|
14319 * rendering/RenderSVGImage.cpp: |
|
14320 (WebCore::RenderSVGImage::paint): |
|
14321 * rendering/RenderSVGRoot.cpp: |
|
14322 (WebCore::RenderSVGRoot::paint): |
|
14323 * rendering/SVGInlineFlowBox.cpp: |
|
14324 (WebCore::SVGInlineFlowBox::paint): |
|
14325 * rendering/SVGRenderSupport.cpp: |
|
14326 (WebCore::SVGRenderSupport::prepareToRenderSVGContent): |
|
14327 (WebCore::SVGRenderSupport::finishRenderSVGContent): |
|
14328 * rendering/SVGRenderSupport.h: |
|
14329 * rendering/SVGRootInlineBox.cpp: |
|
14330 (WebCore::SVGRootInlineBox::paint): |
|
14331 |
|
14332 2010-07-01 Eric Seidel <eric@webkit.org> |
|
14333 |
|
14334 Reviewed by Adam Barth. |
|
14335 |
|
14336 Split out HTMLFormattingElementList into its own file |
|
14337 https://bugs.webkit.org/show_bug.cgi?id=41440 |
|
14338 |
|
14339 No functional changes, thus no tests. |
|
14340 |
|
14341 * Android.mk: |
|
14342 * CMakeLists.txt: |
|
14343 * GNUmakefile.am: |
|
14344 * WebCore.gypi: |
|
14345 * WebCore.pro: |
|
14346 * WebCore.vcproj/WebCore.vcproj: |
|
14347 * WebCore.xcodeproj/project.pbxproj: |
|
14348 * html/HTMLTreeBuilder.cpp: |
|
14349 (WebCore::HTMLTreeBuilder::processEndTag): |
|
14350 (WebCore::HTMLTreeBuilder::indexOfFirstUnopenFormattingElement): |
|
14351 (WebCore::HTMLTreeBuilder::reconstructTheActiveFormattingElements): |
|
14352 * html/HTMLTreeBuilder.h: |
|
14353 |
|
14354 2010-07-01 Adam Barth <abarth@webkit.org> |
|
14355 |
|
14356 Reviewed by Eric Seidel. |
|
14357 |
|
14358 BogusCommentState should come in from the cold |
|
14359 https://bugs.webkit.org/show_bug.cgi?id=41439 |
|
14360 |
|
14361 The BogusCommentState has always been wrong. The proximate issue is |
|
14362 that it didn't handle resuming correctly when parsing a partial input |
|
14363 stream. Now that we have EOF working properly, we can actually |
|
14364 implement this state correctly. |
|
14365 |
|
14366 We need to distinguish when we enter this state from when we continue |
|
14367 in this state. We could do that with a branch for each character, but |
|
14368 it seemed easier to split the state in two, even though that leaves us |
|
14369 with one more state in our tokenizer than we have in the HTML5 spec. |
|
14370 |
|
14371 * html/HTMLTokenizer.cpp: |
|
14372 (WebCore::HTMLTokenizer::nextToken): |
|
14373 * html/HTMLTokenizer.h: |
|
14374 (WebCore::HTMLTokenizer::): |
|
14375 |
|
14376 2010-06-30 Adam Barth <abarth@webkit.org> |
|
14377 |
|
14378 Reviewed by Eric Seidel. |
|
14379 |
|
14380 HTMLTokenizer's whitespace checks are very redundant |
|
14381 https://bugs.webkit.org/show_bug.cgi?id=41434 |
|
14382 |
|
14383 This patch adds isTokenizerWhitespace, which replaces a lot of |
|
14384 redundant logic in nextToken. |
|
14385 |
|
14386 * html/HTMLTokenizer.cpp: |
|
14387 (WebCore::HTMLTokenizer::nextToken): |
|
14388 |
|
14389 2010-06-30 Andreas Kling <andreas.kling@nokia.com> |
|
14390 |
|
14391 Reviewed by Kenneth Rohde Christiansen. |
|
14392 |
|
14393 [Qt] Crash when uploading document to Google Docs |
|
14394 https://bugs.webkit.org/show_bug.cgi?id=40795 |
|
14395 |
|
14396 Fix bug where the local file wasn't opened (for POSTing) |
|
14397 if it were the first element in the form. |
|
14398 |
|
14399 * platform/network/qt/QNetworkReplyHandler.cpp: |
|
14400 (WebCore::FormDataIODevice::FormDataIODevice): |
|
14401 (WebCore::FormDataIODevice::moveToNextElement): |
|
14402 (WebCore::FormDataIODevice::openFileForCurrentElement): |
|
14403 * platform/network/qt/QNetworkReplyHandler.h: |
|
14404 |
|
14405 2010-06-30 Eric Seidel <eric@webkit.org> |
|
14406 |
|
14407 Reviewed by Adam Barth. |
|
14408 |
|
14409 Implement generateImpliedEndTags and deploy to steps which were blocked on it |
|
14410 https://bugs.webkit.org/show_bug.cgi?id=41432 |
|
14411 |
|
14412 This fixes one subtest in html5lib/runner.html and positively |
|
14413 effects a couple others. |
|
14414 |
|
14415 More code sharing will be needed here. For the moment |
|
14416 we're using copy/paste code, but that will soon be shared. |
|
14417 |
|
14418 * html/HTMLTreeBuilder.cpp: |
|
14419 (WebCore::HTMLTreeBuilder::processEndTag): |
|
14420 (WebCore::HTMLTreeBuilder::generateImpliedEndTagsWithExclusion): |
|
14421 (WebCore::HTMLTreeBuilder::generateImpliedEndTags): |
|
14422 * html/HTMLTreeBuilder.h: |
|
14423 |
|
14424 2010-06-30 Csaba Osztrogonác <ossy@webkit.org> |
|
14425 |
|
14426 Unreviewed buildfix after r62196 and r62214. |
|
14427 |
|
14428 * html/HTMLElementStack.cpp: Put !ENABLE(SVG) guard instead of |
|
14429 !ENABLE(SVG_FOREIGN_OBJECT) around include of SVGNames.h. |
|
14430 |
|
14431 2010-06-30 Sam Weinig <sam@webkit.org> |
|
14432 |
|
14433 Really fix the windows build. |
|
14434 |
|
14435 * bindings/js/JSBindingsAllInOne.cpp: |
|
14436 |
|
14437 2010-06-30 Sam Weinig <sam@webkit.org> |
|
14438 |
|
14439 Another Chromium build fix. |
|
14440 |
|
14441 * page/DOMWindow.idl: |
|
14442 |
|
14443 2010-06-30 Sam Weinig <sam@webkit.org> |
|
14444 |
|
14445 Fix Chromium build. |
|
14446 |
|
14447 * WebCore.gyp/WebCore.gyp: |
|
14448 |
|
14449 2010-06-30 Sam Weinig <sam@webkit.org> |
|
14450 |
|
14451 Fix Windows build. |
|
14452 |
|
14453 * bindings/js/JSBindingsAllInOne.cpp: |
|
14454 |
|
14455 2010-06-30 Sam Weinig <sam@webkit.org> |
|
14456 |
|
14457 Fix Gtk build. |
|
14458 |
|
14459 * GNUmakefile.am: |
|
14460 |
|
14461 2010-06-29 Sam Weinig <sam@webkit.org> |
|
14462 |
|
14463 Reviewed by Dan Bernstein. |
|
14464 |
|
14465 Patch for https://bugs.webkit.org/show_bug.cgi?id=41146 |
|
14466 <rdar://problem/8126069> |
|
14467 Implement the .dataset DOM property |
|
14468 |
|
14469 Tests: fast/dom/dataset-xhtml.xhtml |
|
14470 fast/dom/dataset.html |
|
14471 |
|
14472 * DerivedSources.cpp: |
|
14473 * DerivedSources.make: |
|
14474 * GNUmakefile.am: |
|
14475 * WebCore.gypi: |
|
14476 * WebCore.pro: |
|
14477 * WebCore.vcproj/WebCore.vcproj: |
|
14478 * WebCore.xcodeproj/project.pbxproj: |
|
14479 * bindings/js/JSDOMStringMapCustom.cpp: Added. |
|
14480 (WebCore::JSDOMStringMap::canGetItemsForName): |
|
14481 (WebCore::JSDOMStringMap::nameGetter): |
|
14482 (WebCore::JSDOMStringMap::getOwnPropertyNames): |
|
14483 (WebCore::JSDOMStringMap::deleteProperty): |
|
14484 (WebCore::JSDOMStringMap::putDelegate): |
|
14485 * bindings/js/JSDOMStringMapCustom.h: Added. |
|
14486 * dom/DOMStringMap.cpp: Added. |
|
14487 (WebCore::DOMStringMap::~DOMStringMap): |
|
14488 * dom/DOMStringMap.h: Added. |
|
14489 (WebCore::DOMStringMap::DOMStringMap): |
|
14490 * dom/DOMStringMap.idl: Added. |
|
14491 * dom/DatasetDOMStringMap.cpp: Added. |
|
14492 (WebCore::isValidAttributeName): |
|
14493 (WebCore::convertAttributeNameToPropertyName): |
|
14494 (WebCore::propertyNameMatchesAttributeName): |
|
14495 (WebCore::isValidPropertyName): |
|
14496 (WebCore::convertPropertyNameToAttributeName): |
|
14497 (WebCore::DatasetDOMStringMap::ref): |
|
14498 (WebCore::DatasetDOMStringMap::deref): |
|
14499 (WebCore::DatasetDOMStringMap::getNames): |
|
14500 (WebCore::DatasetDOMStringMap::item): |
|
14501 (WebCore::DatasetDOMStringMap::contains): |
|
14502 (WebCore::DatasetDOMStringMap::setItem): |
|
14503 (WebCore::DatasetDOMStringMap::deleteItem): |
|
14504 * dom/DatasetDOMStringMap.h: Added. |
|
14505 (WebCore::DatasetDOMStringMap::create): |
|
14506 (WebCore::DatasetDOMStringMap::DatasetDOMStringMap): |
|
14507 * dom/Element.cpp: |
|
14508 (WebCore::Element::dataset): |
|
14509 * dom/Element.h: |
|
14510 * dom/Element.idl: |
|
14511 * dom/ElementRareData.h: |
|
14512 * page/DOMWindow.idl: |
|
14513 |
|
14514 2010-06-30 Darin Adler <darin@apple.com> |
|
14515 |
|
14516 More Qt build fix. |
|
14517 |
|
14518 * html/HTMLElementStack.cpp: Put !ENABLE(SVG_FOREIGN_OBJECT) around |
|
14519 include of SVGNames.h too. |
|
14520 |
|
14521 2010-06-30 Darin Adler <darin@apple.com> |
|
14522 |
|
14523 Reviewed by Adam Barth. |
|
14524 |
|
14525 Add assertion, off by default, for when you forget to do adoptRef |
|
14526 https://bugs.webkit.org/show_bug.cgi?id=41422 |
|
14527 |
|
14528 * platform/TreeShared.h: Added code to require adoption and assert if |
|
14529 you don't call adoptRef. For now, it is turned off because of the |
|
14530 LOOSE_TREE_SHARED define in this header. Later we can turn it on |
|
14531 once we get everything working without asserting. Note also that it |
|
14532 only works for objects with an initial reference count of 1. |
|
14533 |
|
14534 2010-06-30 Patrick Gansterer <paroga@paroga.com> |
|
14535 |
|
14536 Reviewed by Darin Adler. |
|
14537 |
|
14538 Buildfix for !ENABLE(SVG_FOREIGN_OBJECT) after r62196. |
|
14539 https://bugs.webkit.org/show_bug.cgi?id=41429 |
|
14540 |
|
14541 * html/HTMLElementStack.cpp: |
|
14542 |
|
14543 2010-06-30 Eric Seidel <eric@webkit.org> |
|
14544 |
|
14545 Reviewed by Adam Barth. |
|
14546 |
|
14547 Add new popUntil(tagName) function and deploy |
|
14548 https://bugs.webkit.org/show_bug.cgi?id=41405 |
|
14549 |
|
14550 Add a new popUntil function to share some common code |
|
14551 between states. There is more code to share here, but this |
|
14552 is a start. |
|
14553 |
|
14554 I also filled in a couple similar states to these with the |
|
14555 hope of sharing more code, but decided to wait for a later |
|
14556 patch. |
|
14557 |
|
14558 No test changes, since this code doesn't do enough yet to |
|
14559 pass any more subtests. Lack of generateImpliedEndTags is the main |
|
14560 blocking issue. |
|
14561 |
|
14562 * html/HTMLElementStack.cpp: |
|
14563 (WebCore::HTMLElementStack::popUntil): |
|
14564 * html/HTMLElementStack.h: |
|
14565 * html/HTMLTreeBuilder.cpp: |
|
14566 (WebCore::HTMLTreeBuilder::processEndTag): |
|
14567 |
|
14568 2010-06-30 Xan Lopez <xlopez@igalia.com> |
|
14569 |
|
14570 Reviewed by Gustavo Noronha. |
|
14571 |
|
14572 [GTK] Unit test for DOM insertion methods |
|
14573 https://bugs.webkit.org/show_bug.cgi?id=40495 |
|
14574 |
|
14575 Fix typo in custom function detection method. |
|
14576 |
|
14577 * bindings/scripts/CodeGeneratorGObject.pm: |
|
14578 |
|
14579 2010-06-30 Eric Seidel <eric@webkit.org> |
|
14580 |
|
14581 Reviewed by Adam Barth. |
|
14582 |
|
14583 Implement HTML5 "in scope" algorithm and attempt to use it |
|
14584 https://bugs.webkit.org/show_bug.cgi?id=41402 |
|
14585 |
|
14586 Implemented the 4 needed "in scope" functions for HTML5. |
|
14587 3 for the different sets of scope markers, and one for |
|
14588 doing exact element comparisons instead of tag name searches. |
|
14589 |
|
14590 I deployed inScope("body") for </body> and </html> in InBody. |
|
14591 |
|
14592 Adds two new (expected) failures, since we're now |
|
14593 switching out of InBody to AfterBody when seeing |
|
14594 </html>. We don't implement AfterBody yet, so |
|
14595 the rest of the content after </html> is ignored. |
|
14596 |
|
14597 * html/HTMLElementStack.cpp: |
|
14598 (WebCore::inScopeCommon): |
|
14599 (WebCore::HTMLElementStack::inScope): |
|
14600 (WebCore::HTMLElementStack::inListItemScope): |
|
14601 (WebCore::HTMLElementStack::inTableScope): |
|
14602 * html/HTMLElementStack.h: |
|
14603 * html/HTMLTreeBuilder.cpp: |
|
14604 (WebCore::HTMLTreeBuilder::processBodyEndTagForInBody): |
|
14605 (WebCore::HTMLTreeBuilder::processEndTag): |
|
14606 * html/HTMLTreeBuilder.h: |
|
14607 |
|
14608 2010-06-30 Eric Seidel <eric@webkit.org> |
|
14609 |
|
14610 Reviewed by Adam Barth. |
|
14611 |
|
14612 Split HTMLElementStack out into its own file |
|
14613 https://bugs.webkit.org/show_bug.cgi?id=41399 |
|
14614 |
|
14615 No functional change, thus no tests. |
|
14616 |
|
14617 * Android.mk: |
|
14618 * CMakeLists.txt: |
|
14619 * GNUmakefile.am: |
|
14620 * WebCore.gypi: |
|
14621 * WebCore.pro: |
|
14622 * WebCore.vcproj/WebCore.vcproj: |
|
14623 * WebCore.xcodeproj/project.pbxproj: |
|
14624 * html/HTMLElementStack.cpp: Added. |
|
14625 (WebCore::HTMLElementStack::ElementRecord::ElementRecord): |
|
14626 (WebCore::HTMLElementStack::ElementRecord::element): |
|
14627 (WebCore::HTMLElementStack::ElementRecord::next): |
|
14628 (WebCore::HTMLElementStack::ElementRecord::releaseNext): |
|
14629 (WebCore::HTMLElementStack::ElementRecord::setNext): |
|
14630 (WebCore::HTMLElementStack::HTMLElementStack): |
|
14631 (WebCore::HTMLElementStack::~HTMLElementStack): |
|
14632 (WebCore::HTMLElementStack::popHTMLHeadElement): |
|
14633 (WebCore::HTMLElementStack::pop): |
|
14634 (WebCore::HTMLElementStack::pushHTMLHtmlElement): |
|
14635 (WebCore::HTMLElementStack::pushHTMLHeadElement): |
|
14636 (WebCore::HTMLElementStack::pushHTMLBodyElement): |
|
14637 (WebCore::HTMLElementStack::push): |
|
14638 (WebCore::HTMLElementStack::top): |
|
14639 (WebCore::HTMLElementStack::removeHTMLHeadElement): |
|
14640 (WebCore::HTMLElementStack::remove): |
|
14641 (WebCore::HTMLElementStack::contains): |
|
14642 (WebCore::HTMLElementStack::inScope): |
|
14643 (WebCore::HTMLElementStack::htmlElement): |
|
14644 (WebCore::HTMLElementStack::headElement): |
|
14645 (WebCore::HTMLElementStack::bodyElement): |
|
14646 (WebCore::HTMLElementStack::pushCommon): |
|
14647 (WebCore::HTMLElementStack::popCommon): |
|
14648 (WebCore::HTMLElementStack::removeNonFirstCommon): |
|
14649 * html/HTMLElementStack.h: Added. |
|
14650 * html/HTMLTreeBuilder.h: |
|
14651 |
|
14652 2010-06-30 Kenneth Russell <kbr@google.com> |
|
14653 |
|
14654 Reviewed by Oliver Hunt. |
|
14655 |
|
14656 WebCore::WebGLArrayInternal::lengthAttrGetter ReadAV@NULL (b1a3e1a3e9d01f17fd493d68eeb2742f) |
|
14657 https://bugs.webkit.org/show_bug.cgi?id=38040 |
|
14658 |
|
14659 Changed custom ArrayBufferView constructors to create a |
|
14660 fully-initialized, zero-length array when called with zero |
|
14661 arguments. This is the simplest fix which works identically in |
|
14662 both the JSC and V8 bindings. |
|
14663 |
|
14664 Test: fast/canvas/webgl/array-buffer-view-crash.html |
|
14665 |
|
14666 * bindings/js/JSArrayBufferViewHelper.h: |
|
14667 (WebCore::constructArrayBufferView): |
|
14668 * bindings/v8/custom/V8ArrayBufferViewCustom.h: |
|
14669 (WebCore::constructWebGLArray): |
|
14670 |
|
14671 2010-06-30 Victor Wang <victorw@chromium.org> |
|
14672 |
|
14673 Reviewed by Darin Fisher. |
|
14674 |
|
14675 [chromium] update webcore gyp to use v8 dll for chromium multi dll build. |
|
14676 |
|
14677 https://bugs.webkit.org/show_bug.cgi?id=41376 |
|
14678 |
|
14679 * WebCore.gyp/WebCore.gyp: |
|
14680 |
|
14681 2010-06-30 Jeremy Moskovich <jeremy@chromium.org> |
|
14682 |
|
14683 Reviewed by Dimitri Glazkov. |
|
14684 |
|
14685 [Chromium] Add OOP font loading to FontPlatformDataChromiumMac. |
|
14686 |
|
14687 On OS X, with font management software installed. Fonts |
|
14688 can reside in an arbitrary path on disk which is blocked by |
|
14689 Chromium's sandbox. |
|
14690 |
|
14691 This change adds hooks to FontPlaformData which allow cross-process |
|
14692 font loading in case of need. |
|
14693 |
|
14694 https://bugs.webkit.org/show_bug.cgi?id=41148 |
|
14695 |
|
14696 Not possible to test - requires sandboxing which DRT doesn't support. |
|
14697 |
|
14698 * WebCore.gypi: |
|
14699 * platform/graphics/chromium/FontPlatformDataChromiumMac.mm: Added. |
|
14700 (WebCore::FontPlatformData::FontPlatformData): |
|
14701 (WebCore::FontPlatformData::~FontPlatformData): |
|
14702 (WebCore::FontPlatformData::operator=): |
|
14703 (WebCore::FontPlatformData::setFont): |
|
14704 (WebCore::FontPlatformData::roundsGlyphAdvances): |
|
14705 (WebCore::FontPlatformData::allowsLigatures): |
|
14706 (WebCore::FontPlatformData::description): |
|
14707 |
|
14708 2010-06-30 Jeremy Moskovich <jeremy@chromium.org> |
|
14709 |
|
14710 Reviewed by Dan Bernstein. |
|
14711 |
|
14712 Minor tweaks to FontPlatformDataMac & SimpleFontDataMac.mm |
|
14713 |
|
14714 * Avoid an extra FontPlatformData copy in SimpleFontDataMac.mm |
|
14715 * Fix a typo in FontPlatformDataMac.mm |
|
14716 |
|
14717 https://bugs.webkit.org/show_bug.cgi?id=41152 |
|
14718 |
|
14719 No behavior changes so no new tests. |
|
14720 |
|
14721 * platform/graphics/mac/FontPlatformDataMac.mm: |
|
14722 (WebCore::FontPlatformData::description): |
|
14723 * platform/graphics/mac/SimpleFontDataMac.mm: |
|
14724 (WebCore::copyFontTableForTag): |
|
14725 |
|
14726 2010-06-30 Andreas Kling <andreas.kling@nokia.com> |
|
14727 |
|
14728 Reviewed by Kenneth Rohde Christiansen. |
|
14729 |
|
14730 [Qt] Make "disallow multiple calls to SetWindow" on windowed plugins a quirk |
|
14731 https://bugs.webkit.org/show_bug.cgi?id=41407 |
|
14732 |
|
14733 Only disallow calling SetWindow more than once if we're using Flash 9 or older. |
|
14734 This fixes resizing of YouTube videos via the player's own button. |
|
14735 |
|
14736 Removed copy-pasted logic in PluginViewGtk since the issue only exists |
|
14737 when running Flash with a non-Gtk toolkit. |
|
14738 |
|
14739 * plugins/PluginPackage.cpp: |
|
14740 (WebCore::PluginPackage::determineQuirks): |
|
14741 * plugins/PluginQuirkSet.h: |
|
14742 (WebCore::): |
|
14743 * plugins/gtk/PluginViewGtk.cpp: |
|
14744 (WebCore::PluginView::setNPWindowIfNeeded): Remove unnecessary logic copy-pasted from PluginViewQt. |
|
14745 * plugins/qt/PluginViewQt.cpp: |
|
14746 (WebCore::PluginView::setNPWindowIfNeeded): |
|
14747 |
|
14748 2010-06-30 Andreas Kling <andreas.kling@nokia.com> |
|
14749 |
|
14750 Reviewed by Antti Koivisto. |
|
14751 |
|
14752 [Qt, Gtk, Symbian] Mind the semantics of NPRect for windowed plugin clip rects |
|
14753 https://bugs.webkit.org/show_bug.cgi?id=41406 |
|
14754 |
|
14755 NPRect has right/bottom instead of width/height. |
|
14756 This was fixed in PluginViewMac with http://trac.webkit.org/changeset/45815 |
|
14757 |
|
14758 * plugins/gtk/PluginViewGtk.cpp: |
|
14759 (WebCore::PluginView::setNPWindowIfNeeded): |
|
14760 * plugins/qt/PluginViewQt.cpp: |
|
14761 (WebCore::PluginView::setNPWindowIfNeeded): |
|
14762 * plugins/symbian/PluginViewSymbian.cpp: |
|
14763 (WebCore::PluginView::setNPWindowIfNeeded): |
|
14764 |
|
14765 2010-06-30 Antonio Gomes <tonikitoo@webkit.org> |
|
14766 |
|
14767 Reviewed by Simon Fraser. |
|
14768 |
|
14769 Spatial Navigation: make elements in inner frames nested more than 1 level deep focusable |
|
14770 https://bugs.webkit.org/show_bug.cgi?id=41160 |
|
14771 |
|
14772 Patch addresses the problem of spatial navigation not work properly with nested |
|
14773 inner frames by adding the isNodeDeepDescendantOfDocument method. It recursively checks |
|
14774 if a give node is descendant of a given document or any parent of it. |
|
14775 |
|
14776 Test: fast/events/spatial-navigation/snav-iframe-nested.html |
|
14777 |
|
14778 * page/FocusController.cpp: |
|
14779 (WebCore::FocusController::deepFindFocusableNodeInDirection): |
|
14780 * page/SpatialNavigation.cpp: |
|
14781 (WebCore::isNodeDeepDescendantOfDocument): |
|
14782 * page/SpatialNavigation.h: |
|
14783 |
|
14784 2010-06-30 Adam Barth <abarth@webkit.org> |
|
14785 |
|
14786 Reviewed by Eric Seidel. |
|
14787 |
|
14788 HTMLTokenizer should use fewer macros |
|
14789 https://bugs.webkit.org/show_bug.cgi?id=41397 |
|
14790 |
|
14791 Macros are sadness. Inline functions are the new hotness. |
|
14792 |
|
14793 * html/HTMLTokenizer.cpp: |
|
14794 (WebCore::HTMLTokenizer::processEntity): |
|
14795 (WebCore::HTMLTokenizer::emitAndResumeIn): |
|
14796 (WebCore::HTMLTokenizer::emitAndReconsumeIn): |
|
14797 (WebCore::HTMLTokenizer::emitEndOfFile): |
|
14798 (WebCore::HTMLTokenizer::flushBufferedEndTag): |
|
14799 (WebCore::HTMLTokenizer::flushEmitAndResumeIn): |
|
14800 (WebCore::HTMLTokenizer::nextToken): |
|
14801 (WebCore::HTMLTokenizer::bufferCharacter): |
|
14802 (WebCore::HTMLTokenizer::bufferCodePoint): |
|
14803 (WebCore::HTMLTokenizer::bufferParseError): |
|
14804 (WebCore::HTMLTokenizer::bufferCurrentToken): |
|
14805 (WebCore::HTMLTokenizer::bufferEndOfFile): |
|
14806 * html/HTMLTokenizer.h: |
|
14807 |
|
14808 2010-06-30 Justin Schuh <jschuh@chromium.org> |
|
14809 |
|
14810 Reviewed by Adam Barth. |
|
14811 |
|
14812 Remove dead binding code |
|
14813 https://bugs.webkit.org/show_bug.cgi?id=41388 |
|
14814 |
|
14815 Removed BindingElement because it was obsoleted by r59866. |
|
14816 |
|
14817 * WebCore.gypi: |
|
14818 * bindings/generic/BindingElement.h: Removed. |
|
14819 * bindings/v8/SerializedScriptValue.cpp: |
|
14820 * bindings/v8/V8Binding.h: |
|
14821 * bindings/v8/custom/V8DatabaseCustom.cpp: |
|
14822 * bindings/v8/custom/V8DatabaseSyncCustom.cpp: |
|
14823 * bindings/v8/custom/V8SQLTransactionCustom.cpp: |
|
14824 * bindings/v8/custom/V8SQLTransactionSyncCustom.cpp: |
|
14825 |
|
14826 2010-06-30 Eric Seidel <eric@webkit.org> |
|
14827 |
|
14828 Reviewed by Adam Barth. |
|
14829 |
|
14830 HTMLTokenizer needs EndOfFile support |
|
14831 https://bugs.webkit.org/show_bug.cgi?id=41344 |
|
14832 |
|
14833 EndOfFile support uncovered a bug in our implementation of finish(). |
|
14834 finish() may be called more than once if the first call does not |
|
14835 result in end() being called (and parsing thus actually stopping). |
|
14836 |
|
14837 SegmentedString::close() should have ASSERTed that it was not already |
|
14838 closed when close() is called. I've added such an assert now. |
|
14839 |
|
14840 * html/HTMLDocumentParser.cpp: |
|
14841 (WebCore::HTMLDocumentParser::finish): |
|
14842 * platform/text/SegmentedString.cpp: |
|
14843 (WebCore::SegmentedString::close): |
|
14844 * platform/text/SegmentedString.h: |
|
14845 |
|
14846 2010-06-29 Eric Seidel <eric@webkit.org> |
|
14847 |
|
14848 Reviewed by Adam Barth. |
|
14849 |
|
14850 HTMLTokenizer needs EndOfFile support |
|
14851 https://bugs.webkit.org/show_bug.cgi?id=41344 |
|
14852 |
|
14853 We're using \0 as the EndOfFile marker as HTML5 replaces |
|
14854 all other \0 with \0xFFFD. Added some special case logic |
|
14855 to InputStreamPreprocessor::peek not to replace \0 when |
|
14856 its being used at the end of a stream. |
|
14857 |
|
14858 This fixed 60 subtests in html5lib/runner.html. |
|
14859 |
|
14860 There are still at least two states (BogusCommentState and |
|
14861 CDATASectionState) which do not have proper EOF support. |
|
14862 |
|
14863 * html/HTMLDocumentParser.cpp: |
|
14864 (WebCore::HTMLDocumentParser::finish): |
|
14865 (WebCore::HTMLDocumentParser::finishWasCalled): |
|
14866 * html/HTMLInputStream.h: |
|
14867 (WebCore::HTMLInputStream::markEndOfFile): |
|
14868 (WebCore::HTMLInputStream::haveSeenEndOfFile): |
|
14869 * html/HTMLToken.h: |
|
14870 (WebCore::HTMLToken::makeEndOfFile): |
|
14871 * html/HTMLTokenizer.cpp: |
|
14872 (WebCore::HTMLTokenizer::nextToken): |
|
14873 (WebCore::HTMLTokenizer::emitEndOfFile): |
|
14874 * html/HTMLTokenizer.h: |
|
14875 (WebCore::HTMLTokenizer::InputStreamPreprocessor::peek): |
|
14876 (WebCore::HTMLTokenizer::InputStreamPreprocessor::shouldTreatNullAsEndOfFileMarker): |
|
14877 * html/HTMLTreeBuilder.cpp: |
|
14878 (WebCore::HTMLTreeBuilder::passTokenToLegacyParser): |
|
14879 |
|
14880 2010-06-28 Eric Seidel <eric@webkit.org> |
|
14881 |
|
14882 Reviewed by Adam Barth. |
|
14883 |
|
14884 Teach HTML5TreeBuilder how to merge attributes from extra html/body elements |
|
14885 https://bugs.webkit.org/show_bug.cgi?id=41337 |
|
14886 |
|
14887 Had to teach ElementStack to store pointers to html, head, and body |
|
14888 elements. |
|
14889 |
|
14890 This fixed a few tests in LayoutTests/html5lib. |
|
14891 |
|
14892 * html/HTMLTreeBuilder.cpp: |
|
14893 (WebCore::HTMLTreeBuilder::insertHTMLStartTagBeforeHTML): |
|
14894 (WebCore::HTMLTreeBuilder::mergeAttributesFromTokenIntoElement): |
|
14895 (WebCore::HTMLTreeBuilder::insertHTMLStartTagInBody): |
|
14896 (WebCore::HTMLTreeBuilder::processStartTag): |
|
14897 (WebCore::HTMLTreeBuilder::processEndTag): |
|
14898 (WebCore::HTMLTreeBuilder::createElementAndAttachToCurrent): |
|
14899 (WebCore::HTMLTreeBuilder::insertHTMLHtmlElement): |
|
14900 (WebCore::HTMLTreeBuilder::insertHTMLHeadElement): |
|
14901 (WebCore::HTMLTreeBuilder::insertHTMLBodyElement): |
|
14902 (WebCore::HTMLTreeBuilder::insertElement): |
|
14903 (WebCore::HTMLTreeBuilder::insertGenericRCDATAElement): |
|
14904 (WebCore::HTMLTreeBuilder::insertGenericRawTextElement): |
|
14905 * html/HTMLTreeBuilder.h: |
|
14906 (WebCore::HTMLTreeBuilder::ElementStack::ElementStack): |
|
14907 (WebCore::HTMLTreeBuilder::ElementStack::popHTMLHeadElement): |
|
14908 (WebCore::HTMLTreeBuilder::ElementStack::pop): |
|
14909 (WebCore::HTMLTreeBuilder::ElementStack::pushHTMLHtmlElement): |
|
14910 (WebCore::HTMLTreeBuilder::ElementStack::pushHTMLHeadElement): |
|
14911 (WebCore::HTMLTreeBuilder::ElementStack::pushHTMLBodyElement): |
|
14912 (WebCore::HTMLTreeBuilder::ElementStack::push): |
|
14913 (WebCore::HTMLTreeBuilder::ElementStack::removeHTMLHeadElement): |
|
14914 (WebCore::HTMLTreeBuilder::ElementStack::remove): |
|
14915 (WebCore::HTMLTreeBuilder::ElementStack::htmlElement): |
|
14916 (WebCore::HTMLTreeBuilder::ElementStack::headElement): |
|
14917 (WebCore::HTMLTreeBuilder::ElementStack::bodyElement): |
|
14918 (WebCore::HTMLTreeBuilder::ElementStack::pushCommon): |
|
14919 (WebCore::HTMLTreeBuilder::ElementStack::popCommon): |
|
14920 (WebCore::HTMLTreeBuilder::ElementStack::removeNonFirstCommon): |
|
14921 |
|
14922 2010-06-30 José Millán Soto <jmillan@igalia.com> |
|
14923 |
|
14924 Reviewed by Xan Lopez. |
|
14925 |
|
14926 [Gtk] Text attributes not exposed |
|
14927 https://bugs.webkit.org/show_bug.cgi?id=25528 |
|
14928 |
|
14929 Implemented the get_run_attributes and get_default_attributes |
|
14930 functions for the ATK_TEXT role. |
|
14931 |
|
14932 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: |
|
14933 (getAttributeSetForAccessibilityObject): |
|
14934 (compareAttribute): |
|
14935 (attributeSetDifference): |
|
14936 (accessibilityObjectLength): |
|
14937 (getAccessibilityObjectForOffset): |
|
14938 (getRunAttributesFromAccesibilityObject): |
|
14939 (webkit_accessible_text_get_run_attributes): |
|
14940 (webkit_accessible_text_get_default_attributes): |
|
14941 |
|
14942 2010-06-30 Yuta Kitamura <yutak@chromium.org> |
|
14943 |
|
14944 Reviewed by Alexey Proskuryakov. |
|
14945 |
|
14946 Fix Sec-WebSocketKey{1,2} headers. |
|
14947 |
|
14948 According to WebSocket specification, a value of Sec-WebSocketKey{1,2} header |
|
14949 should not start or end with a space. |
|
14950 |
|
14951 WebSocket: Malformed handshake headers in a worker due to rand_s failing |
|
14952 https://bugs.webkit.org/show_bug.cgi?id=41327 |
|
14953 |
|
14954 No new tests. ASSERT should catch the problem. |
|
14955 |
|
14956 * websockets/WebSocketHandshake.cpp: |
|
14957 (WebCore::generateSecWebSocketKey): |
|
14958 |
|
14959 2010-06-30 Yuzo Fujishima <yuzo@google.com> |
|
14960 |
|
14961 Reviewed by Dan Bernstein. |
|
14962 |
|
14963 Fix for Bug 41339 - unicode-range property only with a descending range |
|
14964 causes a crash |
|
14965 |
|
14966 https://bugs.webkit.org/show_bug.cgi?id=41339 |
|
14967 |
|
14968 Test: fast/css/font-face-descending-unicode-range.html |
|
14969 |
|
14970 * css/CSSParser.cpp: |
|
14971 (WebCore::CSSParser::parseFontFaceUnicodeRange): |
|
14972 |
|
14973 2010-06-29 Abhinav Mithal <abhinav.mithal@nokia.com> |
|
14974 |
|
14975 Reviewed by Laszlo Gombos. |
|
14976 |
|
14977 [Qt] [Symbian] Fix doube-deallocation while destroying PluginContainerSymbian |
|
14978 https://bugs.webkit.org/show_bug.cgi?id=37303 |
|
14979 |
|
14980 * plugins/symbian/PluginViewSymbian.cpp: |
|
14981 (WebCore::PluginView::platformDestroy): |
|
14982 |
|
14983 2010-06-29 Zhenyao Mo <zmo@google.com> |
|
14984 |
|
14985 Reviewed by Dimitri Glazkov. |
|
14986 |
|
14987 Implement getAttachedShaders |
|
14988 https://bugs.webkit.org/show_bug.cgi?id=31172 |
|
14989 |
|
14990 * bindings/js/JSWebGLRenderingContextCustom.cpp: JS binding for getAttachedShaders(). |
|
14991 (WebCore::JSWebGLRenderingContext::getAttachedShaders): |
|
14992 * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp: V8 binding for getAttachedShaders(). |
|
14993 (WebCore::V8WebGLRenderingContext::getAttachedShadersCallback): |
|
14994 * html/canvas/WebGLRenderingContext.cpp: |
|
14995 (WebCore::WebGLRenderingContext::getAttachedShaders): Implementation of getAttachedShaders(). |
|
14996 (WebCore::WebGLRenderingContext::findShader): Helper function to find a shader object from its name. |
|
14997 * html/canvas/WebGLRenderingContext.h: Declaration of getAttachedShaders(). |
|
14998 * html/canvas/WebGLRenderingContext.idl: Ditto. |
|
14999 * platform/graphics/GraphicsContext3D.h: Ditto. |
|
15000 * platform/graphics/mac/GraphicsContext3DMac.mm: |
|
15001 (WebCore::GraphicsContext3D::getAttachedShaders): Implementation of getAttachedShaders(). |
|
15002 |
|
15003 2010-06-29 MORITA Hajime <morrita@google.com> |
|
15004 |
|
15005 Reviewed by Kent Tamura. |
|
15006 |
|
15007 REGRESSION: [Chromium] <progress> appearance on windows looks not good |
|
15008 https://bugs.webkit.org/show_bug.cgi?id=41343 |
|
15009 |
|
15010 RenderThemeChromiumWin::paintProgressBar() should return false, |
|
15011 which indicates the widget is painted. |
|
15012 |
|
15013 Test: fast/dom/HTMLProgressElement/progress-element.html |
|
15014 * rebaselined with a wrong expectation. |
|
15015 |
|
15016 * rendering/RenderThemeChromiumWin.cpp: |
|
15017 (WebCore::RenderThemeChromiumWin::paintProgressBar): |
|
15018 |
|
15019 2010-06-29 Kinuko Yasuda <kinuko@chromium.org> |
|
15020 |
|
15021 Reviewed by Jian Li. |
|
15022 |
|
15023 Fix http/tests/local/blob/send-data-blob.html on Windows |
|
15024 https://bugs.webkit.org/show_bug.cgi?id=41228 |
|
15025 |
|
15026 Fix a regression bug in the line-conversion code. |
|
15027 Rewrite the line-conversion function with simpler functions to |
|
15028 make it less error prone. |
|
15029 |
|
15030 No new tests as this is for bug fixes. |
|
15031 |
|
15032 * platform/BlobItem.cpp: |
|
15033 (WebCore::StringBlobItem::convertToCString): |
|
15034 |
|
15035 2010-06-29 Dumitru Daniliuc <dumi@chromium.org> |
|
15036 |
|
15037 Reviewed by Darin Fisher. |
|
15038 |
|
15039 Implementing DatabaseSync::openDatabaseSync(). |
|
15040 https://bugs.webkit.org/show_bug.cgi?id=40607 |
|
15041 |
|
15042 1. Moved some common code from Database to AbstractDatabase. |
|
15043 2. Made performOpenAndVerify() virtual, since DatabaseSync doesn't |
|
15044 need to interact with DatabaseThread. |
|
15045 3. Removed the m_creationCallback field, since it's only needed in |
|
15046 the openDatabase{Sync} methods. |
|
15047 |
|
15048 * storage/AbstractDatabase.cpp: |
|
15049 (WebCore::retrieveTextResultFromDatabase): |
|
15050 (WebCore::setTextValueInDatabase): |
|
15051 (WebCore::guidMutex): |
|
15052 (WebCore::guidToVersionMap): |
|
15053 (WebCore::updateGuidVersionMap): |
|
15054 (WebCore::guidToDatabaseMap): |
|
15055 (WebCore::guidForOriginAndName): |
|
15056 (WebCore::AbstractDatabase::databaseInfoTableName): |
|
15057 (WebCore::AbstractDatabase::AbstractDatabase): |
|
15058 (WebCore::AbstractDatabase::closeDatabase): |
|
15059 (WebCore::AbstractDatabase::version): |
|
15060 (WebCore::AbstractDatabase::performOpenAndVerify): |
|
15061 (WebCore::AbstractDatabase::scriptExecutionContext): |
|
15062 (WebCore::AbstractDatabase::securityOrigin): |
|
15063 (WebCore::AbstractDatabase::stringIdentifier): |
|
15064 (WebCore::AbstractDatabase::displayName): |
|
15065 (WebCore::AbstractDatabase::estimatedSize): |
|
15066 (WebCore::AbstractDatabase::fileName): |
|
15067 (WebCore::AbstractDatabase::databaseVersionKey): |
|
15068 (WebCore::AbstractDatabase::getVersionFromDatabase): |
|
15069 (WebCore::AbstractDatabase::setVersionInDatabase): |
|
15070 (WebCore::AbstractDatabase::versionMatchesExpected): |
|
15071 (WebCore::AbstractDatabase::setExpectedVersion): |
|
15072 (WebCore::AbstractDatabase::disableAuthorizer): |
|
15073 (WebCore::AbstractDatabase::enableAuthorizer): |
|
15074 (WebCore::AbstractDatabase::setAuthorizerReadOnly): |
|
15075 (WebCore::AbstractDatabase::lastActionChangedDatabase): |
|
15076 (WebCore::AbstractDatabase::lastActionWasInsert): |
|
15077 (WebCore::AbstractDatabase::resetDeletes): |
|
15078 (WebCore::AbstractDatabase::hadDeletes): |
|
15079 (WebCore::AbstractDatabase::resetAuthorizer): |
|
15080 * storage/AbstractDatabase.h: |
|
15081 (WebCore::AbstractDatabase::opened): |
|
15082 (WebCore::AbstractDatabase::isNew): |
|
15083 (WebCore::AbstractDatabase::databaseDebugName): |
|
15084 * storage/Database.cpp: |
|
15085 (WebCore::DatabaseCreationCallbackTask::create): |
|
15086 (WebCore::DatabaseCreationCallbackTask::performTask): |
|
15087 (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask): |
|
15088 (WebCore::Database::openDatabase): |
|
15089 (WebCore::Database::Database): |
|
15090 (WebCore::Database::version): |
|
15091 (WebCore::Database::openAndVerifyVersion): |
|
15092 (WebCore::Database::close): |
|
15093 (WebCore::Database::stop): |
|
15094 (WebCore::Database::performOpenAndVerify): |
|
15095 * storage/Database.h: |
|
15096 (WebCore::Database::sqliteDatabase): |
|
15097 * storage/DatabaseAuthorizer.cpp: |
|
15098 (WebCore::DatabaseAuthorizer::create): |
|
15099 (WebCore::DatabaseAuthorizer::DatabaseAuthorizer): |
|
15100 (WebCore::DatabaseAuthorizer::denyBasedOnTableName): |
|
15101 * storage/DatabaseAuthorizer.h: |
|
15102 * storage/DatabaseSync.cpp: |
|
15103 (WebCore::DatabaseSync::openDatabaseSync): |
|
15104 (WebCore::DatabaseSync::DatabaseSync): |
|
15105 (WebCore::DatabaseSync::~DatabaseSync): |
|
15106 (WebCore::DatabaseSync::markAsDeletedAndClose): |
|
15107 (WebCore::CloseSyncDatabaseOnContextThreadTask::create): |
|
15108 (WebCore::CloseSyncDatabaseOnContextThreadTask::performTask): |
|
15109 (WebCore::CloseSyncDatabaseOnContextThreadTask::CloseSyncDatabaseOnContextThreadTask): |
|
15110 (WebCore::DatabaseSync::closeImmediately): |
|
15111 * storage/DatabaseSync.h: |
|
15112 * storage/DatabaseTask.cpp: |
|
15113 (WebCore::DatabaseOpenTask::DatabaseOpenTask): |
|
15114 (WebCore::DatabaseOpenTask::doPerformTask): |
|
15115 * storage/DatabaseTask.h: |
|
15116 (WebCore::DatabaseOpenTask::create): |
|
15117 |
|
15118 2010-06-29 François Sausset <sausset@gmail.com> |
|
15119 |
|
15120 Reviewed by Darin Adler. |
|
15121 |
|
15122 Fix a bug when a msubsup element is inside a mrow element |
|
15123 https://bugs.webkit.org/show_bug.cgi?id=36525 |
|
15124 |
|
15125 Test: mathml/presentation/subsup.xhtml |
|
15126 |
|
15127 * mathml/RenderMathMLSubSup.cpp: |
|
15128 (WebCore::RenderMathMLSubSup::stretchToHeight): |
|
15129 |
|
15130 2010-06-29 Zhenyao Mo <zmo@google.com> |
|
15131 |
|
15132 Reviewed by Dimitri Glazkov. |
|
15133 |
|
15134 uniformmatrix* should generate INVALID_VALUE with transpose = true |
|
15135 https://bugs.webkit.org/show_bug.cgi?id=41235 |
|
15136 |
|
15137 Test: fast/canvas/webgl/gl-uniformmatrix4fv.html |
|
15138 |
|
15139 * html/canvas/WebGLRenderingContext.cpp: |
|
15140 (WebCore::WebGLRenderingContext::uniformMatrix2fv): Call validateUniformMatrixParameters instead. |
|
15141 (WebCore::WebGLRenderingContext::uniformMatrix3fv): Ditto. |
|
15142 (WebCore::WebGLRenderingContext::uniformMatrix4fv): Ditto. |
|
15143 (WebCore::WebGLRenderingContext::validateUniformMatrixParameters): Validate input parameters for uniformMatrix*(). |
|
15144 * html/canvas/WebGLRenderingContext.h: Declare validateUniformMatrixParameters(). |
|
15145 |
|
15146 2010-06-29 Kenneth Russell <kbr@google.com> |
|
15147 |
|
15148 Reviewed by Dimitri Glazkov. |
|
15149 |
|
15150 Support UNPACK_FLIP_Y_WEBGL and UNPACK_PREMULTIPLY_ALPHA_WEBGL for texImage2D taking ArrayBufferView |
|
15151 https://bugs.webkit.org/show_bug.cgi?id=40398 |
|
15152 |
|
15153 Added support for UNPACK_FLIP_Y_WEBGL and UNPACK_PREMULTIPLY_ALPHA_WEBGL pixel store |
|
15154 parameters to texImage2D and texSubImage2D entry points taking ArrayBufferView. |
|
15155 More cleanly separated the unpacking and packing phases of user-supplied pixel data |
|
15156 in GraphicsContext3D, and added support for unpack alignment. Fixed bug in handling |
|
15157 of unpackAlignment in GraphicsContext3D::flipVertically. Necessarily added |
|
15158 validation of the amount of data passed to texImage2D and texSubImage2D. Modified |
|
15159 fast/canvas/webgl/tex-image-with-format-and-type.html to include premultiplied alpha |
|
15160 tests for relevant source formats; added new test which exercises all combinations |
|
15161 of UNPACK_FLIP_Y_WEBGL, UNPACK_PREMULTIPLY_ALPHA_WEBGL, and UNPACK_ALIGNMENT pixel |
|
15162 store parameters. |
|
15163 |
|
15164 Test: fast/canvas/webgl/tex-image-and-sub-image-2d-with-array-buffer-view.html |
|
15165 |
|
15166 * html/canvas/WebGLRenderingContext.cpp: |
|
15167 (WebCore::WebGLRenderingContext::texImage2D): |
|
15168 (WebCore::WebGLRenderingContext::texSubImage2D): |
|
15169 (WebCore::WebGLRenderingContext::validateTexFuncData): |
|
15170 * html/canvas/WebGLRenderingContext.h: |
|
15171 * platform/graphics/GraphicsContext3D.cpp: |
|
15172 (WebCore::GraphicsContext3D::extractImageData): |
|
15173 (WebCore::GraphicsContext3D::extractTextureData): |
|
15174 (WebCore::GraphicsContext3D::flipVertically): |
|
15175 (WebCore::doUnpackingAndPacking): |
|
15176 (WebCore::computeIncrementParameters): |
|
15177 (WebCore::doPacking): |
|
15178 (WebCore::GraphicsContext3D::packPixels): |
|
15179 * platform/graphics/GraphicsContext3D.h: |
|
15180 (WebCore::GraphicsContext3D::): |
|
15181 * platform/graphics/cg/GraphicsContext3DCG.cpp: |
|
15182 (WebCore::GraphicsContext3D::getImageData): |
|
15183 * platform/graphics/qt/GraphicsContext3DQt.cpp: |
|
15184 (WebCore::GraphicsContext3D::getImageData): |
|
15185 * platform/graphics/skia/GraphicsContext3DSkia.cpp: |
|
15186 (WebCore::GraphicsContext3D::getImageData): |
|
15187 |
|
15188 2010-06-29 Patrick Gansterer <paroga@paroga.com> |
|
15189 |
|
15190 Reviewed by Dirk Schulze. |
|
15191 |
|
15192 Buildfix for !ENABLE(SVG_FOREIGN_OBJECT) after r61667. |
|
15193 https://bugs.webkit.org/show_bug.cgi?id=41367 |
|
15194 |
|
15195 * svg/SVGSVGElement.cpp: |
|
15196 (WebCore::SVGSVGElement::isOutermostSVG): Add missing ENABLE(SVG_FOREIGN_OBJECT). |
|
15197 |
|
15198 2010-06-29 Patrick Gansterer <paroga@paroga.com> |
|
15199 |
|
15200 Reviewed by Darin Adler. |
|
15201 |
|
15202 Buildfix after r62118. |
|
15203 https://bugs.webkit.org/show_bug.cgi?id=41365 |
|
15204 |
|
15205 * rendering/RenderSVGRoot.cpp: Inlude missing RenderSVGResource.h. |
|
15206 |
|
15207 2010-06-29 Sheriff Bot <webkit.review.bot@gmail.com> |
|
15208 |
|
15209 Unreviewed, rolling out r62052. |
|
15210 http://trac.webkit.org/changeset/62052 |
|
15211 https://bugs.webkit.org/show_bug.cgi?id=41357 |
|
15212 |
|
15213 Causes crashes in JSLazyEventListener::initializeFunction (see |
|
15214 bug 41352) (Requested by aroben on #webkit). |
|
15215 |
|
15216 * bindings/js/ScriptEventListener.cpp: |
|
15217 (WebCore::createAttributeEventListener): |
|
15218 * bindings/js/ScriptEventListener.h: |
|
15219 * bindings/v8/ScriptEventListener.cpp: |
|
15220 (WebCore::createAttributeEventListener): |
|
15221 * bindings/v8/ScriptEventListener.h: |
|
15222 * html/HTMLBodyElement.cpp: |
|
15223 (WebCore::HTMLBodyElement::parseMappedAttribute): |
|
15224 * html/HTMLFrameSetElement.cpp: |
|
15225 (WebCore::HTMLFrameSetElement::parseMappedAttribute): |
|
15226 * svg/SVGSVGElement.cpp: |
|
15227 (WebCore::SVGSVGElement::parseMappedAttribute): |
|
15228 |
|
15229 2010-06-29 Sheriff Bot <webkit.review.bot@gmail.com> |
|
15230 |
|
15231 Unreviewed, rolling out r62129. |
|
15232 http://trac.webkit.org/changeset/62129 |
|
15233 https://bugs.webkit.org/show_bug.cgi?id=41362 |
|
15234 |
|
15235 Needed to roll out r62052 (see bug 41357) (Requested by aroben |
|
15236 on #webkit). |
|
15237 |
|
15238 * bindings/js/ScriptEventListener.cpp: |
|
15239 (WebCore::createWindowAttributeEventListener): |
|
15240 |
|
15241 2010-06-29 Beth Dakin <bdakin@apple.com> |
|
15242 |
|
15243 Reviewed by Darin Adler. |
|
15244 |
|
15245 Speculative fix for <rdar://problem/8071558> CrashTracer: [USER] |
|
15246 2300+ crashes in Safari at com.apple.WebCore: |
|
15247 WebCore::FrameView::scheduleRelayout + 352 |
|
15248 |
|
15249 Unfortunately, we don't have a reproducible case for this bug, and |
|
15250 therefore, we do not have a layout test either. It is pretty clear |
|
15251 from the logs that m_frame->settings() is null in |
|
15252 FrameView::scheduleRelayout() in the crashing case. |
|
15253 m_frame->settings() is null whenever page is null. Everywhere else |
|
15254 in FrameView.cpp we null-check either page or settings before using |
|
15255 settings. It seems plausible to me that scheduleRelayout could be |
|
15256 called when page is null, so the fix is just to add null-checks. |
|
15257 |
|
15258 * page/FrameView.cpp: |
|
15259 (WebCore::FrameView::layout): |
|
15260 (WebCore::FrameView::scheduleRelayout): |
|
15261 |
|
15262 2010-06-29 Dan Bernstein <mitz@apple.com> |
|
15263 |
|
15264 Reviewed by Darin Adler. |
|
15265 |
|
15266 <rdar://problem/7975842> Certain text is repeated after using splitText() |
|
15267 |
|
15268 Tests: fast/text/setData-dirty-lines.html |
|
15269 fast/text/splitText-dirty-lines.html |
|
15270 |
|
15271 * dom/CharacterData.cpp: |
|
15272 (WebCore::CharacterData::setData): Call RenderText::setTextWithOffset() rather than |
|
15273 setText(), because only the former correctly dirties line boxes. |
|
15274 * dom/Text.cpp: |
|
15275 (WebCore::Text::splitText): Ditto. |
|
15276 |
|
15277 2010-06-29 Sheriff Bot <webkit.review.bot@gmail.com> |
|
15278 |
|
15279 Unreviewed, rolling out r62073. |
|
15280 http://trac.webkit.org/changeset/62073 |
|
15281 https://bugs.webkit.org/show_bug.cgi?id=41359 |
|
15282 |
|
15283 Necessary to fix chromium build when r62052 is rolled out. |
|
15284 (Requested by dave_levin on #webkit). |
|
15285 |
|
15286 * bindings/v8/ScriptEventListener.h: |
|
15287 |
|
15288 2010-06-29 Vangelis Kokkevis <vangelis@chromium.org> |
|
15289 |
|
15290 Reviewed by Darin Fisher. |
|
15291 |
|
15292 [Chromium] Hooking up WebGL layers to the gpu-compositor. Implement missing |
|
15293 methods to set the contents of a GraphicsLayer with a platform specific WebGL |
|
15294 Layer, and to update the contents of the WebGL Layer when needed. |
|
15295 https://bugs.webkit.org/show_bug.cgi?id=41243 |
|
15296 |
|
15297 * platform/graphics/GraphicsContext3D.h: |
|
15298 * platform/graphics/chromium/GraphicsLayerChromium.cpp: |
|
15299 (WebCore::GraphicsLayerChromium::setContentsToWebGL): |
|
15300 * platform/graphics/chromium/GraphicsLayerChromium.h: |
|
15301 * platform/graphics/chromium/LayerChromium.cpp: |
|
15302 (WebCore::LayerChromium::removeAllSublayers): |
|
15303 No need to call setNeedsCommit() from here as the previous call to |
|
15304 layer->removeFromSuperlayer() will have that effect (and we only need |
|
15305 to notify the owner if there were actually any sublayers removed). |
|
15306 * platform/graphics/chromium/LayerChromium.h: |
|
15307 * platform/graphics/chromium/LayerRendererChromium.cpp: |
|
15308 (WebCore::LayerRendererChromium::drawLayer): |
|
15309 * platform/graphics/chromium/WebGLLayerChromium.cpp: |
|
15310 (WebCore::WebGLLayerChromium::create): |
|
15311 (WebCore::WebGLLayerChromium::updateTextureContents): |
|
15312 (WebCore::WebGLLayerChromium::setContext): |
|
15313 |
|
15314 2010-06-29 Csaba Osztrogonác <ossy@webkit.org> |
|
15315 |
|
15316 Reviewed by Nikolas Zimmermann. |
|
15317 |
|
15318 Buildfix for --minimal build after r62052 |
|
15319 https://bugs.webkit.org/show_bug.cgi?id=41338 |
|
15320 |
|
15321 * bindings/js/ScriptEventListener.cpp: #if ENABLE(SVG) guards added. |
|
15322 (WebCore::createWindowAttributeEventListener): |
|
15323 |
|
15324 2010-06-29 Brent Fulgham <bfulgham@webkit.org> |
|
15325 |
|
15326 Build fix. Not reviewd. |
|
15327 |
|
15328 CGColor is only used for PLATFORM(CG). Conditionalize include |
|
15329 to correct build failure for WinCairo. |
|
15330 |
|
15331 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp: |
|
15332 Conditionalize use of CGColor. |
|
15333 |
|
15334 2010-06-29 Martin Robinson <mrobinson@igalia.com> |
|
15335 |
|
15336 Reviewed by Xan Lopez. |
|
15337 |
|
15338 [GTK] Clean up the source lists in the GNUMakefile.am files |
|
15339 https://bugs.webkit.org/show_bug.cgi?id=41229 |
|
15340 |
|
15341 Clean up the GNUMakefile.am a little bit. Alphabetize and conglomerate |
|
15342 the source lists. |
|
15343 |
|
15344 * GNUmakefile.am: |
|
15345 |
|
15346 2010-06-29 Martin Robinson <mrobinson@igalia.com> |
|
15347 |
|
15348 Reviewed by Xan Lopez. |
|
15349 |
|
15350 [GTK] DragDataGtk should use DataObjectGtk as the platformDragData |
|
15351 https://bugs.webkit.org/show_bug.cgi?id=40307 |
|
15352 |
|
15353 Use DataObjectGtk as the platformDragData for DragDataGtk. DataObjectGtk |
|
15354 contains all the information necessary to keep track of drops in progress. |
|
15355 |
|
15356 * platform/DragData.h: Use a DataObjectGtk* as the platform drag data. |
|
15357 * platform/gtk/DragDataGtk.cpp: |
|
15358 (WebCore::DragData::containsFiles): Retrieve information via platformDragData. |
|
15359 (WebCore::DragData::asFilenames): Ditto. |
|
15360 (WebCore::DragData::containsPlainText): Ditto. |
|
15361 (WebCore::DragData::asPlainText): Ditto. |
|
15362 (WebCore::DragData::createClipboard): Create the Clipboard with the platformDragData. |
|
15363 (WebCore::DragData::containsCompatibleContent): Retrieve information via platformDragData. |
|
15364 (WebCore::DragData::containsURL): Ditto. |
|
15365 (WebCore::DragData::asURL): Ditto. |
|
15366 (WebCore::DragData::asFragment): Ditto. |
|
15367 |
|
15368 2010-06-29 Adam Langley <agl@chromium.org> |
|
15369 |
|
15370 Build fix. Not reviewd. |
|
15371 |
|
15372 * platform/graphics/chromium/FontPlatformDataLinux.cpp: |
|
15373 (WebCore::FontPlatformData::setupPaint): |
|
15374 The name of the Skia function changed between writing this patch and |
|
15375 commiting it. |
|
15376 |
|
15377 2010-06-29 Adam Langley <agl@chromium.org> |
|
15378 |
|
15379 Reviewed by Kent Tamura. |
|
15380 |
|
15381 [chromium] Support forced autohinting. |
|
15382 |
|
15383 https://bugs.webkit.org/show_bug.cgi?id=40493 |
|
15384 |
|
15385 Freetype (the typical font rendering on Linux) includes an 'autohinter': |
|
15386 an algorithm for hinting glyph shapes without using the embedded hinting |
|
15387 bytecode in a font. |
|
15388 |
|
15389 Some people prefer the autohinter's results, so we support forcing its |
|
15390 use. |
|
15391 |
|
15392 This change also fixes a bug where two FontPlatformData structures would |
|
15393 compare equal, even if their rendering styles were different. |
|
15394 |
|
15395 * platform/graphics/chromium/FontPlatformDataLinux.cpp: |
|
15396 (WebCore::FontPlatformData::setupPaint): |
|
15397 In order to compare FontPlatformData structures we need to make sure |
|
15398 that they are initialised. |
|
15399 (WebCore::FontPlatformData::operator==): |
|
15400 * platform/graphics/chromium/FontRenderStyle.h: |
|
15401 (WebCore::FontRenderStyle::FontRenderStyle): |
|
15402 (WebCore::FontRenderStyle::operator==): |
|
15403 This fixes the case where two FontPlatformData structures, differing |
|
15404 only by rendering style, would compare equal. |
|
15405 |
|
15406 2010-06-29 Laszlo Gombos <laszlo.1.gombos@nokia.com> |
|
15407 |
|
15408 Unreviewed, Symbian build fix. |
|
15409 |
|
15410 Add more directories to USERINCLUDE so that they get included |
|
15411 before the Symbian system headers. |
|
15412 |
|
15413 This is a workaround to some toolchain problems; bug 31273 is used to |
|
15414 find a better solution. |
|
15415 |
|
15416 No new tests as there is no new functionality. |
|
15417 |
|
15418 * WebCore.pro: |
|
15419 |
|
15420 2010-06-29 Nikolas Zimmermann <nzimmermann@rim.com> |
|
15421 |
|
15422 Reviewed by Dirk Schulze. |
|
15423 |
|
15424 Cleanup SVGRenderSupport |
|
15425 https://bugs.webkit.org/show_bug.cgi?id=41347 |
|
15426 |
|
15427 Remove SVGRenderBase base class from all SVG renderers. It was meant as temporary solution until all SVG renderers inherit from RenderSVGModelObject, |
|
15428 though this is not going to happen. RenderSVGModelObject inherits from RenderObject, making it impossible to inherit eg. RenderSVGImage from it, as |
|
15429 it already indirectly inherits from RenderObject, through RenderImage. Other examples are RenderForeignObject (RenderBlock inheritance), |
|
15430 RenderSVGInlineText (RenderText inheritance) etc. |
|
15431 |
|
15432 Rename SVGRenderBase to SVGRenderSupport, just like the file is named, remove all free functions, and make them all static functions in SVGRenderSupport. |
|
15433 We can still share code between all SVG renderers, but don't need a special base class for all renderers -> shrink size of all SVG renderers. |
|
15434 |
|
15435 Doesn't affect any test. |
|
15436 |
|
15437 * rendering/RenderBox.cpp: Remove localTransform() override, not needed at all. |
|
15438 * rendering/RenderBox.h: Ditto. |
|
15439 * rendering/RenderForeignObject.cpp: s/SVGRenderBase/SVGRenderSupport/ |
|
15440 (WebCore::RenderForeignObject::paint): |
|
15441 (WebCore::RenderForeignObject::clippedOverflowRectForRepaint): |
|
15442 (WebCore::RenderForeignObject::computeRectForRepaint): |
|
15443 (WebCore::RenderForeignObject::nodeAtFloatPoint): |
|
15444 (WebCore::RenderForeignObject::mapLocalToContainer): |
|
15445 * rendering/RenderPath.cpp: |
|
15446 (WebCore::BoundingRectStrokeStyleApplier::strokeStyle): applyStrokeStyleToContext is a static function in SVGRenderSupport now. |
|
15447 (WebCore::RenderPath::paint): s/SVGRenderBase/SVGRenderSupport/ |
|
15448 (WebCore::RenderPath::nodeAtFloatPoint): Ditto. |
|
15449 (WebCore::RenderPath::updateCachedBoundaries): Ditto. |
|
15450 * rendering/RenderSVGBlock.h: Remove SVGRenderBase inheritance. |
|
15451 * rendering/RenderSVGContainer.cpp: |
|
15452 (WebCore::RenderSVGContainer::layout): layoutChildren is a static function in SVGRenderSupport now. |
|
15453 (WebCore::RenderSVGContainer::paint): prepareToRenderSVGContent/finishRenderSVGContent are now static functions in SVGRenderSupport. |
|
15454 (WebCore::RenderSVGContainer::objectBoundingBox): computeContainerBoundingBox is a static function in SVGRenderSupport now. |
|
15455 (WebCore::RenderSVGContainer::strokeBoundingBox): Ditto. |
|
15456 (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates): Remove call to computeContainerBoundingBox, use strokeBoundingBox instead, for consistency. |
|
15457 (WebCore::RenderSVGContainer::nodeAtFloatPoint): pointInClippingArea is a static function in SVGRenderSupport now. |
|
15458 * rendering/RenderSVGHiddenContainer.cpp: |
|
15459 (WebCore::RenderSVGHiddenContainer::layout): layoutChildren is a static function in SVGRenderSupport now. |
|
15460 * rendering/RenderSVGImage.cpp: |
|
15461 (WebCore::RenderSVGImage::paint): prepareToRenderSVGContent/finishRenderSVGContent are static functions in SVGRenderSupport now. |
|
15462 (WebCore::RenderSVGImage::destroy): deregisterResource was renamed to invalidateAllResourcesOfRenderer and is a static function in SVGRenderSupport. |
|
15463 (WebCore::RenderSVGImage::nodeAtFloatPoint): pointInClippingArea is a static function in SVGRenderSupport now. |
|
15464 (WebCore::RenderSVGImage::repaintRectInLocalCoordinates): intersectRepaintRectWithResources is a static function in SVGRenderSupport now. |
|
15465 (WebCore::RenderSVGImage::clippedOverflowRectForRepaint): s/SVGRenderBase/SVGRenderSupport/ |
|
15466 (WebCore::RenderSVGImage::computeRectForRepaint): Ditto. |
|
15467 (WebCore::RenderSVGImage::mapLocalToContainer): Ditto. |
|
15468 * rendering/RenderSVGImage.h: Remove SVGRenderBase inheritance. |
|
15469 * rendering/RenderSVGInline.cpp: |
|
15470 (WebCore::RenderSVGInline::objectBoundingBox): findTextRootObject is a static function in SVGRenderSupport now. |
|
15471 (WebCore::RenderSVGInline::strokeBoundingBox): Ditto. |
|
15472 (WebCore::RenderSVGInline::repaintRectInLocalCoordinates): Ditto. |
|
15473 (WebCore::RenderSVGInline::clippedOverflowRectForRepaint): s/SVGRenderBase/SVGRenderSupport/ |
|
15474 (WebCore::RenderSVGInline::computeRectForRepaint): Ditto,. |
|
15475 (WebCore::RenderSVGInline::mapLocalToContainer): Ditto. |
|
15476 (WebCore::RenderSVGInline::absoluteQuads): findTextRootObject is a static function in SVGRenderSupport now. |
|
15477 * rendering/RenderSVGInline.h: Remove SVGRenderBase inheritance. |
|
15478 * rendering/RenderSVGModelObject.cpp: |
|
15479 (WebCore::RenderSVGModelObject::clippedOverflowRectForRepaint): s/SVGRenderBase/SVGRenderSupport/ |
|
15480 (WebCore::RenderSVGModelObject::computeRectForRepaint): Ditto. |
|
15481 (WebCore::RenderSVGModelObject::mapLocalToContainer): Ditto. |
|
15482 (WebCore::RenderSVGModelObject::destroy): deregisterResource was renamed to invalidateAllResourcesOfRenderer and is a static function in SVGRenderSupport. |
|
15483 * rendering/RenderSVGModelObject.h: Remove SVGRenderBase inheritance. |
|
15484 * rendering/RenderSVGResource.cpp: |
|
15485 (WebCore::invalidatePaintingResource): Moved here from SVGRenderSupport (static inline helper function). |
|
15486 (WebCore::RenderSVGResource::invalidateAllResourcesOfRenderer): Moved here from SVGRenderSupport and renamed from deregisterFromResources. |
|
15487 * rendering/RenderSVGResource.h: Expose invalidateAllResourcesOfRenderer function. |
|
15488 * rendering/RenderSVGResourceClipper.cpp: |
|
15489 (WebCore::RenderSVGResourceClipper::createClipData): renderSubtreeToImage is a static function in SVGRenderSupport now. |
|
15490 (WebCore::RenderSVGResourceClipper::hitTestClipContent): Ditto. |
|
15491 * rendering/RenderSVGResourceGradient.cpp: |
|
15492 (WebCore::createMaskAndSwapContextForTextGradient): findTextRootObject is a static function in SVGRenderSupport now. |
|
15493 (WebCore::clipToTextMask): Ditto. |
|
15494 (WebCore::RenderSVGResourceGradient::applyResource): applyStrokeStyleToContext is a static function in SVGRenderSupport now. |
|
15495 (WebCore::RenderSVGResourceGradient::postApplyResource): findTextRootObject is a static function in SVGRenderSupport now. |
|
15496 * rendering/RenderSVGResourceMarker.cpp: |
|
15497 (WebCore::RenderSVGResourceMarker::applyViewportClip): s/SVGRenderBase/SVGRenderSupport/ |
|
15498 * rendering/RenderSVGResourceMasker.cpp: |
|
15499 (WebCore::RenderSVGResourceMasker::createMaskImage): renderSubtreeToImage is a static function in SVGRenderSupport now. |
|
15500 * rendering/RenderSVGResourcePattern.cpp: |
|
15501 (WebCore::RenderSVGResourcePattern::applyResource): applyStrokeStyleToContext is a static function in SVGRenderSupport now. |
|
15502 (WebCore::clampImageBufferSizeToViewport): Moved here from SVGRenderSupport. |
|
15503 (WebCore::RenderSVGResourcePattern::createTileImage): renderSubtreeToImage is a static function in SVGRenderSupport now. |
|
15504 * rendering/RenderSVGResourceSolidColor.cpp: |
|
15505 (WebCore::RenderSVGResourceSolidColor::applyResource): applyStrokeStyleToContext is a static function in SVGRenderSupport now |
|
15506 * rendering/RenderSVGRoot.cpp: |
|
15507 (WebCore::RenderSVGRoot::layout): layoutChildren is a static function in SVGRenderSupport now. |
|
15508 (WebCore::RenderSVGRoot::paint): prepareToRenderSVGContent/finishRenderSVGContent are now static functions in SVGRenderSupport. |
|
15509 (WebCore::RenderSVGRoot::destroy): deregisterResource was renamed to invalidateAllResourcesOfRenderer and is a static function in SVGRenderSupport. |
|
15510 (WebCore::RenderSVGRoot::repaintRectInLocalCoordinates): Remove call to computeContainerBoundingBox, use strokeBoundingBox instead, for consistency. |
|
15511 * rendering/RenderSVGRoot.h: Remove localTransform() override, no longer needed. Remove SVGRenderBase inheritance. |
|
15512 (WebCore::RenderSVGRoot::objectBoundingBox): Inlined for speeed. |
|
15513 (WebCore::RenderSVGRoot::strokeBoundingBox): computeContainerBoundingBox is a static function in SVGRenderSupport now. |
|
15514 * rendering/RenderSVGText.cpp: |
|
15515 (WebCore::RenderSVGText::clippedOverflowRectForRepaint): s/SVGRenderBase/SVGRenderSupport/ |
|
15516 (WebCore::RenderSVGText::computeRectForRepaint): Ditto. |
|
15517 (WebCore::RenderSVGText::mapLocalToContainer): Ditto. |
|
15518 (WebCore::RenderSVGText::nodeAtFloatPoint): pointInClippingArea is a static function in SVGRenderSupport now. |
|
15519 (WebCore::RenderSVGText::destroy): deregisterResource was renamed to invalidateAllResourcesOfRenderer and is a static function in SVGRenderSupport. |
|
15520 (WebCore::RenderSVGText::repaintRectInLocalCoordinates): intersectRepaintRectWithResources is a static function in SVGRenderSupport now. |
|
15521 * rendering/RenderSVGViewportContainer.cpp: |
|
15522 (WebCore::RenderSVGViewportContainer::applyViewportClip): s/SVGRenderBase/SVGRenderSupport/ |
|
15523 (WebCore::RenderSVGViewportContainer::pointIsInsideViewportClip): pointInClippingArea is a static function in SVGRenderSupport now. |
|
15524 * rendering/SVGInlineFlowBox.cpp: |
|
15525 (WebCore::SVGInlineFlowBox::paint): prepareToRenderSVGContent/finishRenderSVGContent are now static functions in SVGRenderSupport. |
|
15526 * rendering/SVGRenderSupport.cpp: Make it impossible to construct the class. Remove virtual destructor, made all methods static. |
|
15527 (WebCore::SVGRenderSupport::clippedOverflowRectForRepaint): s/SVGRenderBase/SVGRenderSupport/ |
|
15528 (WebCore::SVGRenderSupport::computeRectForRepaint): Ditto. |
|
15529 (WebCore::SVGRenderSupport::mapLocalToContainer): Ditto. |
|
15530 (WebCore::SVGRenderSupport::prepareToRenderSVGContent): Ditto. |
|
15531 (WebCore::SVGRenderSupport::finishRenderSVGContent): Ditto. |
|
15532 (WebCore::SVGRenderSupport::renderSubtreeToImage): Made static. |
|
15533 (WebCore::SVGRenderSupport::computeContainerBoundingBox): Ditto. |
|
15534 (WebCore::SVGRenderSupport::layoutChildren): Ditto. |
|
15535 (WebCore::SVGRenderSupport::isOverflowHidden): s/SVGRenderBase/SVGRenderSupport/ |
|
15536 (WebCore::SVGRenderSupport::intersectRepaintRectWithResources): Ditto. |
|
15537 (WebCore::SVGRenderSupport::pointInClippingArea): Made static. |
|
15538 (WebCore::SVGRenderSupport::dashArrayFromRenderingStyle): Ditto. |
|
15539 (WebCore::SVGRenderSupport::applyStrokeStyleToContext): Ditto. |
|
15540 (WebCore::SVGRenderSupport::findTextRootObject): Ditto. |
|
15541 * rendering/SVGRenderSupport.h: |
|
15542 * rendering/SVGRenderTreeAsText.cpp: |
|
15543 (WebCore::writeStyle): dashArrayFromRenderingStyle is a static function in SVGRenderSupport now. |
|
15544 * rendering/SVGRootInlineBox.cpp: |
|
15545 (WebCore::SVGRootInlineBox::paint): s/SVGRenderBase/SVGRenderSupport/ |
|
15546 * rendering/SVGRootInlineBox.h: Remove SVGRenderBase inheritance. |
|
15547 * svg/SVGFEImageElement.cpp: Add RenderObject.h include, otherwhise it won't build anymore. |
|
15548 (WebCore::SVGFEImageElement::build): renderSubtreeToImage is a static function in SVGRenderSupport now. |
|
15549 * svg/SVGStyledElement.cpp: |
|
15550 (WebCore::SVGStyledElement::svgAttributeChanged): deregisterResource was renamed to invalidateAllResourcesOfRenderer and is a static function in SVGRenderSupport. |
|
15551 |
|
15552 2010-06-21 Philippe Normand <pnormand@igalia.com> |
|
15553 |
|
15554 Reviewed by Xan Lopez. |
|
15555 |
|
15556 [PNG decoder] direct access to jmpbuf is deprecated in libpng >= 1.4.0beta103 |
|
15557 https://bugs.webkit.org/show_bug.cgi?id=40907 |
|
15558 |
|
15559 Define a JMPBUF macro to cope with deprecation of the jmpbuf |
|
15560 attribute in libpng >= 1.4. |
|
15561 |
|
15562 * platform/image-decoders/png/PNGImageDecoder.cpp: |
|
15563 (WebCore::decodingFailed): |
|
15564 (WebCore::PNGImageReader::decode): |
|
15565 (WebCore::PNGImageDecoder::headerAvailable): |
|
15566 (WebCore::PNGImageDecoder::rowAvailable): |
|
15567 |
|
15568 2010-06-29 Kristian Amlie <kristian.amlie@nokia.com> |
|
15569 |
|
15570 Reviewed by Simon Hausmann. |
|
15571 |
|
15572 [Qt/Symbian] Fixed deployment paths for WebKit declarative plugin. |
|
15573 |
|
15574 * WebCore.pro: |
|
15575 |
|
15576 2010-06-29 Yury Semikhatsky <yurys@chromium.org> |
|
15577 |
|
15578 Unreviewed: Chromium Win and Mac build fix. |
|
15579 |
|
15580 * bindings/v8/ScriptDebugServer.cpp: |
|
15581 (WebCore::ScriptDebugServer::setBreakpoint): |
|
15582 |
|
15583 2010-06-29 Nikolas Zimmermann <nzimmermann@rim.com> |
|
15584 |
|
15585 Reviewed by Dirk Schulze. |
|
15586 |
|
15587 Move PaintInfo/PaintPhase into their own headers, out of RenderObject |
|
15588 https://bugs.webkit.org/show_bug.cgi?id=41342 |
|
15589 |
|
15590 1) Move enums PaintPhase/PaintBehaviorFlags and the PaintBehaviour typedef from RenderObject into PaintPhase.h. |
|
15591 Move PaintInfo from RenderObject into PaintInfo.h. Replace s/RenderObject::PaintInfo/PaintInfo/ throughout WebCore/. |
|
15592 Also move the OverlapTestRequestMap typedef into PaintInfo.h, and replace s/RenderObject::OverlapTestRequestMap/OverlapTestRequestMap/ everywhere. |
|
15593 |
|
15594 2) Move "RenderObject* paintingRootForChildren(PaintInfo& paintInfo) const" from RenderObject to PaintInfo |
|
15595 and modify it to take a renderer: "void updatePaintingRootForChildren(const RenderObject* renderer)". |
|
15596 |
|
15597 This changes a common idiom: |
|
15598 - info.paintingRoot = paintingRootForChildren(paintInfo); |
|
15599 + info.updatePaintingRootForChildren(this); |
|
15600 |
|
15601 We save resetting the paintingRoot to 0 if it was 0 already and thus do less work. |
|
15602 |
|
15603 3) Move "bool shouldPaintWithinRoot(PaintInfo& paintInfo) const" from RenderObject to PaintInfo |
|
15604 and modify it to take a renderer: "bool shouldPaintWithinRoot(const RenderObject* renderer) const". |
|
15605 |
|
15606 This changes a common idiom: |
|
15607 - if (!shouldPaintWithinRoot(paintInfo)) |
|
15608 + if (!paintInfo.shouldPaintWithinRoot(this)) |
|
15609 |
|
15610 4) Move "void applyTransformToPaintInfo(RenderObject::PaintInfo&, const AffineTransform& localToChildTransform)" |
|
15611 from SVGRenderSupport to PaintInfo and rename it to "applyTransform", guarded with ENABLE(SVG) blocks. |
|
15612 |
|
15613 This changes a common idiom: |
|
15614 - applyTransformToPaintInfo(childPaintInfo, localToParentTransform()); |
|
15615 + childPaintInfo.applyTransform(localToParentTransform()); |
|
15616 |
|
15617 Add PaintInfo.h / PaintPhase.h to all build systems that list headers. |
|
15618 |
|
15619 * GNUmakefile.am: |
|
15620 * WebCore.gypi: |
|
15621 * WebCore.pro: |
|
15622 * WebCore.vcproj/WebCore.vcproj: |
|
15623 * WebCore.xcodeproj/project.pbxproj: |
|
15624 * platform/android/RenderThemeAndroid.cpp: |
|
15625 (WebCore::getCanvasFromInfo): |
|
15626 (WebCore::RenderThemeAndroid::paintCheckbox): |
|
15627 (WebCore::RenderThemeAndroid::paintButton): |
|
15628 (WebCore::RenderThemeAndroid::paintRadio): |
|
15629 (WebCore::RenderThemeAndroid::paintTextField): |
|
15630 (WebCore::RenderThemeAndroid::paintTextArea): |
|
15631 (WebCore::RenderThemeAndroid::paintSearchField): |
|
15632 (WebCore::RenderThemeAndroid::paintCombo): |
|
15633 (WebCore::RenderThemeAndroid::paintMenuList): |
|
15634 (WebCore::RenderThemeAndroid::paintMenuListButton): |
|
15635 * platform/android/RenderThemeAndroid.h: |
|
15636 * platform/efl/RenderThemeEfl.cpp: |
|
15637 (WebCore::RenderThemeEfl::paintThemePart): |
|
15638 (WebCore::RenderThemeEfl::paintCheckbox): |
|
15639 (WebCore::RenderThemeEfl::paintRadio): |
|
15640 (WebCore::RenderThemeEfl::paintButton): |
|
15641 (WebCore::RenderThemeEfl::paintMenuList): |
|
15642 (WebCore::RenderThemeEfl::paintTextField): |
|
15643 (WebCore::RenderThemeEfl::paintTextArea): |
|
15644 (WebCore::RenderThemeEfl::paintSearchFieldDecoration): |
|
15645 (WebCore::RenderThemeEfl::paintSearchFieldResultsButton): |
|
15646 (WebCore::RenderThemeEfl::paintSearchFieldResultsDecoration): |
|
15647 (WebCore::RenderThemeEfl::paintSearchFieldCancelButton): |
|
15648 (WebCore::RenderThemeEfl::paintSearchField): |
|
15649 * platform/efl/RenderThemeEfl.h: |
|
15650 * platform/gtk/RenderThemeGtk.cpp: |
|
15651 (WebCore::paintMozillaGtkWidget): |
|
15652 (WebCore::RenderThemeGtk::paintCheckbox): |
|
15653 (WebCore::RenderThemeGtk::paintRadio): |
|
15654 (WebCore::RenderThemeGtk::paintButton): |
|
15655 (WebCore::RenderThemeGtk::paintMenuList): |
|
15656 (WebCore::RenderThemeGtk::paintTextField): |
|
15657 (WebCore::RenderThemeGtk::paintTextArea): |
|
15658 (WebCore::RenderThemeGtk::paintSearchFieldResultsButton): |
|
15659 (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration): |
|
15660 (WebCore::RenderThemeGtk::paintSearchFieldCancelButton): |
|
15661 (WebCore::RenderThemeGtk::paintSearchField): |
|
15662 (WebCore::RenderThemeGtk::paintSliderTrack): |
|
15663 (WebCore::RenderThemeGtk::paintSliderThumb): |
|
15664 (WebCore::RenderThemeGtk::paintMediaFullscreenButton): |
|
15665 (WebCore::RenderThemeGtk::paintMediaMuteButton): |
|
15666 (WebCore::RenderThemeGtk::paintMediaPlayButton): |
|
15667 (WebCore::RenderThemeGtk::paintMediaSeekBackButton): |
|
15668 (WebCore::RenderThemeGtk::paintMediaSeekForwardButton): |
|
15669 (WebCore::RenderThemeGtk::paintMediaSliderTrack): |
|
15670 (WebCore::RenderThemeGtk::paintMediaSliderThumb): |
|
15671 (WebCore::RenderThemeGtk::paintProgressBar): |
|
15672 * platform/gtk/RenderThemeGtk.h: |
|
15673 * platform/haiku/RenderThemeHaiku.cpp: |
|
15674 (WebCore::RenderThemeHaiku::paintCheckbox): |
|
15675 (WebCore::RenderThemeHaiku::paintRadio): |
|
15676 (WebCore::RenderThemeHaiku::paintMenuList): |
|
15677 * platform/haiku/RenderThemeHaiku.h: |
|
15678 * platform/qt/RenderThemeQt.cpp: |
|
15679 (WebCore::StylePainter::StylePainter): |
|
15680 (WebCore::RenderThemeQt::paintCheckbox): |
|
15681 (WebCore::RenderThemeQt::paintRadio): |
|
15682 (WebCore::RenderThemeQt::paintButton): |
|
15683 (WebCore::RenderThemeQt::paintTextField): |
|
15684 (WebCore::RenderThemeQt::paintTextArea): |
|
15685 (WebCore::RenderThemeQt::paintMenuList): |
|
15686 (WebCore::RenderThemeQt::paintMenuListButton): |
|
15687 (WebCore::RenderThemeQt::paintProgressBar): |
|
15688 (WebCore::RenderThemeQt::paintSliderTrack): |
|
15689 (WebCore::RenderThemeQt::paintSliderThumb): |
|
15690 (WebCore::RenderThemeQt::paintSearchField): |
|
15691 (WebCore::RenderThemeQt::paintSearchFieldCancelButton): |
|
15692 (WebCore::RenderThemeQt::paintSearchFieldDecoration): |
|
15693 (WebCore::RenderThemeQt::paintSearchFieldResultsDecoration): |
|
15694 (WebCore::RenderThemeQt::paintMediaFullscreenButton): |
|
15695 (WebCore::RenderThemeQt::paintMediaMuteButton): |
|
15696 (WebCore::RenderThemeQt::paintMediaPlayButton): |
|
15697 (WebCore::RenderThemeQt::paintMediaSeekBackButton): |
|
15698 (WebCore::RenderThemeQt::paintMediaSeekForwardButton): |
|
15699 (WebCore::RenderThemeQt::paintMediaCurrentTime): |
|
15700 (WebCore::RenderThemeQt::paintMediaVolumeSliderTrack): |
|
15701 (WebCore::RenderThemeQt::paintMediaVolumeSliderThumb): |
|
15702 (WebCore::RenderThemeQt::paintMediaSliderTrack): |
|
15703 (WebCore::RenderThemeQt::paintMediaSliderThumb): |
|
15704 * platform/qt/RenderThemeQt.h: |
|
15705 * platform/wx/RenderThemeWx.cpp: |
|
15706 (WebCore::RenderThemeWx::paintCheckbox): |
|
15707 (WebCore::RenderThemeWx::paintRadio): |
|
15708 (WebCore::RenderThemeWx::paintButton): |
|
15709 (WebCore::RenderThemeWx::paintTextField): |
|
15710 (WebCore::RenderThemeWx::paintMenuList): |
|
15711 (WebCore::RenderThemeWx::paintMenuListButton): |
|
15712 * rendering/EllipsisBox.cpp: |
|
15713 (WebCore::EllipsisBox::paint): |
|
15714 * rendering/EllipsisBox.h: |
|
15715 * rendering/InlineBox.cpp: |
|
15716 (WebCore::InlineBox::paint): |
|
15717 * rendering/InlineBox.h: |
|
15718 * rendering/InlineFlowBox.cpp: |
|
15719 (WebCore::InlineFlowBox::paint): |
|
15720 (WebCore::InlineFlowBox::paintFillLayers): |
|
15721 (WebCore::InlineFlowBox::paintFillLayer): |
|
15722 (WebCore::InlineFlowBox::paintBoxDecorations): |
|
15723 (WebCore::InlineFlowBox::paintMask): |
|
15724 (WebCore::InlineFlowBox::paintTextDecorations): |
|
15725 * rendering/InlineFlowBox.h: |
|
15726 * rendering/InlineTextBox.cpp: |
|
15727 (WebCore::InlineTextBox::paint): |
|
15728 * rendering/InlineTextBox.h: |
|
15729 * rendering/PaintInfo.h: Added. |
|
15730 (WebCore::PaintInfo::PaintInfo): |
|
15731 (WebCore::PaintInfo::updatePaintingRootForChildren): |
|
15732 (WebCore::PaintInfo::shouldPaintWithinRoot): |
|
15733 (WebCore::PaintInfo::applyTransform): |
|
15734 * rendering/PaintPhase.h: Added. |
|
15735 (WebCore::): |
|
15736 * rendering/RenderBlock.cpp: |
|
15737 (WebCore::RenderBlock::paint): |
|
15738 (WebCore::RenderBlock::paintChildren): |
|
15739 (WebCore::RenderBlock::paintEllipsisBoxes): |
|
15740 (WebCore::clipOutPositionedObjects): |
|
15741 (WebCore::RenderBlock::layoutColumns): |
|
15742 * rendering/RenderBox.cpp: |
|
15743 (WebCore::RenderBox::paint): |
|
15744 (WebCore::RenderBox::paintBoxDecorations): |
|
15745 (WebCore::RenderBox::paintMask): |
|
15746 * rendering/RenderFieldset.cpp: |
|
15747 (WebCore::RenderFieldset::paintBoxDecorations): |
|
15748 * rendering/RenderForeignObject.cpp: |
|
15749 (WebCore::RenderForeignObject::paint): |
|
15750 * rendering/RenderLayer.cpp: |
|
15751 (WebCore::RenderLayer::paint): |
|
15752 (WebCore::performOverlapTests): |
|
15753 (WebCore::RenderLayer::paintLayer): |
|
15754 (WebCore::RenderLayer::paintList): |
|
15755 (WebCore::RenderLayer::paintPaginatedChildLayer): |
|
15756 (WebCore::RenderLayer::paintChildLayerIntoColumns): |
|
15757 * rendering/RenderLayer.h: |
|
15758 * rendering/RenderLayerBacking.cpp: |
|
15759 (WebCore::RenderLayerBacking::paintIntoLayer): |
|
15760 * rendering/RenderLineBoxList.cpp: |
|
15761 (WebCore::RenderLineBoxList::paint): |
|
15762 * rendering/RenderLineBoxList.h: |
|
15763 * rendering/RenderMediaControls.cpp: |
|
15764 (WebCore::RenderMediaControls::paintMediaControlsPart): |
|
15765 * rendering/RenderMediaControls.h: |
|
15766 * rendering/RenderMediaControlsChromium.cpp: |
|
15767 (WebCore::paintMediaMuteButton): |
|
15768 (WebCore::paintMediaPlayButton): |
|
15769 (WebCore::paintMediaSlider): |
|
15770 (WebCore::paintMediaSliderThumb): |
|
15771 (WebCore::paintMediaVolumeSlider): |
|
15772 (WebCore::paintMediaVolumeSliderThumb): |
|
15773 (WebCore::paintMediaTimelineContainer): |
|
15774 (WebCore::RenderMediaControlsChromium::paintMediaControlsPart): |
|
15775 * rendering/RenderMediaControlsChromium.h: |
|
15776 * rendering/RenderObject.h: |
|
15777 * rendering/RenderPath.cpp: |
|
15778 (WebCore::RenderPath::paint): |
|
15779 * rendering/RenderReplaced.cpp: |
|
15780 (WebCore::RenderReplaced::paint): |
|
15781 (WebCore::RenderReplaced::shouldPaint): |
|
15782 * rendering/RenderSVGContainer.cpp: |
|
15783 (WebCore::RenderSVGContainer::paint): |
|
15784 * rendering/RenderSVGResourceMarker.cpp: |
|
15785 (WebCore::RenderSVGResourceMarker::draw): |
|
15786 * rendering/RenderSVGResourceMarker.h: |
|
15787 * rendering/RenderSVGRoot.cpp: |
|
15788 (WebCore::RenderSVGRoot::paint): |
|
15789 * rendering/RenderSVGText.cpp: |
|
15790 (WebCore::RenderSVGText::paint): |
|
15791 * rendering/RenderScrollbarPart.cpp: |
|
15792 (WebCore::RenderScrollbarPart::paintIntoRect): |
|
15793 * rendering/RenderTable.cpp: |
|
15794 (WebCore::RenderTable::paintObject): |
|
15795 (WebCore::RenderTable::paintBoxDecorations): |
|
15796 * rendering/RenderTableCell.cpp: |
|
15797 (WebCore::RenderTableCell::paint): |
|
15798 (WebCore::RenderTableCell::paintBackgroundsBehindCell): |
|
15799 (WebCore::RenderTableCell::paintBoxDecorations): |
|
15800 * rendering/RenderTheme.cpp: |
|
15801 (WebCore::RenderTheme::paint): |
|
15802 (WebCore::RenderTheme::paintBorderOnly): |
|
15803 (WebCore::RenderTheme::paintDecorations): |
|
15804 (WebCore::RenderTheme::paintMeter): |
|
15805 * rendering/RenderTheme.h: |
|
15806 (WebCore::RenderTheme::paintCapsLockIndicator): |
|
15807 (WebCore::RenderTheme::paintCheckbox): |
|
15808 (WebCore::RenderTheme::paintRadio): |
|
15809 (WebCore::RenderTheme::paintButton): |
|
15810 (WebCore::RenderTheme::paintInnerSpinButton): |
|
15811 (WebCore::RenderTheme::paintOuterSpinButton): |
|
15812 (WebCore::RenderTheme::paintTextField): |
|
15813 (WebCore::RenderTheme::paintTextArea): |
|
15814 (WebCore::RenderTheme::paintMenuList): |
|
15815 (WebCore::RenderTheme::paintMenuListButton): |
|
15816 (WebCore::RenderTheme::paintProgressBar): |
|
15817 (WebCore::RenderTheme::paintSliderTrack): |
|
15818 (WebCore::RenderTheme::paintSliderThumb): |
|
15819 (WebCore::RenderTheme::paintSearchField): |
|
15820 (WebCore::RenderTheme::paintSearchFieldCancelButton): |
|
15821 (WebCore::RenderTheme::paintSearchFieldDecoration): |
|
15822 (WebCore::RenderTheme::paintSearchFieldResultsDecoration): |
|
15823 (WebCore::RenderTheme::paintSearchFieldResultsButton): |
|
15824 (WebCore::RenderTheme::paintMediaFullscreenButton): |
|
15825 (WebCore::RenderTheme::paintMediaPlayButton): |
|
15826 (WebCore::RenderTheme::paintMediaMuteButton): |
|
15827 (WebCore::RenderTheme::paintMediaSeekBackButton): |
|
15828 (WebCore::RenderTheme::paintMediaSeekForwardButton): |
|
15829 (WebCore::RenderTheme::paintMediaSliderTrack): |
|
15830 (WebCore::RenderTheme::paintMediaSliderThumb): |
|
15831 (WebCore::RenderTheme::paintMediaVolumeSliderContainer): |
|
15832 (WebCore::RenderTheme::paintMediaVolumeSliderTrack): |
|
15833 (WebCore::RenderTheme::paintMediaVolumeSliderThumb): |
|
15834 (WebCore::RenderTheme::paintMediaRewindButton): |
|
15835 (WebCore::RenderTheme::paintMediaReturnToRealtimeButton): |
|
15836 (WebCore::RenderTheme::paintMediaToggleClosedCaptionsButton): |
|
15837 (WebCore::RenderTheme::paintMediaControlsBackground): |
|
15838 (WebCore::RenderTheme::paintMediaCurrentTime): |
|
15839 (WebCore::RenderTheme::paintMediaTimeRemaining): |
|
15840 * rendering/RenderThemeChromiumMac.h: |
|
15841 * rendering/RenderThemeChromiumMac.mm: |
|
15842 (WebCore::RenderThemeChromiumMac::paintMediaPlayButton): |
|
15843 (WebCore::RenderThemeChromiumMac::paintMediaMuteButton): |
|
15844 (WebCore::RenderThemeChromiumMac::paintMediaSliderTrack): |
|
15845 (WebCore::RenderThemeChromiumMac::paintMediaControlsBackground): |
|
15846 (WebCore::RenderThemeChromiumMac::paintMediaVolumeSliderTrack): |
|
15847 (WebCore::RenderThemeChromiumMac::paintMediaVolumeSliderThumb): |
|
15848 * rendering/RenderThemeChromiumSkia.cpp: |
|
15849 (WebCore::RenderThemeChromiumSkia::paintCheckbox): |
|
15850 (WebCore::RenderThemeChromiumSkia::paintRadio): |
|
15851 (WebCore::paintButtonLike): |
|
15852 (WebCore::RenderThemeChromiumSkia::paintButton): |
|
15853 (WebCore::RenderThemeChromiumSkia::paintTextField): |
|
15854 (WebCore::RenderThemeChromiumSkia::paintTextArea): |
|
15855 (WebCore::RenderThemeChromiumSkia::paintSearchField): |
|
15856 (WebCore::RenderThemeChromiumSkia::paintSearchFieldCancelButton): |
|
15857 (WebCore::RenderThemeChromiumSkia::paintSearchFieldResultsDecoration): |
|
15858 (WebCore::RenderThemeChromiumSkia::paintSearchFieldResultsButton): |
|
15859 (WebCore::RenderThemeChromiumSkia::paintMediaControlsBackground): |
|
15860 (WebCore::RenderThemeChromiumSkia::paintMediaSliderTrack): |
|
15861 (WebCore::RenderThemeChromiumSkia::paintMediaVolumeSliderTrack): |
|
15862 (WebCore::RenderThemeChromiumSkia::paintMediaSliderThumb): |
|
15863 (WebCore::RenderThemeChromiumSkia::paintMediaVolumeSliderThumb): |
|
15864 (WebCore::RenderThemeChromiumSkia::paintMediaPlayButton): |
|
15865 (WebCore::RenderThemeChromiumSkia::paintMediaMuteButton): |
|
15866 (WebCore::RenderThemeChromiumSkia::paintMenuList): |
|
15867 (WebCore::RenderThemeChromiumSkia::paintMenuListButton): |
|
15868 (WebCore::RenderThemeChromiumSkia::paintSliderTrack): |
|
15869 (WebCore::RenderThemeChromiumSkia::paintSliderThumb): |
|
15870 (WebCore::RenderThemeChromiumSkia::paintProgressBar): |
|
15871 * rendering/RenderThemeChromiumSkia.h: |
|
15872 * rendering/RenderThemeChromiumWin.cpp: |
|
15873 (WebCore::RenderThemeChromiumWin::paintCheckbox): |
|
15874 (WebCore::RenderThemeChromiumWin::paintRadio): |
|
15875 (WebCore::RenderThemeChromiumWin::paintButton): |
|
15876 (WebCore::RenderThemeChromiumWin::paintTextField): |
|
15877 (WebCore::RenderThemeChromiumWin::paintSliderTrack): |
|
15878 (WebCore::RenderThemeChromiumWin::paintSliderThumb): |
|
15879 (WebCore::RenderThemeChromiumWin::paintMenuList): |
|
15880 (WebCore::RenderThemeChromiumWin::paintTextFieldInternal): |
|
15881 (WebCore::RenderThemeChromiumWin::paintProgressBar): |
|
15882 * rendering/RenderThemeChromiumWin.h: |
|
15883 * rendering/RenderThemeMac.h: |
|
15884 * rendering/RenderThemeMac.mm: |
|
15885 (WebCore::RenderThemeMac::paintTextField): |
|
15886 (WebCore::RenderThemeMac::paintCapsLockIndicator): |
|
15887 (WebCore::RenderThemeMac::paintTextArea): |
|
15888 (WebCore::RenderThemeMac::paintMenuList): |
|
15889 (WebCore::RenderThemeMac::paintMeter): |
|
15890 (WebCore::RenderThemeMac::paintProgressBar): |
|
15891 (WebCore::RenderThemeMac::paintMenuListButtonGradients): |
|
15892 (WebCore::RenderThemeMac::paintMenuListButton): |
|
15893 (WebCore::RenderThemeMac::paintSliderTrack): |
|
15894 (WebCore::RenderThemeMac::paintSliderThumb): |
|
15895 (WebCore::RenderThemeMac::paintSearchField): |
|
15896 (WebCore::RenderThemeMac::paintSearchFieldCancelButton): |
|
15897 (WebCore::RenderThemeMac::paintSearchFieldDecoration): |
|
15898 (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration): |
|
15899 (WebCore::RenderThemeMac::paintSearchFieldResultsButton): |
|
15900 (WebCore::getUnzoomedRectAndAdjustCurrentContext): |
|
15901 (WebCore::RenderThemeMac::paintMediaFullscreenButton): |
|
15902 (WebCore::RenderThemeMac::paintMediaMuteButton): |
|
15903 (WebCore::RenderThemeMac::paintMediaPlayButton): |
|
15904 (WebCore::RenderThemeMac::paintMediaSeekBackButton): |
|
15905 (WebCore::RenderThemeMac::paintMediaSeekForwardButton): |
|
15906 (WebCore::RenderThemeMac::paintMediaSliderTrack): |
|
15907 (WebCore::RenderThemeMac::paintMediaSliderThumb): |
|
15908 (WebCore::RenderThemeMac::paintMediaRewindButton): |
|
15909 (WebCore::RenderThemeMac::paintMediaReturnToRealtimeButton): |
|
15910 (WebCore::RenderThemeMac::paintMediaToggleClosedCaptionsButton): |
|
15911 (WebCore::RenderThemeMac::paintMediaControlsBackground): |
|
15912 (WebCore::RenderThemeMac::paintMediaCurrentTime): |
|
15913 (WebCore::RenderThemeMac::paintMediaTimeRemaining): |
|
15914 * rendering/RenderThemeSafari.cpp: |
|
15915 (WebCore::RenderThemeSafari::paintCheckbox): |
|
15916 (WebCore::RenderThemeSafari::paintRadio): |
|
15917 (WebCore::RenderThemeSafari::paintButton): |
|
15918 (WebCore::RenderThemeSafari::paintTextField): |
|
15919 (WebCore::RenderThemeSafari::paintCapsLockIndicator): |
|
15920 (WebCore::RenderThemeSafari::paintTextArea): |
|
15921 (WebCore::RenderThemeSafari::paintMenuList): |
|
15922 (WebCore::RenderThemeSafari::paintMenuListButtonGradients): |
|
15923 (WebCore::RenderThemeSafari::paintMenuListButton): |
|
15924 (WebCore::RenderThemeSafari::paintSliderTrack): |
|
15925 (WebCore::RenderThemeSafari::paintSliderThumb): |
|
15926 (WebCore::RenderThemeSafari::paintSearchField): |
|
15927 (WebCore::RenderThemeSafari::paintSearchFieldCancelButton): |
|
15928 (WebCore::RenderThemeSafari::paintSearchFieldDecoration): |
|
15929 (WebCore::RenderThemeSafari::paintSearchFieldResultsDecoration): |
|
15930 (WebCore::RenderThemeSafari::paintSearchFieldResultsButton): |
|
15931 (WebCore::RenderThemeSafari::paintMediaFullscreenButton): |
|
15932 (WebCore::RenderThemeSafari::paintMediaMuteButton): |
|
15933 (WebCore::RenderThemeSafari::paintMediaPlayButton): |
|
15934 (WebCore::RenderThemeSafari::paintMediaSeekBackButton): |
|
15935 (WebCore::RenderThemeSafari::paintMediaSeekForwardButton): |
|
15936 (WebCore::RenderThemeSafari::paintMediaSliderTrack): |
|
15937 (WebCore::RenderThemeSafari::paintMediaSliderThumb): |
|
15938 * rendering/RenderThemeSafari.h: |
|
15939 * rendering/RenderThemeWin.cpp: |
|
15940 (WebCore::RenderThemeWin::paintButton): |
|
15941 (WebCore::RenderThemeWin::paintTextField): |
|
15942 (WebCore::RenderThemeWin::paintMenuList): |
|
15943 (WebCore::RenderThemeWin::paintMenuListButton): |
|
15944 (WebCore::RenderThemeWin::paintSliderTrack): |
|
15945 (WebCore::RenderThemeWin::paintSliderThumb): |
|
15946 (WebCore::RenderThemeWin::paintSearchField): |
|
15947 (WebCore::RenderThemeWin::paintSearchFieldCancelButton): |
|
15948 (WebCore::RenderThemeWin::paintSearchFieldResultsDecoration): |
|
15949 (WebCore::RenderThemeWin::paintSearchFieldResultsButton): |
|
15950 (WebCore::RenderThemeWin::paintMediaFullscreenButton): |
|
15951 (WebCore::RenderThemeWin::paintMediaMuteButton): |
|
15952 (WebCore::RenderThemeWin::paintMediaPlayButton): |
|
15953 (WebCore::RenderThemeWin::paintMediaSeekBackButton): |
|
15954 (WebCore::RenderThemeWin::paintMediaSeekForwardButton): |
|
15955 (WebCore::RenderThemeWin::paintMediaSliderTrack): |
|
15956 (WebCore::RenderThemeWin::paintMediaSliderThumb): |
|
15957 (WebCore::RenderThemeWin::paintMediaToggleClosedCaptionsButton): |
|
15958 * rendering/RenderThemeWin.h: |
|
15959 (WebCore::RenderThemeWin::paintCheckbox): |
|
15960 (WebCore::RenderThemeWin::paintRadio): |
|
15961 (WebCore::RenderThemeWin::paintTextArea): |
|
15962 (WebCore::RenderThemeWin::paintSearchFieldDecoration): |
|
15963 * rendering/RenderThemeWince.cpp: |
|
15964 (WebCore::RenderThemeWince::paintButton): |
|
15965 (WebCore::RenderThemeWince::paintTextField): |
|
15966 (WebCore::RenderThemeWince::paintMenuList): |
|
15967 (WebCore::RenderThemeWince::paintMenuListButton): |
|
15968 (WebCore::RenderThemeWince::paintSearchField): |
|
15969 (WebCore::RenderThemeWince::paintSearchFieldCancelButton): |
|
15970 (WebCore::RenderThemeWince::paintSearchFieldResultsDecoration): |
|
15971 (WebCore::RenderThemeWince::paintSearchFieldResultsButton): |
|
15972 (WebCore::RenderThemeWince::paintSliderTrack): |
|
15973 (WebCore::RenderThemeWince::paintSliderThumb): |
|
15974 (WebCore::RenderThemeWince::paintMediaFullscreenButton): |
|
15975 (WebCore::RenderThemeWince::paintMediaMuteButton): |
|
15976 (WebCore::RenderThemeWince::paintMediaPlayButton): |
|
15977 (WebCore::RenderThemeWince::paintMediaSeekBackButton): |
|
15978 (WebCore::RenderThemeWince::paintMediaSeekForwardButton): |
|
15979 (WebCore::RenderThemeWince::paintMediaSliderTrack): |
|
15980 (WebCore::RenderThemeWince::paintMediaSliderThumb): |
|
15981 * rendering/RenderThemeWince.h: |
|
15982 (WebCore::RenderThemeWince::paintCheckbox): |
|
15983 (WebCore::RenderThemeWince::paintRadio): |
|
15984 (WebCore::RenderThemeWince::paintTextArea): |
|
15985 (WebCore::RenderThemeWince::paintSearchFieldDecoration): |
|
15986 * rendering/RootInlineBox.cpp: |
|
15987 (WebCore::RootInlineBox::paintEllipsisBox): |
|
15988 (WebCore::RootInlineBox::paintCustomHighlight): |
|
15989 (WebCore::RootInlineBox::paint): |
|
15990 (WebCore::RootInlineBox::fillLineSelectionGap): |
|
15991 * rendering/RootInlineBox.h: |
|
15992 * rendering/SVGInlineFlowBox.cpp: |
|
15993 (WebCore::SVGInlineFlowBox::paint): |
|
15994 * rendering/SVGInlineFlowBox.h: |
|
15995 * rendering/SVGInlineTextBox.cpp: |
|
15996 (WebCore::SVGInlineTextBox::paint): |
|
15997 * rendering/SVGInlineTextBox.h: |
|
15998 * rendering/SVGMarkerLayoutInfo.cpp: |
|
15999 (WebCore::SVGMarkerLayoutInfo::drawMarkers): |
|
16000 * rendering/SVGMarkerLayoutInfo.h: |
|
16001 * rendering/SVGRenderSupport.cpp: |
|
16002 (WebCore::SVGRenderBase::prepareToRenderSVGContent): |
|
16003 (WebCore::SVGRenderBase::finishRenderSVGContent): |
|
16004 (WebCore::renderSubtreeToImage): |
|
16005 * rendering/SVGRenderSupport.h: |
|
16006 * rendering/SVGRootInlineBox.cpp: |
|
16007 (WebCore::SVGRootInlineBox::paint): |
|
16008 * rendering/SVGRootInlineBox.h: |
|
16009 |
|
16010 2010-06-29 Nikolas Zimmermann <nzimmermann@rim.com> |
|
16011 |
|
16012 Not reviewed. Sort Xcode project file. |
|
16013 |
|
16014 * WebCore.xcodeproj/project.pbxproj: |
|
16015 |
|
16016 2010-06-29 Nikolas Zimmermann <nzimmermann@rim.com> |
|
16017 |
|
16018 Reviewed by Dirk Schulze. |
|
16019 |
|
16020 Provide floating-point support for text selection framework |
|
16021 https://bugs.webkit.org/show_bug.cgi?id=40665 |
|
16022 |
|
16023 Rename 'glyphScale' to 'horizontalGlyphStretch' upon Dans' request. |
|
16024 Also guard the variables in ENABLE(SVG) blocks. Initialize variable to 1 instead of 1.0f, as that's the new style rule. |
|
16025 |
|
16026 No functional changes, thus no new tests. |
|
16027 |
|
16028 * platform/graphics/TextRun.h: |
|
16029 (WebCore::TextRun::TextRun): |
|
16030 (WebCore::TextRun::horizontalGlyphStretch): |
|
16031 (WebCore::TextRun::setHorizontalGlyphStretch): |
|
16032 (WebCore::TextRun::spacingDisabled): |
|
16033 * platform/graphics/WidthIterator.cpp: |
|
16034 (WebCore::WidthIterator::advance): |
|
16035 * rendering/SVGInlineTextBox.cpp: |
|
16036 (WebCore::SVGInlineTextBox::offsetForPosition): |
|
16037 |
|
16038 2010-06-29 Nikolas Zimmermann <nzimmermann@rim.com> |
|
16039 |
|
16040 Reviewed by Dirk Schulze. |
|
16041 |
|
16042 REGRESSION: text-shadow CSS applied to SVG no longer works |
|
16043 https://bugs.webkit.org/show_bug.cgi?id=40960 |
|
16044 |
|
16045 Readd text-shadow support, this time supporting multiple shadows. |
|
16046 It's not exactly like HTML, because SVG draws fill/stroke phases seperated - the png shows the difference. |
|
16047 |
|
16048 Tests: svg/css/text-shadow-multiple.xhtml |
|
16049 |
|
16050 * rendering/InlineTextBox.cpp: |
|
16051 (WebCore::InlineTextBox::applyShadowToGraphicsContext): Refactored from paintTextWithShadows(), so SVG can reuse. |
|
16052 (WebCore::paintTextWithShadows): Use refactored applyShadowToGraphicsContext() function. |
|
16053 * rendering/InlineTextBox.h: |
|
16054 * rendering/SVGInlineTextBox.cpp: |
|
16055 (WebCore::SVGInlineTextBox::paintTextWithShadows): Added. |
|
16056 (WebCore::SVGInlineTextBox::paintText): Call paintTextWithShadows() instead of directly drawing the text. |
|
16057 * rendering/SVGInlineTextBox.h: |
|
16058 |
|
16059 2010-06-29 Pavel Podivilov <podivilov@chromium.org> |
|
16060 |
|
16061 Reviewed by Yury Semikhatsky. |
|
16062 |
|
16063 Web Inspector: show actual breakpoint position in UI. |
|
16064 When user sets breakpoint from UI, javascript engine may actually set |
|
16065 it on a different line. If so, move breakpoint to the correct position |
|
16066 in frontend. |
|
16067 https://bugs.webkit.org/show_bug.cgi?id=40781 |
|
16068 |
|
16069 * bindings/js/ScriptDebugServer.cpp: |
|
16070 (WebCore::ScriptDebugServer::setBreakpoint): |
|
16071 (WebCore::ScriptDebugServer::dispatchDidPause): |
|
16072 * bindings/js/ScriptDebugServer.h: |
|
16073 * bindings/v8/ScriptDebugServer.cpp: |
|
16074 (WebCore::ScriptDebugServer::setBreakpoint): |
|
16075 (WebCore::ScriptDebugServer::currentCallFrame): |
|
16076 * bindings/v8/ScriptDebugServer.h: |
|
16077 * inspector/InspectorBackend.cpp: |
|
16078 (WebCore::InspectorBackend::setBreakpoint): |
|
16079 * inspector/InspectorBackend.h: |
|
16080 * inspector/InspectorBackend.idl: |
|
16081 * inspector/InspectorController.cpp: |
|
16082 (WebCore::InspectorController::didCommitLoad): |
|
16083 (WebCore::InspectorController::setBreakpoint): |
|
16084 (WebCore::InspectorController::removeBreakpoint): |
|
16085 (WebCore::InspectorController::didParseSource): |
|
16086 * inspector/InspectorController.h: |
|
16087 * inspector/InspectorFrontend.cpp: |
|
16088 (WebCore::InspectorFrontend::didSetBreakpoint): |
|
16089 * inspector/InspectorFrontend.h: |
|
16090 * inspector/front-end/BreakpointManager.js: |
|
16091 (WebInspector.BreakpointManager.prototype.setOneTimeBreakpoint): |
|
16092 (WebInspector.BreakpointManager.prototype.removeOneTimeBreakpoint): |
|
16093 (WebInspector.BreakpointManager.prototype.setBreakpoint): |
|
16094 (WebInspector.BreakpointManager.prototype.restoredBreakpoint): |
|
16095 (WebInspector.BreakpointManager.prototype.removeBreakpoint): |
|
16096 (WebInspector.BreakpointManager.prototype._setBreakpoint): |
|
16097 (WebInspector.BreakpointManager.prototype._removeBreakpoint): |
|
16098 (WebInspector.BreakpointManager.prototype._setBreakpointOnBackend.didSetBreakpoint): |
|
16099 (WebInspector.BreakpointManager.prototype._setBreakpointOnBackend): |
|
16100 (WebInspector.Breakpoint.prototype.set enabled): |
|
16101 (WebInspector.Breakpoint.prototype.set condition): |
|
16102 * inspector/front-end/InspectorBackendStub.js: |
|
16103 (.WebInspector.InspectorBackendStub.prototype.setBreakpoint): |
|
16104 * inspector/front-end/ScriptView.js: |
|
16105 (WebInspector.ScriptView.prototype._addBreakpoint): |
|
16106 * inspector/front-end/SourceView.js: |
|
16107 (WebInspector.SourceView.prototype._addBreakpoint): |
|
16108 |
|
16109 2010-06-29 Dumitru Daniliuc <dumi@chromium.org> |
|
16110 |
|
16111 Reviewed by Adam Barth. |
|
16112 |
|
16113 Catch toString() exceptions in all DB-related code. |
|
16114 https://bugs.webkit.org/show_bug.cgi?id=41297 |
|
16115 |
|
16116 * bindings/v8/custom/V8BindingMacros.h: |
|
16117 * bindings/v8/custom/V8DOMWindowCustom.cpp: |
|
16118 (WebCore::V8DOMWindow::openDatabaseCallback): |
|
16119 * bindings/v8/custom/V8DatabaseCustom.cpp: |
|
16120 (WebCore::V8Database::changeVersionCallback): |
|
16121 * bindings/v8/custom/V8DatabaseSyncCustom.cpp: |
|
16122 (WebCore::V8DatabaseSync::changeVersionCallback): |
|
16123 * bindings/v8/custom/V8SQLTransactionCustom.cpp: |
|
16124 (WebCore::V8SQLTransaction::executeSqlCallback): |
|
16125 * bindings/v8/custom/V8SQLTransactionSyncCustom.cpp: |
|
16126 (WebCore::V8SQLTransactionSync::executeSqlCallback): |
|
16127 * bindings/v8/custom/V8WorkerContextCustom.cpp: |
|
16128 (WebCore::V8WorkerContext::openDatabaseCallback): |
|
16129 (WebCore::V8WorkerContext::openDatabaseSyncCallback): |
|
16130 |
|
16131 2010-06-29 Herczeg Zoltan <zherczeg@webkit.org> |
|
16132 |
|
16133 Rubber-stamped by Nikolas Zimmermann. |
|
16134 |
|
16135 Windows build fix. |
|
16136 https://bugs.webkit.org/show_bug.cgi?id=5861 |
|
16137 |
|
16138 * svg/SVGFEConvolveMatrixElement.cpp: |
|
16139 (WebCore::SVGFEConvolveMatrixElement::build): |
|
16140 |
|
16141 2010-06-29 Zoltan Herczeg <zherczeg@webkit.org> |
|
16142 |
|
16143 Reviewed by Nikolas Zimmermann. |
|
16144 |
|
16145 Add ConvolveMatrix SVG filter effect |
|
16146 https://bugs.webkit.org/show_bug.cgi?id=5861 |
|
16147 |
|
16148 The patch was originally started by Dirk Schulze, |
|
16149 and the .cpp and .h files are mostly his work. |
|
16150 I updated the build systems and do some minor updates |
|
16151 to the source files as well. The patch does not contain |
|
16152 the implementation of the filter: this is intended, |
|
16153 and will be landed in a follow-up patch. |
|
16154 |
|
16155 * Android.derived.jscbindings.mk: |
|
16156 * Android.derived.v8bindings.mk: |
|
16157 * Android.mk: |
|
16158 * CMakeLists.txt: |
|
16159 * DerivedSources.cpp: |
|
16160 * DerivedSources.make: |
|
16161 * GNUmakefile.am: |
|
16162 * WebCore.gypi: |
|
16163 * WebCore.pri: |
|
16164 * WebCore.pro: |
|
16165 * WebCore.vcproj/WebCore.vcproj: |
|
16166 * WebCore.xcodeproj/project.pbxproj: |
|
16167 * bindings/objc/DOM.mm: |
|
16168 (WebCore::createElementClassMap): |
|
16169 * bindings/objc/DOMSVG.h: |
|
16170 * page/DOMWindow.idl: |
|
16171 * svg/SVGAllInOne.cpp: |
|
16172 * svg/SVGFEConvolveMatrixElement.cpp: Added. |
|
16173 (WebCore::SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement): |
|
16174 (WebCore::SVGFEConvolveMatrixElement::~SVGFEConvolveMatrixElement): |
|
16175 (WebCore::SVGFEConvolveMatrixElement::parseMappedAttribute): |
|
16176 (WebCore::SVGFEConvolveMatrixElement::setOrder): |
|
16177 (WebCore::SVGFEConvolveMatrixElement::setKernelUnitLength): |
|
16178 (WebCore::SVGFEConvolveMatrixElement::build): |
|
16179 * svg/SVGFEConvolveMatrixElement.h: Added. |
|
16180 * svg/SVGFEConvolveMatrixElement.idl: Added. |
|
16181 * svg/graphics/filters/SVGFEConvolveMatrix.cpp: |
|
16182 (WebCore::FEConvolveMatrix::FEConvolveMatrix): |
|
16183 (WebCore::FEConvolveMatrix::create): |
|
16184 (WebCore::FEConvolveMatrix::kernelSize): |
|
16185 (WebCore::FEConvolveMatrix::setKernelSize): |
|
16186 (WebCore::FEConvolveMatrix::targetOffset): |
|
16187 (WebCore::FEConvolveMatrix::setTargetOffset): |
|
16188 (WebCore::operator<<): |
|
16189 (WebCore::FEConvolveMatrix::externalRepresentation): |
|
16190 * svg/graphics/filters/SVGFEConvolveMatrix.h: |
|
16191 (WebCore::): |
|
16192 * svg/svgattrs.in: |
|
16193 * svg/svgtags.in: |
|
16194 |
|
16195 2010-06-28 Adam Barth <abarth@webkit.org> |
|
16196 |
|
16197 Reviewed by Eric Seidel. |
|
16198 |
|
16199 HTML5 tree builder shouldn't ASSERT on HTML5lib test suite |
|
16200 https://bugs.webkit.org/show_bug.cgi?id=41335 |
|
16201 |
|
16202 Sketch out the EndTag handling for InBodyMode. |
|
16203 |
|
16204 * html/HTMLTreeBuilder.cpp: |
|
16205 (WebCore::HTMLTreeBuilder::processEndTag): |
|
16206 * html/HTMLTreeBuilder.h: |
|
16207 (WebCore::HTMLTreeBuilder::ElementStack::inScope): |
|
16208 (WebCore::HTMLTreeBuilder::clearActiveFormatingElementsUpToLastMarker): |
|
16209 (WebCore::HTMLTreeBuilder::generateImpliedEndTags): |
|
16210 |
|
16211 2010-06-28 David Levin <levin@chromium.org> |
|
16212 |
|
16213 Reviewed by NOBODY (chromium build fix). |
|
16214 |
|
16215 * rendering/RenderObject.h: Add missing forward declaration. |
|
16216 |
|
16217 2010-06-28 Adam Barth <abarth@webkit.org> |
|
16218 |
|
16219 Unreviewed. |
|
16220 |
|
16221 I accidently gave up my ref and tried to dereference a null pointer. |
|
16222 This code is keeping an extra ref that it doesn't need, but that fact |
|
16223 was somewhat hidden before. |
|
16224 |
|
16225 * dom/ContainerNode.cpp: |
|
16226 (WebCore::ContainerNode::addChildCommon): |
|
16227 (WebCore::ContainerNode::parserAddChild): |
|
16228 (WebCore::ContainerNode::legacyParserAddChild): |
|
16229 * dom/ContainerNode.h: |
|
16230 |
|
16231 2010-06-28 Adam Barth <abarth@webkit.org> |
|
16232 |
|
16233 Unreviewed. |
|
16234 |
|
16235 Refactor common code into addChildCommon |
|
16236 https://bugs.webkit.org/show_bug.cgi?id=41326 |
|
16237 |
|
16238 Eric asked that we share the common code between these codepaths. |
|
16239 |
|
16240 * dom/ContainerNode.cpp: |
|
16241 (WebCore::ContainerNode::addChildCommon): |
|
16242 (WebCore::ContainerNode::parserAddChild): |
|
16243 (WebCore::ContainerNode::addChild): |
|
16244 * dom/ContainerNode.h: |
|
16245 |
|
16246 2010-06-28 Eric Seidel <eric@webkit.org> |
|
16247 |
|
16248 Reviewed by Adam Barth. |
|
16249 |
|
16250 Implement HTMLTreeBuilder::reconstructTheActiveFormattingElements |
|
16251 https://bugs.webkit.org/show_bug.cgi?id=41319 |
|
16252 |
|
16253 Restructure the code to not use in-band data, which is what |
|
16254 got us in trouble with a signed/unsigned mismatch before. |
|
16255 |
|
16256 * html/HTMLTreeBuilder.cpp: |
|
16257 (WebCore::HTMLTreeBuilder::indexOfFirstUnopenFormattingElement): |
|
16258 (WebCore::HTMLTreeBuilder::reconstructTheActiveFormattingElements): |
|
16259 * html/HTMLTreeBuilder.h: |
|
16260 |
|
16261 2010-06-28 Daniel Bates <dbates@rim.com> |
|
16262 |
|
16263 Unreviewed, attempt to fix Qt bots. |
|
16264 |
|
16265 Attempt to fix the build after changeset 62079 <http://trac.webkit.org/changeset/62079> |
|
16266 (https://bugs.webkit.org/show_bug.cgi?id=41324). |
|
16267 |
|
16268 Rename some more call sites that were missed in the initial landing. |
|
16269 |
|
16270 * dom/XMLDocumentParserQt.cpp: |
|
16271 (WebCore::XMLDocumentParser::parseStartElement): |
|
16272 (WebCore::XMLDocumentParser::parseProcessingInstruction): |
|
16273 (WebCore::XMLDocumentParser::parseCdata): |
|
16274 (WebCore::XMLDocumentParser::parseComment): |
|
16275 (WebCore::XMLDocumentParser::parseDtd): |
|
16276 |
|
16277 2010-06-28 Daniel Bates <dbates@rim.com> |
|
16278 |
|
16279 Unreviewed, build fix. |
|
16280 |
|
16281 Change return type of method HTMLTreeBuilder::reconstructTheActiveFormattingElements() |
|
16282 from int to unsigned. |
|
16283 |
|
16284 Attempt to fix the build after changeset 62077 <https://trac.webkit.org/changeset/62077> |
|
16285 (https://bugs.webkit.org/show_bug.cgi?id=41319). |
|
16286 |
|
16287 * html/HTMLTreeBuilder.cpp: |
|
16288 (WebCore::HTMLTreeBuilder::indexOfLastOpenFormattingElementOrMarker): |
|
16289 (WebCore::HTMLTreeBuilder::reconstructTheActiveFormattingElements): |
|
16290 * html/HTMLTreeBuilder.h: |
|
16291 |
|
16292 2010-06-28 Eric Seidel <eric@webkit.org> |
|
16293 |
|
16294 Reviewed by Adam Barth. |
|
16295 |
|
16296 Rename ContainerNode::addChild to legacyParserAddChild to indicate its parser-only intended use |
|
16297 https://bugs.webkit.org/show_bug.cgi?id=41324 |
|
16298 |
|
16299 A bunch of places in the code were calling ContainerNode::addChild. |
|
16300 I don't think they actually want to be doing that, as it has special |
|
16301 form-related handling which is part of LegacyHTMLTreeBuilder. |
|
16302 |
|
16303 No functional changes, thus no tests. |
|
16304 |
|
16305 * dom/ContainerNode.cpp: |
|
16306 (WebCore::ContainerNode::legacyParserAddChild): |
|
16307 * dom/ContainerNode.h: |
|
16308 * dom/DOMImplementation.cpp: |
|
16309 (WebCore::DOMImplementation::createDocument): |
|
16310 * dom/Node.cpp: |
|
16311 (WebCore::Node::legacyParserAddChild): |
|
16312 * dom/Node.h: |
|
16313 * html/HTMLKeygenElement.cpp: |
|
16314 (WebCore::HTMLKeygenElement::HTMLKeygenElement): |
|
16315 * html/HTMLTableElement.cpp: |
|
16316 (WebCore::HTMLTableElement::legacyParserAddChild): |
|
16317 * html/HTMLTableElement.h: |
|
16318 * html/HTMLTableRowElement.cpp: |
|
16319 (WebCore::HTMLTableRowElement::legacyParserAddChild): |
|
16320 * html/HTMLTableRowElement.h: |
|
16321 * html/HTMLTableSectionElement.cpp: |
|
16322 (WebCore::HTMLTableSectionElement::legacyParserAddChild): |
|
16323 * html/HTMLTableSectionElement.h: |
|
16324 * html/HTMLViewSourceDocument.cpp: |
|
16325 (WebCore::HTMLViewSourceDocument::createContainingTable): |
|
16326 (WebCore::HTMLViewSourceDocument::addSpanWithClassName): |
|
16327 (WebCore::HTMLViewSourceDocument::addLine): |
|
16328 (WebCore::HTMLViewSourceDocument::addText): |
|
16329 (WebCore::HTMLViewSourceDocument::addLink): |
|
16330 |
|
16331 2010-06-28 Eric Seidel <eric@webkit.org> |
|
16332 |
|
16333 Reviewed by Adam Barth. |
|
16334 |
|
16335 Implement HTMLTreeBuilder::reconstructTheActiveFormattingElements |
|
16336 https://bugs.webkit.org/show_bug.cgi?id=41319 |
|
16337 |
|
16338 This is basically a direct transcription of HTML5 TreeBuilder spec: |
|
16339 http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#list-of-active-formatting-elements |
|
16340 |
|
16341 This code is covered by various tests in html5lib/runner which we |
|
16342 can't run yet due to other asserts. Adam and I are working on |
|
16343 getting rid of those ASSERTS so that this (and other code) will |
|
16344 be better tested shortly. |
|
16345 |
|
16346 * html/HTMLTreeBuilder.cpp: |
|
16347 (WebCore::HTMLTreeBuilder::insertFormatingElement): |
|
16348 (WebCore::HTMLTreeBuilder::reconstructTheActiveFormattingElements): |
|
16349 * html/HTMLTreeBuilder.h: |
|
16350 (WebCore::HTMLTreeBuilder::ElementStack::contains): |
|
16351 (WebCore::HTMLTreeBuilder::FormatingElementEntry::FormatingElementEntry): |
|
16352 (WebCore::HTMLTreeBuilder::FormatingElementEntry::): |
|
16353 (WebCore::HTMLTreeBuilder::FormatingElementEntry::isMarker): |
|
16354 (WebCore::HTMLTreeBuilder::FormatingElementEntry::element): |
|
16355 (WebCore::HTMLTreeBuilder::FormatingElementEntry::replaceElement): |
|
16356 |
|
16357 2010-06-28 Adam Barth <abarth@webkit.org> |
|
16358 |
|
16359 Reviewed by Eric Seidel. |
|
16360 |
|
16361 Fix ASSERT so we can run more HTML5lib tests |
|
16362 https://bugs.webkit.org/show_bug.cgi?id=41325 |
|
16363 |
|
16364 We can't call Node::addChild because that function contains a bunch of |
|
16365 logic from the old parser. Instead, this patch creates a new version |
|
16366 of addChild that's does less validating (that's the tree builder's |
|
16367 job). |
|
16368 |
|
16369 * dom/ContainerNode.cpp: |
|
16370 (WebCore::ContainerNode::parserAddChild): |
|
16371 * dom/ContainerNode.h: |
|
16372 * dom/Node.cpp: |
|
16373 (WebCore::Node::parserAddChild): |
|
16374 * dom/Node.h: |
|
16375 * html/HTMLTreeBuilder.h: |
|
16376 (WebCore::HTMLTreeBuilder::attach): |
|
16377 |
|
16378 2010-06-28 David Levin <levin@chromium.org> |
|
16379 |
|
16380 Reviewed by NOBODY (chromium build fix). |
|
16381 |
|
16382 * bindings/v8/ScriptEventListener.h: Changed forward declaration |
|
16383 to correspond to the code change doing in r62052. |
|
16384 |
|
16385 2010-06-28 Brady Eidson <beidson@apple.com> |
|
16386 |
|
16387 Reviewed by Alexey Proskuryakov. |
|
16388 |
|
16389 Support for https://bugs.webkit.org/show_bug.cgi?id=40484 |
|
16390 |
|
16391 In working on adding beforeProcess, it becomes necessary for JSLazyEventListeners to always know what their |
|
16392 original Node* was, even if it was a window event listener. |
|
16393 |
|
16394 For HTMLFrameSet, HTMLBody, and SVGSVG elements, a second form of createAttributeEventListener was used that |
|
16395 took a Frame* argument and didn't set the original Node* on the JSLazyEventListener. |
|
16396 |
|
16397 This patch changes that form of the function to createWindowAttributeEventListener, and passes the Node* along |
|
16398 for later use by the beforeProcess mechanism. |
|
16399 |
|
16400 No new tests. (No change in behavior) |
|
16401 |
|
16402 * bindings/js/ScriptEventListener.cpp: |
|
16403 (WebCore::createWindowAttributeEventListener): Renamed from createAttributeEventListener, takes a Node* instead |
|
16404 of a Frame*, and figures out the Frame* itself internally. |
|
16405 * bindings/js/ScriptEventListener.h: |
|
16406 |
|
16407 * bindings/v8/ScriptEventListener.cpp: |
|
16408 (WebCore::createWindowAttributeEventListener): Renamed from createAttributeEventListener, takes a Node* instead |
|
16409 of a Frame*, and figures out the Frame* itself internally. Note that V8LazyEventListener doesn't allow us to |
|
16410 pass the Element* argument in so this beforeprocess feature won't fully work on V8 builds until this is changed. |
|
16411 * bindings/v8/ScriptEventListener.h: |
|
16412 |
|
16413 * html/HTMLBodyElement.cpp: |
|
16414 (WebCore::HTMLBodyElement::parseMappedAttribute): Use createWindowAttributeEventListener instead. |
|
16415 * html/HTMLFrameSetElement.cpp: |
|
16416 (WebCore::HTMLFrameSetElement::parseMappedAttribute): Ditto. |
|
16417 * svg/SVGSVGElement.cpp: |
|
16418 (WebCore::SVGSVGElement::parseMappedAttribute): Ditto. Also add some missing copyright dates that `svn log` proves |
|
16419 should be there. |
|
16420 |
|
16421 2010-06-28 John Gregg <johnnyg@google.com> |
|
16422 |
|
16423 Reviewed by Kent Tamura. |
|
16424 |
|
16425 add ENABLE_DIRECTORY_UPLOAD build support |
|
16426 https://bugs.webkit.org/show_bug.cgi?id=41100 |
|
16427 |
|
16428 * Configurations/FeatureDefines.xcconfig: |
|
16429 * GNUmakefile.am: |
|
16430 * WebCore.pri: |
|
16431 |
|
16432 2010-06-28 Adam Barth <abarth@webkit.org> |
|
16433 |
|
16434 Reviewed by Eric Seidel. |
|
16435 |
|
16436 Don't use the new tree builder for fragments |
|
16437 https://bugs.webkit.org/show_bug.cgi?id=41316 |
|
16438 |
|
16439 We need to walk before we can run. After this change, we can run the |
|
16440 runner.html tests (with the ASSERT caveat). |
|
16441 |
|
16442 * html/HTMLTreeBuilder.cpp: |
|
16443 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
16444 |
|
16445 2010-06-28 Adam Barth <abarth@webkit.org> |
|
16446 |
|
16447 Reviewed by Eric Seidel. |
|
16448 |
|
16449 The new tree builder should actually finish building the tree |
|
16450 https://bugs.webkit.org/show_bug.cgi?id=41314 |
|
16451 |
|
16452 Again, this patch makes progress on runner.html, but I haven't removed |
|
16453 the ASSERT yet. |
|
16454 |
|
16455 * html/HTMLTreeBuilder.cpp: |
|
16456 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
16457 (WebCore::HTMLTreeBuilder::finished): |
|
16458 * html/HTMLTreeBuilder.h: |
|
16459 |
|
16460 2010-06-28 Dumitru Daniliuc <dumi@chromium.org> |
|
16461 |
|
16462 Reviewed by Eric Seidel. |
|
16463 |
|
16464 Fix a race condition that can happen when using DBs in workers. |
|
16465 https://bugs.webkit.org/show_bug.cgi?id=41105 |
|
16466 |
|
16467 * storage/DatabaseTracker.cpp: |
|
16468 (WebCore::DatabaseTracker::addOpenDatabase): |
|
16469 * storage/DatabaseTracker.h: |
|
16470 |
|
16471 2010-06-28 Adam Barth <abarth@webkit.org> |
|
16472 |
|
16473 Reviewed by Eric Seidel. |
|
16474 |
|
16475 Add text nodes to the DOM |
|
16476 https://bugs.webkit.org/show_bug.cgi?id=41306 |
|
16477 |
|
16478 Actually add some text nodes to the DOM when parsing a document. We're |
|
16479 going to need to do something fancier here eventually, but this gets us |
|
16480 past the error we're seeing currently in runner.html. |
|
16481 |
|
16482 Unfortunately, this patch "regresses" runner.html in the sense that we |
|
16483 now hit an assert, but it's still an improvement... I'll update the |
|
16484 HTML5 expectations once we get past the assert. |
|
16485 |
|
16486 * html/HTMLTreeBuilder.cpp: |
|
16487 (WebCore::HTMLTreeBuilder::processCharacter): |
|
16488 (WebCore::HTMLTreeBuilder::insertTextNode): |
|
16489 * html/HTMLTreeBuilder.h: |
|
16490 |
|
16491 2010-06-28 Beth Dakin <bdakin@apple.com> |
|
16492 |
|
16493 Build fix for non-PATH_BASED_BORDER_RADIUS_DRAWING platforms. |
|
16494 |
|
16495 * rendering/RenderBoxModelObject.cpp: |
|
16496 |
|
16497 2010-06-28 Andreas Kling <andreas.kling@nokia.com> |
|
16498 |
|
16499 Reviewed by Kenneth Rohde Christiansen. |
|
16500 |
|
16501 [Qt] Use HTML5-conformant gradient interpolation mode |
|
16502 https://bugs.webkit.org/show_bug.cgi?id=41298 |
|
16503 |
|
16504 Change the Qt Gradient implementation to use ComponentInterpolation mode. |
|
16505 |
|
16506 Spec link: |
|
16507 http://www.whatwg.org/specs/web-apps/current-work/#colors-and-styles |
|
16508 |
|
16509 * platform/graphics/qt/GradientQt.cpp: |
|
16510 (WebCore::Gradient::platformGradient): |
|
16511 |
|
16512 2010-06-28 Beth Dakin <bdakin@apple.com> |
|
16513 |
|
16514 Reviewed by Sam Weinig. |
|
16515 |
|
16516 Fix for https://bugs.webkit.org/show_bug.cgi?id=9197 CSS3: Borders |
|
16517 with border-radius and double, groove, or ridge styles should look |
|
16518 better |
|
16519 |
|
16520 This patch re-works border radius painting to stroke paths instead |
|
16521 of arcs. |
|
16522 |
|
16523 Added new function clipConvexPolygon(). Added static |
|
16524 addConvexPolygonToContext so that code can be shared between |
|
16525 drawConvexPolygon() and clipConvexPolygon(). |
|
16526 * platform/graphics/GraphicsContext.h: |
|
16527 * platform/graphics/cg/GraphicsContextCG.cpp: |
|
16528 (WebCore::addConvexPolygonToContext): |
|
16529 (WebCore::GraphicsContext::drawConvexPolygon): |
|
16530 (WebCore::GraphicsContext::clipConvexPolygon): |
|
16531 |
|
16532 Shells of implementations on non-CG platforms. |
|
16533 * platform/graphics/cairo/GraphicsContextCairo.cpp: |
|
16534 (WebCore::GraphicsContext::clipConvexPolygon): |
|
16535 * platform/graphics/haiku/GraphicsContextHaiku.cpp: |
|
16536 (WebCore::GraphicsContext::clipConvexPolygon): |
|
16537 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
16538 (WebCore::GraphicsContext::clipConvexPolygon): |
|
16539 * platform/graphics/skia/GraphicsContextSkia.cpp: |
|
16540 (WebCore::GraphicsContext::clipConvexPolygon): |
|
16541 * platform/graphics/wince/GraphicsContextWince.cpp: |
|
16542 (WebCore::GraphicsContext::clipConvexPolygon): |
|
16543 * platform/graphics/wx/GraphicsContextWx.cpp: |
|
16544 (WebCore::GraphicsContext::clipConvexPolygon): |
|
16545 |
|
16546 This new helper function determines if the inner corners of the |
|
16547 border will arch in or meet at a right angle. |
|
16548 * rendering/RenderBoxModelObject.cpp: |
|
16549 (WebCore::borderWillArcInnerEdge): |
|
16550 |
|
16551 This function is re-written so that, for each side of the border, |
|
16552 if borderWillArcInnerEdge() is true, we go down a brand new code |
|
16553 path of clipping to a convex polygon for the border side and then |
|
16554 we paint the side using the new function drawBoxSideFromPath(). If |
|
16555 borderWillArcInnerEdge() is false, then we call into the old |
|
16556 familiar drawLineForBoxSide() which relies on the rounder clip |
|
16557 rects we have set up to arch the outer edge of the border. |
|
16558 (WebCore::RenderBoxModelObject::paintBorder): |
|
16559 |
|
16560 This new function does the math to figure out the convex polygon |
|
16561 to clip to in the case where we need to arch the inner edge of the |
|
16562 border. This calls into a new GraphicsContext function that is only |
|
16563 implemented on CG at this time. This is the reason we are keeping |
|
16564 around an old version of paintBorder() for now. |
|
16565 (WebCore::RenderBoxModelObject::clipBorderSidePolygon): |
|
16566 * rendering/RenderBoxModelObject.h: |
|
16567 |
|
16568 borderInnerRect() is a new convenience function called from |
|
16569 RenderObject and RenderBoxModelObject to determine the rect of the |
|
16570 inside edge of the border. |
|
16571 * rendering/RenderObject.cpp: |
|
16572 (WebCore::RenderObject::borderInnerRect): |
|
16573 |
|
16574 This new function re-works drawArcForBoxSide to draw from Paths |
|
16575 when appropriate instead of stroking arcs. |
|
16576 (WebCore::RenderObject::drawBoxSideFromPath): |
|
16577 |
|
16578 Keep this around for that do not HAVE(PATH_BASED_BORDER_RADIUS_DRAWING) until |
|
16579 GraphicsContext::clipConvexPolygon() is implemented. |
|
16580 (WebCore::RenderObject::drawArcForBoxSide): |
|
16581 * rendering/RenderObject.h: |
|
16582 |
|
16583 New function |
|
16584 RenderStyle::getInnerBorderRadiiForRectWithBorderWidths() gets the |
|
16585 inner radius values for a rect. It takes border widths a parameters |
|
16586 rather than using the style's border widths so that it can be used |
|
16587 in inner radius calculations for double and groove/ridge |
|
16588 calculations. The W3C corner constraining rules were moved to a |
|
16589 static function that can be called from both getBorderRadiiForRect |
|
16590 () and getInnerBorderRadiiForRectWithBorderWidths(). |
|
16591 * rendering/style/RenderStyle.cpp: |
|
16592 (WebCore::constrainCornerRadiiForRect): |
|
16593 (WebCore::RenderStyle::getBorderRadiiForRect): |
|
16594 (WebCore::RenderStyle::getInnerBorderRadiiForRectWithBorderWidths): |
|
16595 * rendering/style/RenderStyle.h: |
|
16596 |
|
16597 2010-06-28 Martin Robinson <mrobinson@igalia.com> |
|
16598 |
|
16599 Reviewed by Xan Lopez. |
|
16600 |
|
16601 [GTK] Add support for the progress bar tag |
|
16602 https://bugs.webkit.org/show_bug.cgi?id=41014 |
|
16603 |
|
16604 Add support for rendering the progress tag for WebKit GTK+. |
|
16605 |
|
16606 * GNUmakefile.am: |
|
16607 * platform/gtk/RenderThemeGtk.cpp: |
|
16608 (WebCore::RenderThemeGtk::animationRepeatIntervalForProgressBar): |
|
16609 Added. Currently progress bar animations are disabled. As it looks like |
|
16610 there may not be a good way to support this with Mozilla's theme drawing code. |
|
16611 (WebCore::RenderThemeGtk::animationDurationForProgressBar): Ditto. |
|
16612 (WebCore::RenderThemeGtk::adjustProgressBarStyle): Added. |
|
16613 (WebCore::RenderThemeGtk::paintProgressBar): Added. |
|
16614 * platform/gtk/RenderThemeGtk.h: Add declarations for new methods. |
|
16615 * platform/gtk/gtk2drawing.c: |
|
16616 (moz_gtk_get_progress_widget): Expose the progress widget so that the chunk can be positioned properly. |
|
16617 * platform/gtk/gtkdrawing.h: Added declaration for moz_gtk_get_progress_widget. |
|
16618 |
|
16619 2010-06-28 Adam Barth <abarth@webkit.org> |
|
16620 |
|
16621 Reviewed by Eric Seidel. |
|
16622 |
|
16623 HTML5 Regression: Crash in insert() |
|
16624 https://bugs.webkit.org/show_bug.cgi?id=41281 |
|
16625 |
|
16626 We need to call endIfDelayed() outside of the script nesting block |
|
16627 because endIfDelayed() might call end(), which deletes the |
|
16628 HTMLDocumentParser. If we try to exit the script nesting block after |
|
16629 the HTMLDocumentParser has been deleted, we'll decrement unallocated |
|
16630 memory, which is bad times. |
|
16631 |
|
16632 Moving endIfDelayed outside of the script nesting block also lets us |
|
16633 avoid ending if inWrite() is true. If we're inWrite(), then there's |
|
16634 folks above us on the stack who will crash of the HTMLDocumentParser is |
|
16635 deallocated. Adding this check matches the LegacyHTMLDocumentParser |
|
16636 and the logic in attemptToEnd, facilitating a small refactoring of the |
|
16637 common logic for improved readability. |
|
16638 |
|
16639 I don't know of any test case that changes in behavior because of this |
|
16640 patch, but this bug exists on the same line of code that the reliablity |
|
16641 tests crashed. I'm not sure whether this patch will fix that crash, |
|
16642 but removing bugs (even theoretical ones) seems like a good idea. |
|
16643 |
|
16644 * html/HTMLDocumentParser.cpp: |
|
16645 (WebCore::HTMLDocumentParser::insert): |
|
16646 (WebCore::HTMLDocumentParser::append): |
|
16647 (WebCore::HTMLDocumentParser::attemptToEnd): |
|
16648 (WebCore::HTMLDocumentParser::endIfDelayed): |
|
16649 (WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution): |
|
16650 * html/HTMLDocumentParser.h: |
|
16651 (WebCore::HTMLDocumentParser::shouldDelayEnd): |
|
16652 |
|
16653 2010-06-28 Eric Carlson <eric.carlson@apple.com> |
|
16654 |
|
16655 Reviewed by Sam Weinig. |
|
16656 |
|
16657 MediaPlayerPrivate::getSupportedTypes does not return "modern" MIME types |
|
16658 https://bugs.webkit.org/show_bug.cgi?id=41287 |
|
16659 <rdar://problem/8137402> |
|
16660 |
|
16661 No new test because getSupportedTypes is used privately by MediaPlayer. |
|
16662 |
|
16663 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: |
|
16664 (WebCore::MediaPlayerPrivate::getSupportedTypes): Build hash set with both common and |
|
16665 modern types. |
|
16666 |
|
16667 2010-06-28 James Robinson <jamesr@chromium.org> |
|
16668 |
|
16669 Reviewed by Darin Adler. |
|
16670 |
|
16671 REGRESSION(53790): Neopets page with mismatched elements misrenders |
|
16672 https://bugs.webkit.org/show_bug.cgi?id=41181 |
|
16673 |
|
16674 Misnested formatting tags require fixup in order to create a valid DOM. Because this takes |
|
16675 O(N^2) time in some cases, http://trac.webkit.org/changeset/53790 added an iteration limit |
|
16676 of 5 to this algorithm to avoid hangs. This limit is too low for neopets, but a limit of |
|
16677 7 is sufficient. This raises the limit to 10 to have a bit of breathing room. HTML5 |
|
16678 defines the fixup algorithm http://www.whatwg.org/specs/web-apps/current-work/#adoptionAgency |
|
16679 but doesn't specify any particular iteration limit. |
|
16680 |
|
16681 * html/LegacyHTMLTreeBuilder.cpp: |
|
16682 |
|
16683 2010-06-28 Adam Barth <abarth@webkit.org> |
|
16684 |
|
16685 Reviewed by Eric Seidel. |
|
16686 |
|
16687 The new tree builder needs to call attach() on elements it attaches to |
|
16688 the DOM |
|
16689 https://bugs.webkit.org/show_bug.cgi?id=41293 |
|
16690 |
|
16691 Apparently Nodes expect to have their attach() method called when they |
|
16692 are attached to the DOM. The new tree builder is happy to oblige. |
|
16693 Making this call requires some fancy footwork with RefPtr/PassRefPtr to |
|
16694 avoid extra ref churn while keeping each function small. |
|
16695 |
|
16696 * html/HTMLTreeBuilder.cpp: |
|
16697 (WebCore::HTMLTreeBuilder::insertHTMLStartTagBeforeHTML): |
|
16698 (WebCore::HTMLTreeBuilder::processCharacter): |
|
16699 (WebCore::HTMLTreeBuilder::insertDoctype): |
|
16700 (WebCore::HTMLTreeBuilder::insertComment): |
|
16701 (WebCore::HTMLTreeBuilder::insertCommentOnDocument): |
|
16702 (WebCore::HTMLTreeBuilder::insertElement): |
|
16703 (WebCore::HTMLTreeBuilder::insertSelfClosingElement): |
|
16704 (WebCore::HTMLTreeBuilder::insertScriptElement): |
|
16705 * html/HTMLTreeBuilder.h: |
|
16706 (WebCore::HTMLTreeBuilder::attach): |
|
16707 |
|
16708 2010-06-28 Xan Lopez <xlopez@igalia.com> |
|
16709 |
|
16710 Fix distcheck. |
|
16711 |
|
16712 * GNUmakefile.am: |
|
16713 |
|
16714 2010-06-28 Kenneth Russell <kbr@google.com> |
|
16715 |
|
16716 Reviewed by Dimitri Glazkov. |
|
16717 |
|
16718 Index validation caches buffer size information too aggressively |
|
16719 https://bugs.webkit.org/show_bug.cgi?id=41092 |
|
16720 |
|
16721 Test: fast/canvas/webgl/index-validation-with-resized-buffer.html |
|
16722 |
|
16723 * html/canvas/WebGLRenderingContext.cpp: |
|
16724 (WebCore::WebGLRenderingContext::validateRenderingState): |
|
16725 - Compute the number of valid elements each time based on the latched buffer. |
|
16726 (WebCore::WebGLRenderingContext::vertexAttribPointer): |
|
16727 - Do not cache the buffer size, only the attributes used to |
|
16728 compute the number of required elements. |
|
16729 * html/canvas/WebGLRenderingContext.h: |
|
16730 (WebCore::WebGLRenderingContext::VertexAttribState::VertexAttribState): |
|
16731 - Ditto. |
|
16732 |
|
16733 2010-06-28 Andreas Kling <andreas.kling@nokia.com> |
|
16734 |
|
16735 Reviewed by Simon Hausmann. |
|
16736 |
|
16737 [Qt] Replace single treat-as-space characters with normal space |
|
16738 https://bugs.webkit.org/show_bug.cgi?id=41278 |
|
16739 |
|
16740 This keeps Qt from attempting glyph substitution and loading a bunch |
|
16741 of extra fonts when encountering entities. |
|
16742 |
|
16743 * platform/graphics/qt/FontQt.cpp: |
|
16744 (WebCore::Font::floatWidthForComplexText): |
|
16745 |
|
16746 2010-06-28 Robin Cao <robin.cao@torchmobile.com.cn> |
|
16747 |
|
16748 Reviewed by Dan Bernstein. |
|
16749 |
|
16750 canvas fillText with @font-face crashes |
|
16751 https://bugs.webkit.org/show_bug.cgi?id=35486 |
|
16752 |
|
16753 The font object in CanvasRenderingContext2D may become invalid at some point. |
|
16754 Override recalcStyle() in HTMLCanvasElement, and update the font object from there if needed. |
|
16755 |
|
16756 A test already exists: canvas/philip/tests/2d.text.draw.fontface.repeat.html |
|
16757 |
|
16758 * html/HTMLCanvasElement.cpp: |
|
16759 (WebCore::HTMLCanvasElement::recalcStyle): |
|
16760 * html/HTMLCanvasElement.h: |
|
16761 * html/canvas/CanvasRenderingContext2D.cpp: |
|
16762 (WebCore::CanvasRenderingContext2D::updateFont): |
|
16763 * html/canvas/CanvasRenderingContext2D.h: |
|
16764 |
|
16765 2010-06-28 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
16766 |
|
16767 Unreviewed build fix. |
|
16768 |
|
16769 [EFL] Build fix for latest version of Ecore library. |
|
16770 Ecore recently changed return type of callbacks from int to Eina_Bool. |
|
16771 |
|
16772 No new functionality, so no new tests. |
|
16773 |
|
16774 * platform/efl/SharedTimerEfl.cpp: |
|
16775 (WebCore::timerEvent): Return Eina_Bool instead of int. |
|
16776 |
|
16777 2010-06-28 Xan Lopez <xlopez@igalia.com> |
|
16778 |
|
16779 Fix build with GTK+ older than 2.18 |
|
16780 |
|
16781 * platform/gtk/ScrollViewGtk.cpp: |
|
16782 (WebCore::ScrollView::visibleContentRect): |
|
16783 |
|
16784 2010-06-28 Xan Lopez <xlopez@igalia.com> |
|
16785 |
|
16786 Reviewed by Adam Barth. |
|
16787 |
|
16788 [GTK] Push NULL context on every DOM bindings entry point |
|
16789 https://bugs.webkit.org/show_bug.cgi?id=39967 |
|
16790 |
|
16791 Update GObject DOM bindings to push the NULL context on every API |
|
16792 entry point, and update bindings test results. |
|
16793 |
|
16794 * bindings/scripts/CodeGeneratorGObject.pm: |
|
16795 * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp: |
|
16796 * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: |
|
16797 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: |
|
16798 |
|
16799 2010-06-28 Martin Robinson <martin.james.robinson@gmail.com> |
|
16800 |
|
16801 Reviewed by Adam Roben. |
|
16802 |
|
16803 [WinCairo] Text box backgrounds do not render in partially opaque layers |
|
16804 https://bugs.webkit.org/show_bug.cgi?id=41113 |
|
16805 |
|
16806 Tests: |
|
16807 manual-tests/partially-opaque-text-input.html |
|
16808 |
|
16809 * platform/graphics/win/GraphicsContextCairoWin.cpp: |
|
16810 (WebCore::GraphicsContext::releaseWindowsContext): |
|
16811 When restoring a context which does not support alpha blending, manually |
|
16812 set the alpha channel of the HBITMAP to fully opaque. This will effectively |
|
16813 ignore the alpha channel of the HBITMAP, which is necessary because GDI |
|
16814 drawing functions set the alpha value to be fully transparent (0). |
|
16815 |
|
16816 2010-06-28 Martin Robinson <martin.james.robinson@gmail.com> |
|
16817 |
|
16818 Reviewed by Adam Roben. |
|
16819 |
|
16820 [WinCairo] Rendering of themed elements on a layer with opacity produces nothing |
|
16821 https://bugs.webkit.org/show_bug.cgi?id=41111 |
|
16822 |
|
16823 Tests: |
|
16824 manual-tests/partially-opaque-form-elements.html |
|
16825 |
|
16826 * platform/graphics/win/GraphicsContextCairoWin.cpp: |
|
16827 (WebCore::GraphicsContext::releaseWindowsContext): |
|
16828 Preform a cairo_save() and a cairo_restore() around code modifying the transformation |
|
16829 matrix of the Cairo surface. Also set the destination coordinates before adjusting |
|
16830 the transformation matrix scale, so that the destination coordinates are not scaled |
|
16831 as well. |
|
16832 |
|
16833 2010-06-28 Sam Magnuson <smagnuson@netflix.com> |
|
16834 |
|
16835 Reviewed by Kenneth Rohde Christiansen. |
|
16836 |
|
16837 [Qt] GraphicsLayerQt delay seems unnecessary. |
|
16838 https://bugs.webkit.org/show_bug.cgi?id=40846 |
|
16839 |
|
16840 Test: compositing/animation/busy-indicator.html |
|
16841 |
|
16842 * platform/graphics/qt/GraphicsLayerQt.cpp: |
|
16843 (WebCore::GraphicsLayerQtImpl::recache): |
|
16844 (WebCore::GraphicsLayerQtImpl::flushChanges): |
|
16845 (WebCore::GraphicsLayerQt::setContentsToImage): |
|
16846 (WebCore::GraphicsLayerQt::addAnimation): |
|
16847 |
|
16848 2010-06-28 Xan Lopez <xlopez@igalia.com> |
|
16849 |
|
16850 Reviewed by Gustavo Noronha. |
|
16851 |
|
16852 Until now we were adding the event listeners for a given object in |
|
16853 the wrap method, since that's the first moment we have accoss to |
|
16854 the core WebCore object. The problem is that we only install the |
|
16855 listeners that the topmost class in the class hierarchy needs (eg, |
|
16856 HTMLParagrahElement for a P element), when most of the actual |
|
16857 event attributes are defined in the base classes (Node, Element, |
|
16858 ...). |
|
16859 |
|
16860 To fix this set the core object as a construct/write-only property |
|
16861 on the wrapper GObject, and set the eventlisteners in the cGObject |
|
16862 'construct' method, chaining up through all the class hierarchy |
|
16863 until the end. This way we'll get all the eventlisteners defined |
|
16864 in all the superclasses of our object, which is what we want. |
|
16865 |
|
16866 * bindings/gobject/WebKitDOMObject.cpp: |
|
16867 (webkit_dom_object_get_property): |
|
16868 (webkit_dom_object_set_property): |
|
16869 (webkit_dom_object_class_init): |
|
16870 * bindings/scripts/CodeGeneratorGObject.pm: |
|
16871 * dom/Node.idl: |
|
16872 |
|
16873 2010-06-28 Xan Lopez <xlopez@igalia.com> |
|
16874 |
|
16875 Fix GTK+ build. |
|
16876 |
|
16877 * platform/gtk/RenderThemeGtk.cpp: |
|
16878 |
|
16879 2010-06-28 Xan Lopez <xlopez@igalia.com> |
|
16880 |
|
16881 Reviewed by Gustavo Noronha. |
|
16882 |
|
16883 [GTK] Does not compile with -DGSEAL_ENABLE |
|
16884 https://bugs.webkit.org/show_bug.cgi?id=37851 |
|
16885 |
|
16886 Fix build with GSEAL enabled. |
|
16887 |
|
16888 * GNUmakefile.am: |
|
16889 * platform/gtk/GtkVersioning.h: |
|
16890 * platform/gtk/RenderThemeGtk.cpp: |
|
16891 (WebCore::paintMozillaGtkWidget): |
|
16892 (WebCore::RenderThemeGtk::platformActiveSelectionBackgroundColor): |
|
16893 (WebCore::RenderThemeGtk::platformInactiveSelectionBackgroundColor): |
|
16894 (WebCore::RenderThemeGtk::platformActiveSelectionForegroundColor): |
|
16895 (WebCore::RenderThemeGtk::platformInactiveSelectionForegroundColor): |
|
16896 (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor): |
|
16897 (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor): |
|
16898 (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor): |
|
16899 (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor): |
|
16900 (WebCore::RenderThemeGtk::systemColor): |
|
16901 * platform/gtk/ScrollViewGtk.cpp: |
|
16902 (WebCore::ScrollView::platformRemoveChild): |
|
16903 (WebCore::ScrollView::visibleContentRect): |
|
16904 * platform/gtk/gtk2drawing.c: |
|
16905 (ensure_toggle_button_widget): |
|
16906 (ensure_combo_box_widgets): |
|
16907 (ensure_combo_box_entry_widgets): |
|
16908 (ensure_tree_header_cell_widget): |
|
16909 (moz_gtk_button_paint): |
|
16910 (moz_gtk_toggle_paint): |
|
16911 (calculate_button_inner_rect): |
|
16912 (calculate_arrow_rect): |
|
16913 (moz_gtk_scrollbar_button_paint): |
|
16914 (moz_gtk_scrollbar_trough_paint): |
|
16915 (moz_gtk_scrollbar_thumb_paint): |
|
16916 (moz_gtk_spin_paint): |
|
16917 (moz_gtk_spin_updown_paint): |
|
16918 (moz_gtk_scale_paint): |
|
16919 (moz_gtk_scale_thumb_paint): |
|
16920 (moz_gtk_gripper_paint): |
|
16921 (moz_gtk_hpaned_paint): |
|
16922 (moz_gtk_vpaned_paint): |
|
16923 (moz_gtk_entry_paint): |
|
16924 (moz_gtk_treeview_paint): |
|
16925 (moz_gtk_tree_header_sort_arrow_paint): |
|
16926 (moz_gtk_treeview_expander_paint): |
|
16927 (moz_gtk_expander_paint): |
|
16928 (moz_gtk_combo_box_paint): |
|
16929 (moz_gtk_downarrow_paint): |
|
16930 (moz_gtk_combo_box_entry_button_paint): |
|
16931 (moz_gtk_container_paint): |
|
16932 (moz_gtk_toggle_label_paint): |
|
16933 (moz_gtk_toolbar_paint): |
|
16934 (moz_gtk_toolbar_separator_paint): |
|
16935 (moz_gtk_tooltip_paint): |
|
16936 (moz_gtk_resizer_paint): |
|
16937 (moz_gtk_frame_paint): |
|
16938 (moz_gtk_progressbar_paint): |
|
16939 (moz_gtk_progress_chunk_paint): |
|
16940 (moz_gtk_get_tab_thickness): |
|
16941 (moz_gtk_tab_paint): |
|
16942 (moz_gtk_tabpanels_paint): |
|
16943 (moz_gtk_tab_scroll_arrow_paint): |
|
16944 (moz_gtk_menu_bar_paint): |
|
16945 (moz_gtk_menu_popup_paint): |
|
16946 (moz_gtk_menu_separator_paint): |
|
16947 (moz_gtk_menu_item_paint): |
|
16948 (moz_gtk_menu_arrow_paint): |
|
16949 |
|
16950 2010-06-28 Xan Lopez <xlopez@igalia.com> |
|
16951 |
|
16952 Reviewed by Gustavo Noronha. |
|
16953 |
|
16954 [GTK] Add support for GTK+3 |
|
16955 https://bugs.webkit.org/show_bug.cgi?id=41253 |
|
16956 |
|
16957 Adapt build system for 3.x support. |
|
16958 |
|
16959 * GNUmakefile.am: |
|
16960 |
|
16961 2010-06-28 Yury Semikhatsky <yurys@chromium.org> |
|
16962 |
|
16963 Reviewed by Pavel Feldman. |
|
16964 |
|
16965 [v8] Web Inspector: properties of scope variables are flattened while on a breakpoint. |
|
16966 https://bugs.webkit.org/show_bug.cgi?id=41214 |
|
16967 |
|
16968 Test: inspector/debugger-proto-property.html |
|
16969 |
|
16970 * inspector/front-end/InjectedScript.js: |
|
16971 (injectedScriptConstructor): object proxy with non-empty path cannot be scope proxy. |
|
16972 |
|
16973 2010-06-28 MORITA Hajime <morrita@google.com> |
|
16974 |
|
16975 Unreviewed attempt to fix windows build. |
|
16976 |
|
16977 * page/DOMWindow.idl: |
|
16978 |
|
16979 2010-06-22 MORITA Hajime <morrita@google.com> |
|
16980 |
|
16981 Reviewed by Kent Tamura. |
|
16982 |
|
16983 <progress> should be styled with -webkit-progress-bar-value |
|
16984 https://bugs.webkit.org/show_bug.cgi?id=40823 |
|
16985 |
|
16986 Fixed to peek styles of the shadow node pseudo class to fallback |
|
16987 to non-styled painting. |
|
16988 |
|
16989 * css/html.css: |
|
16990 (progress): Added defaul background-color. |
|
16991 (progress::-webkit-progress-bar-value): Added defaul background-color. |
|
16992 * rendering/RenderProgress.cpp: |
|
16993 (WebCore::RenderProgress::shouldHaveParts): |
|
16994 (WebCore::RenderProgress::updatePartsState): |
|
16995 |
|
16996 Test: fast/dom/HTMLProgressElement/progress-bar-value-pseudo-element.html |
|
16997 |
|
16998 2010-06-28 Csaba Osztrogonác <ossy@webkit.org> |
|
16999 |
|
17000 Reviewed by Kent Tamura. |
|
17001 |
|
17002 GCC suggest parentheses around && within || |
|
17003 https://bugs.webkit.org/show_bug.cgi?id=41245 |
|
17004 |
|
17005 * rendering/RenderBlock.cpp: |
|
17006 (WebCore::RenderBlock::paintChildren): |
|
17007 |
|
17008 2010-06-28 Adam Barth <abarth@webkit.org> |
|
17009 |
|
17010 Reviewed by Eric Seidel. |
|
17011 |
|
17012 Don't dump contents of <script> elements in LayoutTests |
|
17013 https://bugs.webkit.org/show_bug.cgi?id=41277 |
|
17014 |
|
17015 Apparently we need to tell each element when we start and stop parsing |
|
17016 its children. If we don't do this, we see the contents of every script |
|
17017 and style element in dumpAsText LayoutTests. (This patch is *well* |
|
17018 covered by LayoutTests.) |
|
17019 |
|
17020 * html/HTMLTreeBuilder.h: |
|
17021 (WebCore::HTMLTreeBuilder::ElementStack::pop): |
|
17022 (WebCore::HTMLTreeBuilder::ElementStack::push): |
|
17023 |
|
17024 2010-06-28 Eric Seidel <eric@webkit.org> |
|
17025 |
|
17026 Reviewed by Adam Barth. |
|
17027 |
|
17028 Make it possible to test the new HTML5 TreeBuilder |
|
17029 https://bugs.webkit.org/show_bug.cgi?id=41276 |
|
17030 |
|
17031 Adam was concerned that someone might make their port |
|
17032 depend on this setting (I guess we had some trouble with that |
|
17033 with the HTML5Parser setting), so I littered the code with warnings. |
|
17034 |
|
17035 test-html5-parser now tests this code path. |
|
17036 |
|
17037 * html/HTMLTreeBuilder.cpp: |
|
17038 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
17039 (WebCore::HTMLTreeBuilder::constructTreeFromToken): |
|
17040 (WebCore::HTMLTreeBuilder::finished): |
|
17041 * page/Settings.cpp: |
|
17042 (WebCore::Settings::Settings): |
|
17043 * page/Settings.h: |
|
17044 (WebCore::Settings::setHTML5TreeBuilderEnabled_DO_NOT_USE): |
|
17045 (WebCore::Settings::html5TreeBuilderEnabled): |
|
17046 |
|
17047 2010-06-28 Adam Barth <abarth@webkit.org> |
|
17048 |
|
17049 Reviewed by Eric Seidel. |
|
17050 |
|
17051 Make the html5lib runner.html not assert |
|
17052 https://bugs.webkit.org/show_bug.cgi?id=41273 |
|
17053 |
|
17054 This patch gets us closer to being able to run the parser tests. We |
|
17055 still don't get parsing correct, but at least we don't assert. :) |
|
17056 |
|
17057 * html/HTMLTreeBuilder.cpp: |
|
17058 (WebCore::HTMLTreeBuilder::processStartTag): |
|
17059 (WebCore::HTMLTreeBuilder::processComment): |
|
17060 (WebCore::HTMLTreeBuilder::insertCommentOnDocument): |
|
17061 * html/HTMLTreeBuilder.h: |
|
17062 |
|
17063 2010-06-28 Eric Seidel <eric@webkit.org> |
|
17064 |
|
17065 Unreviewed. Attempt to fix Chromium and Qt builders. |
|
17066 |
|
17067 Add a new baseclass for XML, HTML and Text DocumentParsers to clean up DocumentParser call sites |
|
17068 https://bugs.webkit.org/show_bug.cgi?id=41141 |
|
17069 |
|
17070 No functional changes, thus no tests. |
|
17071 |
|
17072 * bindings/v8/ScriptController.cpp: |
|
17073 (WebCore::ScriptController::eventHandlerLineNumber): |
|
17074 (WebCore::ScriptController::eventHandlerColumnNumber): |
|
17075 * dom/XMLDocumentParserQt.cpp: |
|
17076 (WebCore::XMLDocumentParser::XMLDocumentParser): |
|
17077 (WebCore::XMLDocumentParser::stopParsing): |
|
17078 |
|
17079 2010-06-28 Adam Barth <abarth@webkit.org> |
|
17080 |
|
17081 Reviewed by Eric Seidel. |
|
17082 |
|
17083 Add support for parsing attributes |
|
17084 https://bugs.webkit.org/show_bug.cgi?id=41272 |
|
17085 |
|
17086 This patch lets use parse the following document: |
|
17087 |
|
17088 <script src="data:text/javascript,alert('PASS')"></script> |
|
17089 |
|
17090 * html/HTMLTreeBuilder.cpp: |
|
17091 (WebCore::HTMLTreeBuilder::constructTreeFromToken): |
|
17092 (WebCore::HTMLTreeBuilder::insertHTMLStartTagBeforeHTML): |
|
17093 (WebCore::HTMLTreeBuilder::insertScriptElement): |
|
17094 (WebCore::HTMLTreeBuilder::createElement): |
|
17095 |
|
17096 2010-06-28 Eric Seidel <eric@webkit.org> |
|
17097 |
|
17098 Reviewed by Darin Adler. |
|
17099 |
|
17100 Add a new baseclass for XML, HTML and Text DocumentParsers to clean up DocumentParser call sites |
|
17101 https://bugs.webkit.org/show_bug.cgi?id=41141 |
|
17102 |
|
17103 By splitting ScriptableDocumentParser and DecodedDataDocumentParser |
|
17104 out from DocumentParser we've made the DocumentParser and |
|
17105 RawDataDocumentParser classes simpler. |
|
17106 |
|
17107 No functional change, thus no tests. |
|
17108 |
|
17109 * Android.mk: |
|
17110 * CMakeLists.txt: |
|
17111 * GNUmakefile.am: |
|
17112 * WebCore.gypi: |
|
17113 * WebCore.pro: |
|
17114 * WebCore.vcproj/WebCore.vcproj: |
|
17115 * WebCore.xcodeproj/project.pbxproj: |
|
17116 * bindings/js/ScriptController.cpp: |
|
17117 (WebCore::ScriptController::eventHandlerLineNumber): |
|
17118 * css/CSSStyleSheet.cpp: |
|
17119 (WebCore::CSSStyleSheet::checkLoaded): |
|
17120 * dom/Document.cpp: |
|
17121 (WebCore::Document::scriptableDocumentParser): |
|
17122 (WebCore::Document::open): |
|
17123 (WebCore::Document::implicitOpen): |
|
17124 (WebCore::Document::implicitClose): |
|
17125 (WebCore::Document::removePendingSheet): |
|
17126 * dom/Document.h: |
|
17127 (WebCore::Document::parser): |
|
17128 * dom/DocumentParser.cpp: |
|
17129 (WebCore::DocumentParser::DocumentParser): |
|
17130 * dom/DocumentParser.h: |
|
17131 (WebCore::DocumentParser::asScriptableDocumentParser): |
|
17132 * dom/RawDataDocumentParser.h: |
|
17133 (WebCore::RawDataDocumentParser::finishWasCalled): |
|
17134 * dom/ScriptableDocumentParser.cpp: Copied from WebCore/html/HTMLEntityParser.h. |
|
17135 (WebCore::ScriptableDocumentParser::ScriptableDocumentParser): |
|
17136 * dom/ScriptableDocumentParser.h: Added. |
|
17137 (WebCore::ScriptableDocumentParser::isExecutingScript): |
|
17138 (WebCore::ScriptableDocumentParser::executeScriptsWaitingForStylesheets): |
|
17139 (WebCore::ScriptableDocumentParser::xssAuditor): |
|
17140 (WebCore::ScriptableDocumentParser::setXSSAuditor): |
|
17141 (WebCore::ScriptableDocumentParser::processingContentWrittenByScript): |
|
17142 (WebCore::ScriptableDocumentParser::asScriptableDocumentParser): |
|
17143 * dom/ViewportArguments.cpp: |
|
17144 (WebCore::parserLineNumber): |
|
17145 (WebCore::reportViewportWarning): |
|
17146 * dom/XMLDocumentParser.h: |
|
17147 * dom/XMLDocumentParserLibxml2.cpp: |
|
17148 (WebCore::XMLDocumentParser::XMLDocumentParser): |
|
17149 * html/HTMLDocumentParser.cpp: |
|
17150 (WebCore::HTMLDocumentParser::HTMLDocumentParser): |
|
17151 (WebCore::HTMLDocumentParser::shouldLoadExternalScriptFromSrc): |
|
17152 * html/HTMLDocumentParser.h: |
|
17153 * html/LegacyHTMLDocumentParser.cpp: |
|
17154 (WebCore::LegacyHTMLDocumentParser::LegacyHTMLDocumentParser): |
|
17155 (WebCore::LegacyHTMLDocumentParser::parseTag): |
|
17156 * html/LegacyHTMLDocumentParser.h: |
|
17157 (WebCore::LegacyHTMLDocumentParser::processingContentWrittenByScript): |
|
17158 * html/LegacyHTMLTreeBuilder.cpp: |
|
17159 (WebCore::LegacyHTMLTreeBuilder::reportErrorToConsole): |
|
17160 * loader/DocumentLoader.cpp: |
|
17161 * loader/DocumentWriter.cpp: |
|
17162 * loader/TextDocument.cpp: |
|
17163 (WebCore::TextDocumentParser::TextDocumentParser): |
|
17164 (WebCore::TextDocumentParser::finish): |
|
17165 * svg/SVGDocumentExtensions.cpp: |
|
17166 (WebCore::parserLineNumber): |
|
17167 (WebCore::reportMessage): |
|
17168 (WebCore::SVGDocumentExtensions::reportWarning): |
|
17169 (WebCore::SVGDocumentExtensions::reportError): |
|
17170 |
|
17171 2010-06-27 Steve Falkenburg <sfalken@apple.com> |
|
17172 |
|
17173 Reviewed by Mark Rowe. |
|
17174 |
|
17175 WebKit2 build exceeds address space on 32-bit Windows builders |
|
17176 https://bugs.webkit.org/show_bug.cgi?id=41270 |
|
17177 |
|
17178 Add all-in-one file for render-related SVG files. |
|
17179 Clean up other all-in-one files by adding missing files, excluding matching files from the vcproj. |
|
17180 Reduces release WebCore.lib size by 10% (160MB). |
|
17181 |
|
17182 * DerivedSources.cpp: |
|
17183 * WebCore.vcproj/WebCore.vcproj: |
|
17184 * bindings/js/JSBindingsAllInOne.cpp: |
|
17185 * html/HTMLElementsAllInOne.cpp: |
|
17186 * rendering/RenderSVGAllInOne.cpp: Added. |
|
17187 |
|
17188 2010-06-27 Adam Barth <abarth@webkit.org> |
|
17189 |
|
17190 Reviewed by Eric Seidel. |
|
17191 |
|
17192 Sketch out the InBodyMode for the tree builder |
|
17193 https://bugs.webkit.org/show_bug.cgi?id=41271 |
|
17194 |
|
17195 This gives us some basic behavior for the InBodyMode. I've implemented |
|
17196 some of the easier logic. The more complicated logic will be in |
|
17197 subsequent patches. |
|
17198 |
|
17199 * html/HTMLTreeBuilder.cpp: |
|
17200 (WebCore::HTMLTreeBuilder::processStartTag): |
|
17201 (WebCore::HTMLTreeBuilder::processEndTag): |
|
17202 (WebCore::HTMLTreeBuilder::insertFormatingElement): |
|
17203 (WebCore::HTMLTreeBuilder::reconstructTheActiveFormattingElements): |
|
17204 * html/HTMLTreeBuilder.h: |
|
17205 |
|
17206 2010-06-25 Yuzo Fujishima <yuzo@google.com> |
|
17207 |
|
17208 Reviewed by Shinichiro Hamaji. |
|
17209 |
|
17210 Improve default value handling for page format properties. |
|
17211 |
|
17212 Default page size and orientation have been hard-coded. |
|
17213 Instead, pass default page size and margins to |
|
17214 WebCore::Document::pageSizeAndMarginsInPixels to handle auto page size |
|
17215 and margins specified as percentages. |
|
17216 Return margins instead of page rect. |
|
17217 |
|
17218 https://bugs.webkit.org/show_bug.cgi?id=41150 |
|
17219 |
|
17220 * WebCore.base.exp: |
|
17221 * css/CSSStyleSelector.cpp: |
|
17222 (WebCore::CSSStyleSelector::applyPageSizeProperty): |
|
17223 (WebCore::CSSStyleSelector::pageSizeFromName): |
|
17224 * css/html.css: |
|
17225 (@page): |
|
17226 * dom/Document.cpp: |
|
17227 (WebCore::Document::pageSizeAndMarginsInPixels): |
|
17228 * dom/Document.h: |
|
17229 * page/PrintContext.cpp: |
|
17230 (WebCore::PrintContext::pageProperty): |
|
17231 (WebCore::PrintContext::pageSizeAndMarginsInPixels): |
|
17232 * page/PrintContext.h: |
|
17233 * rendering/style/RenderStyle.h: |
|
17234 (WebCore::InheritedFlags::pageSizeType): |
|
17235 (WebCore::InheritedFlags::setPageSizeType): |
|
17236 (WebCore::InheritedFlags::resetPageSizeType): |
|
17237 * rendering/style/StyleRareNonInheritedData.cpp: |
|
17238 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): |
|
17239 (WebCore::StyleRareNonInheritedData::operator==): |
|
17240 * rendering/style/StyleRareNonInheritedData.h: |
|
17241 (WebCore::): |
|
17242 |
|
17243 2010-06-27 Adam Barth <abarth@webkit.org> |
|
17244 |
|
17245 Reviewed by Eric Seidel. |
|
17246 |
|
17247 Clean up some loose ends in HTML5 tree builder |
|
17248 https://bugs.webkit.org/show_bug.cgi?id=41265 |
|
17249 |
|
17250 This patch cleans up a few loose ends in HTML5 tree builder. |
|
17251 Technically, we could do each of these as individual patches, but that |
|
17252 didn't seem worth while. |
|
17253 |
|
17254 * html/HTMLTreeBuilder.cpp: |
|
17255 (WebCore::HTMLTreeBuilder::processStartTag): |
|
17256 - Add missing break before default case statement. I don't think |
|
17257 this change is observable. |
|
17258 (WebCore::HTMLTreeBuilder::processComment): |
|
17259 - Originally I thought that comments had special processing in the |
|
17260 InHeadNoscriptMode, but it turns out that when you unwind the |
|
17261 definitions, it amounts to exactly the same thing. |
|
17262 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
17263 - Add missing break before default case statement. I don't think |
|
17264 this change is observable. |
|
17265 (WebCore::HTMLTreeBuilder::insertComment): |
|
17266 - Eliminate one unnecessary ref/deref pair. |
|
17267 (WebCore::HTMLTreeBuilder::insertSelfClosingElement): |
|
17268 - When we insert self-closing elements, there's no reason to push |
|
17269 them onto the stack of open elements just to pop them off again. |
|
17270 This change saves a malloc/free pair as well as a ref/deref pair. |
|
17271 Go team. |
|
17272 * html/HTMLTreeBuilder.h: |
|
17273 - Remove unused function. |
|
17274 |
|
17275 2010-06-27 Adam Barth <abarth@webkit.org> |
|
17276 |
|
17277 Reviewed by Eric Seidel. |
|
17278 |
|
17279 Implement remaining StartTag processing for InHeadNoscriptMode |
|
17280 https://bugs.webkit.org/show_bug.cgi?id=41264 |
|
17281 |
|
17282 The InHeadNoscriptMode processes some start tags "as if" the tree |
|
17283 builder were in the InHeadMode. This is an idiom we'll see more of |
|
17284 later. My approach is this patch is to factor all the logic for |
|
17285 processing start tags in the InHeadMode into a separate function that |
|
17286 can be called from both locations. This seems cleaner than just |
|
17287 splitting out the parts that are actually used by both modes. |
|
17288 |
|
17289 * html/HTMLTreeBuilder.cpp: |
|
17290 (WebCore::HTMLTreeBuilder::processStartTag): |
|
17291 (WebCore::HTMLTreeBuilder::processStartTagForInHead): |
|
17292 (WebCore::HTMLTreeBuilder::insertSelfClosingElement): |
|
17293 * html/HTMLTreeBuilder.h: |
|
17294 |
|
17295 2010-06-27 Adam Barth <abarth@webkit.org> |
|
17296 |
|
17297 Reviewed by Eric Seidel. |
|
17298 |
|
17299 Add support for <title> and <style> elements |
|
17300 https://bugs.webkit.org/show_bug.cgi?id=41263 |
|
17301 |
|
17302 These elements use the generic RCDATA and RawText algorithms, |
|
17303 respectively. |
|
17304 |
|
17305 * html/HTMLTreeBuilder.cpp: |
|
17306 (WebCore::HTMLTreeBuilder::processEndTag): |
|
17307 (WebCore::HTMLTreeBuilder::insertGenericRCDATAElement): |
|
17308 (WebCore::HTMLTreeBuilder::insertGenericRawTextElement): |
|
17309 |
|
17310 2010-06-27 Adam Barth <abarth@webkit.org> |
|
17311 |
|
17312 Reviewed by Eric Seidel. |
|
17313 |
|
17314 Actually insert Doctype elements |
|
17315 https://bugs.webkit.org/show_bug.cgi?id=41262 |
|
17316 |
|
17317 This code is pretty much the same as in the old tree builder. |
|
17318 |
|
17319 * html/HTMLToken.h: |
|
17320 (WebCore::AtomicHTMLToken::publicIdentifier): |
|
17321 (WebCore::AtomicHTMLToken::systemIdentifier): |
|
17322 * html/HTMLTreeBuilder.cpp: |
|
17323 (WebCore::HTMLTreeBuilder::insertDoctype): |
|
17324 |
|
17325 2010-06-27 Andreas Kling <andreas.kling@nokia.com> |
|
17326 |
|
17327 Reviewed by Darin Adler. |
|
17328 |
|
17329 Canvas: Ignore calls to drawImage() with non-finite parameters |
|
17330 https://bugs.webkit.org/show_bug.cgi?id=38929 |
|
17331 |
|
17332 This also fixes a Qt assert when using the raster graphics system. |
|
17333 |
|
17334 Spec link: |
|
17335 http://www.whatwg.org/specs/web-apps/current-work/#2dcontext |
|
17336 |
|
17337 * html/canvas/CanvasRenderingContext2D.cpp: |
|
17338 (WebCore::CanvasRenderingContext2D::drawImage): |
|
17339 |
|
17340 2010-06-27 Andreas Kling <andreas.kling@nokia.com> |
|
17341 |
|
17342 Reviewed by Kenneth Rohde Christiansen. |
|
17343 |
|
17344 editing/execCommand/copy-without-selection.html fails on Qt after r61637 |
|
17345 https://bugs.webkit.org/show_bug.cgi?id=41025 |
|
17346 |
|
17347 The problem was that when getting data back via Clipboard::getData(), |
|
17348 the String::String(const char*, int) constructor was called |
|
17349 with UTF-16 data. |
|
17350 |
|
17351 The solution is to use QMimeData's text() and setText() for "text/plain". |
|
17352 |
|
17353 setText() which makes sure Qt passes the string in proper format to the |
|
17354 system clipboard. (The previous implementation would convert it to UTF-8) |
|
17355 |
|
17356 text() makes sure that the correct encoding is used (UTF-16) and that |
|
17357 we get back whatever we originally put in there. |
|
17358 |
|
17359 * platform/qt/ClipboardQt.cpp: |
|
17360 (WebCore::isTextMimeType): |
|
17361 (WebCore::ClipboardQt::getData): |
|
17362 (WebCore::ClipboardQt::setData): |
|
17363 |
|
17364 2010-06-27 Adam Barth <abarth@webkit.org> |
|
17365 |
|
17366 Reviewed by Eric Seidel. |
|
17367 |
|
17368 HTML5 tree builder should be able to execute inline scripts |
|
17369 https://bugs.webkit.org/show_bug.cgi?id=41257 |
|
17370 |
|
17371 This patch implements enough machinery so that we can execute inline |
|
17372 scripts in extremely simple documents such as the following: |
|
17373 |
|
17374 <html> |
|
17375 <script> |
|
17376 alert(1); |
|
17377 </script> |
|
17378 |
|
17379 To get this to work, I had to flesh out a surprising amount of the data |
|
17380 structures for processing the <head>. No tests because this is |
|
17381 already covered by most LayoutTests. |
|
17382 |
|
17383 * html/HTMLTreeBuilder.cpp: |
|
17384 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
17385 (WebCore::HTMLTreeBuilder::constructTreeFromToken): |
|
17386 (WebCore::HTMLTreeBuilder::processStartTag): |
|
17387 (WebCore::HTMLTreeBuilder::processEndTag): |
|
17388 (WebCore::HTMLTreeBuilder::processCharacter): |
|
17389 (WebCore::HTMLTreeBuilder::insertComment): |
|
17390 (WebCore::HTMLTreeBuilder::insertElement): |
|
17391 (WebCore::HTMLTreeBuilder::insertScriptElement): |
|
17392 * html/HTMLTreeBuilder.h: |
|
17393 (WebCore::HTMLTreeBuilder::ElementRecord::ElementRecord): |
|
17394 (WebCore::HTMLTreeBuilder::ElementRecord::element): |
|
17395 (WebCore::HTMLTreeBuilder::ElementRecord::next): |
|
17396 (WebCore::HTMLTreeBuilder::ElementRecord::releaseNext): |
|
17397 (WebCore::HTMLTreeBuilder::ElementRecord::setNext): |
|
17398 (WebCore::HTMLTreeBuilder::ElementStack::pop): |
|
17399 (WebCore::HTMLTreeBuilder::ElementStack::push): |
|
17400 (WebCore::HTMLTreeBuilder::ElementStack::top): |
|
17401 (WebCore::HTMLTreeBuilder::ElementStack::remove): |
|
17402 (WebCore::HTMLTreeBuilder::currentElement): |
|
17403 |
|
17404 2010-06-26 Brady Eidson <beidson@apple.com> |
|
17405 |
|
17406 Reviewed by Darin Adler. |
|
17407 |
|
17408 beforeProcess event needs to fire before inline scripts/stylesheets take effect |
|
17409 <rdar://problem/8084335> and https://bugs.webkit.org/show_bug.cgi?id=40484 |
|
17410 |
|
17411 This patch adds the Event, the onBeforeProcess attribute, and hooks the attribute up in a few places. |
|
17412 Besides that, no change in behavior. |
|
17413 |
|
17414 Layout tests will come with the actual implementations as a followup to this patch. |
|
17415 |
|
17416 Project file nonsense: |
|
17417 * DerivedSources.make: |
|
17418 * GNUmakefile.am: |
|
17419 * WebCore.gypi: |
|
17420 * WebCore.pri: |
|
17421 * WebCore.pro: |
|
17422 * WebCore.vcproj/WebCore.vcproj: |
|
17423 * WebCore.xcodeproj/project.pbxproj: |
|
17424 |
|
17425 Scaffolding for the event itself: |
|
17426 * dom/BeforeProcessEvent.cpp: Added. |
|
17427 (WebCore::BeforeProcessEvent::text): |
|
17428 (WebCore::BeforeProcessEvent::setText): |
|
17429 * dom/BeforeProcessEvent.h: Added. |
|
17430 (WebCore::BeforeProcessEvent::create): |
|
17431 (WebCore::BeforeProcessEvent::initBeforeProcessEvent): |
|
17432 (WebCore::BeforeProcessEvent::BeforeProcessEvent): |
|
17433 * dom/BeforeProcessEvent.idl: Added. |
|
17434 |
|
17435 * dom/EventNames.h: |
|
17436 |
|
17437 Respect the onBeforeProcess attribute: |
|
17438 * dom/Document.cpp: |
|
17439 (WebCore::Document::addListenerTypeIfNeeded): |
|
17440 * dom/Document.h: |
|
17441 (WebCore::Document::): |
|
17442 |
|
17443 * html/HTMLAttributeNames.in: |
|
17444 * html/HTMLScriptElement.cpp: |
|
17445 (WebCore::HTMLScriptElement::parseMappedAttribute): |
|
17446 * html/HTMLStyleElement.cpp: |
|
17447 (WebCore::HTMLStyleElement::parseMappedAttribute): |
|
17448 |
|
17449 2010-06-26 Darin Adler <darin@apple.com> |
|
17450 |
|
17451 Try to fix Chromium build by adding back function used only by Chromium WebKit. |
|
17452 |
|
17453 * html/HTMLInputElement.cpp: |
|
17454 (WebCore::HTMLInputElement::defaultChecked): Added back. |
|
17455 * html/HTMLInputElement.h: Added defaultChecked function. |
|
17456 |
|
17457 * html/HTMLMetaElement.cpp: |
|
17458 (WebCore::HTMLMetaElement::httpEquiv): Added back. |
|
17459 * html/HTMLMetaElement.h: Added httpEquiv function. |
|
17460 |
|
17461 * html/HTMLOptionElement.cpp: |
|
17462 (WebCore::HTMLOptionElement::defaultSelected): Added back. |
|
17463 * html/HTMLOptionElement.h: Added defaultSelected function. |
|
17464 |
|
17465 * rendering/style/StyleRareNonInheritedData.h: Fixed incorrect struct vs. class |
|
17466 here as seen in warnings on Chromium Windows bot. |
|
17467 |
|
17468 2010-06-26 Darin Adler <darin@apple.com> |
|
17469 |
|
17470 Try to fix Windows build by adding back function used only by Windows WebKit. |
|
17471 |
|
17472 * html/HTMLOptionElement.cpp: |
|
17473 (WebCore::HTMLOptionElement::label): Added back. |
|
17474 * html/HTMLOptionElement.h: Added label function. |
|
17475 |
|
17476 2010-06-26 Darin Adler <darin@apple.com> |
|
17477 |
|
17478 Try to fix Qt build by adding back function used only by Qt WebKit. |
|
17479 |
|
17480 * html/HTMLMetaElement.cpp: |
|
17481 (WebCore::HTMLMetaElement::content): Added back. |
|
17482 * html/HTMLMetaElement.h: Added content function. |
|
17483 |
|
17484 2010-06-26 Darin Adler <darin@apple.com> |
|
17485 |
|
17486 * html/HTMLFormElement.h: Removed stray character that got in here before landing. |
|
17487 |
|
17488 2010-06-26 Darin Adler <darin@apple.com> |
|
17489 |
|
17490 Reviewed by Sam Weinig. |
|
17491 |
|
17492 Add more use of reflection, remove unused functions |
|
17493 https://bugs.webkit.org/show_bug.cgi?id=41255 |
|
17494 |
|
17495 Also noticed that HTMLDirectoryElement was missing its create function |
|
17496 and added that so the element will get the correct class. |
|
17497 |
|
17498 * html/HTMLBaseFontElement.idl: Use reflection for the size attribute |
|
17499 in the Objective-C code path too. |
|
17500 |
|
17501 * html/HTMLSelectElement.idl: Use reflection for disabled and autofocus |
|
17502 attributes. Also removed spaces and indenting to match other IDL files. |
|
17503 |
|
17504 * html/HTMLStyleElement.idl: Use reflection for disabled attribute. |
|
17505 |
|
17506 * html/HTMLTableCellElement.idl: Use reflection for noWrap attribute. |
|
17507 |
|
17508 * html/HTMLTextAreaElement.idl: Use reflection for disabled, autofocus, |
|
17509 readOnly, and required attributes. |
|
17510 |
|
17511 * html/HTMLUListElement.idl: Use reflection for compact attribute. |
|
17512 |
|
17513 * html/HTMLDirectoryElement.cpp: |
|
17514 (WebCore::HTMLDirectoryElement::HTMLDirectoryElement): Made inline. |
|
17515 (WebCore::HTMLDirectoryElement::create): Added. |
|
17516 * html/HTMLDirectoryElement.h: |
|
17517 Added create, made constructor private, removed unused functions. |
|
17518 |
|
17519 * html/HTMLStyleElement.cpp: |
|
17520 (WebCore::HTMLStyleElement::parseMappedAttribute): Removed code to |
|
17521 set unused m_media data member. |
|
17522 * html/HTMLStyleElement.h: |
|
17523 Removed unused functions and m_media data member. Also made some |
|
17524 functions private. |
|
17525 |
|
17526 * html/HTMLAppletElement.cpp: |
|
17527 * html/HTMLAppletElement.h: |
|
17528 * html/HTMLAreaElement.cpp: |
|
17529 * html/HTMLAreaElement.h: |
|
17530 * html/HTMLBaseFontElement.cpp: |
|
17531 * html/HTMLBaseFontElement.h: |
|
17532 * html/HTMLButtonElement.cpp: |
|
17533 * html/HTMLButtonElement.h: |
|
17534 * html/HTMLDListElement.cpp: |
|
17535 * html/HTMLDListElement.h: |
|
17536 * html/HTMLDivElement.cpp: |
|
17537 * html/HTMLDivElement.h: |
|
17538 * html/HTMLFontElement.cpp: |
|
17539 * html/HTMLFontElement.h: |
|
17540 * html/HTMLFormControlElement.cpp: |
|
17541 * html/HTMLFormControlElement.h: |
|
17542 * html/HTMLFormElement.cpp: |
|
17543 * html/HTMLFormElement.h: |
|
17544 * html/HTMLFrameElement.cpp: Also removed an incorrect FIXME comment |
|
17545 here after I did a little research to disprove it. |
|
17546 * html/HTMLFrameElement.h: |
|
17547 * html/HTMLFrameSetElement.cpp: |
|
17548 * html/HTMLFrameSetElement.h: |
|
17549 * html/HTMLHRElement.cpp: |
|
17550 * html/HTMLHRElement.h: |
|
17551 * html/HTMLHeadElement.cpp: |
|
17552 * html/HTMLHeadElement.h: |
|
17553 * html/HTMLHeadingElement.cpp: |
|
17554 * html/HTMLHeadingElement.h: |
|
17555 * html/HTMLHtmlElement.cpp: |
|
17556 * html/HTMLHtmlElement.h: |
|
17557 * html/HTMLImageElement.cpp: |
|
17558 * html/HTMLImageElement.h: |
|
17559 * html/HTMLInputElement.cpp: |
|
17560 * html/HTMLInputElement.h: |
|
17561 * html/HTMLIsIndexElement.cpp: |
|
17562 * html/HTMLIsIndexElement.h: |
|
17563 * html/HTMLLIElement.cpp: |
|
17564 * html/HTMLLIElement.h: |
|
17565 * html/HTMLLabelElement.cpp: |
|
17566 * html/HTMLLabelElement.h: |
|
17567 * html/HTMLLegendElement.cpp: |
|
17568 * html/HTMLLegendElement.h: |
|
17569 * html/HTMLLinkElement.cpp: |
|
17570 * html/HTMLLinkElement.h: |
|
17571 * html/HTMLMapElement.cpp: |
|
17572 * html/HTMLMapElement.h: |
|
17573 * html/HTMLMenuElement.cpp: |
|
17574 * html/HTMLMenuElement.h: |
|
17575 * html/HTMLMetaElement.cpp: |
|
17576 * html/HTMLMetaElement.h: |
|
17577 * html/HTMLModElement.cpp: |
|
17578 * html/HTMLModElement.h: |
|
17579 * html/HTMLOListElement.cpp: |
|
17580 * html/HTMLOListElement.h: |
|
17581 * html/HTMLObjectElement.cpp: |
|
17582 * html/HTMLObjectElement.h: |
|
17583 * html/HTMLOptGroupElement.cpp: |
|
17584 * html/HTMLOptGroupElement.h: |
|
17585 * html/HTMLOptionElement.cpp: |
|
17586 * html/HTMLOptionElement.h: |
|
17587 * html/HTMLParagraphElement.cpp: |
|
17588 * html/HTMLParagraphElement.h: |
|
17589 * html/HTMLParamElement.cpp: |
|
17590 * html/HTMLParamElement.h: |
|
17591 * html/HTMLPlugInElement.cpp: |
|
17592 * html/HTMLPlugInElement.h: |
|
17593 * html/HTMLPreElement.cpp: |
|
17594 * html/HTMLPreElement.h: |
|
17595 * html/HTMLQuoteElement.cpp: |
|
17596 * html/HTMLQuoteElement.h: |
|
17597 * html/HTMLScriptElement.cpp: |
|
17598 * html/HTMLScriptElement.h: |
|
17599 * html/HTMLTableCaptionElement.cpp: |
|
17600 * html/HTMLTableCaptionElement.h: |
|
17601 * html/HTMLTableCellElement.cpp: |
|
17602 * html/HTMLTableCellElement.h: |
|
17603 * html/HTMLTableColElement.cpp: |
|
17604 * html/HTMLTableColElement.h: |
|
17605 * html/HTMLTableElement.cpp: |
|
17606 * html/HTMLTableElement.h: |
|
17607 * html/HTMLTableRowElement.cpp: |
|
17608 * html/HTMLTableRowElement.h: |
|
17609 * html/HTMLTextAreaElement.cpp: |
|
17610 * html/HTMLTextAreaElement.h: |
|
17611 * html/HTMLUListElement.cpp: |
|
17612 * html/HTMLUListElement.h: |
|
17613 * html/HTMLVideoElement.cpp: |
|
17614 * html/HTMLVideoElement.h: |
|
17615 Removed unused functions. |
|
17616 |
|
17617 2010-06-26 Tony Gentilcore <tonyg@chromium.org> |
|
17618 |
|
17619 Reviewed by Adam Barth. |
|
17620 |
|
17621 Exclude line numbers for sources which are not from the network. |
|
17622 https://bugs.webkit.org/show_bug.cgi?id=41060 |
|
17623 |
|
17624 * html/HTMLDocumentParser.cpp: |
|
17625 (WebCore::HTMLDocumentParser::write): |
|
17626 |
|
17627 2010-06-25 Antonio Gomes <tonikitoo@webkit.org> |
|
17628 |
|
17629 Unreviewed complementary fix for r61818. It added StaticHashSetListNode.cpp|h to the system, |
|
17630 but did not added it to chromium build system. |
|
17631 |
|
17632 * WebCore.gypi: |
|
17633 |
|
17634 2010-06-26 Pavel Feldman <pfeldman@chromium.org> |
|
17635 |
|
17636 Reviewed by Yury Semikhatsky. |
|
17637 |
|
17638 Web Inspector: ScripsPanel.prototype.editScriptSource uses old addBreakpoint signature. |
|
17639 |
|
17640 https://bugs.webkit.org/show_bug.cgi?id=41247 |
|
17641 |
|
17642 * inspector/front-end/BreakpointManager.js: |
|
17643 (WebInspector.BreakpointManager.prototype.removeBreakpoint): |
|
17644 (WebInspector.Breakpoint.prototype.set enabled): |
|
17645 (WebInspector.Breakpoint.prototype.set condition): |
|
17646 * inspector/front-end/Object.js: |
|
17647 (WebInspector.Object.prototype.addEventListener): |
|
17648 (WebInspector.Object.prototype.removeEventListener): |
|
17649 (WebInspector.Object.prototype.removeAllListeners): |
|
17650 * inspector/front-end/ScriptsPanel.js: |
|
17651 (WebInspector.ScriptsPanel.prototype.editScriptSource.mycallback): |
|
17652 (WebInspector.ScriptsPanel.prototype.editScriptSource): |
|
17653 |
|
17654 2010-06-26 Tony Gentilcore <tonyg@chromium.org> |
|
17655 |
|
17656 Reviewed by Dimitri Glazkov. |
|
17657 |
|
17658 Add a guarded window.performance.timing binding which is disabled by default. |
|
17659 https://bugs.webkit.org/show_bug.cgi?id=38924 |
|
17660 |
|
17661 This is where Web Timing support will be implemented. Web Timing is a |
|
17662 draft spec for exposing load times to web pages. It will be enabled |
|
17663 once the spec and implementaiton are solidified. See: |
|
17664 http://dev.w3.org/2006/webapi/WebTiming/ |
|
17665 |
|
17666 No new tests because guarded behind a #DEFINE. Will add tests as |
|
17667 functionality is landed. |
|
17668 |
|
17669 * Android.mk: |
|
17670 * CMakeLists.txt: |
|
17671 * Configurations/FeatureDefines.xcconfig: |
|
17672 * DerivedSources.cpp: |
|
17673 * DerivedSources.make: |
|
17674 * GNUmakefile.am: |
|
17675 * WebCore.gypi: |
|
17676 * WebCore.pri: |
|
17677 * WebCore.pro: |
|
17678 * WebCore.vcproj/WebCore.vcproj: |
|
17679 * WebCore.xcodeproj/project.pbxproj: |
|
17680 * page/DOMWindow.cpp: |
|
17681 (WebCore::DOMWindow::clear): |
|
17682 (WebCore::DOMWindow::performance): |
|
17683 * page/DOMWindow.h: |
|
17684 (WebCore::DOMWindow::optionalPerformance): |
|
17685 * page/DOMWindow.idl: |
|
17686 * page/NavigationTiming.cpp: Added. |
|
17687 (WebCore::NavigationTiming::NavigationTiming): |
|
17688 (WebCore::NavigationTiming::frame): |
|
17689 (WebCore::NavigationTiming::disconnectFrame): |
|
17690 (WebCore::NavigationTiming::navigationStart): |
|
17691 * page/NavigationTiming.h: Added. |
|
17692 (WebCore::NavigationTiming::create): |
|
17693 * page/NavigationTiming.idl: Added. |
|
17694 * page/Performance.cpp: Added. |
|
17695 (WebCore::Performance::Performance): |
|
17696 (WebCore::Performance::frame): |
|
17697 (WebCore::Performance::disconnectFrame): |
|
17698 (WebCore::Performance::timing): |
|
17699 * page/Performance.h: Added. |
|
17700 (WebCore::Performance::create): |
|
17701 * page/Performance.idl: Added. |
|
17702 |
|
17703 2010-06-25 Zhenyao Mo <zmo@google.com> |
|
17704 |
|
17705 Reviewed by Dimitri Glazkov. |
|
17706 |
|
17707 activeTexture wrongly generates error with legal input. |
|
17708 https://bugs.webkit.org/show_bug.cgi?id=41227 |
|
17709 |
|
17710 Test: fast/canvas/webgl/texture-active-bind.html |
|
17711 |
|
17712 * html/canvas/WebGLRenderingContext.cpp: |
|
17713 (WebCore::WebGLRenderingContext::activeTexture): Fix the upper limit test for test units. |
|
17714 |
|
17715 2010-06-25 Johnny Ding <jnd@chromium.org> |
|
17716 |
|
17717 Reviewed by Adam Barth. |
|
17718 |
|
17719 https://bugs.webkit.org/show_bug.cgi?id=41061 |
|
17720 Make sure Chromium's ScriptController::processingUserGesture follows the JSC's behavior. |
|
17721 Set right value in UserGestureIndicator when handling events in PopupMenuList in chromium. |
|
17722 |
|
17723 Test: fast/events/popup-when-select-change.html |
|
17724 |
|
17725 * bindings/v8/ScriptController.cpp: |
|
17726 (WebCore::ScriptController::processingUserGesture): |
|
17727 * platform/chromium/PopupMenuChromium.cpp: |
|
17728 (WebCore::PopupContainer::handleMouseDownEvent): |
|
17729 (WebCore::PopupContainer::handleMouseMoveEvent): |
|
17730 (WebCore::PopupContainer::handleMouseReleaseEvent): |
|
17731 (WebCore::PopupContainer::handleWheelEvent): |
|
17732 (WebCore::PopupContainer::handleKeyEvent): |
|
17733 |
|
17734 2010-06-25 Tony Gentilcore <tonyg@chromium.org> |
|
17735 |
|
17736 Reviewed by Eric Seidel. |
|
17737 |
|
17738 Make PendingScript hold a CachedResourceClient open for its lifetime |
|
17739 https://bugs.webkit.org/show_bug.cgi?id=40968 |
|
17740 |
|
17741 This replaces the mechanism introduced in r61374 with a simpler |
|
17742 appraoch for preventing unexpected purges: always keep a client open. |
|
17743 This approach will allow deferred scripts to add a client after |
|
17744 the resource may have already been loaded without having to worry about |
|
17745 the buffer being purged in the meantime. |
|
17746 |
|
17747 No new tests because making a CachedResource purse itself is not |
|
17748 testable from a LayoutTest. |
|
17749 |
|
17750 * html/HTMLDocumentParser.cpp: |
|
17751 (WebCore::HTMLDocumentParser::watchForLoad): |
|
17752 (WebCore::HTMLDocumentParser::notifyFinished): |
|
17753 * html/HTMLScriptRunner.cpp: |
|
17754 (WebCore::HTMLScriptRunner::~HTMLScriptRunner): |
|
17755 (WebCore::HTMLScriptRunner::sourceFromPendingScript): |
|
17756 (WebCore::HTMLScriptRunner::isPendingScriptReady): |
|
17757 (WebCore::HTMLScriptRunner::executePendingScript): |
|
17758 (WebCore::HTMLScriptRunner::watchForLoad): |
|
17759 (WebCore::HTMLScriptRunner::stopWatchingForLoad): |
|
17760 (WebCore::HTMLScriptRunner::executeScriptsWaitingForLoad): |
|
17761 (WebCore::HTMLScriptRunner::requestScript): |
|
17762 (WebCore::HTMLScriptRunner::PendingScript::~PendingScript): |
|
17763 (WebCore::HTMLScriptRunner::PendingScript::releaseElementAndClear): |
|
17764 (WebCore::HTMLScriptRunner::PendingScript::setCachedScript): |
|
17765 (WebCore::HTMLScriptRunner::PendingScript::cachedScript): |
|
17766 * html/HTMLScriptRunner.h: |
|
17767 (WebCore::HTMLScriptRunner::PendingScript::PendingScript): |
|
17768 (WebCore::HTMLScriptRunner::PendingScript::watchingForLoad): |
|
17769 (WebCore::HTMLScriptRunner::PendingScript::setWatchingForLoad): |
|
17770 (WebCore::HTMLScriptRunner::PendingScript::notifyFinished): |
|
17771 * html/HTMLScriptRunnerHost.h: |
|
17772 |
|
17773 2010-06-25 Zhenyao Mo <zmo@google.com> |
|
17774 |
|
17775 Reviewed by Dimitri Glazkov. |
|
17776 |
|
17777 getUniform will not work for fetching uniform array elements |
|
17778 https://bugs.webkit.org/show_bug.cgi?id=34508 |
|
17779 |
|
17780 Test: fast/canvas/webgl/gl-uniform-arrays.html |
|
17781 |
|
17782 * html/canvas/WebGLRenderingContext.cpp: |
|
17783 (WebCore::WebGLRenderingContext::attachShader): Generate correct errors. |
|
17784 (WebCore::WebGLRenderingContext::getUniform): Dealing with array elements. |
|
17785 (WebCore::WebGLRenderingContext::useProgram): Deal with program==null. |
|
17786 (WebCore::WebGLRenderingContext::validateProgram): Generate correct errors. |
|
17787 * platform/graphics/mac/GraphicsContext3DMac.mm: |
|
17788 (WebCore::GraphicsContext3D::useProgram): Deal with program==null. |
|
17789 |
|
17790 2010-06-25 Zhenyao Mo <zmo@google.com> |
|
17791 |
|
17792 Reviewed by Dimitri Glazkov. |
|
17793 |
|
17794 Bring set/get state functions to GLES2 conformance |
|
17795 https://bugs.webkit.org/show_bug.cgi?id=41095 |
|
17796 |
|
17797 Tests: fast/canvas/webgl/gl-enable-enum-test.html |
|
17798 fast/canvas/webgl/gl-enum-tests.html |
|
17799 |
|
17800 * html/canvas/WebGLRenderingContext.cpp: Check input parameters according to GLES2 spec. |
|
17801 (WebCore::WebGLRenderingContext::blendEquation): |
|
17802 (WebCore::WebGLRenderingContext::blendEquationSeparate): |
|
17803 (WebCore::WebGLRenderingContext::disable): |
|
17804 (WebCore::WebGLRenderingContext::enable): |
|
17805 (WebCore::WebGLRenderingContext::hint): |
|
17806 (WebCore::WebGLRenderingContext::isEnabled): |
|
17807 (WebCore::WebGLRenderingContext::pixelStorei): |
|
17808 (WebCore::WebGLRenderingContext::validateBlendEquation): |
|
17809 (WebCore::WebGLRenderingContext::validateCapability): |
|
17810 * html/canvas/WebGLRenderingContext.h: Add helper function declaration. |
|
17811 |
|
17812 2010-06-25 Sterling Swigart <sswigart@google.com> |
|
17813 |
|
17814 Reviewed by David Levin. |
|
17815 |
|
17816 Callback code generation fixed so that now string parameters are converted to JSString |
|
17817 using the jsString method instead of the toJS method which would not compile. |
|
17818 https://bugs.webkit.org/show_bug.cgi?id=41119 |
|
17819 |
|
17820 * bindings/scripts/CodeGeneratorJS.pm: Now generates jsString for String parameters in callbacks. |
|
17821 * bindings/scripts/test/JS/JSTestCallback.cpp: Fixed test for above. |
|
17822 (WebCore::JSTestCallback::callbackWithClass2Param): Ditto. |
|
17823 |
|
17824 2010-06-25 Zhenyao Mo <zmo@google.com> |
|
17825 |
|
17826 Reviewed by Dimitri Glazkov. |
|
17827 |
|
17828 A buffer should be bound to one target in its lifetime |
|
17829 https://bugs.webkit.org/show_bug.cgi?id=41108 |
|
17830 |
|
17831 Test: fast/canvas/webgl/buffer-bind-test.html |
|
17832 |
|
17833 * html/canvas/WebGLBuffer.cpp: |
|
17834 (WebCore::WebGLBuffer::WebGLBuffer): Init target to 0. |
|
17835 (WebCore::WebGLBuffer::associateBufferData): Remove target parameter, use one byteLength member. |
|
17836 (WebCore::WebGLBuffer::associateBufferSubData): Ditto. |
|
17837 (WebCore::WebGLBuffer::byteLength): Ditto. |
|
17838 (WebCore::WebGLBuffer::setTarget): Set target. |
|
17839 * html/canvas/WebGLBuffer.h: Cache target in the WebGLBuffer object, use one byteLength member. |
|
17840 (WebCore::WebGLBuffer::getTarget): |
|
17841 * html/canvas/WebGLRenderingContext.cpp: |
|
17842 (WebCore::WebGLRenderingContext::bindBuffer): Check if a buffer is bound to another target; set buffer object internal target. |
|
17843 (WebCore::WebGLRenderingContext::bufferData): Remove target parameter and use the WebGLBuffer cached target instead. |
|
17844 (WebCore::WebGLRenderingContext::bufferSubData): Ditto. |
|
17845 (WebCore::WebGLRenderingContext::validateElementArraySize): Ditto. |
|
17846 (WebCore::WebGLRenderingContext::validateIndexArrayConservative): Ditto. |
|
17847 (WebCore::WebGLRenderingContext::vertexAttribPointer): Ditto. |
|
17848 |
|
17849 2010-06-25 Dean Jackson <dino@apple.com> |
|
17850 |
|
17851 Reviewed by Simon Fraser. |
|
17852 |
|
17853 https://bugs.webkit.org/show_bug.cgi?id=41188 |
|
17854 Animations should not require 0% and 100% keyframes |
|
17855 |
|
17856 When we are generating the animation lists in CSSStyleSelector, |
|
17857 rather than bail if we notice that "from" or "to" are missing, we |
|
17858 now generate synthetic keyframes for those cases. |
|
17859 |
|
17860 Tests: animations/missing-from-to-transforms.html |
|
17861 animations/missing-from-to.html |
|
17862 WebCore/manual-tests/animation-with-transition.html |
|
17863 |
|
17864 * css/CSSStyleSelector.cpp: |
|
17865 (WebCore::CSSStyleSelector::styleForKeyframe): |
|
17866 Moved individual keyframe generation into a new function. |
|
17867 (WebCore::CSSStyleSelector::keyframeStylesForAnimation): |
|
17868 Call the new function above for regular keyframes, and |
|
17869 also check for missing keyframes and generate them if |
|
17870 necessary. |
|
17871 * css/CSSStyleSelector.h: |
|
17872 |
|
17873 2010-06-25 Adam Barth <abarth@webkit.org> |
|
17874 |
|
17875 Reviewed by Eric Seidel. |
|
17876 |
|
17877 We should parse <html> |
|
17878 https://bugs.webkit.org/show_bug.cgi?id=41239 |
|
17879 |
|
17880 This patch is hard to test, but I think this patch lets us parse a |
|
17881 document consisting of only an <html> start tag. |
|
17882 |
|
17883 * html/HTMLTreeBuilder.cpp: |
|
17884 (WebCore::HTMLTreeBuilder::constructTreeFromToken): |
|
17885 (WebCore::HTMLTreeBuilder::insertHTMLStartTagBeforeHTML): |
|
17886 (WebCore::HTMLTreeBuilder::insertHTMLStartTagInBody): |
|
17887 (WebCore::HTMLTreeBuilder::processStartTag): |
|
17888 (WebCore::HTMLTreeBuilder::processDefaultForBeforeHTMLMode): |
|
17889 * html/HTMLTreeBuilder.h: |
|
17890 (WebCore::HTMLTreeBuilder::ElementStack::push): |
|
17891 |
|
17892 2010-06-25 Dan Bernstein <mitz@apple.com> |
|
17893 |
|
17894 Reviewed by Sam Weinig. |
|
17895 |
|
17896 <rdar://problem/8000667> Certain text is repeated before and after a line break |
|
17897 |
|
17898 Test: fast/text/bidi-explicit-embedding-past-end.html |
|
17899 |
|
17900 * platform/text/BidiResolver.h: |
|
17901 (WebCore::::createBidiRunsForLine): Committing explicit embedding past the end of the range |
|
17902 creates BidiRuns up to the end of the range, so at that point, we can stop iterating. |
|
17903 |
|
17904 2010-06-25 Eric Seidel <eric@webkit.org> |
|
17905 |
|
17906 Reviewed by Adam Barth. |
|
17907 |
|
17908 Move decoding into DocumentParser to further simplify RawDataDocumentParser and DocumentWriter |
|
17909 https://bugs.webkit.org/show_bug.cgi?id=41202 |
|
17910 |
|
17911 Hit the Windoze with the compile bat. |
|
17912 |
|
17913 * WebCore.vcproj/WebCore.vcproj: |
|
17914 |
|
17915 2010-06-25 Adam Barth <abarth@webkit.org> |
|
17916 |
|
17917 Reviewed by Eric Seidel. |
|
17918 |
|
17919 HTMLTreeBuilder should branch first on token type and then on insertion mode |
|
17920 https://bugs.webkit.org/show_bug.cgi?id=41232 |
|
17921 |
|
17922 This is different than how the spec is written, but it lets us remove a |
|
17923 lot of redudancy in the algorithm. We might even want to pull some of |
|
17924 the branches on token name outside the insertion mode branch, but I'll |
|
17925 leave that for a future patch. |
|
17926 |
|
17927 Although this looks like a big patch, it's mostly just a mechanical |
|
17928 switch permutation. |
|
17929 |
|
17930 * html/HTMLTreeBuilder.cpp: |
|
17931 (WebCore::HTMLTreeBuilder::constructTreeFromToken): |
|
17932 (WebCore::HTMLTreeBuilder::processToken): |
|
17933 (WebCore::HTMLTreeBuilder::processDoctypeToken): |
|
17934 (WebCore::HTMLTreeBuilder::processStartTag): |
|
17935 (WebCore::HTMLTreeBuilder::processEndTag): |
|
17936 (WebCore::HTMLTreeBuilder::processComment): |
|
17937 (WebCore::HTMLTreeBuilder::processCharacter): |
|
17938 (WebCore::HTMLTreeBuilder::processEndOfFile): |
|
17939 (WebCore::HTMLTreeBuilder::processDefaultForInitialMode): |
|
17940 (WebCore::HTMLTreeBuilder::processDefaultForBeforeHTMLMode): |
|
17941 (WebCore::HTMLTreeBuilder::processDefaultForBeforeHeadMode): |
|
17942 (WebCore::HTMLTreeBuilder::processDefaultForInHeadMode): |
|
17943 (WebCore::HTMLTreeBuilder::processDefaultForInHeadNoscriptMode): |
|
17944 (WebCore::HTMLTreeBuilder::processDefaultForAfterHeadMode): |
|
17945 * html/HTMLTreeBuilder.h: |
|
17946 |
|
17947 2010-06-25 Adam Barth <abarth@webkit.org> |
|
17948 |
|
17949 Reviewed by Darin Adler. |
|
17950 |
|
17951 Tree builder doesn't need to return a Node |
|
17952 https://bugs.webkit.org/show_bug.cgi?id=41225 |
|
17953 |
|
17954 The old tree builder returned the newly inserted Node, but the new tree |
|
17955 builder doesn't need to do that as far as I can tell. Removing the |
|
17956 return value cuts down on a bunch of accounting. |
|
17957 |
|
17958 * html/HTMLTreeBuilder.cpp: |
|
17959 (WebCore::HTMLTreeBuilder::passTokenToLegacyParser): |
|
17960 (WebCore::HTMLTreeBuilder::constructTreeFromToken): |
|
17961 (WebCore::HTMLTreeBuilder::processToken): |
|
17962 (WebCore::HTMLTreeBuilder::insertDoctype): |
|
17963 (WebCore::HTMLTreeBuilder::insertComment): |
|
17964 (WebCore::HTMLTreeBuilder::insertGenericRCDATAElement): |
|
17965 (WebCore::HTMLTreeBuilder::insertGenericRawTextElement): |
|
17966 (WebCore::HTMLTreeBuilder::insertScriptElement): |
|
17967 * html/HTMLTreeBuilder.h: |
|
17968 |
|
17969 2010-06-25 Zhenyao Mo <zmo@google.com> |
|
17970 |
|
17971 Reviewed by Dimitri Glazkov. |
|
17972 |
|
17973 getParameter(COLOR_WRITEMASK) needs to return Array |
|
17974 https://bugs.webkit.org/show_bug.cgi?id=40437 |
|
17975 |
|
17976 * bindings/js/JSWebGLRenderingContextCustom.cpp: Handling bool array. |
|
17977 (WebCore::toJS): |
|
17978 * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp: Handling bool array. |
|
17979 (WebCore::toV8Object): |
|
17980 * html/canvas/WebGLGetInfo.cpp: Handling bool array. |
|
17981 (WebCore::WebGLGetInfo::WebGLGetInfo): |
|
17982 (WebCore::WebGLGetInfo::getBoolArray): |
|
17983 * html/canvas/WebGLGetInfo.h: Handling bool array. |
|
17984 (WebCore::WebGLGetInfo::): |
|
17985 * html/canvas/WebGLRenderingContext.cpp: Handling bool array. |
|
17986 (WebCore::WebGLRenderingContext::getParameter): |
|
17987 (WebCore::WebGLRenderingContext::getBooleanArrayParameter): |
|
17988 * html/canvas/WebGLRenderingContext.h: Handling bool array. |
|
17989 |
|
17990 2010-06-25 Evan Stade <estade@chromium.org> |
|
17991 |
|
17992 Reviewed by Darin Fisher. |
|
17993 |
|
17994 [chromium linux] Improve look of scrollbars |
|
17995 https://bugs.webkit.org/show_bug.cgi?id=35775 |
|
17996 |
|
17997 This will affect layout pixel tests, which will need to be rebaselined. |
|
17998 |
|
17999 * platform/Scrollbar.cpp: need the buttons to be invalidated when the |
|
18000 thumb moves as they paint differently if the thumb is at the top or |
|
18001 bottom |
|
18002 (WebCore::Scrollbar::updateThumbPosition): |
|
18003 (WebCore::Scrollbar::updateThumbProportion): |
|
18004 * platform/chromium/ScrollbarThemeChromium.cpp: |
|
18005 (WebCore::ScrollbarThemeChromium::trackRect): share code between |
|
18006 linux/windows |
|
18007 * platform/chromium/ScrollbarThemeChromiumLinux.cpp: |
|
18008 (WebCore::ScrollbarThemeChromiumLinux::scrollbarThickness): |
|
18009 (WebCore::outlineColor): up the contrast |
|
18010 (WebCore::ScrollbarThemeChromiumLinux::paintButton): add custom button |
|
18011 drawing implementation |
|
18012 (WebCore::ScrollbarThemeChromiumLinux::buttonSize): add buttons |
|
18013 * platform/chromium/ScrollbarThemeChromiumWin.cpp: share code between |
|
18014 linux/windows |
|
18015 * rendering/RenderThemeChromiumLinux.cpp: improve stock colors to get |
|
18016 better contrast and integration with stock chrome theme |
|
18017 |
|
18018 2010-06-25 Eric Seidel <eric@webkit.org> |
|
18019 |
|
18020 Reviewed by Adam Barth. |
|
18021 |
|
18022 Move decoding into DocumentParser to further simplify RawDataDocumentParser and DocumentWriter |
|
18023 https://bugs.webkit.org/show_bug.cgi?id=41202 |
|
18024 |
|
18025 The silly thing about this patch is that none of the |
|
18026 RawDataDocumentParser subclasses actually use any of the |
|
18027 data passed to them via appendBytes. |
|
18028 |
|
18029 This makes the relationship between DocumentWriter and |
|
18030 DocumentParser slightly more confusing, however I think this |
|
18031 DocumentParser API is slightly nicer. |
|
18032 |
|
18033 Next step is to split DecodedDataDocumentParser out from |
|
18034 DocumentParser, and then the base DocumentParser won't know |
|
18035 anything about decoding or SegmentedString. |
|
18036 |
|
18037 No functional change, thus no tests. |
|
18038 |
|
18039 * WebCore.xcodeproj/project.pbxproj: |
|
18040 * dom/DocumentParser.h: |
|
18041 * dom/RawDataDocumentParser.h: |
|
18042 * loader/DocumentWriter.cpp: |
|
18043 (WebCore::DocumentWriter::replaceDocument): |
|
18044 (WebCore::DocumentWriter::createDecoderIfNeeded): |
|
18045 (WebCore::DocumentWriter::reportDataRecieved): |
|
18046 (WebCore::DocumentWriter::addData): |
|
18047 * loader/DocumentWriter.h: |
|
18048 * loader/ImageDocument.cpp: |
|
18049 (WebCore::ImageDocumentParser::appendBytes): |
|
18050 * loader/MediaDocument.cpp: |
|
18051 (WebCore::MediaDocumentParser::appendBytes): |
|
18052 * loader/PluginDocument.cpp: |
|
18053 (WebCore::PluginDocumentParser::appendBytes): |
|
18054 * loader/SinkDocument.cpp: |
|
18055 (WebCore::SinkDocumentParser::SinkDocumentParser): |
|
18056 (WebCore::SinkDocumentParser::appendBytes): |
|
18057 (WebCore::SinkDocument::createParser): |
|
18058 |
|
18059 2010-06-25 Eric Seidel <eric@webkit.org> |
|
18060 |
|
18061 Reviewed by Adam Barth. |
|
18062 |
|
18063 Split DocumentParser::write into separate append and insert calls |
|
18064 https://bugs.webkit.org/show_bug.cgi?id=41197 |
|
18065 |
|
18066 Unfortunately this is still somewhat confusing as |
|
18067 "insert" means "insert this data at the current |
|
18068 insertion point and run the parser synchronously |
|
18069 unless we're in a nested write call" and "append" |
|
18070 means "append this data to the end and run the |
|
18071 parser if not in a nested call or until possibly yielding". |
|
18072 |
|
18073 This at least makes clearer which document parsers implement |
|
18074 which behavior, and paves the way for moving the decoding |
|
18075 logic into DocumentParser from DocumentWriter. |
|
18076 |
|
18077 No functional changes, thus no tests. |
|
18078 |
|
18079 * dom/Document.cpp: |
|
18080 (WebCore::Document::write): |
|
18081 * dom/DocumentParser.h: |
|
18082 * dom/RawDataDocumentParser.h: |
|
18083 (WebCore::RawDataDocumentParser::insert): |
|
18084 (WebCore::RawDataDocumentParser::append): |
|
18085 * dom/XMLDocumentParser.cpp: |
|
18086 (WebCore::XMLDocumentParser::insert): |
|
18087 (WebCore::XMLDocumentParser::append): |
|
18088 * dom/XMLDocumentParser.h: |
|
18089 * dom/XMLDocumentParserLibxml2.cpp: |
|
18090 (WebCore::XMLDocumentParser::resumeParsing): |
|
18091 * html/HTMLDocumentParser.cpp: |
|
18092 (WebCore::HTMLDocumentParser::insert): |
|
18093 (WebCore::HTMLDocumentParser::append): |
|
18094 (WebCore::HTMLDocumentParser::parseDocumentFragment): |
|
18095 * html/HTMLDocumentParser.h: |
|
18096 * html/LegacyHTMLDocumentParser.cpp: |
|
18097 (WebCore::LegacyHTMLDocumentParser::insert): |
|
18098 (WebCore::LegacyHTMLDocumentParser::append): |
|
18099 * html/LegacyHTMLDocumentParser.h: |
|
18100 * loader/DocumentWriter.cpp: |
|
18101 (WebCore::DocumentWriter::replaceDocument): |
|
18102 (WebCore::DocumentWriter::addData): |
|
18103 * loader/FTPDirectoryDocument.cpp: |
|
18104 (WebCore::FTPDirectoryDocumentParser::FTPDirectoryDocumentParser): |
|
18105 (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate): |
|
18106 (WebCore::FTPDirectoryDocumentParser::append): |
|
18107 * loader/TextDocument.cpp: |
|
18108 (WebCore::TextDocumentParser::insert): |
|
18109 (WebCore::TextDocumentParser::append): |
|
18110 (WebCore::TextDocumentParser::finish): |
|
18111 |
|
18112 2010-06-25 Daniel Cheng <dcheng@chromium.org> |
|
18113 |
|
18114 Reviewed by Darin Fisher. |
|
18115 |
|
18116 [chromium] Add new stubs for querying platform drag-and-drop and copy-and-paste data. |
|
18117 |
|
18118 This change adds new stubs for querying for data in a clipboard or drag operation. This is |
|
18119 so adding support for more data types in clipboard/drag operations doesn't become |
|
18120 increasingly expensive, since we currently copy all the drag data we need every time a new |
|
18121 web drop target is entered. It also adds a new mechanism to write back to the system |
|
18122 clipboard that isn't tied to one data type. |
|
18123 |
|
18124 https://bugs.webkit.org/show_bug.cgi?id=40540 |
|
18125 |
|
18126 No new tests since we're just adding new ChromiumBridge APIs. When we switch to it, it will |
|
18127 be covered by the existing tests. |
|
18128 |
|
18129 * platform/chromium/ChromiumBridge.h: |
|
18130 * platform/chromium/PasteboardPrivate.h: |
|
18131 (WebCore::PasteboardPrivate::): |
|
18132 |
|
18133 2010-06-25 Mario Sanchez Prada <msanchez@igalia.com> |
|
18134 |
|
18135 Reviewed by Xan Lopez. |
|
18136 |
|
18137 [Gtk] Implement atk_table_get_column_header |
|
18138 https://bugs.webkit.org/show_bug.cgi?id=30896 |
|
18139 |
|
18140 Implemented get_column_header and modified get_row_header |
|
18141 accordingly to keep them both coherent among themselves. |
|
18142 Based on a previous patch by Joanmarie Diggs. |
|
18143 |
|
18144 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: |
|
18145 (webkit_accessible_table_get_column_header): |
|
18146 (webkit_accessible_table_get_row_header): |
|
18147 |
|
18148 2010-06-29 Martin Robinson <mrobinson@igalia.com> |
|
18149 |
|
18150 Reviewed by Xan Lopez. |
|
18151 |
|
18152 [GTK] Pasteboard code does not take into account the nil character when getting and setting markup/netscape-url data |
|
18153 https://bugs.webkit.org/show_bug.cgi?id=41221 |
|
18154 |
|
18155 Take into account null-terminator when getting and setting markup and |
|
18156 Netscape URL pasteboard types. This means that if the selection data |
|
18157 contains the null terminator, it won't be included in the final String. |
|
18158 When setting the pasteboard data the null terminator is now included to |
|
18159 match the behavior of other applications. |
|
18160 |
|
18161 * platform/gtk/PasteboardHelper.cpp: |
|
18162 (WebCore::PasteboardHelper::getClipboardContents): |
|
18163 Create the markup string after using g_strndup to protect against non-null-terminated |
|
18164 strings. Use String::fromUTF8 here to ensure that the string is not longer than the |
|
18165 first null-terminator. Also fix a small indentation issue. |
|
18166 (WebCore::PasteboardHelper::fillSelectionData): |
|
18167 Always include the null-terminator when setting pasteboard data manually. This matches |
|
18168 the behavior of other browser applications. |
|
18169 |
|
18170 2010-06-25 Sam Magnuson <smagnuson@netflix.com> |
|
18171 |
|
18172 Reviewed by Kenneth Rohde Christiansen. |
|
18173 |
|
18174 [Qt] When any geometry change happens to a node it will resize the |
|
18175 backing cache |
|
18176 https://bugs.webkit.org/show_bug.cgi?id=40378 |
|
18177 |
|
18178 Continue to grow the cache, but never toss it. When the pixmap |
|
18179 cache gets too big it will be lost and created at the right size |
|
18180 next time. |
|
18181 |
|
18182 No new tests: this is an optimization. |
|
18183 |
|
18184 * platform/graphics/qt/GraphicsLayerQt.cpp: |
|
18185 (WebCore::GraphicsLayerQtImpl::recache): |
|
18186 (WebCore::GraphicsLayerQtImpl::paint): |
|
18187 (WebCore::GraphicsLayerQtImpl::flushChanges): |
|
18188 |
|
18189 2010-06-25 Andreas Kling <andreas.kling@nokia.com> |
|
18190 |
|
18191 Reviewed by Darin Adler. |
|
18192 |
|
18193 https://bugs.webkit.org/show_bug.cgi?id=41019 |
|
18194 Canvas: Remember verified clean origins for drawImage() |
|
18195 |
|
18196 Made CanvasRenderingContext2D cache the KURLs of clean origins |
|
18197 for fast repeated lookup. |
|
18198 |
|
18199 * html/canvas/CanvasRenderingContext2D.cpp: |
|
18200 (WebCore::CanvasRenderingContext2D::checkOrigin): |
|
18201 * html/canvas/CanvasRenderingContext2D.h: |
|
18202 |
|
18203 2010-06-25 Robert Hogan <robert@webkit.org> |
|
18204 |
|
18205 Reviewed by Kenneth Rohde Christiansen. |
|
18206 |
|
18207 [Qt] HTTP 307 after a 303 after a POST re-sends POST data from the original request |
|
18208 |
|
18209 https://bugs.webkit.org/show_bug.cgi?id=35301 |
|
18210 |
|
18211 Qt needs to use ResourceRequest::request()->httpMethod()) in order to determine |
|
18212 the appropriate method for a 307 redirect request. |
|
18213 |
|
18214 When deciding if it needs to override a POST method with a GET method during a |
|
18215 redirect chain, QNetworkReplyHandler needs to check the HTTP method stored |
|
18216 in ResourceRequest::request()->httpMethod(). This will always contain the |
|
18217 original request method in a redirect chain and, more importantly, is the |
|
18218 method that will be used for the request created from the redirect |
|
18219 if it is not overridden. |
|
18220 |
|
18221 * platform/network/qt/QNetworkReplyHandler.cpp: |
|
18222 (WebCore::QNetworkReplyHandler::sendResponseIfNeeded): |
|
18223 |
|
18224 2010-06-25 Dan Bernstein <mitz@apple.com> |
|
18225 |
|
18226 Reviewed by Anders Carlsson. |
|
18227 |
|
18228 Removed a one-line method that only had one internal caller. |
|
18229 |
|
18230 * rendering/RenderBlock.h: Removed bidiReorderLine() |
|
18231 * rendering/RenderBlockLineLayout.cpp: |
|
18232 (WebCore::RenderBlock::layoutInlineChildren): Moved the implementation of |
|
18233 bidiReorderLine() inline here. |
|
18234 |
|
18235 2010-06-25 Nate Chapin <japhet@chromium.org> |
|
18236 |
|
18237 Reviewed by Adam Barth. |
|
18238 |
|
18239 Take a KURL parameter in Document's constructor. |
|
18240 This will remove the one case where Document::url() |
|
18241 and FrameLoader::url() are not equal, allowing us to |
|
18242 remove FrameLoader::url(). |
|
18243 |
|
18244 https://bugs.webkit.org/show_bug.cgi?id=41166 |
|
18245 |
|
18246 Refactor only, no new tests. |
|
18247 |
|
18248 * dom/DOMImplementation.cpp: |
|
18249 (WebCore::DOMImplementation::createDocument): Take a KURL and pass it through to Document. |
|
18250 (WebCore::DOMImplementation::createHTMLDocument): |
|
18251 * dom/DOMImplementation.h: |
|
18252 * dom/Document.cpp: |
|
18253 (WebCore::Document::Document): Call setURL() if a frame or a non-empty KURL is specified. |
|
18254 (WebCore::Document::initSecurityContext): m_url is now initialized, so use it instead |
|
18255 of m_frame->loader()->url() for initializing the SecurityOrigin. |
|
18256 * dom/Document.h: |
|
18257 (WebCore::Document::create): |
|
18258 (WebCore::Document::createXHTML): |
|
18259 * html/HTMLDocument.cpp: |
|
18260 * html/HTMLDocument.h: Add KURL parameter to create() and constructor. |
|
18261 * html/HTMLViewSourceDocument.cpp: |
|
18262 * html/HTMLViewSourceDocument.h: Add KURL parameter to create() and constructor. |
|
18263 * loader/CachedFont.cpp: |
|
18264 (WebCore::CachedFont::ensureSVGFontData): |
|
18265 * loader/DocumentWriter.cpp: |
|
18266 (WebCore::DocumentWriter::createDocument): Take a KURL and pass it through to Document. |
|
18267 (WebCore::DocumentWriter::begin): Pass existing url parameter to constructors, and remove |
|
18268 redundant Document::setURL() call. |
|
18269 * loader/DocumentWriter.h: |
|
18270 * loader/FTPDirectoryDocument.cpp: |
|
18271 * loader/FTPDirectoryDocument.h: Add KURL parameter to create() and constructor. |
|
18272 * loader/ImageDocument.cpp: |
|
18273 * loader/ImageDocument.h: Add KURL parameter to create() and constructor. |
|
18274 * loader/MediaDocument.cpp: |
|
18275 * loader/MediaDocument.h: Add KURL parameter to create() and constructor. |
|
18276 * loader/PlaceholderDocument.h: Add KURL parameter to create() and constructor. |
|
18277 * loader/PluginDocument.cpp: |
|
18278 * loader/PluginDocument.h: Add KURL parameter to create() and constructor. |
|
18279 * loader/SinkDocument.cpp: |
|
18280 * loader/SinkDocument.h: Add KURL parameter to create() and constructor. |
|
18281 * loader/TextDocument.cpp: |
|
18282 * loader/TextDocument.h: Add KURL parameter to create() and constructor. |
|
18283 * svg/SVGDocument.cpp: |
|
18284 * svg/SVGDocument.h: Add KURL parameter to create() and constructor. |
|
18285 * xml/DOMParser.cpp: |
|
18286 (WebCore::DOMParser::parseFromString): |
|
18287 * xml/XMLHttpRequest.cpp: |
|
18288 (WebCore::XMLHttpRequest::responseXML): |
|
18289 * xml/XSLTProcessor.cpp: |
|
18290 (WebCore::XSLTProcessor::createDocumentFromSource): |
|
18291 |
|
18292 2010-06-25 Sheriff Bot <webkit.review.bot@gmail.com> |
|
18293 |
|
18294 Unreviewed, rolling out r61812. |
|
18295 http://trac.webkit.org/changeset/61812 |
|
18296 https://bugs.webkit.org/show_bug.cgi?id=41216 |
|
18297 |
|
18298 breaks Chromium workers tests (Requested by mnaganov on |
|
18299 #webkit). |
|
18300 |
|
18301 * storage/AbstractDatabase.cpp: |
|
18302 * storage/AbstractDatabase.h: |
|
18303 * storage/Database.cpp: |
|
18304 (WebCore::Database::databaseInfoTableName): |
|
18305 (WebCore::guidMutex): |
|
18306 (WebCore::guidToVersionMap): |
|
18307 (WebCore::updateGuidVersionMap): |
|
18308 (WebCore::guidToDatabaseMap): |
|
18309 (WebCore::databaseVersionKey): |
|
18310 (WebCore::DatabaseCreationCallbackTask::create): |
|
18311 (WebCore::DatabaseCreationCallbackTask::performTask): |
|
18312 (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask): |
|
18313 (WebCore::Database::openDatabase): |
|
18314 (WebCore::Database::Database): |
|
18315 (WebCore::Database::openAndVerifyVersion): |
|
18316 (WebCore::retrieveTextResultFromDatabase): |
|
18317 (WebCore::Database::getVersionFromDatabase): |
|
18318 (WebCore::setTextValueInDatabase): |
|
18319 (WebCore::Database::setVersionInDatabase): |
|
18320 (WebCore::Database::versionMatchesExpected): |
|
18321 (WebCore::Database::close): |
|
18322 (WebCore::Database::disableAuthorizer): |
|
18323 (WebCore::Database::enableAuthorizer): |
|
18324 (WebCore::Database::setAuthorizerReadOnly): |
|
18325 (WebCore::Database::lastActionChangedDatabase): |
|
18326 (WebCore::Database::lastActionWasInsert): |
|
18327 (WebCore::Database::resetDeletes): |
|
18328 (WebCore::Database::hadDeletes): |
|
18329 (WebCore::guidForOriginAndName): |
|
18330 (WebCore::Database::resetAuthorizer): |
|
18331 (WebCore::Database::performOpenAndVerify): |
|
18332 (WebCore::Database::performCreationCallback): |
|
18333 (WebCore::Database::version): |
|
18334 (WebCore::Database::setExpectedVersion): |
|
18335 (WebCore::Database::stringIdentifier): |
|
18336 (WebCore::Database::displayName): |
|
18337 (WebCore::Database::estimatedSize): |
|
18338 (WebCore::Database::fileName): |
|
18339 * storage/Database.h: |
|
18340 (WebCore::Database::scriptExecutionContext): |
|
18341 (WebCore::Database::opened): |
|
18342 (WebCore::Database::isNew): |
|
18343 (WebCore::Database::databaseDebugName): |
|
18344 * storage/DatabaseAuthorizer.cpp: |
|
18345 (WebCore::DatabaseAuthorizer::DatabaseAuthorizer): |
|
18346 (WebCore::DatabaseAuthorizer::denyBasedOnTableName): |
|
18347 * storage/DatabaseAuthorizer.h: |
|
18348 (WebCore::DatabaseAuthorizer::create): |
|
18349 * storage/DatabaseSync.cpp: |
|
18350 (WebCore::DatabaseSync::databaseInfoTableName): |
|
18351 (WebCore::DatabaseSync::openDatabaseSync): |
|
18352 (WebCore::DatabaseSync::DatabaseSync): |
|
18353 (WebCore::DatabaseSync::~DatabaseSync): |
|
18354 (WebCore::DatabaseSync::version): |
|
18355 (WebCore::DatabaseSync::changeVersion): |
|
18356 (WebCore::DatabaseSync::transaction): |
|
18357 (WebCore::DatabaseSync::scriptExecutionContext): |
|
18358 * storage/DatabaseSync.h: |
|
18359 (WebCore::DatabaseSync::databaseDebugName): |
|
18360 * storage/DatabaseTask.cpp: |
|
18361 (WebCore::DatabaseOpenTask::DatabaseOpenTask): |
|
18362 (WebCore::DatabaseOpenTask::doPerformTask): |
|
18363 * storage/DatabaseTask.h: |
|
18364 (WebCore::DatabaseOpenTask::create): |
|
18365 |
|
18366 2010-06-25 Lei Zheng <lzheng@chromium.org> |
|
18367 |
|
18368 Reviewed by Dimitri Glazkov. |
|
18369 |
|
18370 Add a flag to the ResourceResponse for tracking if a request was fetched when |
|
18371 Alternate-protocol is available. |
|
18372 https://bugs.webkit.org/show_bug.cgi?id=41001 |
|
18373 |
|
18374 No new tests. (This is just a setter and getter.) |
|
18375 |
|
18376 * platform/network/chromium/ResourceResponse.h: |
|
18377 (WebCore::ResourceResponse::ResourceResponse): |
|
18378 (WebCore::ResourceResponse::wasAlternateProtocolAvailable): |
|
18379 (WebCore::ResourceResponse::setWasAlternateProtocolAvailable): |
|
18380 |
|
18381 2010-06-25 Lyon Chen <liachen@rim.com> |
|
18382 |
|
18383 Reviewed by Darin Adler. |
|
18384 |
|
18385 InspectorCSSStore.cpp is not surrounded with ENABLE(INSPECTOR) |
|
18386 https://bugs.webkit.org/show_bug.cgi?id=41004 |
|
18387 |
|
18388 Surround InspectorCSSStore.cpp code with ENABLE(INSPECTOR) so it will not |
|
18389 break the build when INSPECTOR is disabled. |
|
18390 |
|
18391 * inspector/InspectorCSSStore.cpp: |
|
18392 |
|
18393 2010-06-25 No'am Rosenthal <noam.rosenthal@nokia.com> |
|
18394 |
|
18395 Reviewed by Simon Hausmann. |
|
18396 |
|
18397 [Qt] WebGL: missing file |
|
18398 https://bugs.webkit.org/show_bug.cgi?id=40998 |
|
18399 |
|
18400 Added a missing file to WebCore.pro |
|
18401 |
|
18402 No new tests; build fix |
|
18403 |
|
18404 * WebCore.pro: |
|
18405 |
|
18406 2010-06-25 Adam Roben <aroben@apple.com> |
|
18407 |
|
18408 Windows build fix |
|
18409 |
|
18410 * WebCore.vcproj/WebCore.vcproj: Added a missing </File> tag. |
|
18411 |
|
18412 2010-06-25 Alex Milowski <alex@milowski.com> |
|
18413 |
|
18414 Reviewed by Kenneth Rohde Christiansen. |
|
18415 |
|
18416 This patch changes the vertical alignment to rely upon baseline |
|
18417 alignment for all MathML rendering. This fixes a number of layout |
|
18418 issues and the implementation is much more clean. |
|
18419 |
|
18420 Also, this patch adds a horizontal green line in the debug layout |
|
18421 so you can see the top padding of any RenderMathMLBlock instance. |
|
18422 |
|
18423 Test: mathml/presentation/row-alignment.xhtml |
|
18424 |
|
18425 * css/mathml.css: |
|
18426 * mathml/RenderMathMLBlock.cpp: |
|
18427 * mathml/RenderMathMLFraction.cpp: |
|
18428 * mathml/RenderMathMLFraction.h: |
|
18429 * mathml/RenderMathMLOperator.cpp: |
|
18430 * mathml/RenderMathMLOperator.h: |
|
18431 * mathml/RenderMathMLRoot.cpp: |
|
18432 * mathml/RenderMathMLRow.cpp: |
|
18433 * mathml/RenderMathMLRow.h: |
|
18434 * mathml/RenderMathMLSquareRoot.cpp: |
|
18435 * mathml/RenderMathMLSubSup.cpp: |
|
18436 * mathml/RenderMathMLUnderOver.cpp: |
|
18437 |
|
18438 2010-06-25 Yury Semikhatsky <yurys@chromium.org> |
|
18439 |
|
18440 Reviewed by Pavel Feldman. |
|
18441 |
|
18442 Can't see source when hitting debugger statement in evaled source |
|
18443 https://bugs.webkit.org/show_bug.cgi?id=41058 |
|
18444 |
|
18445 Test: inspector/debugger-pause-in-eval-script.html |
|
18446 |
|
18447 * bindings/js/ScriptDebugServer.cpp: |
|
18448 (WebCore::ScriptDebugServer::sourceParsed): use lexical global object to figure out |
|
18449 where the script is compiled. Otherwise scripts typed in Web Inspector console will |
|
18450 be treated as ones evaluated in the context of Web Inspector and won't appear in the |
|
18451 scripts list. |
|
18452 * inspector/InspectorController.cpp: |
|
18453 (WebCore::InspectorController::didParseSource): cache script sources for eval's too. |
|
18454 |
|
18455 2010-06-25 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
18456 |
|
18457 Reviewed by Kenneth Rohde Christiansen. |
|
18458 |
|
18459 [EFL] Use a descriptive string in FileChooser when multiple files can |
|
18460 be selected. |
|
18461 https://bugs.webkit.org/show_bug.cgi?id=40943 |
|
18462 |
|
18463 EFL port has no tests yet, so no new tests. |
|
18464 |
|
18465 * platform/efl/FileChooserEfl.cpp: |
|
18466 (WebCore::FileChooser::basenameForWidth): |
|
18467 |
|
18468 2010-06-25 Nikolas Zimmermann <nzimmermann@rim.com> |
|
18469 |
|
18470 Reviewed by Dirk Schulze. |
|
18471 |
|
18472 SVG Text Highlighting not yet supported (in Safari) |
|
18473 https://bugs.webkit.org/show_bug.cgi?id=41200 |
|
18474 |
|
18475 Add text match marker highlighting support for SVG text - searching for SVG text in Safari now paints the nice yellow highlighting rect, and the |
|
18476 white rectangles for all text matches. Behaves exactly like HTML text, but respecting SVGs per-character/per-chunk transformations, |
|
18477 allowing to highlight textPaths, tspans with absolute per-character positions etc.. |
|
18478 |
|
18479 Only manually testable, thus no new tests. |
|
18480 |
|
18481 * rendering/InlineBox.h: Expose calculateBoundaries() in non-SVG builds as well, now used by InlineTextBox too. |
|
18482 * rendering/InlineTextBox.h: Add calculateBoundaries(), which will be used to refactor some code in RenderText, see below. |
|
18483 (WebCore::InlineTextBox::calculateBoundaries): Just return a IntRect(x(), y(), width(), height()) here. |
|
18484 (WebCore::RenderObject::isSVGInlineText): |
|
18485 * rendering/RenderSVGInlineText.h: |
|
18486 (WebCore::RenderSVGInlineText::isSVGInlineText): Return true for isSVGInlineText(), return false for isSVGText() (default in RenderObject.h) |
|
18487 * rendering/RenderSVGRoot.cpp: |
|
18488 (WebCore::RenderSVGRoot::paint): Only paint box decorations in PaintPhase(Child)BlockBackground, exit afterwards just like RenderBlock does. |
|
18489 Otherwise the white text match marker rectangle gets drawn over the yellow highlight that Safari draws. |
|
18490 * rendering/RenderSVGText.cpp: |
|
18491 (WebCore::RenderSVGText::paint): Accept a new painting phase: PaintPhaseSelection, used by Safari when drawing the yellow highlight rect. |
|
18492 * rendering/RenderText.cpp: |
|
18493 (WebCore::RenderText::absoluteQuads): Use calculateBoundaries() instead of IntRect(x(), y(), width(), height()). SVG provides different boundaries here. |
|
18494 (WebCore::RenderText::absoluteQuadsForRange): Ditto. This is the main change, leading to correct text highlight placement. |
|
18495 * rendering/SVGInlineFlowBox.cpp: Add assertion that painting is not disabled, for consistency. Change paint phase assertion to include PaintPhaseSelection. |
|
18496 (WebCore::SVGInlineFlowBox::paint): |
|
18497 * rendering/SVGInlineTextBox.cpp: |
|
18498 (WebCore::SVGInlineTextBox::selectionRectForTextChunkPart): Refactored from selectionRect(), to share code between selectionRect/computeTextMatchMarkerRect. |
|
18499 (WebCore::SVGInlineTextBox::selectionRect): Use new helper function selectionRectForTextChunkPart(). |
|
18500 (WebCore::SVGInlineTextBox::paint): Ditto. Call new computeTextMatchMarkerRect() function. |
|
18501 (WebCore::SVGInlineTextBox::computeTextMatchMarkerRect): Implemented similar to HTML, but respecting SVGs concept of text chunk parts. |
|
18502 (WebCore::SVGInlineTextBox::paintText): In PaintPhaseSelection, only paint selected text, not anything before/after the selection start/end. |
|
18503 (WebCore::SVGInlineTextBox::calculateBoundaries): Early exit, if m_chunkTransformation is identity. |
|
18504 * rendering/SVGInlineTextBox.h: Added "bool paintSelectedTextOnly" to paintText() and add new computeTextMatchMarkerRect(RenderStyle*) function. |
|
18505 * rendering/SVGRootInlineBox.cpp: |
|
18506 (WebCore::SVGRootInlineBox::paint): Change paint phase assertion to include PaintPhaseSelection. |
|
18507 |
|
18508 2010-06-25 John Gregg <johnnyg@google.com> |
|
18509 |
|
18510 Reviewed by Darin Fisher. |
|
18511 |
|
18512 Notification should expose ltr/rtl as TextDirection, not String |
|
18513 https://bugs.webkit.org/show_bug.cgi?id=40871 |
|
18514 |
|
18515 No new tests; existing test covers this, just renaming a method. |
|
18516 |
|
18517 * notifications/Notification.h: |
|
18518 (WebCore::Notification::direction): |
|
18519 |
|
18520 2010-06-25 Sheriff Bot <webkit.review.bot@gmail.com> |
|
18521 |
|
18522 Unreviewed, rolling out r61842. |
|
18523 http://trac.webkit.org/changeset/61842 |
|
18524 https://bugs.webkit.org/show_bug.cgi?id=41208 |
|
18525 |
|
18526 It broke Windows build (Requested by Ossy_ on #webkit). |
|
18527 |
|
18528 * ForwardingHeaders/wtf/win/OwnPtrWin.h: Removed. |
|
18529 |
|
18530 2010-06-25 Patrick Gansterer <paroga@paroga.com> |
|
18531 |
|
18532 Reviewed by Darin Adler. |
|
18533 |
|
18534 Remove unneeded whitespace from svgtags.in. |
|
18535 https://bugs.webkit.org/show_bug.cgi?id=40912 |
|
18536 |
|
18537 make_names.pl throws an error at non-empty lines |
|
18538 when using cl.exe as preprocessor. |
|
18539 |
|
18540 * svg/svgtags.in: |
|
18541 |
|
18542 2010-06-25 Nikolas Zimmermann <nzimmermann@rim.com> |
|
18543 |
|
18544 Reviewed by Rob Buis. |
|
18545 |
|
18546 Split up isSVGText() in isSVGText() / isSVGInlineText() |
|
18547 https://bugs.webkit.org/show_bug.cgi?id=41204 |
|
18548 |
|
18549 Introduce isSVGInlineText(), to provide a safe mechanism to differentiate between RenderSVGText / RenderSVGInlineText. |
|
18550 No change in functionality, thus no new tests. |
|
18551 |
|
18552 * rendering/RenderBlockLineLayout.cpp: |
|
18553 (WebCore::shouldPreserveNewline): s/isSVGText/isSVGInlineText/ |
|
18554 (WebCore::RenderBlock::findNextLineBreak): Ditto. |
|
18555 * rendering/RenderObject.h: |
|
18556 (WebCore::RenderObject::isSVGInlineText): Return false, by default. |
|
18557 * rendering/RenderSVGInlineText.h: |
|
18558 (WebCore::RenderSVGInlineText::isSVGInlineText): Return true here, don't return true anymore for isSVGText(). |
|
18559 * rendering/RenderText.cpp: |
|
18560 (WebCore::RenderText::setTextInternal): s/isSVGText/isSVGInlineText/ |
|
18561 * rendering/RenderTreeAsText.cpp: Remove hack, now that we can properly differentiate between RenderSVGText / RenderSVGInlineText. |
|
18562 (WebCore::write): |
|
18563 |
|
18564 2010-06-25 Kwang Yul Seo <skyul@company100.net> |
|
18565 |
|
18566 Reviewed by Adam Barth. |
|
18567 |
|
18568 Change OwnPtrCommon to include platform-specific headers |
|
18569 https://bugs.webkit.org/show_bug.cgi?id=40279 |
|
18570 |
|
18571 Adding new type to OwnPtrCommon needlessly causes all ports to do full rebuilds. |
|
18572 Change OwnPtrCommon to include platform-specific headers to avoid all ports rebuilds. |
|
18573 |
|
18574 * ForwardingHeaders/wtf/win: Added. |
|
18575 * ForwardingHeaders/wtf/win/OwnPtrWin.h: Added. |
|
18576 |
|
18577 2010-06-25 Patrick Gansterer <paroga@paroga.com> |
|
18578 |
|
18579 Reviewed by Adam Barth. |
|
18580 |
|
18581 Implement TextCodecs for WinCE port. |
|
18582 https://bugs.webkit.org/show_bug.cgi?id=32169 |
|
18583 Originally written by Yong Li <yong.li@torchmobile.com> |
|
18584 |
|
18585 * platform/graphics/FontCache.h: |
|
18586 * platform/graphics/wince/FontCacheWince.cpp: |
|
18587 (WebCore::FontCache::getMultiLanguageInterface): |
|
18588 * platform/text/wince/TextCodecWinCE.cpp: Added. |
|
18589 (WebCore::codePageCharsets): |
|
18590 (WebCore::knownCharsets): |
|
18591 (WebCore::supportedCharsets): |
|
18592 (WebCore::languageManager): |
|
18593 (WebCore::addCharset): |
|
18594 (WebCore::LanguageManager::LanguageManager): |
|
18595 (WebCore::getCodePage): |
|
18596 (WebCore::newTextCodecWinCE): |
|
18597 (WebCore::TextCodecWinCE::TextCodecWinCE): |
|
18598 (WebCore::TextCodecWinCE::~TextCodecWinCE): |
|
18599 (WebCore::TextCodecWinCE::registerBaseEncodingNames): |
|
18600 (WebCore::TextCodecWinCE::registerBaseCodecs): |
|
18601 (WebCore::TextCodecWinCE::registerExtendedEncodingNames): |
|
18602 (WebCore::TextCodecWinCE::registerExtendedCodecs): |
|
18603 (WebCore::getCodePageFlags): |
|
18604 (WebCore::findFirstNonAsciiCharacter): |
|
18605 (WebCore::decode): |
|
18606 (WebCore::TextCodecWinCE::decode): |
|
18607 (WebCore::TextCodecWinCE::encode): |
|
18608 (WebCore::TextCodecWinCE::enumerateSupportedEncodings): |
|
18609 * platform/text/wince/TextCodecWinCE.h: Added. |
|
18610 |
|
18611 2010-06-24 Rob Buis <rwlbuis@gmail.com> |
|
18612 |
|
18613 Reviewed by Dirk Schulze. |
|
18614 |
|
18615 Bug 40880 - SVG properties fill and stroke do not accept system colors |
|
18616 https://bugs.webkit.org/show_bug.cgi?id=40880 |
|
18617 |
|
18618 Handle css system colors in fill and stroke properties. |
|
18619 |
|
18620 Test: svg/css/rect-system-color.xhtml |
|
18621 |
|
18622 * css/CSSParser.cpp: Remove comment and unneeded if condition |
|
18623 (WebCore::CSSParser::parseValue): |
|
18624 * css/SVGCSSParser.cpp: Allow css system colors |
|
18625 (WebCore::CSSParser::parseSVGValue): |
|
18626 |
|
18627 2010-06-24 Eric Seidel <eric@webkit.org> |
|
18628 |
|
18629 Reviewed by Adam Barth. |
|
18630 |
|
18631 Make DocumentParser API private on subclasses to catch misuse bugs |
|
18632 https://bugs.webkit.org/show_bug.cgi?id=41186 |
|
18633 |
|
18634 This already found one bug: |
|
18635 https://bugs.webkit.org/show_bug.cgi?id=41187 |
|
18636 |
|
18637 Added a new HTMLDocumentParaser::parseDocumentFragment so that |
|
18638 DocumentFragment.cpp does not need to use private methods. |
|
18639 |
|
18640 * dom/DocumentFragment.cpp: |
|
18641 (WebCore::DocumentFragment::parseHTML): |
|
18642 * dom/XMLDocumentParser.h: |
|
18643 (WebCore::XMLDocumentParser::setIsXHTMLDocument): |
|
18644 (WebCore::XMLDocumentParser::isXHTMLDocument): |
|
18645 (WebCore::XMLDocumentParser::setIsXHTMLMPDocument): |
|
18646 (WebCore::XMLDocumentParser::isXHTMLMPDocument): |
|
18647 * html/HTMLDocumentParser.cpp: |
|
18648 (WebCore::HTMLDocumentParser::parseDocumentFragment): |
|
18649 * html/HTMLDocumentParser.h: |
|
18650 * html/LegacyHTMLDocumentParser.cpp: |
|
18651 (WebCore::LegacyHTMLDocumentParser::parseDocumentFragment): |
|
18652 * html/LegacyHTMLDocumentParser.h: |
|
18653 (WebCore::LegacyHTMLDocumentParser::forceSynchronous): |
|
18654 (WebCore::LegacyHTMLDocumentParser::processingContentWrittenByScript): |
|
18655 * html/LegacyHTMLTreeBuilder.cpp: |
|
18656 (WebCore::LegacyHTMLTreeBuilder::reportErrorToConsole): |
|
18657 * loader/DocumentWriter.cpp: |
|
18658 (WebCore::DocumentWriter::replaceDocument): |
|
18659 * loader/TextDocument.cpp: |
|
18660 |
|
18661 2010-05-28 Philippe Normand <pnormand@igalia.com> |
|
18662 |
|
18663 Reviewed by Gustavo Noronha. |
|
18664 |
|
18665 [GStreamer] multiple video sink support |
|
18666 https://bugs.webkit.org/show_bug.cgi?id=39472 |
|
18667 |
|
18668 Playbin2 video-sink is now a bin containing a tee element capable |
|
18669 of dispatching the buffers to multiple video sinks. By default |
|
18670 only our webkit video sink is used. This will allow |
|
18671 GStreamerGWorld to add support for autovideosink in the future. |
|
18672 |
|
18673 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: |
|
18674 (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer): |
|
18675 (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer): |
|
18676 (WebCore::MediaPlayerPrivateGStreamer::naturalSize): |
|
18677 (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin): |
|
18678 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h: |
|
18679 |
|
18680 2010-06-24 Adam Barth <abarth@webkit.org> |
|
18681 |
|
18682 Reviewed by Eric Seidel. |
|
18683 |
|
18684 Sketch out AfterHeadMode for tree builder |
|
18685 https://bugs.webkit.org/show_bug.cgi?id=41191 |
|
18686 |
|
18687 This mode is fairly similar to the others. I needed to change some of |
|
18688 the types around w.r.t. Nodes/Elements. |
|
18689 |
|
18690 * html/HTMLTreeBuilder.cpp: |
|
18691 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
18692 (WebCore::HTMLTreeBuilder::processToken): |
|
18693 (WebCore::HTMLTreeBuilder::insertElement): |
|
18694 * html/HTMLTreeBuilder.h: |
|
18695 (WebCore::HTMLTreeBuilder::ElementStack::push): |
|
18696 (WebCore::HTMLTreeBuilder::ElementStack::remove): |
|
18697 |
|
18698 2010-06-24 Adam Barth <abarth@webkit.org> |
|
18699 |
|
18700 Reviewed by Eric Seidel. |
|
18701 |
|
18702 Sketch out InHeadNoscriptMode for tree builder |
|
18703 https://bugs.webkit.org/show_bug.cgi?id=41189 |
|
18704 |
|
18705 Lots of notImplemented() calls in this state. I need to figure how to |
|
18706 delegate handling of a token from one state to another. |
|
18707 |
|
18708 * html/HTMLTreeBuilder.cpp: |
|
18709 (WebCore::HTMLTreeBuilder::processToken): |
|
18710 |
|
18711 2010-06-24 Adam Barth <abarth@webkit.org> |
|
18712 |
|
18713 Reviewed by Eric Seidel. |
|
18714 |
|
18715 Sketch out InHeadMode for tree builder |
|
18716 https://bugs.webkit.org/show_bug.cgi?id=41184 |
|
18717 |
|
18718 This state is relatively straightforward. We introduce the stack of |
|
18719 open elements to track that notion in the spec. The old tree builder |
|
18720 has a nice data structure for that, which we'll probably steal, but I'd |
|
18721 like to see what the full API is first. |
|
18722 |
|
18723 * html/HTMLTreeBuilder.cpp: |
|
18724 (WebCore::HTMLTreeBuilder::processToken): |
|
18725 (WebCore::HTMLTreeBuilder::insertCharacter): |
|
18726 (WebCore::HTMLTreeBuilder::insertGenericRCDATAElement): |
|
18727 (WebCore::HTMLTreeBuilder::insertGenericRawTextElement): |
|
18728 (WebCore::HTMLTreeBuilder::insertScriptElement): |
|
18729 * html/HTMLTreeBuilder.h: |
|
18730 (WebCore::HTMLTreeBuilder::ElementStack::pop): |
|
18731 (WebCore::HTMLTreeBuilder::ElementStack::top): |
|
18732 |
|
18733 2010-06-24 Adam Barth <abarth@webkit.org> |
|
18734 |
|
18735 Reviewed by Eric Seidel. |
|
18736 |
|
18737 Sketch out BeforeHeadMode tree builder state |
|
18738 https://bugs.webkit.org/show_bug.cgi?id=41183 |
|
18739 |
|
18740 This makes procesToken recursive, which might not be the best idea. |
|
18741 Also, we can now make fake AtomicHTMLTokens for use by the algorithm. |
|
18742 |
|
18743 * html/HTMLToken.h: |
|
18744 (WebCore::AtomicHTMLToken::AtomicHTMLToken): |
|
18745 * html/HTMLTreeBuilder.cpp: |
|
18746 (WebCore::HTMLTreeBuilder::processToken): |
|
18747 (WebCore::HTMLTreeBuilder::insertElement): |
|
18748 * html/HTMLTreeBuilder.h: |
|
18749 |
|
18750 2010-06-22 Antonio Gomes <tonikitoo@webkit.org> |
|
18751 |
|
18752 Reviewed by David Hyatt. |
|
18753 |
|
18754 Add a NodeList-derivated wrapper class for a ListHashSet. |
|
18755 https://bugs.webkit.org/show_bug.cgi?id=41081 |
|
18756 |
|
18757 StaticHashSetList will work as a wrapper to ListHashSet objects that are |
|
18758 aimed to be exposed to the DOM. |
|
18759 |
|
18760 As a use case, the rect based HitTest (bug 40197) will store the retrieved nodes |
|
18761 in a ListHashSet. It is going to be exposed to the DOM through are nodesFromRect |
|
18762 of Document returning a NodeList (i.e. StatisHashSetList) wrapping a ListHashSet. |
|
18763 |
|
18764 No new tests. |
|
18765 |
|
18766 2010-06-24 Cris Neckar <cdn@chromium.org> |
|
18767 |
|
18768 Reviewed by Darin Fisher. |
|
18769 |
|
18770 [Chromium] Out of bounds write in WebCore::PNGImageDecoder::rowAvailable |
|
18771 https://bugs.webkit.org/show_bug.cgi?id=40798 |
|
18772 |
|
18773 Catches error in row callback for libPNG when extra rows are returned. |
|
18774 |
|
18775 Test: fast/images/png-extra-row-crash.html |
|
18776 |
|
18777 * platform/image-decoders/png/PNGImageDecoder.cpp: |
|
18778 (WebCore::PNGImageDecoder::rowAvailable): |
|
18779 |
|
18780 2010-06-24 Eric Seidel <eric@webkit.org> |
|
18781 |
|
18782 Reviewed by Adam Barth. |
|
18783 |
|
18784 Clean up and document DocumentWriter::replaceDocument code path |
|
18785 https://bugs.webkit.org/show_bug.cgi?id=41182 |
|
18786 |
|
18787 No functional changes, thus no tests. |
|
18788 |
|
18789 * loader/DocumentWriter.cpp: |
|
18790 (WebCore::DocumentWriter::replaceDocument): |
|
18791 - Remove comment which could be misleading. |
|
18792 |
|
18793 2010-06-23 Dumitru Daniliuc <dumi@chromium.org> |
|
18794 |
|
18795 Reviewed by Adam Barth. |
|
18796 |
|
18797 Implementing DatabaseSync::openDatabaseSync(). |
|
18798 https://bugs.webkit.org/show_bug.cgi?id=40607 |
|
18799 |
|
18800 Moved some common code from Database to AbstractDatabase. Made |
|
18801 performOpenAndVerify() virtual, since DatabaseSync doesn't need to |
|
18802 interact with DatabaseThread. Removed the m_creationCallback |
|
18803 field, since it's only needed in the openDatabase{Sync} methods. |
|
18804 |
|
18805 * storage/AbstractDatabase.cpp: |
|
18806 (WebCore::retrieveTextResultFromDatabase): |
|
18807 (WebCore::setTextValueInDatabase): |
|
18808 (WebCore::guidMutex): |
|
18809 (WebCore::guidToVersionMap): |
|
18810 (WebCore::updateGuidVersionMap): |
|
18811 (WebCore::guidToDatabaseMap): |
|
18812 (WebCore::guidForOriginAndName): |
|
18813 (WebCore::AbstractDatabase::databaseInfoTableName): |
|
18814 (WebCore::AbstractDatabase::AbstractDatabase): |
|
18815 (WebCore::AbstractDatabase::closeDatabase): |
|
18816 (WebCore::AbstractDatabase::version): |
|
18817 (WebCore::AbstractDatabase::performOpenAndVerify): |
|
18818 (WebCore::AbstractDatabase::scriptExecutionContext): |
|
18819 (WebCore::AbstractDatabase::securityOrigin): |
|
18820 (WebCore::AbstractDatabase::stringIdentifier): |
|
18821 (WebCore::AbstractDatabase::displayName): |
|
18822 (WebCore::AbstractDatabase::estimatedSize): |
|
18823 (WebCore::AbstractDatabase::fileName): |
|
18824 (WebCore::AbstractDatabase::databaseVersionKey): |
|
18825 (WebCore::AbstractDatabase::getVersionFromDatabase): |
|
18826 (WebCore::AbstractDatabase::setVersionInDatabase): |
|
18827 (WebCore::AbstractDatabase::versionMatchesExpected): |
|
18828 (WebCore::AbstractDatabase::setExpectedVersion): |
|
18829 (WebCore::AbstractDatabase::disableAuthorizer): |
|
18830 (WebCore::AbstractDatabase::enableAuthorizer): |
|
18831 (WebCore::AbstractDatabase::setAuthorizerReadOnly): |
|
18832 (WebCore::AbstractDatabase::lastActionChangedDatabase): |
|
18833 (WebCore::AbstractDatabase::lastActionWasInsert): |
|
18834 (WebCore::AbstractDatabase::resetDeletes): |
|
18835 (WebCore::AbstractDatabase::hadDeletes): |
|
18836 (WebCore::AbstractDatabase::resetAuthorizer): |
|
18837 * storage/AbstractDatabase.h: |
|
18838 (WebCore::AbstractDatabase::opened): |
|
18839 (WebCore::AbstractDatabase::isNew): |
|
18840 (WebCore::AbstractDatabase::databaseDebugName): |
|
18841 * storage/Database.cpp: |
|
18842 (WebCore::DatabaseCreationCallbackTask::create): |
|
18843 (WebCore::DatabaseCreationCallbackTask::performTask): |
|
18844 (WebCore::DatabaseCreationCallbackTask::DatabaseCreationCallbackTask): |
|
18845 (WebCore::Database::openDatabase): |
|
18846 (WebCore::Database::Database): |
|
18847 (WebCore::Database::version): |
|
18848 (WebCore::Database::openAndVerifyVersion): |
|
18849 (WebCore::Database::close): |
|
18850 (WebCore::Database::stop): |
|
18851 (WebCore::Database::performOpenAndVerify): |
|
18852 * storage/Database.h: |
|
18853 (WebCore::Database::sqliteDatabase): |
|
18854 * storage/DatabaseAuthorizer.cpp: |
|
18855 (WebCore::DatabaseAuthorizer::create): |
|
18856 (WebCore::DatabaseAuthorizer::DatabaseAuthorizer): |
|
18857 (WebCore::DatabaseAuthorizer::denyBasedOnTableName): |
|
18858 * storage/DatabaseAuthorizer.h: |
|
18859 * storage/DatabaseSync.cpp: |
|
18860 (WebCore::DatabaseSync::openDatabaseSync): |
|
18861 (WebCore::DatabaseSync::DatabaseSync): |
|
18862 (WebCore::DatabaseSync::changeVersion): |
|
18863 (WebCore::DatabaseSync::transaction): |
|
18864 (WebCore::DatabaseSync::markAsDeletedAndClose): |
|
18865 (WebCore::CloseSyncDatabaseOnContextThreadTask::create): |
|
18866 (WebCore::CloseSyncDatabaseOnContextThreadTask::performTask): |
|
18867 (WebCore::CloseSyncDatabaseOnContextThreadTask::CloseSyncDatabaseOnContextThreadTask): |
|
18868 (WebCore::DatabaseSync::closeImmediately): |
|
18869 * storage/DatabaseSync.h: |
|
18870 * storage/DatabaseTask.cpp: |
|
18871 (WebCore::DatabaseOpenTask::DatabaseOpenTask): |
|
18872 (WebCore::DatabaseOpenTask::doPerformTask): |
|
18873 * storage/DatabaseTask.h: |
|
18874 (WebCore::DatabaseOpenTask::create): |
|
18875 |
|
18876 2010-06-24 Steve Falkenburg <sfalken@apple.com> |
|
18877 |
|
18878 Windows build fix. |
|
18879 |
|
18880 * platform/network/cf/AuthenticationCF.h: |
|
18881 |
|
18882 2010-06-24 Martin Robinson <mrobinson@igalia.com> |
|
18883 |
|
18884 Unreviewed. Build fix. |
|
18885 |
|
18886 Fix the build after r61798. |
|
18887 |
|
18888 * platform/gtk/PasteboardHelper.cpp: |
|
18889 (WebCore::PasteboardHelper::getClipboardContents): |
|
18890 |
|
18891 2010-06-24 Alexey Proskuryakov <ap@apple.com> |
|
18892 |
|
18893 Reviewed by Brady Eidson. |
|
18894 |
|
18895 https://bugs.webkit.org/show_bug.cgi?id=41178 |
|
18896 Timed refresh in subframes isn't stopped when going into b/f cache |
|
18897 |
|
18898 Test: fast/history/timed-refresh-in-cached-frame.html |
|
18899 |
|
18900 * history/CachedFrame.cpp: (WebCore::CachedFrame::CachedFrame): Top frame's stopLoading() |
|
18901 won't help cached subframes; stop loading from here. |
|
18902 |
|
18903 * loader/FrameLoader.cpp: |
|
18904 (WebCore::FrameLoader::stopLoading): Don't stop loading in child frames. This didn't work |
|
18905 for cached frames due to frame tree having been already desonstructed, and it's not necessary |
|
18906 in non-cached case because stopLoading() will be called for subframes via |
|
18907 FrameLoader::detachFromParent() and closeURL(). |
|
18908 (WebCore::FrameLoader::pageHidden): This was a second code path that dispatched pagehide |
|
18909 event - it's no longer needed, because everything goes through FrameLoader::stopLoading(). |
|
18910 (WebCore::FrameLoader::commitProvisionalLoad): Don't call pageHidden(), the code for adding |
|
18911 frame to b/f cache will do everything. |
|
18912 |
|
18913 * loader/FrameLoader.h: Removed pageHidden(). |
|
18914 |
|
18915 2010-06-24 Eric Seidel <eric@webkit.org> |
|
18916 |
|
18917 Unreviewed. Fix the build. I am a bad man. |
|
18918 |
|
18919 * loader/DocumentWriter.cpp: |
|
18920 (WebCore::DocumentWriter::replaceDocument): |
|
18921 |
|
18922 2010-06-24 Martin Robinson <mrobinson@igalia.com> |
|
18923 |
|
18924 Reviewed by Xan Lopez. |
|
18925 |
|
18926 Build fix for building against GTK+ 3.x. |
|
18927 |
|
18928 No new tests as functionality has not changed. |
|
18929 |
|
18930 * platform/gtk/GtkVersioning.h: |
|
18931 * platform/gtk/PasteboardHelper.cpp: |
|
18932 (WebCore::PasteboardHelper::getClipboardContents): |
|
18933 (WebCore::PasteboardHelper::fillSelectionData): |
|
18934 |
|
18935 2010-06-24 Eric Seidel <eric@webkit.org> |
|
18936 |
|
18937 Reviewed by Adam Barth. |
|
18938 |
|
18939 Clean up and document DocumentWriter::replaceDocument code path |
|
18940 https://bugs.webkit.org/show_bug.cgi?id=41182 |
|
18941 |
|
18942 No functional change, thus no test. |
|
18943 |
|
18944 * loader/DocumentWriter.cpp: |
|
18945 (WebCore::DocumentWriter::replaceDocument): |
|
18946 * loader/DocumentWriter.h: |
|
18947 |
|
18948 2010-06-24 Jer Noble <jer.noble@apple.com> |
|
18949 |
|
18950 Reviewed by Eric Carlson. |
|
18951 |
|
18952 Full-screened content doesn't keep the display on: Safari not grabbing a power assertion? |
|
18953 https://bugs.webkit.org/show_bug.cgi?id=40939 |
|
18954 rdar://problem/7996172 |
|
18955 |
|
18956 Export -[MediaElement playbackRate]; |
|
18957 |
|
18958 * WebCore.Video.exp: |
|
18959 |
|
18960 2010-06-21 Evan Martin <evan@chromium.org> |
|
18961 |
|
18962 Reviewed by Adam Barth. |
|
18963 |
|
18964 [chromium] overlapping characters in complex text |
|
18965 https://bugs.webkit.org/show_bug.cgi?id=40966 |
|
18966 |
|
18967 We need to clear all the buffers we hand to Harfbuzz before we use them. |
|
18968 While I'm here, refactor the code slightly to make its behavior more |
|
18969 clear and correct (previously, we would repeatedly double our buffer |
|
18970 size when we could have just sized it correctly on the second try). |
|
18971 |
|
18972 * platform/graphics/chromium/FontLinux.cpp: |
|
18973 (WebCore::TextRunWalker::TextRunWalker): |
|
18974 (WebCore::TextRunWalker::nextScriptRun): |
|
18975 (WebCore::TextRunWalker::createGlyphArrays): |
|
18976 (WebCore::TextRunWalker::shapeGlyphs): |
|
18977 |
|
18978 2010-06-24 Adele Peterson <adele@apple.com> |
|
18979 |
|
18980 Reviewed by Sam Weinig. |
|
18981 |
|
18982 Updated fix for <rdar://problem/8093680> "Paste and Match Style" should fire paste events |
|
18983 https://bugs.webkit.org/show_bug.cgi?id=41085 |
|
18984 |
|
18985 Covered by existing tests. |
|
18986 |
|
18987 * editing/EditorCommand.cpp: |
|
18988 (WebCore::executePasteAsPlainText): Added. |
|
18989 (WebCore::createCommandMap): Added pasteAsPlainText command. |
|
18990 |
|
18991 2010-06-24 Adam Barth <abarth@webkit.org> |
|
18992 |
|
18993 Reviewed by Eric Seidel. |
|
18994 |
|
18995 Sketch out BeforeHTMLMode state |
|
18996 https://bugs.webkit.org/show_bug.cgi?id=41133 |
|
18997 |
|
18998 In this patch, we switch the TreeBuidler over to using AtomicHTMLTokens |
|
18999 and sketch out another state. These states don't actually do anything |
|
19000 yet, I'm still just getting the structure of the spec into the code so |
|
19001 we can implement the details incrementally. |
|
19002 |
|
19003 * html/HTMLTreeBuilder.cpp: |
|
19004 (WebCore::HTMLTreeBuilder::constructTreeFromToken): |
|
19005 (WebCore::HTMLTreeBuilder::processToken): |
|
19006 (WebCore::HTMLTreeBuilder::insertDoctype): |
|
19007 (WebCore::HTMLTreeBuilder::insertComment): |
|
19008 * html/HTMLTreeBuilder.h: |
|
19009 (WebCore::HTMLTreeBuilder::parseError): |
|
19010 |
|
19011 2010-06-24 Adam Barth <abarth@webkit.org> |
|
19012 |
|
19013 Reviewed by Eric Seidel. |
|
19014 |
|
19015 Add AtomicHTMLToken |
|
19016 https://bugs.webkit.org/show_bug.cgi?id=41131 |
|
19017 |
|
19018 We need an atomized version of the token for use in the tree builder. |
|
19019 Eventually, we should make the existing HTMLToken an internal detail of |
|
19020 the HTMLTokenizer. This new AtomicHTMLToken should be also be more |
|
19021 easily cached between the preload scanner and the tree builder. |
|
19022 |
|
19023 * html/HTMLToken.h: |
|
19024 (WebCore::AtomicHTMLToken::AtomicHTMLToken): |
|
19025 (WebCore::AtomicHTMLToken::type): |
|
19026 (WebCore::AtomicHTMLToken::name): |
|
19027 (WebCore::AtomicHTMLToken::selfClosing): |
|
19028 (WebCore::AtomicHTMLToken::attributes): |
|
19029 (WebCore::AtomicHTMLToken::characters): |
|
19030 (WebCore::AtomicHTMLToken::comment): |
|
19031 (WebCore::AtomicHTMLToken::publicIdentifier): |
|
19032 (WebCore::AtomicHTMLToken::systemIdentifier): |
|
19033 (WebCore::AtomicHTMLToken::forceQuirks): |
|
19034 * html/HTMLTreeBuilder.cpp: |
|
19035 (WebCore::convertToOldStyle): |
|
19036 (WebCore::HTMLTreeBuilder::passTokenToLegacyParser): |
|
19037 |
|
19038 2010-06-24 Eric Seidel <eric@webkit.org> |
|
19039 |
|
19040 Reviewed by Adam Barth. |
|
19041 |
|
19042 Add RawDataDocumentParser to get rid of a bunch of copy/paste code in DocumentParser subclasses |
|
19043 https://bugs.webkit.org/show_bug.cgi?id=41136 |
|
19044 |
|
19045 I think this is likely far from the final design, |
|
19046 however this is almost entirely minus lines which is a |
|
19047 good thing. |
|
19048 |
|
19049 The original authors of these DocumentParser subclasses |
|
19050 seem to have just copied the files whole, as they all |
|
19051 had the same includes, many of which were unnecessary for |
|
19052 some of the files. |
|
19053 |
|
19054 I think eventually the FrameLoader will call a virtual |
|
19055 DocumentParser::appendData which will in turn decode |
|
19056 and call another write/appendData call. In the case |
|
19057 of these RawDataDocumentParsers, they will just override |
|
19058 the low-level appendData call instead of needing |
|
19059 DocumentWriter to have a special if based on |
|
19060 DocumentParser::wantsRawData. |
|
19061 |
|
19062 No functional change, thus no tests. |
|
19063 |
|
19064 * GNUmakefile.am: |
|
19065 * WebCore.gypi: |
|
19066 * WebCore.pro: |
|
19067 * WebCore.xcodeproj/project.pbxproj: |
|
19068 * dom/DocumentParser.h: |
|
19069 (WebCore::DocumentParser::writeRawData): |
|
19070 * loader/ImageDocument.cpp: |
|
19071 (WebCore::ImageDocumentParser::ImageDocumentParser): |
|
19072 (WebCore::ImageDocumentParser::finish): |
|
19073 * loader/MediaDocument.cpp: |
|
19074 (WebCore::MediaDocumentParser::MediaDocumentParser): |
|
19075 (WebCore::MediaDocumentParser::writeRawData): |
|
19076 * loader/PluginDocument.cpp: |
|
19077 (WebCore::PluginDocumentParser::PluginDocumentParser): |
|
19078 * loader/SinkDocument.cpp: |
|
19079 (WebCore::SinkDocument::createParser): |
|
19080 |
|
19081 2010-06-23 Peter Kasting <pkasting@google.com> |
|
19082 |
|
19083 Reviewed by Adam Barth. |
|
19084 |
|
19085 REGRESSION (r61619): Memory corruption in open-source ICO decoder |
|
19086 https://bugs.webkit.org/show_bug.cgi?id=41107 |
|
19087 |
|
19088 * platform/image-decoders/bmp/BMPImageReader.cpp: |
|
19089 (WebCore::BMPImageReader::processInfoHeader): Fix memory corruption. |
|
19090 * platform/image-decoders/ico/ICOImageDecoder.cpp: |
|
19091 (WebCore::ICOImageDecoder::processDirectoryEntries): Handle sizing failure correctly (though failure should be impossible). |
|
19092 |
|
19093 2010-06-24 Sheriff Bot <webkit.review.bot@gmail.com> |
|
19094 |
|
19095 Unreviewed, rolling out r61783. |
|
19096 http://trac.webkit.org/changeset/61783 |
|
19097 https://bugs.webkit.org/show_bug.cgi?id=41179 |
|
19098 |
|
19099 Caused a couple of test failures (Requested by japhet on |
|
19100 #webkit). |
|
19101 |
|
19102 * dom/DOMImplementation.cpp: |
|
19103 (WebCore::DOMImplementation::createDocument): |
|
19104 (WebCore::DOMImplementation::createHTMLDocument): |
|
19105 * dom/DOMImplementation.h: |
|
19106 * dom/Document.cpp: |
|
19107 (WebCore::Document::Document): |
|
19108 (WebCore::Document::initSecurityContext): |
|
19109 * dom/Document.h: |
|
19110 (WebCore::Document::create): |
|
19111 (WebCore::Document::createXHTML): |
|
19112 * html/HTMLDocument.cpp: |
|
19113 (WebCore::HTMLDocument::HTMLDocument): |
|
19114 * html/HTMLDocument.h: |
|
19115 (WebCore::HTMLDocument::create): |
|
19116 * html/HTMLViewSourceDocument.cpp: |
|
19117 (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument): |
|
19118 * html/HTMLViewSourceDocument.h: |
|
19119 (WebCore::HTMLViewSourceDocument::create): |
|
19120 * loader/CachedFont.cpp: |
|
19121 (WebCore::CachedFont::ensureSVGFontData): |
|
19122 * loader/DocumentWriter.cpp: |
|
19123 (WebCore::DocumentWriter::createDocument): |
|
19124 (WebCore::DocumentWriter::begin): |
|
19125 * loader/DocumentWriter.h: |
|
19126 * loader/FTPDirectoryDocument.cpp: |
|
19127 (WebCore::FTPDirectoryDocument::FTPDirectoryDocument): |
|
19128 * loader/FTPDirectoryDocument.h: |
|
19129 (WebCore::FTPDirectoryDocument::create): |
|
19130 * loader/ImageDocument.cpp: |
|
19131 (WebCore::ImageDocument::ImageDocument): |
|
19132 * loader/ImageDocument.h: |
|
19133 (WebCore::ImageDocument::create): |
|
19134 * loader/MediaDocument.cpp: |
|
19135 (WebCore::MediaDocument::MediaDocument): |
|
19136 * loader/MediaDocument.h: |
|
19137 (WebCore::MediaDocument::create): |
|
19138 * loader/PlaceholderDocument.h: |
|
19139 (WebCore::PlaceholderDocument::create): |
|
19140 (WebCore::PlaceholderDocument::PlaceholderDocument): |
|
19141 * loader/PluginDocument.cpp: |
|
19142 (WebCore::PluginDocument::PluginDocument): |
|
19143 * loader/PluginDocument.h: |
|
19144 (WebCore::PluginDocument::create): |
|
19145 * loader/SinkDocument.cpp: |
|
19146 (WebCore::SinkDocument::SinkDocument): |
|
19147 * loader/SinkDocument.h: |
|
19148 (WebCore::SinkDocument::create): |
|
19149 * loader/TextDocument.cpp: |
|
19150 (WebCore::TextDocument::TextDocument): |
|
19151 * loader/TextDocument.h: |
|
19152 (WebCore::TextDocument::create): |
|
19153 * svg/SVGDocument.cpp: |
|
19154 (WebCore::SVGDocument::SVGDocument): |
|
19155 * svg/SVGDocument.h: |
|
19156 (WebCore::SVGDocument::create): |
|
19157 * xml/DOMParser.cpp: |
|
19158 (WebCore::DOMParser::parseFromString): |
|
19159 * xml/XMLHttpRequest.cpp: |
|
19160 (WebCore::XMLHttpRequest::responseXML): |
|
19161 * xml/XSLTProcessor.cpp: |
|
19162 (WebCore::XSLTProcessor::createDocumentFromSource): |
|
19163 |
|
19164 2010-06-24 Martin Robinson <mrobinson@igalia.com> |
|
19165 |
|
19166 Reviewed by Xan Lopez. |
|
19167 |
|
19168 [GTK] Small code cleanup in RenderThemeGtk |
|
19169 https://bugs.webkit.org/show_bug.cgi?id=40989 |
|
19170 |
|
19171 Reduce the amount of duplicated code slightly and prepare this section for |
|
19172 future improvements, such as sharing the clipping rectangle calculation with |
|
19173 the slow path. |
|
19174 |
|
19175 No new tests as functionality has not changed. |
|
19176 |
|
19177 * platform/gtk/RenderThemeGtk.cpp: |
|
19178 (WebCore::paintMozillaGtkWidget): Small code cleanup. |
|
19179 |
|
19180 2010-06-24 Nate Chapin <japhet@chromium.org> |
|
19181 |
|
19182 Reviewed by Adam Barth. |
|
19183 |
|
19184 Take a KURL parameter in Document's constructor. |
|
19185 This will remove the one case where Document::url() |
|
19186 and FrameLoader::url() are not equal, allowing us to |
|
19187 remove FrameLoader::url(). |
|
19188 |
|
19189 https://bugs.webkit.org/show_bug.cgi?id=41166 |
|
19190 |
|
19191 Refactor only, no new tests. |
|
19192 |
|
19193 * dom/DOMImplementation.cpp: |
|
19194 (WebCore::DOMImplementation::createDocument): Take a KURL and pass it through to Document. |
|
19195 (WebCore::DOMImplementation::createHTMLDocument): |
|
19196 * dom/DOMImplementation.h: |
|
19197 * dom/Document.cpp: |
|
19198 (WebCore::Document::Document): Call setURL() for non-empty KURL input parameters. |
|
19199 (WebCore::Document::initSecurityContext): m_url is now initialized, so use it instead |
|
19200 of m_frame->loader()->url() for initializing the SecurityOrigin. |
|
19201 * dom/Document.h: |
|
19202 (WebCore::Document::create): |
|
19203 (WebCore::Document::createXHTML): |
|
19204 * html/HTMLDocument.cpp: |
|
19205 * html/HTMLDocument.h: Add KURL parameter to create() and constructor. |
|
19206 * html/HTMLViewSourceDocument.cpp: |
|
19207 * html/HTMLViewSourceDocument.h: Add KURL parameter to create() and constructor. |
|
19208 * loader/CachedFont.cpp: |
|
19209 (WebCore::CachedFont::ensureSVGFontData): |
|
19210 * loader/DocumentWriter.cpp: |
|
19211 (WebCore::DocumentWriter::createDocument): Take a KURL and pass it through to Document. |
|
19212 (WebCore::DocumentWriter::begin): Pass existing url parameter to constructors, and remove |
|
19213 redundant Document::setURL() call. |
|
19214 * loader/DocumentWriter.h: |
|
19215 * loader/FTPDirectoryDocument.cpp: |
|
19216 * loader/FTPDirectoryDocument.h: Add KURL parameter to create() and constructor. |
|
19217 * loader/ImageDocument.cpp: |
|
19218 * loader/ImageDocument.h: Add KURL parameter to create() and constructor. |
|
19219 * loader/MediaDocument.cpp: |
|
19220 * loader/MediaDocument.h: Add KURL parameter to create() and constructor. |
|
19221 * loader/PlaceholderDocument.h: Add KURL parameter to create() and constructor. |
|
19222 * loader/PluginDocument.cpp: |
|
19223 * loader/PluginDocument.h: Add KURL parameter to create() and constructor. |
|
19224 * loader/SinkDocument.cpp: |
|
19225 * loader/SinkDocument.h: Add KURL parameter to create() and constructor. |
|
19226 * loader/TextDocument.cpp: |
|
19227 * loader/TextDocument.h: Add KURL parameter to create() and constructor. |
|
19228 * svg/SVGDocument.cpp: |
|
19229 * svg/SVGDocument.h: Add KURL parameter to create() and constructor. |
|
19230 * xml/DOMParser.cpp: |
|
19231 (WebCore::DOMParser::parseFromString): |
|
19232 * xml/XMLHttpRequest.cpp: |
|
19233 (WebCore::XMLHttpRequest::responseXML): |
|
19234 * xml/XSLTProcessor.cpp: |
|
19235 (WebCore::XSLTProcessor::createDocumentFromSource): |
|
19236 |
|
19237 2010-06-24 Brady Eidson <beidson@apple.com> |
|
19238 |
|
19239 Reviewed by Sam Weinig. |
|
19240 |
|
19241 <rdar://problem/8044645> and https://bugs.webkit.org/show_bug.cgi?id=41082 |
|
19242 |
|
19243 Webarchives will null main resource cause a repro crash. |
|
19244 |
|
19245 Test: webarchive/loading/mainresource-null-mimetype-crash.html |
|
19246 |
|
19247 * loader/archive/cf/LegacyWebArchive.cpp: |
|
19248 (WebCore::LegacyWebArchive::createResource): Fail to create the archive resource if the main resource's |
|
19249 mime type is null. |
|
19250 |
|
19251 2010-06-24 Damian Kaleta <dkaleta@apple.com> |
|
19252 |
|
19253 Reviewed by Sam Weinig. |
|
19254 |
|
19255 Provide a way to obtain the rendered rectangle for box elements. |
|
19256 |
|
19257 * WebCore.base.exp: Export the symbol so we can see it in WebKit. |
|
19258 * dom/Node.cpp: |
|
19259 (WebCore::Node::renderRect): Added new ethod that will return a rendered rectangle for box elements. |
|
19260 * dom/Node.h: Ditto. |
|
19261 |
|
19262 2010-06-24 Vangelis Kokkevis <vangelis@chromium.org> |
|
19263 |
|
19264 Reviewed by Darin Fisher. |
|
19265 |
|
19266 [Chromium] Create specialized classes for Transform, |
|
19267 Image and WebGL layers to replace the rather monolithic LayerChromium class. |
|
19268 Layers can now own the GL texture they use for backing store and a different |
|
19269 shading program can be used by the compositor for each layer type. WebGL layers |
|
19270 are not yet hooked up to GraphicsContext3D. |
|
19271 https://bugs.webkit.org/show_bug.cgi?id=41106 |
|
19272 |
|
19273 * WebCore.gypi: |
|
19274 * platform/graphics/chromium/GraphicsLayerChromium.cpp: |
|
19275 (WebCore::GraphicsLayerChromium::GraphicsLayerChromium): |
|
19276 (WebCore::GraphicsLayerChromium::setContentsToImage): |
|
19277 (WebCore::GraphicsLayerChromium::updateLayerPreserves3D): |
|
19278 * platform/graphics/chromium/GraphicsLayerChromium.h: |
|
19279 (WebCore::GraphicsLayerChromium::): |
|
19280 * platform/graphics/chromium/ImageLayerChromium.cpp: Added. |
|
19281 (WebCore::ImageLayerChromium::create): |
|
19282 (WebCore::ImageLayerChromium::ImageLayerChromium): |
|
19283 (WebCore::ImageLayerChromium::setContents): |
|
19284 (WebCore::ImageLayerChromium::updateTextureContents): |
|
19285 * platform/graphics/chromium/ImageLayerChromium.h: Added. |
|
19286 (WebCore::ImageLayerChromium::drawsContent): |
|
19287 * platform/graphics/chromium/LayerChromium.cpp: |
|
19288 (WebCore::LayerChromium::create): |
|
19289 (WebCore::LayerChromium::LayerChromium): |
|
19290 (WebCore::LayerChromium::updateTextureContents): |
|
19291 (WebCore::LayerChromium::updateTextureRect): |
|
19292 * platform/graphics/chromium/LayerChromium.h: |
|
19293 (WebCore::LayerChromium::drawsContent): |
|
19294 (WebCore::LayerChromium::ownsTexture): |
|
19295 (WebCore::LayerChromium::textureId): |
|
19296 (WebCore::LayerChromium::setShaderProgramId): |
|
19297 (WebCore::LayerChromium::shaderProgramId): |
|
19298 * platform/graphics/chromium/LayerRendererChromium.cpp: |
|
19299 (WebCore::LayerRendererChromium::createLayerShader): |
|
19300 (WebCore::ShaderProgram::ShaderProgram): |
|
19301 (WebCore::LayerRendererChromium::LayerRendererChromium): |
|
19302 (WebCore::LayerRendererChromium::~LayerRendererChromium): |
|
19303 (WebCore::LayerRendererChromium::useShaderProgram): |
|
19304 (WebCore::LayerRendererChromium::drawTexturedQuad): |
|
19305 (WebCore::LayerRendererChromium::drawLayers): |
|
19306 (WebCore::LayerRendererChromium::drawDebugBorder): |
|
19307 (WebCore::LayerRendererChromium::updateLayersRecursive): |
|
19308 (WebCore::LayerRendererChromium::drawLayer): |
|
19309 (WebCore::LayerRendererChromium::bindCommonAttribLocations): |
|
19310 (WebCore::LayerRendererChromium::initializeSharedGLObjects): |
|
19311 * platform/graphics/chromium/LayerRendererChromium.h: |
|
19312 (WebCore::LayerRendererChromium::): |
|
19313 * platform/graphics/chromium/TransformLayerChromium.cpp: Added. |
|
19314 (WebCore::TransformLayerChromium::create): |
|
19315 (WebCore::TransformLayerChromium::TransformLayerChromium): |
|
19316 * platform/graphics/chromium/TransformLayerChromium.h: Added. |
|
19317 (WebCore::TransformLayerChromium::drawsContent): |
|
19318 * platform/graphics/chromium/WebGLLayerChromium.cpp: Added. |
|
19319 (WebCore::WebGLLayerChromium::WebGLLayerChromium): |
|
19320 (WebCore::WebGLLayerChromium::textureId): |
|
19321 (WebCore::WebGLLayerChromium::updateTextureContents): |
|
19322 (WebCore::WebGLLayerChromium::setContext): |
|
19323 * platform/graphics/chromium/WebGLLayerChromium.h: Added. |
|
19324 (WebCore::WebGLLayerChromium::drawsContent): |
|
19325 (WebCore::WebGLLayerChromium::ownsTexture): |
|
19326 (WebCore::WebGLLayerChromium::shaderProgramId): |
|
19327 (WebCore::WebGLLayerChromium::setShaderProgramId): |
|
19328 |
|
19329 2010-06-24 Pavel Feldman <pfeldman@chromium.org> |
|
19330 |
|
19331 Reviewed by Yury Semikhatsky. |
|
19332 |
|
19333 Web Inspector: Inspector cleanup + better DevTools alignment with Inspector. |
|
19334 |
|
19335 https://bugs.webkit.org/show_bug.cgi?id=41094 |
|
19336 |
|
19337 - Removed a bunch of unused methods from all over the place |
|
19338 - Added client callbacks for states surviving navigation |
|
19339 - Implemented more user-friendly stub for InspectorFrontendHost.platform |
|
19340 |
|
19341 * inspector/InspectorClient.h: |
|
19342 (WebCore::InspectorClient::resourceTrackingWasEnabled): |
|
19343 (WebCore::InspectorClient::resourceTrackingWasDisabled): |
|
19344 (WebCore::InspectorClient::timelineProfilerWasStarted): |
|
19345 (WebCore::InspectorClient::timelineProfilerWasStopped): |
|
19346 * inspector/InspectorController.cpp: |
|
19347 (WebCore::InspectorController::enableResourceTracking): |
|
19348 (WebCore::InspectorController::disableResourceTracking): |
|
19349 (WebCore::InspectorController::ensureSettingsLoaded): |
|
19350 (WebCore::InspectorController::startTimelineProfiler): |
|
19351 (WebCore::InspectorController::stopTimelineProfiler): |
|
19352 * inspector/InspectorFrontend.cpp: |
|
19353 * inspector/InspectorFrontend.h: |
|
19354 * inspector/front-end/InspectorBackendStub.js: |
|
19355 * inspector/front-end/InspectorFrontendHostStub.js: |
|
19356 (.WebInspector.InspectorFrontendHostStub.prototype.platform): |
|
19357 |
|
19358 2010-06-23 Alexey Proskuryakov <ap@apple.com> |
|
19359 |
|
19360 Reviewed by Darin Adler. |
|
19361 |
|
19362 https://bugs.webkit.org/show_bug.cgi?id=41099 |
|
19363 Assertion failure: !m_suspended when XMLHttpRequest fails |
|
19364 |
|
19365 This was a general problem with load failure timer not being deferred. |
|
19366 |
|
19367 Test: manual-tests/xhr-failure-behind-alert.html |
|
19368 |
|
19369 * manual-tests/xhr-failure-behind-alert.html: Added. |
|
19370 |
|
19371 * platform/network/ResourceHandle.cpp: |
|
19372 (WebCore::ResourceHandle::fireFailure): Added an empty case for NoFailure. Reset |
|
19373 m_scheduledFailureType to NoFailure when firing. |
|
19374 (WebCore::ResourceHandle::setDefersLoading): Stop failure timer when deferring, restart when |
|
19375 un-deferring loads. |
|
19376 |
|
19377 * platform/network/ResourceHandle.h: Renamed m_failureType to m_scheduledFailureType to |
|
19378 make it clear that it is only set when a timer is scheduled. |
|
19379 |
|
19380 * platform/network/ResourceHandleInternal.h: |
|
19381 (WebCore::ResourceHandleInternal::ResourceHandleInternal): Initialize m_scheduledFailureType |
|
19382 to NoFailure, so that we can look at it when un-deferring loads. |
|
19383 |
|
19384 * platform/network/android/ResourceHandleAndroid.cpp: |
|
19385 (WebCore::ResourceHandle::platformSetDefersLoading): |
|
19386 * platform/network/cf/ResourceHandleCFNet.cpp: |
|
19387 (WebCore::ResourceHandle::platformSetDefersLoading): |
|
19388 * platform/network/curl/ResourceHandleCurl.cpp: |
|
19389 (WebCore::ResourceHandle::platformSetDefersLoading): |
|
19390 * platform/network/mac/ResourceHandleMac.mm: |
|
19391 (WebCore::ResourceHandle::platformSetDefersLoading): |
|
19392 * platform/network/qt/ResourceHandleQt.cpp: |
|
19393 (WebCore::ResourceHandle::platformSetDefersLoading): |
|
19394 * platform/network/soup/ResourceHandleSoup.cpp: |
|
19395 Platform specific parts of setDefersLoading() are now in a separate function. |
|
19396 |
|
19397 2010-06-24 Pavel Feldman <pfeldman@chromium.org> |
|
19398 |
|
19399 Not reviewed: revert 61766. |
|
19400 |
|
19401 * inspector/InspectorClient.h: |
|
19402 * inspector/InspectorController.cpp: |
|
19403 (WebCore::InspectorController::enableResourceTracking): |
|
19404 (WebCore::InspectorController::disableResourceTracking): |
|
19405 (WebCore::InspectorController::ensureSettingsLoaded): |
|
19406 (WebCore::InspectorController::startTimelineProfiler): |
|
19407 (WebCore::InspectorController::stopTimelineProfiler): |
|
19408 * inspector/InspectorFrontend.cpp: |
|
19409 (WebCore::InspectorFrontend::setAttachedWindow): |
|
19410 * inspector/InspectorFrontend.h: |
|
19411 * inspector/front-end/InspectorBackendStub.js: |
|
19412 (.WebInspector.InspectorBackendStub.prototype.setAttachedWindowHeight): |
|
19413 * inspector/front-end/InspectorFrontendHostStub.js: |
|
19414 (.WebInspector.InspectorFrontendHostStub.prototype.platform): |
|
19415 |
|
19416 2010-06-23 Pavel Feldman <pfeldman@chromium.org> |
|
19417 |
|
19418 Reviewed by Yury Semikhatsky. |
|
19419 |
|
19420 Web Inspector: Inspector cleanup + better DevTools alignment with Inspector. |
|
19421 |
|
19422 https://bugs.webkit.org/show_bug.cgi?id=41094 |
|
19423 |
|
19424 - Removed a bunch of unused methods from all over the place |
|
19425 - Added client callbacks for states surviving navigation |
|
19426 - Implemented more user-friendly stub for InspectorFrontendHost.platform |
|
19427 |
|
19428 * inspector/InspectorClient.h: |
|
19429 (WebCore::InspectorClient::resourceTrackingWasEnabled): |
|
19430 (WebCore::InspectorClient::resourceTrackingWasDisabled): |
|
19431 (WebCore::InspectorClient::timelineProfilerWasStarted): |
|
19432 (WebCore::InspectorClient::timelineProfilerWasStopped): |
|
19433 * inspector/InspectorController.cpp: |
|
19434 (WebCore::InspectorController::enableResourceTracking): |
|
19435 (WebCore::InspectorController::disableResourceTracking): |
|
19436 (WebCore::InspectorController::ensureSettingsLoaded): |
|
19437 (WebCore::InspectorController::startTimelineProfiler): |
|
19438 (WebCore::InspectorController::stopTimelineProfiler): |
|
19439 * inspector/InspectorFrontend.cpp: |
|
19440 * inspector/InspectorFrontend.h: |
|
19441 * inspector/front-end/InspectorBackendStub.js: |
|
19442 * inspector/front-end/InspectorFrontendHostStub.js: |
|
19443 (.WebInspector.InspectorFrontendHostStub.prototype.platform): |
|
19444 |
|
19445 2010-06-24 Nikolas Zimmermann <nzimmermann@rim.com> |
|
19446 |
|
19447 Reviewed by Dirk Schulze. |
|
19448 |
|
19449 Inspector & SVG Text have problems, kids of RenderSVGText are not properly placed. |
|
19450 https://bugs.webkit.org/show_bug.cgi?id=41143 |
|
19451 |
|
19452 Simplify code path taken for SVG text in InspectorController, take the code path currently only used for RenderInline, |
|
19453 that just calls absoluteQuads(), and displays the result. Refactored code that all SVG renderers (except RenderSVGRoot) |
|
19454 take this code path -> highlighting now works as expected. |
|
19455 |
|
19456 Don't use absoluteClippedOverlowRect() in the various RenderSVG*::absoluteQuads() methods, as we're loosing floating-point precision. |
|
19457 Instead use localToAbsoluteQuad(strokeBoundingBox()) in order to highlight the unclipped, unfiltered, etc.. region that this renderer would paint. |
|
19458 |
|
19459 No new tests, as this is only manual testable - at least I didn't find any Inspector-Highlighting tests, if someone knows please mail me. |
|
19460 |
|
19461 * inspector/InspectorController.cpp: |
|
19462 (WebCore::drawHighlightForLineBoxesOrSVGRenderer): |
|
19463 (WebCore::InspectorController::drawNodeHighlight): |
|
19464 * rendering/RenderSVGBlock.cpp: |
|
19465 (WebCore::RenderSVGBlock::absoluteRects): ASSERT_NOT_REACHED() here. SVG should only be inspected through absoluteQuads(). |
|
19466 * rendering/RenderSVGBlock.h: Add absoluteRects() in this base class for RenderForeignObject/RenderSVGText. |
|
19467 * rendering/RenderSVGHiddenContainer.cpp: Remove absoluteRects() - RenderSVGModelObject already has it. |
|
19468 * rendering/RenderSVGHiddenContainer.h: Ditto. |
|
19469 * rendering/RenderSVGImage.cpp: |
|
19470 (WebCore::RenderSVGImage::absoluteRects): ASSERT_NOT_REACHED() here. |
|
19471 (WebCore::RenderSVGImage::absoluteQuads): Don't use absoluteClippedOverlowRect() but localToAbsoluteQuad(repaintRectInLocalCoordinates()). |
|
19472 * rendering/RenderSVGImage.h: |
|
19473 (WebCore::RenderSVGImage::objectBoundingBox): Inlined |
|
19474 * rendering/RenderSVGInline.cpp: |
|
19475 (WebCore::RenderSVGInline::absoluteQuads): Take RenderSVGText translation into account, allows inspecting <tspan>/<tref> etc. |
|
19476 * rendering/RenderSVGInline.h: |
|
19477 * rendering/RenderSVGModelObject.cpp: |
|
19478 (WebCore::RenderSVGModelObject::absoluteRects): ASSERT_NOT_REACHED() here. |
|
19479 (WebCore::RenderSVGModelObject::absoluteQuads): Don't use absoluteClippedOverlowRect() but localToAbsoluteQuad(repaintRectInLocalCoordinates()). |
|
19480 * rendering/RenderSVGModelObject.h: |
|
19481 * rendering/RenderSVGRoot.cpp: Fix typo in license s/aint/along. Need to touch this file in order to let Mac build. |
|
19482 * rendering/RenderSVGText.cpp: |
|
19483 (WebCore::RenderSVGText::mapLocalToContainer): Remove hack, which moved the transformState by x()/y(). Not needed anymore. |
|
19484 (WebCore::RenderSVGText::absoluteQuads): Proper implementation, respecting x/y translation. |
|
19485 * rendering/RenderSVGText.h: Reorder some functions. |
|
19486 * rendering/SVGRenderSupport.h: Removed last virtual function strokeBoundingBox(). |
|
19487 |
|
19488 2010-06-24 Kent Tamura <tkent@chromium.org> |
|
19489 |
|
19490 Unreviewed. Build fix for Tiger. |
|
19491 |
|
19492 * platform/mac/ThemeMac.mm: |
|
19493 (WebCore::setControlSize): |
|
19494 |
|
19495 2010-06-24 Kent Tamura <tkent@chromium.org> |
|
19496 |
|
19497 Unreviewed. Build fix for Tiger. |
|
19498 |
|
19499 * platform/mac/ThemeMac.mm: |
|
19500 (WebCore::setControlSize): |
|
19501 (WebCore::ThemeMac::inflateControlPaintRect): |
|
19502 |
|
19503 2010-06-24 Kent Tamura <tkent@chromium.org> |
|
19504 |
|
19505 Unreviewed. Build fix for Chromium Mac. |
|
19506 |
|
19507 * html/HTMLInputElement.cpp: |
|
19508 (WebCore::HTMLInputElement::isSpeechEnabled): |
|
19509 |
|
19510 2010-06-24 Simon Hausmann <simon.hausmann@nokia.com> |
|
19511 |
|
19512 Unreviewed Symbian build fix. |
|
19513 |
|
19514 The QML WebKit integration needs to be part of QtWebKit.sis |
|
19515 |
|
19516 * WebCore.pro: Deploy qmlwebkitplugin.dll. |
|
19517 |
|
19518 2010-06-24 Satish Sampath <satish@chromium.org> |
|
19519 |
|
19520 Reviewed by Kent Tamura. |
|
19521 |
|
19522 Add a speech button to input elements, no rendering or actions yet. |
|
19523 |
|
19524 Speech Input: Add a speech button to text input element (no rendering or actions yet) |
|
19525 https://bugs.webkit.org/show_bug.cgi?id=40925 |
|
19526 |
|
19527 No new tests. Will create a layout test in a subsequent patch. |
|
19528 |
|
19529 * css/CSSPrimitiveValueMappings.h: |
|
19530 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): |
|
19531 * css/CSSSelector.cpp: |
|
19532 (WebCore::CSSSelector::pseudoId): |
|
19533 (WebCore::nameToPseudoTypeMap): |
|
19534 (WebCore::CSSSelector::extractPseudoType): |
|
19535 * css/CSSSelector.h: |
|
19536 (WebCore::CSSSelector::): |
|
19537 * css/CSSValueKeywords.in: |
|
19538 * css/html.css: |
|
19539 (input::-webkit-input-speech-button): |
|
19540 * dom/InputElement.h: |
|
19541 * html/HTMLAttributeNames.in: |
|
19542 * html/HTMLInputElement.cpp: |
|
19543 (WebCore::HTMLInputElement::isSpeechEnabled): |
|
19544 * html/HTMLInputElement.h: |
|
19545 * platform/ThemeTypes.h: |
|
19546 (WebCore::): |
|
19547 * rendering/RenderTextControlSingleLine.cpp: |
|
19548 (WebCore::RenderTextControlSingleLine::nodeAtPoint): |
|
19549 (WebCore::RenderTextControlSingleLine::forwardEvent): |
|
19550 (WebCore::RenderTextControlSingleLine::styleDidChange): |
|
19551 (WebCore::RenderTextControlSingleLine::hasControlClip): |
|
19552 (WebCore::RenderTextControlSingleLine::controlClipRect): |
|
19553 (WebCore::RenderTextControlSingleLine::textBlockWidth): |
|
19554 (WebCore::RenderTextControlSingleLine::preferredContentWidth): |
|
19555 (WebCore::RenderTextControlSingleLine::adjustControlHeightBasedOnLineHeight): |
|
19556 (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded): |
|
19557 (WebCore::RenderTextControlSingleLine::createSpeechButtonStyle): |
|
19558 (WebCore::RenderTextControlSingleLine::clientPaddingRight): |
|
19559 * rendering/RenderTextControlSingleLine.h: |
|
19560 * rendering/RenderTheme.cpp: |
|
19561 (WebCore::RenderTheme::adjustStyle): |
|
19562 (WebCore::RenderTheme::paint): |
|
19563 (WebCore::RenderTheme::paintBorderOnly): |
|
19564 (WebCore::RenderTheme::paintDecorations): |
|
19565 * rendering/TextControlInnerElements.cpp: |
|
19566 (WebCore::InputFieldSpeechButtonElement::InputFieldSpeechButtonElement): |
|
19567 (WebCore::InputFieldSpeechButtonElement::create): |
|
19568 (WebCore::InputFieldSpeechButtonElement::defaultEventHandler): |
|
19569 * rendering/TextControlInnerElements.h: |
|
19570 * rendering/style/RenderStyleConstants.h: |
|
19571 (WebCore::): |
|
19572 |
|
19573 2010-06-24 Kent Tamura <tkent@chromium.org> |
|
19574 |
|
19575 Reviewed by Adam Barth. |
|
19576 |
|
19577 [Mac] The upper button of <input type=number> has no visual effect on click |
|
19578 https://bugs.webkit.org/show_bug.cgi?id=38380 |
|
19579 |
|
19580 Because we have no ways to draw an NSStepperCell with its up button |
|
19581 highlighted, use HIThemeDrawButton() instead. |
|
19582 |
|
19583 Test: platform/mac/fast/forms/input-appearance-spinbutton-up.html |
|
19584 |
|
19585 * platform/mac/ThemeMac.mm: |
|
19586 (WebCore::controlSizeFromPixelSize): |
|
19587 New function. Made from a part of setControlSize(). |
|
19588 (WebCore::setControlSize): |
|
19589 (WebCore::convertControlStatesToThemeDrawState): |
|
19590 (WebCore::paintStepper): Use HITheme API instead of NSStepperCell. |
|
19591 (WebCore::ThemeMac::inflateControlPaintRect): |
|
19592 Use controlSizeFromPixelSize(). |
|
19593 |
|
19594 2010-06-24 Yury Semikhatsky <yurys@chromium.org> |
|
19595 |
|
19596 Reviewed by Pavel Feldman. |
|
19597 |
|
19598 Web Inspector: implement layout tests for debugger |
|
19599 https://bugs.webkit.org/show_bug.cgi?id=40774 |
|
19600 |
|
19601 Test: inspector/debugger-pause-on-debugger-statement.html |
|
19602 |
|
19603 * bindings/js/ScriptDebugServer.cpp: remove unused obsolete code that deals with global listeners. |
|
19604 (WebCore::ScriptDebugServer::ScriptDebugServer): |
|
19605 (WebCore::ScriptDebugServer::removeListener): |
|
19606 (WebCore::ScriptDebugServer::dispatchFunctionToListeners): |
|
19607 (WebCore::ScriptDebugServer::pauseIfNeeded): |
|
19608 (WebCore::ScriptDebugServer::didAddListener): |
|
19609 (WebCore::ScriptDebugServer::didRemoveListener): |
|
19610 * bindings/js/ScriptDebugServer.h: |
|
19611 * platform/mac/EventLoopMac.mm: |
|
19612 (WebCore::EventLoop::cycle): wait at most 10ms for new event, otherwise layout tests would |
|
19613 hang because in their case there may be no events ever. |
|
19614 |
|
19615 2010-06-24 Andrey Kosyakov <caseq@chromium.org> |
|
19616 |
|
19617 Reviewed by Yury Semikhatsky. |
|
19618 |
|
19619 Fixed evaluation & logging of null values in console. |
|
19620 Changed handling of null and undefined in ScriptValue::toString() |
|
19621 to match JSC bindings (i.e. "null" and "undefined" instead of ""). |
|
19622 https://bugs.webkit.org/show_bug.cgi?id=40980 |
|
19623 |
|
19624 * bindings/v8/ScriptValue.cpp: |
|
19625 (WebCore::ScriptValue::toString): |
|
19626 * inspector/front-end/InjectedScript.js: |
|
19627 (injectedScriptConstructor): |
|
19628 |
|
19629 2010-06-24 Yury Semikhatsky <yurys@chromium.org> |
|
19630 |
|
19631 Reviewed by Pavel Feldman. |
|
19632 |
|
19633 Web Inspector: live edit doesn't work when resource tracking is off |
|
19634 https://bugs.webkit.org/show_bug.cgi?id=41076 |
|
19635 |
|
19636 * inspector/front-end/ScriptView.js: |
|
19637 (WebInspector.ScriptView.prototype._sourceIDForLine): implement this method for ScriptView, |
|
19638 it's needed for editLine to work. |
|
19639 |
|
19640 2010-06-23 Adam Barth <abarth@webkit.org> |
|
19641 |
|
19642 Reviewed by Eric Seidel. |
|
19643 |
|
19644 Sketch out InitialMode of HTML5 tree builder |
|
19645 https://bugs.webkit.org/show_bug.cgi?id=41126 |
|
19646 |
|
19647 Transliterated from the spec. Currently doesn't do anything. Mostly |
|
19648 an experiment to see where this goes. |
|
19649 |
|
19650 * html/HTMLTreeBuilder.cpp: |
|
19651 (WebCore::HTMLTreeBuilder::processToken): |
|
19652 (WebCore::HTMLTreeBuilder::insertDoctype): |
|
19653 (WebCore::HTMLTreeBuilder::insertComment): |
|
19654 * html/HTMLTreeBuilder.h: |
|
19655 |
|
19656 2010-06-23 Adam Barth <abarth@webkit.org> |
|
19657 |
|
19658 Reviewed by Eric Seidel. |
|
19659 |
|
19660 Add all the HTML5 tree builder insertion modes |
|
19661 https://bugs.webkit.org/show_bug.cgi?id=41124 |
|
19662 |
|
19663 These are just copied verbatim from the spec. No tests because these |
|
19664 don't do anything yet. |
|
19665 |
|
19666 * html/HTMLTreeBuilder.cpp: |
|
19667 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
19668 (WebCore::HTMLTreeBuilder::passTokenToLegacyParser): |
|
19669 * html/HTMLTreeBuilder.h: |
|
19670 (WebCore::HTMLTreeBuilder::): |
|
19671 |
|
19672 2010-06-23 Eric Seidel <eric@webkit.org> |
|
19673 |
|
19674 Unreviewed. Fix namespace indent. Just whitespace changes. |
|
19675 |
|
19676 * dom/DocumentParser.h: |
|
19677 (WebCore::DocumentParser::~DocumentParser): |
|
19678 (WebCore::DocumentParser::isExecutingScript): |
|
19679 (WebCore::DocumentParser::stopParsing): |
|
19680 (WebCore::DocumentParser::processingData): |
|
19681 (WebCore::DocumentParser::wantsRawData): |
|
19682 (WebCore::DocumentParser::writeRawData): |
|
19683 (WebCore::DocumentParser::wellFormed): |
|
19684 (WebCore::DocumentParser::lineNumber): |
|
19685 (WebCore::DocumentParser::columnNumber): |
|
19686 (WebCore::DocumentParser::executeScriptsWaitingForStylesheets): |
|
19687 (WebCore::DocumentParser::htmlTreeBuilder): |
|
19688 (WebCore::DocumentParser::asHTMLDocumentParser): |
|
19689 (WebCore::DocumentParser::inViewSourceMode): |
|
19690 (WebCore::DocumentParser::setInViewSourceMode): |
|
19691 (WebCore::DocumentParser::document): |
|
19692 (WebCore::DocumentParser::xssAuditor): |
|
19693 (WebCore::DocumentParser::setXSSAuditor): |
|
19694 (WebCore::DocumentParser::DocumentParser): |
|
19695 |
|
19696 2010-06-23 Eric Seidel <eric@webkit.org> |
|
19697 |
|
19698 Unreviewed. Speculative build fix for Qt. |
|
19699 |
|
19700 Move Document* down onto DocumentParser, since every DocumentParser needs one. |
|
19701 https://bugs.webkit.org/show_bug.cgi?id=41117 |
|
19702 |
|
19703 XMLDocumentParserQt is a huge pile of donkey barf. |
|
19704 I can't believe I ever r+'d the creation of this pile of |
|
19705 copy/paste code. |
|
19706 |
|
19707 I clearly missed removing m_doc from this code as well and thus |
|
19708 broke Qt. |
|
19709 |
|
19710 We really need to fix both XMLDocumentParserLibxml2 and |
|
19711 XMLDocumentParserQt not to be so poorly abstracted so |
|
19712 that if we're going to have two of them they can at least |
|
19713 share some code. |
|
19714 |
|
19715 * dom/XMLDocumentParserQt.cpp: |
|
19716 (WebCore::XMLDocumentParser::XMLDocumentParser): |
|
19717 (WebCore::XMLDocumentParser::~XMLDocumentParser): |
|
19718 (WebCore::XMLDocumentParser::doWrite): |
|
19719 (WebCore::XMLDocumentParser::doEnd): |
|
19720 (WebCore::XMLDocumentParser::parse): |
|
19721 (WebCore::XMLDocumentParser::startDocument): |
|
19722 (WebCore::XMLDocumentParser::parseStartElement): |
|
19723 (WebCore::XMLDocumentParser::parseEndElement): |
|
19724 (WebCore::XMLDocumentParser::parseProcessingInstruction): |
|
19725 (WebCore::XMLDocumentParser::parseCdata): |
|
19726 (WebCore::XMLDocumentParser::parseComment): |
|
19727 (WebCore::XMLDocumentParser::parseDtd): |
|
19728 |
|
19729 2010-06-23 Eric Seidel <eric@webkit.org> |
|
19730 |
|
19731 Reviewed by Adam Barth. |
|
19732 |
|
19733 Move Document* down onto DocumentParser, since every DocumentParser needs one. |
|
19734 https://bugs.webkit.org/show_bug.cgi?id=41117 |
|
19735 |
|
19736 This eliminated the need for document() on HTMLDocumentParser. |
|
19737 This paves the way for more code sharing between various |
|
19738 DocumentParser subclasses. |
|
19739 |
|
19740 * dom/DocumentParser.h: |
|
19741 (WebCore::DocumentParser::inViewSourceMode): |
|
19742 (WebCore::DocumentParser::setInViewSourceMode): |
|
19743 (WebCore::DocumentParser::document): |
|
19744 (WebCore::DocumentParser::DocumentParser): |
|
19745 * dom/XMLDocumentParser.cpp: |
|
19746 (WebCore::XMLDocumentParser::isWMLDocument): |
|
19747 (WebCore::XMLDocumentParser::pushCurrentNode): |
|
19748 (WebCore::XMLDocumentParser::popCurrentNode): |
|
19749 (WebCore::XMLDocumentParser::clearCurrentNodeStack): |
|
19750 (WebCore::XMLDocumentParser::enterText): |
|
19751 (WebCore::XMLDocumentParser::end): |
|
19752 (WebCore::XMLDocumentParser::insertErrorMessageBlock): |
|
19753 * dom/XMLDocumentParser.h: |
|
19754 * dom/XMLDocumentParserLibxml2.cpp: |
|
19755 (WebCore::XMLDocumentParser::XMLDocumentParser): |
|
19756 (WebCore::XMLDocumentParser::~XMLDocumentParser): |
|
19757 (WebCore::XMLDocumentParser::doWrite): |
|
19758 (WebCore::XMLDocumentParser::startElementNs): |
|
19759 (WebCore::XMLDocumentParser::endElementNs): |
|
19760 (WebCore::XMLDocumentParser::processingInstruction): |
|
19761 (WebCore::XMLDocumentParser::cdataBlock): |
|
19762 (WebCore::XMLDocumentParser::comment): |
|
19763 (WebCore::XMLDocumentParser::startDocument): |
|
19764 (WebCore::XMLDocumentParser::internalSubset): |
|
19765 (WebCore::XMLDocumentParser::initializeParserContext): |
|
19766 (WebCore::XMLDocumentParser::doEnd): |
|
19767 * html/HTMLDocumentParser.cpp: |
|
19768 (WebCore::HTMLDocumentParser::HTMLDocumentParser): |
|
19769 * html/HTMLDocumentParser.h: |
|
19770 * html/LegacyHTMLDocumentParser.cpp: |
|
19771 (WebCore::LegacyHTMLDocumentParser::LegacyHTMLDocumentParser): |
|
19772 (WebCore::LegacyHTMLDocumentParser::begin): |
|
19773 (WebCore::LegacyHTMLDocumentParser::scriptHandler): |
|
19774 (WebCore::LegacyHTMLDocumentParser::scriptExecution): |
|
19775 (WebCore::LegacyHTMLDocumentParser::parseTag): |
|
19776 (WebCore::LegacyHTMLDocumentParser::continueProcessing): |
|
19777 (WebCore::LegacyHTMLDocumentParser::willWriteHTML): |
|
19778 (WebCore::LegacyHTMLDocumentParser::didWriteHTML): |
|
19779 (WebCore::LegacyHTMLDocumentParser::write): |
|
19780 (WebCore::LegacyHTMLDocumentParser::stopParsing): |
|
19781 (WebCore::LegacyHTMLDocumentParser::timerFired): |
|
19782 (WebCore::LegacyHTMLDocumentParser::end): |
|
19783 (WebCore::LegacyHTMLDocumentParser::processToken): |
|
19784 (WebCore::LegacyHTMLDocumentParser::processDoctypeToken): |
|
19785 (WebCore::LegacyHTMLDocumentParser::executeScriptsWaitingForStylesheets): |
|
19786 (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsIfReady): |
|
19787 (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsTimerFired): |
|
19788 * html/LegacyHTMLDocumentParser.h: |
|
19789 * loader/ImageDocument.cpp: |
|
19790 (WebCore::ImageDocumentParser::ImageDocumentParser): |
|
19791 (WebCore::ImageDocumentParser::imageDocument): |
|
19792 (WebCore::ImageDocumentParser::write): |
|
19793 (WebCore::ImageDocumentParser::writeRawData): |
|
19794 (WebCore::ImageDocumentParser::finish): |
|
19795 (WebCore::ImageDocumentParser::finishWasCalled): |
|
19796 (WebCore::ImageDocumentParser::isWaitingForScripts): |
|
19797 (WebCore::ImageDocument::createParser): |
|
19798 * loader/MediaDocument.cpp: |
|
19799 (WebCore::MediaDocumentParser::MediaDocumentParser): |
|
19800 (WebCore::MediaDocumentParser::createDocumentStructure): |
|
19801 (WebCore::MediaDocumentParser::finish): |
|
19802 (WebCore::MediaDocumentParser::finishWasCalled): |
|
19803 * loader/PluginDocument.cpp: |
|
19804 (WebCore::PluginDocumentParser::PluginDocumentParser): |
|
19805 (WebCore::PluginDocumentParser::createDocumentStructure): |
|
19806 (WebCore::PluginDocumentParser::writeRawData): |
|
19807 (WebCore::PluginDocumentParser::finish): |
|
19808 (WebCore::PluginDocumentParser::finishWasCalled): |
|
19809 * loader/SinkDocument.cpp: |
|
19810 (WebCore::SinkDocumentParser::SinkDocumentParser): |
|
19811 * loader/TextDocument.cpp: |
|
19812 (WebCore::TextDocumentParser::TextDocumentParser): |
|
19813 (WebCore::TextDocumentParser::write): |
|
19814 (WebCore::TextDocumentParser::finish): |
|
19815 (WebCore::TextDocumentParser::finishWasCalled): |
|
19816 |
|
19817 2010-06-23 Eric Seidel <eric@webkit.org> |
|
19818 |
|
19819 Reviewed by Adam Barth. |
|
19820 |
|
19821 Start to clean up DocumentParser interface |
|
19822 https://bugs.webkit.org/show_bug.cgi?id=41114 |
|
19823 |
|
19824 The first of many cleanups needed to the DocumentParser |
|
19825 interface. Rename executingScript() to isExecutingScript() |
|
19826 and make it return a bool instead of an int. Also added a |
|
19827 FIXME to XMLDocumentParser about implementing it and did |
|
19828 some minor other cleanup to the XMLDocumentParser header. |
|
19829 |
|
19830 No functional change, thus no tests. |
|
19831 |
|
19832 * dom/Document.cpp: |
|
19833 (WebCore::Document::open): |
|
19834 * dom/DocumentParser.h: |
|
19835 (WebCore::DocumentParser::isExecutingScript): |
|
19836 * dom/XMLDocumentParser.h: |
|
19837 (WebCore::XMLDocumentParser::wellFormed): |
|
19838 * html/HTMLDocumentParser.cpp: |
|
19839 (WebCore::HTMLDocumentParser::attemptToEnd): |
|
19840 (WebCore::HTMLDocumentParser::endIfDelayed): |
|
19841 (WebCore::HTMLDocumentParser::isExecutingScript): |
|
19842 * html/HTMLDocumentParser.h: |
|
19843 * html/LegacyHTMLDocumentParser.h: |
|
19844 (WebCore::LegacyHTMLDocumentParser::isExecutingScript): |
|
19845 |
|
19846 2010-06-22 Maciej Stachowiak <mjs@apple.com> |
|
19847 |
|
19848 Reviewed by Simon Fraser. |
|
19849 |
|
19850 Implement IDL attribute for HTML5 hidden |
|
19851 https://bugs.webkit.org/show_bug.cgi?id=41039 |
|
19852 |
|
19853 Test: fast/html/hidden-attr-dom.html |
|
19854 |
|
19855 * html/HTMLElement.idl: Just add to the IDL file. [Reflect] takes |
|
19856 care of the rest. |
|
19857 |
|
19858 2010-06-23 Joanmarie Diggs <joanmarie.diggs@gmail.com> |
|
19859 |
|
19860 Reviewed by Chris Fleizach. |
|
19861 |
|
19862 [Gtk] nameFromChildren is obsolete |
|
19863 https://bugs.webkit.org/show_bug.cgi?id=36128 |
|
19864 |
|
19865 Look to the AtkText interface implemented by the objects in |
|
19866 question. |
|
19867 |
|
19868 Test: platform/gtk/accessibility/name-from-label.html |
|
19869 |
|
19870 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: |
|
19871 (webkit_accessible_get_name): |
|
19872 (webkit_accessible_table_get_column_description): |
|
19873 (webkit_accessible_table_get_row_description): |
|
19874 |
|
19875 2010-06-23 Kwang Yul Seo <skyul@company100.net> |
|
19876 |
|
19877 Reviewed by Kent Tamura. |
|
19878 |
|
19879 [BREWMP] Port FileSystem |
|
19880 https://bugs.webkit.org/show_bug.cgi?id=34323 |
|
19881 |
|
19882 Port FileSystem with IFileMgr interface. |
|
19883 |
|
19884 * platform/FileSystem.h: |
|
19885 * platform/brew/FileSystemBrew.cpp: Added. |
|
19886 (WebCore::getFileSize): |
|
19887 (WebCore::getFileModificationTime): |
|
19888 (WebCore::fileExists): |
|
19889 (WebCore::deleteFile): |
|
19890 (WebCore::deleteEmptyDirectory): |
|
19891 (WebCore::pathByAppendingComponent): |
|
19892 (WebCore::fileSystemRepresentation): |
|
19893 (WebCore::canonicalPath): |
|
19894 (WebCore::makeAllDirectories): |
|
19895 (WebCore::homeDirectoryPath): |
|
19896 (WebCore::pathGetFileName): |
|
19897 (WebCore::directoryName): |
|
19898 (WebCore::openTemporaryFile): |
|
19899 (WebCore::closeFile): |
|
19900 (WebCore::writeToFile): |
|
19901 (WebCore::unloadModule): |
|
19902 (WebCore::listDirectory): |
|
19903 |
|
19904 2010-06-23 Alexendar Pavlov <apavlov@chromium.org> |
|
19905 |
|
19906 Reviewed by David Hyatt. |
|
19907 |
|
19908 Swap checks in Position::isCandidate so that the less expensive |
|
19909 nodeIsUserSelectNode (node && node->renderer() && |
|
19910 node->renderer()->style()->userSelect() == SELECT_NONE) came first. |
|
19911 |
|
19912 (Was Web Inspector: Hangup when expanding elements with enormous |
|
19913 text node content in Elements panel). |
|
19914 |
|
19915 https://bugs.webkit.org/show_bug.cgi?id=35926 |
|
19916 |
|
19917 * dom/Position.cpp: |
|
19918 (WebCore::Position::isCandidate): |
|
19919 * dom/PositionIterator.cpp: |
|
19920 (WebCore::PositionIterator::isCandidate): |
|
19921 |
|
19922 2010-06-23 Kwang Yul Seo <skyul@company100.net> |
|
19923 |
|
19924 Reviewed by Kent Tamura. |
|
19925 |
|
19926 [BREWMP] Add PopupMenu implementation |
|
19927 https://bugs.webkit.org/show_bug.cgi?id=40226 |
|
19928 |
|
19929 Delegate PopupMenu handling to ChromeClientBrew. |
|
19930 |
|
19931 * page/brew/ChromeClientBrew.h: Added. |
|
19932 * platform/PopupMenu.h: |
|
19933 * platform/brew/PopupMenuBrew.cpp: Added. |
|
19934 (WebCore::PopupMenu::PopupMenu): |
|
19935 (WebCore::PopupMenu::~PopupMenu): |
|
19936 (WebCore::PopupMenu::show): |
|
19937 (WebCore::PopupMenu::hide): |
|
19938 (WebCore::PopupMenu::updateFromElement): |
|
19939 (WebCore::PopupMenu::itemWritingDirectionIsNatural): |
|
19940 |
|
19941 2010-06-23 Kenneth Russell <kbr@google.com> |
|
19942 |
|
19943 Reviewed by Dimitri Glazkov. |
|
19944 |
|
19945 Implement format conversions in texImage2D and texSubImage2D taking HTML data |
|
19946 https://bugs.webkit.org/show_bug.cgi?id=40319 |
|
19947 |
|
19948 Generalized code supporting premultiplication of alpha and |
|
19949 vertical flip to pack texture data into requested format and type. |
|
19950 Handled incoming image data of various formats, RGBA and BGRA in |
|
19951 particular, both to reduce the number of temporary copies during |
|
19952 texture upload and to support premultiplying alpha for the |
|
19953 texImage2D and texSubImage2D entry points taking ArrayBufferView |
|
19954 in a subsequent bug. Added test case exercising all combinations |
|
19955 of format/type combinations, premultiplication of alpha, and |
|
19956 Image/ImageData upload. (Incorporated pnglib.js under |
|
19957 fast/canvas/webgl/resources/ to be able to generate Image elements |
|
19958 programmatically.) Tested in Safari on Mac OS X and in Chromium on |
|
19959 Mac OS X, Windows and Linux. |
|
19960 |
|
19961 Test: fast/canvas/webgl/tex-image-with-format-and-type.html |
|
19962 |
|
19963 * html/canvas/WebGLRenderingContext.cpp: |
|
19964 (WebCore::WebGLRenderingContext::readPixels): |
|
19965 (WebCore::WebGLRenderingContext::texImage2DImpl): |
|
19966 (WebCore::WebGLRenderingContext::texImage2D): |
|
19967 (WebCore::WebGLRenderingContext::texSubImage2DImpl): |
|
19968 (WebCore::WebGLRenderingContext::texSubImage2D): |
|
19969 (WebCore::WebGLRenderingContext::validateTexFuncFormatAndType): |
|
19970 (WebCore::WebGLRenderingContext::validateTexFuncParameters): |
|
19971 * platform/graphics/GraphicsContext3D.cpp: |
|
19972 (WebCore::GraphicsContext3D::computeFormatAndTypeParameters): |
|
19973 (WebCore::GraphicsContext3D::extractImageData): |
|
19974 (WebCore::GraphicsContext3D::flipVertically): |
|
19975 (WebCore::doUnpackingAndPacking): |
|
19976 (WebCore::doPacking): |
|
19977 (WebCore::GraphicsContext3D::packPixels): |
|
19978 * platform/graphics/GraphicsContext3D.h: |
|
19979 (WebCore::GraphicsContext3D::): |
|
19980 * platform/graphics/cg/GraphicsContext3DCG.cpp: |
|
19981 (WebCore::GraphicsContext3D::getImageData): |
|
19982 * platform/graphics/mac/GraphicsContext3DMac.mm: |
|
19983 (WebCore::narrowInternalFormat): |
|
19984 (WebCore::GraphicsContext3D::texImage2D): |
|
19985 * platform/graphics/qt/GraphicsContext3DQt.cpp: |
|
19986 (WebCore::GraphicsContext3D::getImageData): |
|
19987 * platform/graphics/skia/GraphicsContext3DSkia.cpp: |
|
19988 (WebCore::GraphicsContext3D::getImageData): |
|
19989 |
|
19990 2010-06-23 Stephen White <senorblanco@chromium.org> |
|
19991 |
|
19992 Unreviewed; correcting bad patch. |
|
19993 |
|
19994 In my haste to land r61710, I mistakenly landed the wrong version, in |
|
19995 which a chunk of code was moved. This patch moves that chunk of code |
|
19996 to where it was in the patch that was reviewed. Mea culpa. |
|
19997 |
|
19998 * rendering/RenderBoxModelObject.cpp: |
|
19999 (WebCore::ImageQualityController::shouldPaintAtLowQuality): |
|
20000 |
|
20001 2010-06-23 Stephen White <senorblanco@chromium.org> |
|
20002 |
|
20003 Reviewed by David Hyatt. |
|
20004 |
|
20005 This is a tweak to the resize algorithm introduced in r61341, and |
|
20006 is a fix for the regression described in |
|
20007 https://bugs.webkit.org/show_bug.cgi?id=41036 |
|
20008 |
|
20009 The goal is to bring back the some of old behaviour, without regressing |
|
20010 too much of the performance gains in r61341. |
|
20011 |
|
20012 The old algorithm was: |
|
20013 - on first resize, draw in high quality and record the paint time |
|
20014 - if we've already drawn at this size, use the same quality as last time |
|
20015 - on subsequent resizes, if the resize occurs within X ms of the |
|
20016 previous one, draw at low quality and set a timer (one timer per |
|
20017 image). |
|
20018 - when each timer expires, draw that image at high quality |
|
20019 |
|
20020 The r61341 algorithm was: |
|
20021 - on first resize, draw the image in low quality, add it to a list of |
|
20022 resized images, and set a timer (one timer for all images) |
|
20023 - when the timer expires, redraw all resized images in high quality |
|
20024 |
|
20025 The new algorithm is: |
|
20026 - on first resize, if no other animated resizes are outstanding, draw in |
|
20027 high quality and set the timer (one timer for all images) |
|
20028 - if any images have been resized to two different sizes in the last |
|
20029 X ms, draw all resized images in low quality and kick the timer |
|
20030 forward |
|
20031 - when the timer expires, if any animated resizes occured, redraw all |
|
20032 resized images in high quality, and reset the flag |
|
20033 |
|
20034 This should cause GUIMark and the IE9 demos to have good performance |
|
20035 after the first frame, while other pages with only static resizes |
|
20036 should be unaffected. |
|
20037 |
|
20038 * rendering/RenderBoxModelObject.cpp: |
|
20039 Change the LastPaintTimeMap to a LastPaintSizeMap: we now record the |
|
20040 last size an image was resized to, rather than the time it was painted |
|
20041 (the time actually became redundant in r61341 when I added the |
|
20042 check for m_timer.isActive(): we only care if anything is resizing |
|
20043 while the timer is active). |
|
20044 (WebCore::ImageQualityController::ImageQualityController): |
|
20045 Add an initializer for the m_animatedResizeIsActive flag. |
|
20046 (WebCore::ImageQualityController::objectDestroyed): |
|
20047 Reset the m_animatedResizeIsActive flag if this was the last object |
|
20048 in the list. |
|
20049 (WebCore::ImageQualityController::highQualityRepaintTimerFired): |
|
20050 Only repaint all the images if there was an animated resize (otherwise, |
|
20051 everything is already high quality). |
|
20052 (WebCore::ImageQualityController::shouldPaintAtLowQuality): |
|
20053 Implement the above algorithm. |
|
20054 |
|
20055 2010-06-23 Abhishek Arya <inferno@chromium.org> |
|
20056 |
|
20057 Reviewed by Kenneth Rohde Christiansen. |
|
20058 |
|
20059 Bad cast after DOM mutation in RenderMenuList |
|
20060 https://bugs.webkit.org/show_bug.cgi?id=40828 |
|
20061 |
|
20062 Firing the onchange event on select which changes its size > 1 causes the select |
|
20063 object to change from a menulist to a listbox. However, when propogating the events, |
|
20064 we do a bad cast assuming the object will remain a menulist. Added proper checks to |
|
20065 make sure we check the renderer after the onchange is fired and propogate the event |
|
20066 based on correct object type. |
|
20067 |
|
20068 Test: fast/events/select-onchange-crash.html |
|
20069 |
|
20070 * dom/SelectElement.cpp: |
|
20071 (WebCore::SelectElement::setSelectedIndex): |
|
20072 |
|
20073 2010-06-23 Andy Estes <aestes@apple.com> |
|
20074 |
|
20075 Reviewed by Alexey Proskuryakov. |
|
20076 |
|
20077 <rdar://problem/8107855> Prevent a crash in WebCore when removing an |
|
20078 object element with an invalid data URL in in a listener to its |
|
20079 beforeload event. |
|
20080 https://bugs.webkit.org/show_bug.cgi?id=41054 |
|
20081 |
|
20082 Tests: fast/dom/beforeload/remove-bad-object-in-beforeload-listener.html |
|
20083 |
|
20084 * html/HTMLObjectElement.cpp: |
|
20085 (WebCore::HTMLObjectElement::renderFallbackContent): Exit early if the |
|
20086 object element is not in the document. |
|
20087 * rendering/RenderEmbeddedObject.cpp: |
|
20088 (WebCore::RenderEmbeddedObject::updateWidget): If RenderWidget::destroy() |
|
20089 was called during processing of onbeforeload, do not proceed with loading |
|
20090 the object. |
|
20091 |
|
20092 2010-06-23 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> |
|
20093 |
|
20094 Reviewed by Xan Lopez. |
|
20095 |
|
20096 [gtk] web fonts not loaded properly in scribd html5 reader |
|
20097 https://bugs.webkit.org/show_bug.cgi?id=38758 |
|
20098 |
|
20099 Drop filling the pattern with default values, because this |
|
20100 restricts the matching more than we want. |
|
20101 |
|
20102 * platform/graphics/cairo/FontCacheCairo.cpp: |
|
20103 (WebCore::FontCache::createFontPlatformData): |
|
20104 |
|
20105 2010-06-23 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> |
|
20106 |
|
20107 Reviewed by Xan Lopez. |
|
20108 |
|
20109 [gtk] web fonts not loaded properly in scribd html5 reader |
|
20110 https://bugs.webkit.org/show_bug.cgi?id=38758 |
|
20111 |
|
20112 Also special-case `sans' amd `mono', which are aliases commonly |
|
20113 used in GTK+ applications. |
|
20114 |
|
20115 * platform/graphics/cairo/FontCacheCairo.cpp: |
|
20116 (WebCore::isWellKnownFontName): |
|
20117 |
|
20118 2010-06-23 Justin Schuh <jschuh@chromium.org> |
|
20119 |
|
20120 Unreviewed, rolling out r61695. |
|
20121 http://trac.webkit.org/changeset/61695 |
|
20122 https://bugs.webkit.org/show_bug.cgi?id=40798 |
|
20123 |
|
20124 61695 broke all the Linux builds. |
|
20125 |
|
20126 * platform/image-decoders/png/PNGImageDecoder.cpp: |
|
20127 (WebCore::PNGImageDecoder::rowAvailable): |
|
20128 |
|
20129 2010-06-23 Kevin Ollivier <kevino@theolliviers.com> |
|
20130 |
|
20131 Reviewed by Darin Adler. |
|
20132 |
|
20133 Fix PluginViewNone.cpp compilation for ports that also compile PluginView.cpp |
|
20134 https://bugs.webkit.org/show_bug.cgi?id=37939 |
|
20135 |
|
20136 * plugins/PluginViewNone.cpp: |
|
20137 (WebCore::PluginView::handleFocusInEvent): |
|
20138 (WebCore::PluginView::handleFocusOutEvent): |
|
20139 (WebCore::PluginView::keepAlive): |
|
20140 (WebCore::PluginView::privateBrowsingStateChanged): |
|
20141 (WebCore::PluginView::setJavaScriptPaused): |
|
20142 |
|
20143 2010-06-23 Cris Neckar <cdn@chromium.org> |
|
20144 |
|
20145 Reviewed by Darin Fisher. |
|
20146 |
|
20147 [Chromium] Out of bounds write in WebCore::PNGImageDecoder::rowAvailable |
|
20148 https://bugs.webkit.org/show_bug.cgi?id=40798 |
|
20149 |
|
20150 Catches error in row callback for libPNG when extra rows are returned. |
|
20151 |
|
20152 Test: fast/images/png-extra-row-crash.html |
|
20153 |
|
20154 * platform/image-decoders/png/PNGImageDecoder.cpp: |
|
20155 (WebCore::PNGImageDecoder::rowAvailable): |
|
20156 |
|
20157 2010-06-23 James Robinson <jamesr@chromium.org> |
|
20158 |
|
20159 Reviewed by Dan Bernstein. |
|
20160 |
|
20161 Do not set needsLayout when the style attribute changes on an SVG element |
|
20162 https://bugs.webkit.org/show_bug.cgi?id=40366 |
|
20163 |
|
20164 SVGSVGElement::svgAttributeChanged was incorrectly calling renderer()->setNeedsLayout(true) |
|
20165 whenever the styleAttr changed on its element. This could happen during layout in some |
|
20166 circumstances due to lazy style attribute synchronization. When it did, it could cause the |
|
20167 layout flags to become inconsistent. See the test case for details. |
|
20168 |
|
20169 Changes to an element's style attribute always mark an element as needing layout anyway so |
|
20170 this call was redundant. |
|
20171 |
|
20172 Test: fast/repaint/svg-layout-root-style-attr-update.html |
|
20173 |
|
20174 * svg/SVGStyledElement.cpp: |
|
20175 (WebCore::SVGStyledElement::isKnownAttribute): |
|
20176 |
|
20177 2010-06-23 Simon Fraser <simon.fraser@apple.com> |
|
20178 |
|
20179 Reviewed by Dan Bernstein. |
|
20180 |
|
20181 r61215 broke Acid3 |
|
20182 https://bugs.webkit.org/show_bug.cgi?id=41034 |
|
20183 |
|
20184 The code added in r61215, which tests whether the root renderer will fill |
|
20185 the entire viewport, should not run for subframes. So bail from |
|
20186 RenderView::paintBoxDecorations() if document()->ownerElement() is not null. |
|
20187 The old code was trying to do this by checking 'elt', but that ends up as |
|
20188 null after the for loop above. |
|
20189 |
|
20190 We can also bail early if the is no FrameView(). |
|
20191 |
|
20192 Test: fast/frames/paint-iframe-background.html |
|
20193 |
|
20194 * rendering/RenderView.cpp: |
|
20195 (WebCore::RenderView::paintBoxDecorations): |
|
20196 |
|
20197 2010-06-23 Pavel Feldman <pfeldman@chromium.org> |
|
20198 |
|
20199 Reviewed by Yury Semikhatsky. |
|
20200 |
|
20201 Web Inspector: do not reset profiles panel on navigation. |
|
20202 |
|
20203 https://bugs.webkit.org/show_bug.cgi?id=41068 |
|
20204 |
|
20205 * inspector/InspectorController.cpp: |
|
20206 (WebCore::InspectorController::didCommitLoad): |
|
20207 * inspector/InspectorFrontend.cpp: |
|
20208 (WebCore::InspectorFrontend::resetProfilesPanel): |
|
20209 * inspector/InspectorFrontend.h: |
|
20210 * inspector/front-end/ProfilesPanel.js: |
|
20211 (WebInspector.ProfilesPanel): |
|
20212 (WebInspector.ProfilesPanel.prototype.populateInterface): |
|
20213 (WebInspector.ProfilesPanel.prototype.profilerWasDisabled): |
|
20214 (WebInspector.ProfilesPanel.prototype._reset): |
|
20215 (WebInspector.ProfilesPanel.prototype._clearProfiles): |
|
20216 * inspector/front-end/inspector.js: |
|
20217 (WebInspector.resetProfilesPanel): |
|
20218 |
|
20219 2010-06-23 Yury Semikhatsky <yurys@chromium.org> |
|
20220 |
|
20221 Reviewed by Pavel Feldman. |
|
20222 |
|
20223 Web Inspector: InspectorController should be added only once as ScriptDebugListener to |
|
20224 ScriptDebugServer. |
|
20225 https://bugs.webkit.org/show_bug.cgi?id=41070 |
|
20226 |
|
20227 * inspector/InspectorController.cpp: |
|
20228 (WebCore::InspectorController::connectFrontend): |
|
20229 (WebCore::InspectorController::disconnectFrontend): |
|
20230 (WebCore::InspectorController::enableDebuggerFromFrontend): |
|
20231 * inspector/front-end/ScriptsPanel.js: |
|
20232 (WebInspector.ScriptsPanel): don't call InspectorBackend.enableDebugger if debugger is always enabled, |
|
20233 InspectorController will do this on its side when the front end is connected. |
|
20234 |
|
20235 2010-06-23 Pavel Podivilov <podivilov@chromium.org> |
|
20236 |
|
20237 Reviewed by Yury Semikhatsky. |
|
20238 |
|
20239 Clear breakpoints before restoring them, not after. |
|
20240 https://bugs.webkit.org/show_bug.cgi?id=41071 |
|
20241 |
|
20242 * inspector/InspectorController.cpp: |
|
20243 (WebCore::InspectorController::enableDebuggerFromFrontend): |
|
20244 |
|
20245 2010-06-23 Benjamin Poulain <benjamin.poulain@nokia.com> |
|
20246 |
|
20247 Reviewed by Kenneth Rohde Christiansen. |
|
20248 |
|
20249 Do not render the full frame when there is some elements with fixed positioning |
|
20250 https://bugs.webkit.org/show_bug.cgi?id=33150 |
|
20251 |
|
20252 Do not render the full frame when there is some elements with fixed positioning |
|
20253 https://bugs.webkit.org/show_bug.cgi?id=33150 |
|
20254 |
|
20255 The frame view take into acount the list of fixed object when scrolling |
|
20256 the view. If the number of object is lower than a certain threshold, the pixel |
|
20257 are blitted, and the invalidated area updated. |
|
20258 |
|
20259 * page/FrameView.cpp: |
|
20260 (WebCore::FrameView::addFixedObject): |
|
20261 (WebCore::FrameView::removeFixedObject): |
|
20262 (WebCore::FrameView::scrollContentsFastPath): |
|
20263 * page/FrameView.h: |
|
20264 * platform/ScrollView.cpp: |
|
20265 (WebCore::ScrollView::scrollContents): |
|
20266 (WebCore::ScrollView::scrollContentsFastPath): |
|
20267 * platform/ScrollView.h: |
|
20268 * rendering/RenderLayer.cpp: |
|
20269 (WebCore::RenderLayer::repaintRectIncludingDescendants): |
|
20270 * rendering/RenderLayer.h: |
|
20271 * rendering/RenderObject.cpp: |
|
20272 (WebCore::RenderObject::styleWillChange): |
|
20273 |
|
20274 2010-06-23 Mikhail Naganov <mnaganov@chromium.org> |
|
20275 |
|
20276 Reviewed by Pavel Feldman. |
|
20277 |
|
20278 Web Inspector: Fix displaying of several CPU profiles with the same name. |
|
20279 |
|
20280 https://bugs.webkit.org/show_bug.cgi?id=40992 |
|
20281 |
|
20282 * inspector/front-end/ProfilesPanel.js: |
|
20283 (WebInspector.ProfileGroupSidebarTreeElement.prototype.onselect): |
|
20284 |
|
20285 2010-06-23 Adam Barth <abarth@webkit.org> |
|
20286 |
|
20287 Unreviewed. clean-header-guards that were made dirty by recent |
|
20288 renames. |
|
20289 |
|
20290 * html/HTMLDocumentParser.h: |
|
20291 * html/HTMLPreloadScanner.h: |
|
20292 * html/HTMLTokenizer.h: |
|
20293 * html/HTMLTreeBuilder.h: |
|
20294 * html/LegacyHTMLDocumentParser.h: |
|
20295 * html/LegacyHTMLTreeBuilder.h: |
|
20296 * html/LegacyPreloadScanner.h: |
|
20297 |
|
20298 2010-06-23 Adam Barth <abarth@webkit.org> |
|
20299 |
|
20300 Reviewed by Eric Seidel. |
|
20301 |
|
20302 Rename LegacyHTMLTreeConstructor to LegacyHTMLTreeBuilder |
|
20303 https://bugs.webkit.org/show_bug.cgi?id=41053 |
|
20304 |
|
20305 There was some debate about whether to call this class (and the |
|
20306 non-legacy version) "tree builder" or "tree constructor". Maciej |
|
20307 pointed out that other implementations (including Mozilla and HTML5Lib) |
|
20308 call it a tree builder. The path of least resistance seems to be call |
|
20309 it that for now. |
|
20310 |
|
20311 * Android.mk: |
|
20312 * CMakeLists.txt: |
|
20313 * GNUmakefile.am: |
|
20314 * WebCore.gypi: |
|
20315 * WebCore.pro: |
|
20316 * WebCore.vcproj/WebCore.vcproj: |
|
20317 * WebCore.xcodeproj/project.pbxproj: |
|
20318 * dom/Document.cpp: |
|
20319 * dom/DocumentParser.h: |
|
20320 (WebCore::DocumentParser::htmlTreeConstructor): |
|
20321 * html/HTMLDocumentParser.cpp: |
|
20322 (WebCore::HTMLDocumentParser::htmlTreeConstructor): |
|
20323 * html/HTMLDocumentParser.h: |
|
20324 * html/HTMLFormControlElement.cpp: |
|
20325 (WebCore::HTMLFormControlElement::removedFromTree): |
|
20326 * html/HTMLInputElement.cpp: |
|
20327 * html/HTMLMeterElement.cpp: |
|
20328 * html/HTMLProgressElement.cpp: |
|
20329 * html/HTMLTreeBuilder.cpp: |
|
20330 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
20331 * html/HTMLTreeBuilder.h: |
|
20332 (WebCore::HTMLTreeBuilder::legacyTreeConstructor): |
|
20333 * html/LegacyHTMLDocumentParser.cpp: |
|
20334 (WebCore::LegacyHTMLDocumentParser::LegacyHTMLDocumentParser): |
|
20335 * html/LegacyHTMLDocumentParser.h: |
|
20336 (WebCore::LegacyHTMLDocumentParser::htmlTreeConstructor): |
|
20337 * html/LegacyHTMLTreeBuilder.cpp: Copied from WebCore/html/LegacyHTMLTreeConstructor.cpp. |
|
20338 (WebCore::LegacyHTMLTreeBuilder::LegacyHTMLTreeBuilder): |
|
20339 (WebCore::LegacyHTMLTreeBuilder::~LegacyHTMLTreeBuilder): |
|
20340 (WebCore::LegacyHTMLTreeBuilder::reset): |
|
20341 (WebCore::LegacyHTMLTreeBuilder::setCurrent): |
|
20342 (WebCore::LegacyHTMLTreeBuilder::limitDepth): |
|
20343 (WebCore::LegacyHTMLTreeBuilder::insertNodeAfterLimitDepth): |
|
20344 (WebCore::LegacyHTMLTreeBuilder::parseToken): |
|
20345 (WebCore::LegacyHTMLTreeBuilder::parseDoctypeToken): |
|
20346 (WebCore::LegacyHTMLTreeBuilder::insertNode): |
|
20347 (WebCore::LegacyHTMLTreeBuilder::handleError): |
|
20348 (WebCore::LegacyHTMLTreeBuilder::textCreateErrorCheck): |
|
20349 (WebCore::LegacyHTMLTreeBuilder::commentCreateErrorCheck): |
|
20350 (WebCore::LegacyHTMLTreeBuilder::headCreateErrorCheck): |
|
20351 (WebCore::LegacyHTMLTreeBuilder::bodyCreateErrorCheck): |
|
20352 (WebCore::LegacyHTMLTreeBuilder::framesetCreateErrorCheck): |
|
20353 (WebCore::LegacyHTMLTreeBuilder::formCreateErrorCheck): |
|
20354 (WebCore::LegacyHTMLTreeBuilder::isindexCreateErrorCheck): |
|
20355 (WebCore::LegacyHTMLTreeBuilder::selectCreateErrorCheck): |
|
20356 (WebCore::LegacyHTMLTreeBuilder::ddCreateErrorCheck): |
|
20357 (WebCore::LegacyHTMLTreeBuilder::dtCreateErrorCheck): |
|
20358 (WebCore::LegacyHTMLTreeBuilder::rpCreateErrorCheck): |
|
20359 (WebCore::LegacyHTMLTreeBuilder::rtCreateErrorCheck): |
|
20360 (WebCore::LegacyHTMLTreeBuilder::nestedCreateErrorCheck): |
|
20361 (WebCore::LegacyHTMLTreeBuilder::nestedPCloserCreateErrorCheck): |
|
20362 (WebCore::LegacyHTMLTreeBuilder::nestedStyleCreateErrorCheck): |
|
20363 (WebCore::LegacyHTMLTreeBuilder::tableCellCreateErrorCheck): |
|
20364 (WebCore::LegacyHTMLTreeBuilder::tableSectionCreateErrorCheck): |
|
20365 (WebCore::LegacyHTMLTreeBuilder::noembedCreateErrorCheck): |
|
20366 (WebCore::LegacyHTMLTreeBuilder::noframesCreateErrorCheck): |
|
20367 (WebCore::LegacyHTMLTreeBuilder::noscriptCreateErrorCheck): |
|
20368 (WebCore::LegacyHTMLTreeBuilder::pCloserCreateErrorCheck): |
|
20369 (WebCore::LegacyHTMLTreeBuilder::pCloserStrictCreateErrorCheck): |
|
20370 (WebCore::LegacyHTMLTreeBuilder::mapCreateErrorCheck): |
|
20371 (WebCore::LegacyHTMLTreeBuilder::getNode): |
|
20372 (WebCore::LegacyHTMLTreeBuilder::allowNestedRedundantTag): |
|
20373 (WebCore::LegacyHTMLTreeBuilder::processCloseTag): |
|
20374 (WebCore::LegacyHTMLTreeBuilder::isHeadingTag): |
|
20375 (WebCore::LegacyHTMLTreeBuilder::isInline): |
|
20376 (WebCore::LegacyHTMLTreeBuilder::isResidualStyleTag): |
|
20377 (WebCore::LegacyHTMLTreeBuilder::isAffectedByResidualStyle): |
|
20378 (WebCore::LegacyHTMLTreeBuilder::handleResidualStyleCloseTagAcrossBlocks): |
|
20379 (WebCore::LegacyHTMLTreeBuilder::reopenResidualStyleTags): |
|
20380 (WebCore::LegacyHTMLTreeBuilder::pushBlock): |
|
20381 (WebCore::LegacyHTMLTreeBuilder::popBlock): |
|
20382 (WebCore::LegacyHTMLTreeBuilder::popOneBlockCommon): |
|
20383 (WebCore::LegacyHTMLTreeBuilder::popOneBlock): |
|
20384 (WebCore::LegacyHTMLTreeBuilder::moveOneBlockToStack): |
|
20385 (WebCore::LegacyHTMLTreeBuilder::checkIfHasPElementInScope): |
|
20386 (WebCore::LegacyHTMLTreeBuilder::popInlineBlocks): |
|
20387 (WebCore::LegacyHTMLTreeBuilder::freeBlock): |
|
20388 (WebCore::LegacyHTMLTreeBuilder::createHead): |
|
20389 (WebCore::LegacyHTMLTreeBuilder::handleIsindex): |
|
20390 (WebCore::LegacyHTMLTreeBuilder::startBody): |
|
20391 (WebCore::LegacyHTMLTreeBuilder::finished): |
|
20392 (WebCore::LegacyHTMLTreeBuilder::reportErrorToConsole): |
|
20393 * html/LegacyHTMLTreeBuilder.h: Copied from WebCore/html/LegacyHTMLTreeConstructor.h. |
|
20394 * html/LegacyHTMLTreeConstructor.cpp: Removed. |
|
20395 * html/LegacyHTMLTreeConstructor.h: Removed. |
|
20396 * html/StepRange.cpp: |
|
20397 * html/ValidityState.cpp: |
|
20398 * rendering/RenderSlider.cpp: |
|
20399 |
|
20400 2010-06-23 Adam Barth <abarth@webkit.org> |
|
20401 |
|
20402 Reviewed by Eric Seidel. |
|
20403 |
|
20404 Rename the preload scanners |
|
20405 https://bugs.webkit.org/show_bug.cgi?id=41052 |
|
20406 |
|
20407 Renames PreloadScanner to LegacyPreloadScanner because this code is now |
|
20408 off by default. Also, rename HTML5PreloadScanner to |
|
20409 HTMLPreloadScanner. We're not calling it PreloadScanner because we've |
|
20410 factored out the CSSPreloadScanner and the HTMLPreloadScanner from the |
|
20411 original PreloadScanner. |
|
20412 |
|
20413 * Android.mk: |
|
20414 * CMakeLists.txt: |
|
20415 * GNUmakefile.am: |
|
20416 * WebCore.gypi: |
|
20417 * WebCore.pro: |
|
20418 * WebCore.vcproj/WebCore.vcproj: |
|
20419 * WebCore.xcodeproj/project.pbxproj: |
|
20420 * html/HTML5PreloadScanner.cpp: Removed. |
|
20421 * html/HTML5PreloadScanner.h: Removed. |
|
20422 * html/HTMLDocumentParser.cpp: |
|
20423 (WebCore::HTMLDocumentParser::pumpTokenizer): |
|
20424 * html/HTMLDocumentParser.h: |
|
20425 * html/HTMLPreloadScanner.cpp: Copied from WebCore/html/HTML5PreloadScanner.cpp. |
|
20426 (WebCore::HTMLPreloadScanner::HTMLPreloadScanner): |
|
20427 (WebCore::HTMLPreloadScanner::appendToEnd): |
|
20428 (WebCore::HTMLPreloadScanner::scan): |
|
20429 (WebCore::HTMLPreloadScanner::processToken): |
|
20430 (WebCore::HTMLPreloadScanner::scanningBody): |
|
20431 * html/HTMLPreloadScanner.h: Copied from WebCore/html/HTML5PreloadScanner.h. |
|
20432 * html/LegacyHTMLDocumentParser.cpp: |
|
20433 (WebCore::LegacyHTMLDocumentParser::scriptHandler): |
|
20434 (WebCore::LegacyHTMLDocumentParser::scriptExecution): |
|
20435 * html/LegacyHTMLDocumentParser.h: |
|
20436 * html/LegacyPreloadScanner.cpp: Copied from WebCore/html/PreloadScanner.cpp. |
|
20437 (WebCore::LegacyPreloadScanner::LegacyPreloadScanner): |
|
20438 (WebCore::LegacyPreloadScanner::~LegacyPreloadScanner): |
|
20439 (WebCore::LegacyPreloadScanner::begin): |
|
20440 (WebCore::LegacyPreloadScanner::end): |
|
20441 (WebCore::LegacyPreloadScanner::reset): |
|
20442 (WebCore::LegacyPreloadScanner::scanningBody): |
|
20443 (WebCore::LegacyPreloadScanner::write): |
|
20444 (WebCore::LegacyPreloadScanner::clearLastCharacters): |
|
20445 (WebCore::LegacyPreloadScanner::rememberCharacter): |
|
20446 (WebCore::LegacyPreloadScanner::lastCharactersMatch): |
|
20447 (WebCore::LegacyPreloadScanner::consumeEntity): |
|
20448 (WebCore::LegacyPreloadScanner::tokenize): |
|
20449 (WebCore::LegacyPreloadScanner::processAttribute): |
|
20450 (WebCore::LegacyPreloadScanner::emitCharacter): |
|
20451 (WebCore::LegacyPreloadScanner::tokenizeCSS): |
|
20452 (WebCore::LegacyPreloadScanner::emitTag): |
|
20453 (WebCore::LegacyPreloadScanner::emitCSSRule): |
|
20454 * html/LegacyPreloadScanner.h: Copied from WebCore/html/PreloadScanner.h. |
|
20455 * html/PreloadScanner.cpp: Removed. |
|
20456 * html/PreloadScanner.h: Removed. |
|
20457 * page/XSSAuditor.cpp: |
|
20458 (WebCore::XSSAuditor::decodeHTMLEntities): |
|
20459 |
|
20460 2010-06-23 Adam Barth <abarth@webkit.org> |
|
20461 |
|
20462 Reviewed by Eric Seidel. |
|
20463 |
|
20464 Yet more HTML5 => HTML renames |
|
20465 https://bugs.webkit.org/show_bug.cgi?id=41051 |
|
20466 |
|
20467 This patch renames HTML5DocumentParser to HTMLDocumentParser and |
|
20468 HTML5TreeBuilder to HTMLTreeBuilder. There was some discussion about |
|
20469 whether to use the name HTMLTreeBuilder or HTMLTreeConstructor, but |
|
20470 tree builder seems to be the dominate name in other implementations. |
|
20471 |
|
20472 * Android.mk: |
|
20473 * CMakeLists.txt: |
|
20474 * GNUmakefile.am: |
|
20475 * WebCore.gypi: |
|
20476 * WebCore.pro: |
|
20477 * WebCore.vcproj/WebCore.vcproj: |
|
20478 * WebCore.xcodeproj/project.pbxproj: |
|
20479 * dom/DocumentFragment.cpp: |
|
20480 (WebCore::DocumentFragment::parseHTML): |
|
20481 * html/HTML5DocumentParser.cpp: Removed. |
|
20482 * html/HTML5DocumentParser.h: Removed. |
|
20483 * html/HTML5PreloadScanner.cpp: |
|
20484 (WebCore::HTML5PreloadScanner::scan): |
|
20485 (WebCore::HTML5PreloadScanner::processToken): |
|
20486 * html/HTML5TreeBuilder.cpp: Removed. |
|
20487 * html/HTML5TreeBuilder.h: Removed. |
|
20488 * html/HTMLDocument.cpp: |
|
20489 (WebCore::HTMLDocument::createParser): |
|
20490 * html/HTMLDocumentParser.cpp: Copied from WebCore/html/HTML5DocumentParser.cpp. |
|
20491 (WebCore::HTMLDocumentParser::HTMLDocumentParser): |
|
20492 (WebCore::HTMLDocumentParser::~HTMLDocumentParser): |
|
20493 (WebCore::HTMLDocumentParser::begin): |
|
20494 (WebCore::HTMLDocumentParser::stopParsing): |
|
20495 (WebCore::HTMLDocumentParser::processingData): |
|
20496 (WebCore::HTMLDocumentParser::pumpTokenizerIfPossible): |
|
20497 (WebCore::HTMLDocumentParser::isScheduledForResume): |
|
20498 (WebCore::HTMLDocumentParser::resumeParsingAfterYield): |
|
20499 (WebCore::HTMLDocumentParser::runScriptsForPausedTreeConstructor): |
|
20500 (WebCore::HTMLDocumentParser::pumpTokenizer): |
|
20501 (WebCore::HTMLDocumentParser::willPumpLexer): |
|
20502 (WebCore::HTMLDocumentParser::didPumpLexer): |
|
20503 (WebCore::HTMLDocumentParser::write): |
|
20504 (WebCore::HTMLDocumentParser::end): |
|
20505 (WebCore::HTMLDocumentParser::attemptToEnd): |
|
20506 (WebCore::HTMLDocumentParser::endIfDelayed): |
|
20507 (WebCore::HTMLDocumentParser::finish): |
|
20508 (WebCore::HTMLDocumentParser::finishWasCalled): |
|
20509 (WebCore::HTMLDocumentParser::executingScript): |
|
20510 (WebCore::HTMLDocumentParser::inScriptExecution): |
|
20511 (WebCore::HTMLDocumentParser::lineNumber): |
|
20512 (WebCore::HTMLDocumentParser::columnNumber): |
|
20513 (WebCore::HTMLDocumentParser::htmlTreeConstructor): |
|
20514 (WebCore::HTMLDocumentParser::isWaitingForScripts): |
|
20515 (WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution): |
|
20516 (WebCore::HTMLDocumentParser::watchForLoad): |
|
20517 (WebCore::HTMLDocumentParser::stopWatchingForLoad): |
|
20518 (WebCore::HTMLDocumentParser::shouldLoadExternalScriptFromSrc): |
|
20519 (WebCore::HTMLDocumentParser::notifyFinished): |
|
20520 (WebCore::HTMLDocumentParser::executeScriptsWaitingForStylesheets): |
|
20521 (WebCore::HTMLDocumentParser::script): |
|
20522 * html/HTMLDocumentParser.h: Copied from WebCore/html/HTML5DocumentParser.h. |
|
20523 * html/HTMLParserScheduler.cpp: |
|
20524 (WebCore::HTMLParserScheduler::HTMLParserScheduler): |
|
20525 * html/HTMLParserScheduler.h: |
|
20526 * html/HTMLTreeBuilder.cpp: Copied from WebCore/html/HTML5TreeBuilder.cpp. |
|
20527 (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): |
|
20528 (WebCore::HTMLTreeBuilder::~HTMLTreeBuilder): |
|
20529 (WebCore::HTMLTreeBuilder::handleScriptStartTag): |
|
20530 (WebCore::HTMLTreeBuilder::handleScriptEndTag): |
|
20531 (WebCore::HTMLTreeBuilder::takeScriptToProcess): |
|
20532 (WebCore::HTMLTreeBuilder::adjustedLexerState): |
|
20533 (WebCore::HTMLTreeBuilder::passTokenToLegacyParser): |
|
20534 (WebCore::HTMLTreeBuilder::constructTreeFromToken): |
|
20535 (WebCore::HTMLTreeBuilder::processToken): |
|
20536 (WebCore::HTMLTreeBuilder::finished): |
|
20537 (WebCore::HTMLTreeBuilder::isScriptingFlagEnabled): |
|
20538 * html/HTMLTreeBuilder.h: Copied from WebCore/html/HTML5TreeBuilder.h. |
|
20539 |
|
20540 2010-06-23 Adam Barth <abarth@webkit.org> |
|
20541 |
|
20542 Reviewed by Eric Seidel. |
|
20543 |
|
20544 More HTML5 => HTML renames |
|
20545 https://bugs.webkit.org/show_bug.cgi?id=41049 |
|
20546 |
|
20547 This patch renames HTML5ScriptRunner, HTML5ScriptRunnerHost, and |
|
20548 HTML5Token to remove the "5" from their names. These clases aren't |
|
20549 specific to HTML5 and will be used going forward. |
|
20550 |
|
20551 * Android.mk: |
|
20552 * CMakeLists.txt: |
|
20553 * GNUmakefile.am: |
|
20554 * WebCore.gypi: |
|
20555 * WebCore.pro: |
|
20556 * WebCore.vcproj/WebCore.vcproj: |
|
20557 * WebCore.xcodeproj/project.pbxproj: |
|
20558 * html/CSSPreloadScanner.cpp: |
|
20559 (WebCore::CSSPreloadScanner::scan): |
|
20560 * html/CSSPreloadScanner.h: |
|
20561 * html/HTML5DocumentParser.cpp: |
|
20562 (WebCore::HTML5DocumentParser::HTML5DocumentParser): |
|
20563 (WebCore::HTML5DocumentParser::notifyFinished): |
|
20564 * html/HTML5DocumentParser.h: |
|
20565 * html/HTML5PreloadScanner.cpp: |
|
20566 (WebCore::HTMLNames::PreloadTask::PreloadTask): |
|
20567 (WebCore::HTMLNames::PreloadTask::processAttributes): |
|
20568 (WebCore::HTML5PreloadScanner::processToken): |
|
20569 * html/HTML5PreloadScanner.h: |
|
20570 * html/HTML5ScriptRunner.cpp: Removed. |
|
20571 * html/HTML5ScriptRunner.h: Removed. |
|
20572 * html/HTML5ScriptRunnerHost.h: Removed. |
|
20573 * html/HTML5Token.h: Removed. |
|
20574 * html/HTML5TreeBuilder.cpp: |
|
20575 (WebCore::convertToOldStyle): |
|
20576 (WebCore::HTML5TreeBuilder::handleScriptEndTag): |
|
20577 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
20578 (WebCore::HTML5TreeBuilder::constructTreeFromToken): |
|
20579 (WebCore::HTML5TreeBuilder::processToken): |
|
20580 * html/HTML5TreeBuilder.h: |
|
20581 * html/HTMLScriptRunner.cpp: Copied from WebCore/html/HTML5ScriptRunner.cpp. |
|
20582 (WebCore::HTMLScriptRunner::HTMLScriptRunner): |
|
20583 (WebCore::HTMLScriptRunner::~HTMLScriptRunner): |
|
20584 (WebCore::HTMLScriptRunner::sourceFromPendingScript): |
|
20585 (WebCore::HTMLScriptRunner::isPendingScriptReady): |
|
20586 (WebCore::HTMLScriptRunner::executePendingScript): |
|
20587 (WebCore::HTMLScriptRunner::executeScript): |
|
20588 (WebCore::HTMLScriptRunner::hasScriptsWaitingForLoad): |
|
20589 (WebCore::HTMLScriptRunner::watchForLoad): |
|
20590 (WebCore::HTMLScriptRunner::stopWatchingForLoad): |
|
20591 (WebCore::HTMLScriptRunner::execute): |
|
20592 (WebCore::HTMLScriptRunner::haveParsingBlockingScript): |
|
20593 (WebCore::HTMLScriptRunner::executeParsingBlockingScripts): |
|
20594 (WebCore::HTMLScriptRunner::executeScriptsWaitingForLoad): |
|
20595 (WebCore::HTMLScriptRunner::executeScriptsWaitingForStylesheets): |
|
20596 (WebCore::HTMLScriptRunner::requestScript): |
|
20597 (WebCore::HTMLScriptRunner::runScript): |
|
20598 * html/HTMLScriptRunner.h: Copied from WebCore/html/HTML5ScriptRunner.h. |
|
20599 * html/HTMLScriptRunnerHost.h: Copied from WebCore/html/HTML5ScriptRunnerHost.h. |
|
20600 (WebCore::HTMLScriptRunnerHost::~HTMLScriptRunnerHost): |
|
20601 * html/HTMLToken.h: Copied from WebCore/html/HTML5Token.h. |
|
20602 (WebCore::HTMLToken::HTMLToken): |
|
20603 * html/HTMLTokenizer.cpp: |
|
20604 (WebCore::HTMLTokenizer::nextToken): |
|
20605 (WebCore::HTMLTokenizer::emitCharacter): |
|
20606 (WebCore::HTMLTokenizer::emitCurrentToken): |
|
20607 (WebCore::HTMLTokenizer::shouldEmitBufferedCharacterToken): |
|
20608 * html/HTMLTokenizer.h: |
|
20609 |
|
20610 2010-06-23 Adam Barth <abarth@webkit.org> |
|
20611 |
|
20612 Reviewed by Eric Seidel. |
|
20613 |
|
20614 Rename HTML5EntityParser to HTMLEntityParser |
|
20615 https://bugs.webkit.org/show_bug.cgi?id=41048 |
|
20616 |
|
20617 Mostly the result of do-webcore-rename, but I tweaked the header guard |
|
20618 and the name of the free function. |
|
20619 |
|
20620 * Android.mk: |
|
20621 * CMakeLists.txt: |
|
20622 * GNUmakefile.am: |
|
20623 * WebCore.gypi: |
|
20624 * WebCore.pro: |
|
20625 * WebCore.vcproj/WebCore.vcproj: |
|
20626 * WebCore.xcodeproj/project.pbxproj: |
|
20627 * html/HTML5EntityParser.cpp: Removed. |
|
20628 * html/HTML5EntityParser.h: Removed. |
|
20629 * html/HTMLEntityParser.cpp: Copied from WebCore/html/HTML5EntityParser.cpp. |
|
20630 (WebCore::consumeHTMLEntity): |
|
20631 * html/HTMLEntityParser.h: Copied from WebCore/html/HTML5EntityParser.h. |
|
20632 * html/HTMLTokenizer.cpp: |
|
20633 (WebCore::HTMLTokenizer::processEntity): |
|
20634 (WebCore::HTMLTokenizer::nextToken): |
|
20635 |
|
20636 2010-06-22 Yuta Kitamura <yutak@chromium.org> |
|
20637 |
|
20638 Reviewed by Alexey Proskuryakov. |
|
20639 |
|
20640 Add a new class that stores information about WebSocket handshake response. |
|
20641 |
|
20642 In the future, instances of the new class will be passed to the Web Inspector |
|
20643 so that it will be able to display information about WebSocket handshake |
|
20644 response. |
|
20645 |
|
20646 WebSocket: Add WebSocketHandshakeResponse |
|
20647 https://bugs.webkit.org/show_bug.cgi?id=38728 |
|
20648 |
|
20649 Test: websocket/tests/handshake-fail-by-no-cr.html |
|
20650 |
|
20651 * GNUmakefile.am: |
|
20652 * WebCore.gypi: |
|
20653 * WebCore.pro: |
|
20654 * WebCore.vcproj/WebCore.vcproj: |
|
20655 * WebCore.xcodeproj/project.pbxproj: |
|
20656 * websockets/WebSocketHandshake.cpp: |
|
20657 (WebCore::trimConsoleMessage): |
|
20658 (WebCore::WebSocketHandshake::readServerHandshake): |
|
20659 (WebCore::WebSocketHandshake::serverHandshakeResponse): |
|
20660 (WebCore::WebSocketHandshake::readStatusLine): Moved from extractResponseCode. |
|
20661 Add more error checks and make error messages more descriptive. |
|
20662 (WebCore::WebSocketHandshake::readHTTPHeaders): |
|
20663 (WebCore::WebSocketHandshake::processHeaders): |
|
20664 * websockets/WebSocketHandshake.h: |
|
20665 * websockets/WebSocketHandshakeResponse.cpp: Added. |
|
20666 (WebCore::WebSocketHandshakeResponse::ChallengeResponse::ChallengeResponse): |
|
20667 (WebCore::WebSocketHandshakeResponse::ChallengeResponse::set): |
|
20668 (WebCore::WebSocketHandshakeResponse::WebSocketHandshakeResponse): |
|
20669 (WebCore::WebSocketHandshakeResponse::~WebSocketHandshakeResponse): |
|
20670 (WebCore::WebSocketHandshakeResponse::statusCode): |
|
20671 (WebCore::WebSocketHandshakeResponse::setStatusCode): |
|
20672 (WebCore::WebSocketHandshakeResponse::statusText): |
|
20673 (WebCore::WebSocketHandshakeResponse::setStatusText): |
|
20674 (WebCore::WebSocketHandshakeResponse::headerFields): |
|
20675 (WebCore::WebSocketHandshakeResponse::addHeaderField): |
|
20676 (WebCore::WebSocketHandshakeResponse::clearHeaderFields): |
|
20677 (WebCore::WebSocketHandshakeResponse::challengeResponse): |
|
20678 (WebCore::WebSocketHandshakeResponse::setChallengeResponse): |
|
20679 * websockets/WebSocketHandshakeResponse.h: Added. |
|
20680 |
|
20681 2010-06-23 Yuzo Fujishima <yuzo@google.com> |
|
20682 |
|
20683 Reviewed by Shinichiro Hamaji. |
|
20684 |
|
20685 Implement page format data programming interface. |
|
20686 The final goal is to implement CSS Paged Media Module Level 3 (http://dev.w3.org/csswg/css3-page/). |
|
20687 To begin with, this change adds methods to know: |
|
20688 - if page box is visible, |
|
20689 - the page area rectangle, and |
|
20690 - preferred page size. |
|
20691 |
|
20692 https://bugs.webkit.org/show_bug.cgi?id=37538 |
|
20693 |
|
20694 Test: printing/page-format-data.html |
|
20695 |
|
20696 * WebCore.base.exp: |
|
20697 * css/CSSParser.cpp: |
|
20698 (WebCore::CSSParser::parseSizeParameter): |
|
20699 * css/CSSStyleSelector.cpp: |
|
20700 (WebCore::CSSStyleSelector::applyProperty): |
|
20701 (WebCore::CSSStyleSelector::applyPageSizeProperty): |
|
20702 (WebCore::CSSStyleSelector::pageSizeFromName): |
|
20703 (WebCore::CSSStyleSelector::mmLength): |
|
20704 (WebCore::CSSStyleSelector::inchLength): |
|
20705 * css/CSSStyleSelector.h: |
|
20706 * css/html.css: |
|
20707 (@page): |
|
20708 * dom/Document.cpp: |
|
20709 (WebCore::Document::isPageBoxVisible): |
|
20710 (WebCore::Document::pageAreaRectInPixels): |
|
20711 (WebCore::Document::preferredPageSizeInPixels): |
|
20712 * dom/Document.h: |
|
20713 * page/PrintContext.cpp: |
|
20714 (WebCore::PrintContext::isPageBoxVisible): |
|
20715 (WebCore::PrintContext::pageAreaRectInPixels): |
|
20716 (WebCore::PrintContext::preferredPageSizeInPixels): |
|
20717 * page/PrintContext.h: |
|
20718 * rendering/style/RenderStyle.h: |
|
20719 (WebCore::InheritedFlags::pageSize): |
|
20720 (WebCore::InheritedFlags::setPageSize): |
|
20721 * rendering/style/StyleRareNonInheritedData.h: |
|
20722 |
|
20723 2010-06-23 Adam Barth <abarth@webkit.org> |
|
20724 |
|
20725 Reviewed by Eric Seidel. |
|
20726 |
|
20727 Rename lexer and m_lexer to tokenizer and m_tokenizer, respectively |
|
20728 https://bugs.webkit.org/show_bug.cgi?id=41046 |
|
20729 |
|
20730 This is a follow up to the recent HTML5Lexer => HTMLTokenizer rename. |
|
20731 |
|
20732 * html/HTML5DocumentParser.cpp: |
|
20733 (WebCore::HTML5DocumentParser::HTML5DocumentParser): |
|
20734 (WebCore::HTML5DocumentParser::begin): |
|
20735 (WebCore::HTML5DocumentParser::pumpLexer): |
|
20736 (WebCore::HTML5DocumentParser::willPumpLexer): |
|
20737 (WebCore::HTML5DocumentParser::didPumpLexer): |
|
20738 (WebCore::HTML5DocumentParser::lineNumber): |
|
20739 (WebCore::HTML5DocumentParser::columnNumber): |
|
20740 * html/HTML5DocumentParser.h: |
|
20741 * html/HTML5PreloadScanner.cpp: |
|
20742 (WebCore::HTML5PreloadScanner::scan): |
|
20743 (WebCore::HTML5PreloadScanner::processToken): |
|
20744 * html/HTML5PreloadScanner.h: |
|
20745 * html/HTML5TreeBuilder.cpp: |
|
20746 (WebCore::HTML5TreeBuilder::HTML5TreeBuilder): |
|
20747 (WebCore::HTML5TreeBuilder::handleScriptStartTag): |
|
20748 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
20749 * html/HTML5TreeBuilder.h: |
|
20750 * html/HTMLTokenizer.h: |
|
20751 * html/LegacyHTMLDocumentParser.h: |
|
20752 |
|
20753 2010-06-23 Nikolas Zimmermann <nzimmermann@rim.com> |
|
20754 |
|
20755 Reviewed by Eric Seidel. |
|
20756 |
|
20757 Reproducible crash in com.apple.WebCore 0x01ed3784 WebCore::RenderLineBoxList::appendLineBox(WebCore::InlineFlowBox*) + 36 |
|
20758 https://bugs.webkit.org/show_bug.cgi?id=40953 |
|
20759 |
|
20760 REGRESSION (r58209-58231): Memory corruption with invalid SVG |
|
20761 https://bugs.webkit.org/show_bug.cgi?id=40173 |
|
20762 |
|
20763 Fix several crashes, all related to <foreignObject> and/or invalid SVG documents. |
|
20764 - Only allow <svg> nodes, as direct children of a <foreignObject>, not any other "partial" SVG content. |
|
20765 - Assure to create RenderSVGRoot objects for <svg> nodes in <foreignObject>, treat them as "outermost SVG elements". |
|
20766 - Never allow any partial SVG content to appear in any document. Only <svg> elements are allowed. |
|
20767 |
|
20768 Tests: svg/custom/bug45331.svg |
|
20769 svg/foreignObject/disallowed-svg-nodes-as-direct-children.svg |
|
20770 svg/foreignObject/no-crash-with-svg-content-in-html-document.svg |
|
20771 svg/foreignObject/svg-document-as-direct-child.svg |
|
20772 svg/foreignObject/svg-document-in-html-document.svg |
|
20773 svg/foreignObject/text-tref-02-b.svg |
|
20774 |
|
20775 * dom/Element.cpp: Added childShouldCreateRenderer, with ENABLE(SVG) guards. |
|
20776 (WebCore::Element::childShouldCreateRenderer): Only create a renderer for a SVG child, if we're a SVG element, or if the child is a <svg> element. |
|
20777 * dom/Element.h: Added childShouldCreateRenderer, with ENABLE(SVG) guards. |
|
20778 * svg/SVGForeignObjectElement.cpp: |
|
20779 (WebCore::SVGForeignObjectElement::childShouldCreateRenderer): Disallow arbitary SVG content, only <svg> elements are allowed as direct children of a <foreignObject> |
|
20780 * svg/SVGSVGElement.cpp: |
|
20781 (WebCore::SVGSVGElement::isOutermostSVG): Be sure to create RenderSVGRoot objects for <svg> elements inside <foreignObject> |
|
20782 |
|
20783 2010-06-22 Adam Barth <abarth@webkit.org> |
|
20784 |
|
20785 Reviewed by Eric Seidel. |
|
20786 |
|
20787 Rename HTML5Lexer to HTMLTokenizer |
|
20788 https://bugs.webkit.org/show_bug.cgi?id=41045 |
|
20789 |
|
20790 This might be slightly confusing given that the old class was called |
|
20791 HTMLTokenizer, but it matches the terminology in the HTML5 spec. |
|
20792 |
|
20793 * Android.mk: |
|
20794 * CMakeLists.txt: |
|
20795 * GNUmakefile.am: |
|
20796 * WebCore.gypi: |
|
20797 * WebCore.pro: |
|
20798 * WebCore.vcproj/WebCore.vcproj: |
|
20799 * WebCore.xcodeproj/project.pbxproj: |
|
20800 * html/HTML5DocumentParser.cpp: |
|
20801 (WebCore::HTML5DocumentParser::HTML5DocumentParser): |
|
20802 (WebCore::HTML5DocumentParser::pumpLexer): |
|
20803 * html/HTML5DocumentParser.h: |
|
20804 * html/HTML5Lexer.cpp: Removed. |
|
20805 * html/HTML5Lexer.h: Removed. |
|
20806 * html/HTML5PreloadScanner.cpp: |
|
20807 (WebCore::HTML5PreloadScanner::processToken): |
|
20808 * html/HTML5PreloadScanner.h: |
|
20809 * html/HTML5TreeBuilder.cpp: |
|
20810 (WebCore::HTML5TreeBuilder::HTML5TreeBuilder): |
|
20811 (WebCore::HTML5TreeBuilder::handleScriptStartTag): |
|
20812 (WebCore::HTML5TreeBuilder::adjustedLexerState): |
|
20813 * html/HTML5TreeBuilder.h: |
|
20814 * html/HTMLTokenizer.cpp: Copied from WebCore/html/HTML5Lexer.cpp. |
|
20815 (WebCore::HTMLNames::isEndTagBufferingState): |
|
20816 (WebCore::HTMLTokenizer::HTMLTokenizer): |
|
20817 (WebCore::HTMLTokenizer::~HTMLTokenizer): |
|
20818 (WebCore::HTMLTokenizer::reset): |
|
20819 (WebCore::HTMLTokenizer::processEntity): |
|
20820 (WebCore::HTMLTokenizer::nextToken): |
|
20821 (WebCore::HTMLTokenizer::temporaryBufferIs): |
|
20822 (WebCore::HTMLTokenizer::addToPossibleEndTag): |
|
20823 (WebCore::HTMLTokenizer::isAppropriateEndTag): |
|
20824 (WebCore::HTMLTokenizer::emitCharacter): |
|
20825 (WebCore::HTMLTokenizer::emitCodePoint): |
|
20826 (WebCore::HTMLTokenizer::emitParseError): |
|
20827 (WebCore::HTMLTokenizer::emitCurrentToken): |
|
20828 (WebCore::HTMLTokenizer::shouldEmitBufferedCharacterToken): |
|
20829 * html/HTMLTokenizer.h: Copied from WebCore/html/HTML5Lexer.h. |
|
20830 |
|
20831 2010-06-22 Simon Hausmann <simon.hausmann@nokia.com> |
|
20832 |
|
20833 Unreviewed Qt/Symbian build fix. |
|
20834 |
|
20835 Fix "make clean" to not try to execute clean commands for |
|
20836 the extra targets we use to simulate "make install". |
|
20837 |
|
20838 * WebCore.pro: Use no_clean in CONFIG of extra compilers. |
|
20839 |
|
20840 2010-06-22 Eric Seidel <eric@webkit.org> |
|
20841 |
|
20842 Reviewed by Adam Barth. |
|
20843 |
|
20844 Run clean-header-guards to fix some header guards |
|
20845 https://bugs.webkit.org/show_bug.cgi?id=41044 |
|
20846 |
|
20847 No functional changes, thus no tests. |
|
20848 |
|
20849 This entire change was generated by running |
|
20850 clean-header-guards, and then reverting changes |
|
20851 to files which shouldn't be changed. Those which |
|
20852 are left all should be updated. |
|
20853 |
|
20854 Some of these changes are just fixing 755 permissions |
|
20855 to be 644, since it seems various files have the wrong |
|
20856 execute bit which don't need it. clean-header-guards |
|
20857 made those (welcome) permission fixes unintentionally. |
|
20858 |
|
20859 * bindings/v8/custom/V8HTMLAudioElementConstructor.h: |
|
20860 * bindings/v8/custom/V8HTMLImageElementConstructor.h: |
|
20861 * bindings/v8/custom/V8HTMLOptionElementConstructor.h: |
|
20862 * dom/Touch.h: |
|
20863 * dom/TouchList.h: |
|
20864 * dom/XMLDocumentParser.h: |
|
20865 * dom/XMLDocumentParserScope.h: |
|
20866 * html/HTML5DocumentParser.h: |
|
20867 * html/LegacyHTMLTreeConstructor.h: |
|
20868 * loader/CrossOriginPreflightResultCache.h: |
|
20869 * page/OriginAccessEntry.h: |
|
20870 * page/win/FrameWin.h: |
|
20871 * platform/ThreadTimers.h: |
|
20872 * platform/chromium/KeyboardCodes.h: |
|
20873 * platform/graphics/chromium/FontPlatformDataChromiumWin.h: |
|
20874 * platform/graphics/chromium/FontUtilsChromiumWin.h: |
|
20875 * platform/graphics/filters/FEBlend.h: |
|
20876 * platform/graphics/filters/FEColorMatrix.h: |
|
20877 * platform/graphics/filters/FEComponentTransfer.h: |
|
20878 * platform/graphics/filters/FEComposite.h: |
|
20879 * platform/graphics/gstreamer/DataSourceGStreamer.h: |
|
20880 * platform/graphics/gstreamer/VideoSinkGStreamer.h: |
|
20881 - I checked, this crazy define was not referenced |
|
20882 anywhere else. It's safe to change the name. :) |
|
20883 * platform/graphics/haiku/FontPlatformData.h: |
|
20884 * platform/graphics/qt/FontCustomPlatformData.h: |
|
20885 * platform/graphics/skia/SkiaFontWin.h: |
|
20886 * platform/graphics/win/GraphicsLayerCACF.h: |
|
20887 * platform/graphics/win/QTMovieWinTimer.h: |
|
20888 * platform/graphics/win/RefCountedGDIHandle.h: |
|
20889 * platform/graphics/win/WebLayer.h: |
|
20890 * platform/graphics/win/WebTiledLayer.h: |
|
20891 * platform/graphics/wince/FontPlatformData.h: |
|
20892 * platform/graphics/wx/FontPlatformData.h: |
|
20893 * platform/network/CredentialStorage.h: |
|
20894 * platform/network/cf/FormDataStreamCFNet.h: |
|
20895 * platform/network/curl/FormDataStreamCurl.h: |
|
20896 * platform/network/qt/DnsPrefetchHelper.h: |
|
20897 * platform/network/qt/QNetworkReplyHandler.h: |
|
20898 * platform/win/PlatformScrollBar.h: |
|
20899 * plugins/PluginDatabase.h: |
|
20900 * plugins/PluginPackage.h: |
|
20901 * plugins/PluginStream.h: |
|
20902 * plugins/qt/PluginContainerQt.h: |
|
20903 * plugins/symbian/npinterface.h: |
|
20904 * rendering/RenderSelectionInfo.h: |
|
20905 * rendering/SVGRenderSupport.h: |
|
20906 * storage/IDBObjectStoreImpl.h: |
|
20907 * svg/animation/SMILTimeContainer.h: |
|
20908 * wml/WMLErrorHandling.h: |
|
20909 |
|
20910 2010-06-22 Adam Barth <abarth@webkit.org> |
|
20911 |
|
20912 Reviewed by Eric Seidel. |
|
20913 |
|
20914 Rename HTMLDocumentParser to LegacyHTMLDocumentParser |
|
20915 https://bugs.webkit.org/show_bug.cgi?id=41043 |
|
20916 |
|
20917 As requested by Darin Adler. |
|
20918 |
|
20919 * Android.mk: |
|
20920 * CMakeLists.txt: |
|
20921 * GNUmakefile.am: |
|
20922 * WebCore.gypi: |
|
20923 * WebCore.pro: |
|
20924 * WebCore.vcproj/WebCore.vcproj: |
|
20925 * WebCore.xcodeproj/project.pbxproj: |
|
20926 * css/CSSStyleSheet.cpp: |
|
20927 (WebCore::CSSStyleSheet::checkLoaded): |
|
20928 * dom/Document.cpp: |
|
20929 (WebCore::Document::write): |
|
20930 * dom/DocumentFragment.cpp: |
|
20931 * dom/DocumentParser.h: |
|
20932 (WebCore::DocumentParser::asHTMLDocumentParser): |
|
20933 * dom/XMLDocumentParserLibxml2.cpp: |
|
20934 * dom/XMLDocumentParserQt.cpp: |
|
20935 * html/HTML5Lexer.h: |
|
20936 (WebCore::HTML5Lexer::columnNumber): |
|
20937 * html/HTML5TreeBuilder.cpp: |
|
20938 * html/HTMLDocument.cpp: |
|
20939 (WebCore::HTMLDocument::createParser): |
|
20940 * html/HTMLDocumentParser.cpp: Removed. |
|
20941 * html/HTMLDocumentParser.h: Removed. |
|
20942 * html/HTMLFormControlElement.cpp: |
|
20943 * html/HTMLParserScheduler.cpp: |
|
20944 (WebCore::parserChunkSize): |
|
20945 * html/HTMLViewSourceDocument.cpp: |
|
20946 (WebCore::HTMLViewSourceDocument::createParser): |
|
20947 (WebCore::HTMLViewSourceDocument::addViewSourceToken): |
|
20948 * html/HTMLViewSourceDocument.h: |
|
20949 * html/LegacyHTMLDocumentParser.cpp: Copied from WebCore/html/HTMLDocumentParser.cpp. |
|
20950 (WebCore::LegacyHTMLDocumentParser::LegacyHTMLDocumentParser): |
|
20951 (WebCore::LegacyHTMLDocumentParser::reset): |
|
20952 (WebCore::LegacyHTMLDocumentParser::begin): |
|
20953 (WebCore::LegacyHTMLDocumentParser::setForceSynchronous): |
|
20954 (WebCore::LegacyHTMLDocumentParser::processListing): |
|
20955 (WebCore::LegacyHTMLDocumentParser::parseNonHTMLText): |
|
20956 (WebCore::LegacyHTMLDocumentParser::scriptHandler): |
|
20957 (WebCore::LegacyHTMLDocumentParser::scriptExecution): |
|
20958 (WebCore::LegacyHTMLDocumentParser::parseComment): |
|
20959 (WebCore::LegacyHTMLDocumentParser::parseServer): |
|
20960 (WebCore::LegacyHTMLDocumentParser::parseProcessingInstruction): |
|
20961 (WebCore::LegacyHTMLDocumentParser::parseText): |
|
20962 (WebCore::LegacyHTMLDocumentParser::parseEntity): |
|
20963 (WebCore::LegacyHTMLDocumentParser::parseDoctype): |
|
20964 (WebCore::LegacyHTMLDocumentParser::parseTag): |
|
20965 (WebCore::LegacyHTMLDocumentParser::continueProcessing): |
|
20966 (WebCore::LegacyHTMLDocumentParser::advance): |
|
20967 (WebCore::LegacyHTMLDocumentParser::willWriteHTML): |
|
20968 (WebCore::LegacyHTMLDocumentParser::didWriteHTML): |
|
20969 (WebCore::LegacyHTMLDocumentParser::write): |
|
20970 (WebCore::LegacyHTMLDocumentParser::stopParsing): |
|
20971 (WebCore::LegacyHTMLDocumentParser::processingData): |
|
20972 (WebCore::LegacyHTMLDocumentParser::timerFired): |
|
20973 (WebCore::LegacyHTMLDocumentParser::end): |
|
20974 (WebCore::LegacyHTMLDocumentParser::finish): |
|
20975 (WebCore::LegacyHTMLDocumentParser::finishWasCalled): |
|
20976 (WebCore::LegacyHTMLDocumentParser::processToken): |
|
20977 (WebCore::LegacyHTMLDocumentParser::processDoctypeToken): |
|
20978 (WebCore::LegacyHTMLDocumentParser::~LegacyHTMLDocumentParser): |
|
20979 (WebCore::LegacyHTMLDocumentParser::enlargeBuffer): |
|
20980 (WebCore::LegacyHTMLDocumentParser::enlargeScriptBuffer): |
|
20981 (WebCore::LegacyHTMLDocumentParser::executeScriptsWaitingForStylesheets): |
|
20982 (WebCore::LegacyHTMLDocumentParser::notifyFinished): |
|
20983 (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsIfReady): |
|
20984 (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsTimerFired): |
|
20985 (WebCore::LegacyHTMLDocumentParser::continueExecutingExternalScripts): |
|
20986 (WebCore::LegacyHTMLDocumentParser::isWaitingForScripts): |
|
20987 (WebCore::LegacyHTMLDocumentParser::setSrc): |
|
20988 (WebCore::parseLegacyHTMLDocumentFragment): |
|
20989 * html/LegacyHTMLDocumentParser.h: Copied from WebCore/html/HTMLDocumentParser.h. |
|
20990 (WebCore::LegacyHTMLDocumentParser::asHTMLDocumentParser): |
|
20991 * html/LegacyHTMLTreeConstructor.cpp: |
|
20992 (WebCore::LegacyHTMLTreeConstructor::reportErrorToConsole): |
|
20993 * html/LegacyHTMLTreeConstructor.h: |
|
20994 * loader/FTPDirectoryDocument.cpp: |
|
20995 (WebCore::FTPDirectoryDocumentParser::FTPDirectoryDocumentParser): |
|
20996 (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate): |
|
20997 (WebCore::FTPDirectoryDocumentParser::finish): |
|
20998 * page/XSSAuditor.h: |
|
20999 |
|
21000 2010-06-22 Shinichiro Hamaji <hamaji@chromium.org> |
|
21001 |
|
21002 Unreviewed attempt to fix the windows build. |
|
21003 |
|
21004 Split out HTML5DocumentParser yield/resume logic into a separate class |
|
21005 https://bugs.webkit.org/show_bug.cgi?id=41018 |
|
21006 |
|
21007 * WebCore.vcproj/WebCore.vcproj: |
|
21008 |
|
21009 2010-06-22 Eric Seidel <eric@webkit.org> |
|
21010 |
|
21011 Reviewed by Adam Barth. |
|
21012 |
|
21013 Split out HTML5DocumentParser yield/resume logic into a separate class |
|
21014 https://bugs.webkit.org/show_bug.cgi?id=41018 |
|
21015 |
|
21016 The HTML5DocumentParser is just the coordinator, and shouldn't have |
|
21017 any real parsing logic of his own. Continuing along that path, I'm |
|
21018 moving the when-to-yield/resume logic out into a separate class. |
|
21019 |
|
21020 I could have create a new HTMLParserSchedulerHost virtual interface |
|
21021 to allow the HTMLParserScheduler to talk back to the |
|
21022 HTML5DocumentParser, but instead I just exposed the one method it |
|
21023 needs (resumeParsing()) as a public method. Since no code besides |
|
21024 HTMLDocument (and DocumentFrament) ever should know about the |
|
21025 HTML5DocumentParser DocumentParser subclass, no class should ever |
|
21026 see the resumeParsing() method anyway. |
|
21027 |
|
21028 Most of this change is just moving code from HTML5DocumentParser |
|
21029 to the new HTMLParserScheduler. |
|
21030 |
|
21031 Some of this change is wrapping previous direct access to |
|
21032 m_continueNextChunkTimer.isActive() with isScheduledForResume(). |
|
21033 |
|
21034 * Android.mk: |
|
21035 * CMakeLists.txt: |
|
21036 * GNUmakefile.am: |
|
21037 * WebCore.gypi: |
|
21038 * WebCore.pro: |
|
21039 * WebCore.xcodeproj/project.pbxproj: |
|
21040 * html/HTML5DocumentParser.cpp: |
|
21041 (WebCore::HTML5DocumentParser::HTML5DocumentParser): |
|
21042 (WebCore::HTML5DocumentParser::stopParsing): |
|
21043 (WebCore::HTML5DocumentParser::processingData): |
|
21044 (WebCore::HTML5DocumentParser::pumpLexerIfPossible): |
|
21045 (WebCore::HTML5DocumentParser::isScheduledForResume): |
|
21046 (WebCore::HTML5DocumentParser::resumeParsing): |
|
21047 (WebCore::HTML5DocumentParser::pumpLexer): |
|
21048 (WebCore::HTML5DocumentParser::end): |
|
21049 (WebCore::HTML5DocumentParser::attemptToEnd): |
|
21050 (WebCore::HTML5DocumentParser::endIfDelayed): |
|
21051 * html/HTML5DocumentParser.h: |
|
21052 (WebCore::HTML5DocumentParser::document): |
|
21053 - Exposed for HTMLParserScheduler. |
|
21054 * html/HTMLParserScheduler.cpp: Added. |
|
21055 (WebCore::parserTimeLimit): Moved from HTML5DocumentParser. |
|
21056 (WebCore::parserChunkSize): ditto. |
|
21057 (WebCore::HTMLParserScheduler::HTMLParserScheduler): |
|
21058 (WebCore::HTMLParserScheduler::~HTMLParserScheduler): |
|
21059 (WebCore::isLayoutTimerActive): |
|
21060 (WebCore::HTMLParserScheduler::continueNextChunkTimerFired): |
|
21061 - Moved from HTML5DocumentParser. |
|
21062 * html/HTMLParserScheduler.h: Added. |
|
21063 (WebCore::HTMLParserScheduler::PumpSession::PumpSession): |
|
21064 - Moved from HTML5DocumentParser. |
|
21065 (WebCore::HTMLParserScheduler::shouldContinueParsing): |
|
21066 (WebCore::HTMLParserScheduler::isScheduledForResume): |
|
21067 |
|
21068 2010-06-22 Pavel Feldman <pfeldman@chromium.org> |
|
21069 |
|
21070 Reviewed by Yury Semikhatsky. |
|
21071 |
|
21072 Web Inspector: move nodeByPath from InjectedScript to InspectorBackend. |
|
21073 |
|
21074 https://bugs.webkit.org/show_bug.cgi?id=40988 |
|
21075 |
|
21076 * inspector/InjectedScriptHost.cpp: |
|
21077 * inspector/InjectedScriptHost.h: |
|
21078 * inspector/InjectedScriptHost.idl: |
|
21079 * inspector/InspectorBackend.cpp: |
|
21080 (WebCore::InspectorBackend::pushNodeByPathToFrontend): |
|
21081 * inspector/InspectorBackend.h: |
|
21082 * inspector/InspectorBackend.idl: |
|
21083 * inspector/InspectorDOMAgent.cpp: |
|
21084 (WebCore::InspectorDOMAgent::pushNodeByPathToFrontend): |
|
21085 (WebCore::InspectorDOMAgent::nodeForPath): |
|
21086 * inspector/InspectorDOMAgent.h: |
|
21087 * inspector/InspectorFrontend.cpp: |
|
21088 (WebCore::InspectorFrontend::didPushNodeByPathToFrontend): |
|
21089 * inspector/InspectorFrontend.h: |
|
21090 * inspector/front-end/DOMAgent.js: |
|
21091 * inspector/front-end/ElementsPanel.js: |
|
21092 (WebInspector.ElementsPanel.prototype.setDocument): |
|
21093 * inspector/front-end/InjectedScript.js: |
|
21094 * inspector/front-end/InjectedScriptAccess.js: |
|
21095 |
|
21096 2010-06-22 David Levin <levin@chromium.org> |
|
21097 |
|
21098 Reviewed by Alexey Proskuryakov. |
|
21099 |
|
21100 REGRESSION: (r47291): Upload progress events are not fired for simple cross-site XHR. |
|
21101 https://bugs.webkit.org/show_bug.cgi?id=39029 |
|
21102 |
|
21103 Specifically, WebKit should fire upload events if one or more event listeners are |
|
21104 registered on the XMLHttpRequestUpload object when send is called in an async manner. |
|
21105 |
|
21106 * xml/XMLHttpRequest.cpp: |
|
21107 (WebCore::XMLHttpRequest::createRequest): Allow upload events to be fired when there are |
|
21108 handlers for them in the cross-origin simple request case. |
|
21109 |
|
21110 2010-06-22 Kent Tamura <tkent@chromium.org> |
|
21111 |
|
21112 Reviewed by Adam Barth. |
|
21113 |
|
21114 Fix uninitialized SubframeLoader::m_containsPlugins |
|
21115 https://bugs.webkit.org/show_bug.cgi?id=41035 |
|
21116 |
|
21117 * loader/SubframeLoader.cpp: |
|
21118 (WebCore::SubframeLoader::SubframeLoader): |
|
21119 Initialize m_containsPlugins with false. |
|
21120 |
|
21121 2010-06-22 Kinuko Yasuda <kinuko@chromium.org> |
|
21122 |
|
21123 Reviewed by Adam Barth. |
|
21124 |
|
21125 Add BlobBuilder.idl to expose BlobBuilder interface |
|
21126 https://bugs.webkit.org/show_bug.cgi?id=40593 |
|
21127 |
|
21128 (Resubmitting with the correct file set.) |
|
21129 |
|
21130 BlobBuilder is defined in FileAPI's FileWriter spec. |
|
21131 (http://dev.w3.org/2009/dap/file-system/file-writer.html) |
|
21132 |
|
21133 Also removes the ENABLE_FILE_WRITER ifdef guard for BlobBuilder. |
|
21134 |
|
21135 Tests: http/tests/local/blob/send-data-blob.html |
|
21136 http/tests/local/blob/send-hybrid-blob.html |
|
21137 http/tests/local/blob/send-sliced-data-blob.html |
|
21138 |
|
21139 * Android.derived.jscbindings.mk: |
|
21140 * Android.derived.v8bindings.mk: |
|
21141 * CMakeLists.txt: |
|
21142 * DerivedSources.cpp: |
|
21143 * DerivedSources.make: |
|
21144 * GNUmakefile.am: |
|
21145 * WebCore.gypi: |
|
21146 * WebCore.pri: |
|
21147 * WebCore.pro: |
|
21148 * WebCore.vcproj/WebCore.vcproj: |
|
21149 * WebCore.xcodeproj/project.pbxproj: |
|
21150 * html/BlobBuilder.cpp: |
|
21151 (WebCore::BlobBuilder::append): |
|
21152 * html/BlobBuilder.h: |
|
21153 * html/BlobBuilder.idl: Added. |
|
21154 * page/DOMWindow.idl: |
|
21155 |
|
21156 2010-06-22 Kent Tamura <tkent@chromium.org> |
|
21157 |
|
21158 Unreviewed, build fix for r61648. |
|
21159 |
|
21160 * platform/graphics/GraphicsContext3D.h: |
|
21161 |
|
21162 2010-06-22 Vangelis Kokkevis <vangelis@chromium.org> |
|
21163 |
|
21164 Reviewed by Kent Tamura. |
|
21165 |
|
21166 Define GraphicsContext3D::platformLayer() for all remaining (non PLATFORM(MAC)) |
|
21167 ports to get RenderLayerBacking.cpp compiling again. |
|
21168 https://bugs.webkit.org/show_bug.cgi?id=41026 |
|
21169 |
|
21170 * platform/graphics/GraphicsContext3D.h: |
|
21171 (WebCore::GraphicsContext3D::platformLayer): |
|
21172 |
|
21173 2010-06-22 Eric Seidel <eric@webkit.org> |
|
21174 |
|
21175 Unreviewed. Rolling out http://trac.webkit.org/changeset/61638 |
|
21176 made a few tests crash. |
|
21177 |
|
21178 Make PendingScript hold a CachedResourceClient open for its lifetime |
|
21179 https://bugs.webkit.org/show_bug.cgi?id=40968 |
|
21180 |
|
21181 * html/HTML5DocumentParser.cpp: |
|
21182 (WebCore::HTML5DocumentParser::watchForLoad): |
|
21183 (WebCore::HTML5DocumentParser::notifyFinished): |
|
21184 * html/HTML5ScriptRunner.cpp: |
|
21185 (WebCore::HTML5ScriptRunner::~HTML5ScriptRunner): |
|
21186 (WebCore::HTML5ScriptRunner::sourceFromPendingScript): |
|
21187 (WebCore::HTML5ScriptRunner::isPendingScriptReady): |
|
21188 (WebCore::HTML5ScriptRunner::executePendingScript): |
|
21189 (WebCore::HTML5ScriptRunner::hasScriptsWaitingForLoad): |
|
21190 (WebCore::HTML5ScriptRunner::watchForLoad): |
|
21191 (WebCore::HTML5ScriptRunner::stopWatchingForLoad): |
|
21192 (WebCore::HTML5ScriptRunner::executeScriptsWaitingForLoad): |
|
21193 (WebCore::HTML5ScriptRunner::executeScriptsWaitingForStylesheets): |
|
21194 (WebCore::HTML5ScriptRunner::requestScript): |
|
21195 * html/HTML5ScriptRunner.h: |
|
21196 (WebCore::HTML5ScriptRunner::PendingScript::): |
|
21197 (WebCore::HTML5ScriptRunner::PendingScript::PendingScript): |
|
21198 (WebCore::HTML5ScriptRunner::PendingScript::watchingForLoad): |
|
21199 * html/HTML5ScriptRunnerHost.h: |
|
21200 |
|
21201 2010-06-22 Adele Peterson <adele@apple.com> |
|
21202 |
|
21203 Reviewed by Darin Adler. |
|
21204 |
|
21205 Fix for Crash when the renderer for the button in <input type="number"> goes away during event handling |
|
21206 https://bugs.webkit.org/show_bug.cgi?id=41013 |
|
21207 |
|
21208 Test: fast/forms/input-number-crash.html |
|
21209 |
|
21210 * rendering/TextControlInnerElements.cpp: (WebCore::SpinButtonElement::defaultEventHandler): |
|
21211 Nil check the RenderBox since its possible the renderer has gone away during event handling. |
|
21212 |
|
21213 2010-06-22 Tony Gentilcore <tonyg@chromium.org> |
|
21214 |
|
21215 Reviewed by Eric Seidel. |
|
21216 |
|
21217 Pull script line number from DocumentParser instead of pushing it to ScriptController |
|
21218 https://bugs.webkit.org/show_bug.cgi?id=40649 |
|
21219 |
|
21220 This approach is cleaner and improves WebCore/benchmarks/parser/html-parser.html by ~2%. |
|
21221 |
|
21222 Tests: fast/js/script-line-number.html |
|
21223 |
|
21224 * bindings/js/ScriptController.cpp: |
|
21225 (WebCore::ScriptController::ScriptController): |
|
21226 (WebCore::ScriptController::eventHandlerLineNumber): |
|
21227 * bindings/js/ScriptController.h: |
|
21228 * bindings/v8/ScriptController.cpp: |
|
21229 (WebCore::ScriptController::eventHandlerLineNumber): |
|
21230 (WebCore::ScriptController::eventHandlerColumnNumber): |
|
21231 * bindings/v8/ScriptController.h: |
|
21232 * bindings/v8/ScriptEventListener.cpp: |
|
21233 (WebCore::createAttributeEventListener): |
|
21234 * bindings/v8/V8Proxy.h: |
|
21235 * dom/XMLDocumentParserLibxml2.cpp: |
|
21236 (WebCore::XMLDocumentParser::startElementNs): |
|
21237 * html/HTML5DocumentParser.cpp: |
|
21238 (WebCore::HTML5DocumentParser::pumpLexer): |
|
21239 * html/HTMLDocumentParser.cpp: |
|
21240 (WebCore::HTMLDocumentParser::processToken): |
|
21241 |
|
21242 2010-06-22 Tony Gentilcore <tonyg@chromium.org> |
|
21243 |
|
21244 Reviewed by Eric Seidel. |
|
21245 |
|
21246 Make PendingScript hold a CachedResourceClient open for its lifetime |
|
21247 https://bugs.webkit.org/show_bug.cgi?id=40968 |
|
21248 |
|
21249 This replaces the mechanism introduced in r61374 with a simpler |
|
21250 approach from preventing unexpected purges; always keep a client open. |
|
21251 This will approach will allow deferred scripts to add a client after |
|
21252 the resource may have already been loaded without having to worry about |
|
21253 the buffer being purged in the meantime. |
|
21254 |
|
21255 No new tests because making a CachedResource purge itself is not |
|
21256 testable from a LayoutTest. |
|
21257 |
|
21258 * html/HTML5DocumentParser.cpp: |
|
21259 (WebCore::HTML5DocumentParser::watchForLoad): |
|
21260 (WebCore::HTML5DocumentParser::notifyFinished): |
|
21261 * html/HTML5ScriptRunner.cpp: |
|
21262 (WebCore::HTML5ScriptRunner::~HTML5ScriptRunner): |
|
21263 (WebCore::HTML5ScriptRunner::sourceFromPendingScript): |
|
21264 (WebCore::HTML5ScriptRunner::isPendingScriptReady): |
|
21265 (WebCore::HTML5ScriptRunner::executePendingScript): |
|
21266 (WebCore::HTML5ScriptRunner::watchForLoad): |
|
21267 (WebCore::HTML5ScriptRunner::stopWatchingForLoad): |
|
21268 (WebCore::HTML5ScriptRunner::executeScriptsWaitingForLoad): |
|
21269 (WebCore::HTML5ScriptRunner::executeScriptsWaitingForStylesheets): |
|
21270 (WebCore::HTML5ScriptRunner::requestScript): |
|
21271 * html/HTML5ScriptRunner.h: |
|
21272 (WebCore::HTML5ScriptRunner::PendingScript::PendingScript): |
|
21273 (WebCore::HTML5ScriptRunner::PendingScript::~PendingScript): |
|
21274 (WebCore::HTML5ScriptRunner::PendingScript::setCachedScript): |
|
21275 (WebCore::HTML5ScriptRunner::PendingScript::cachedScript): |
|
21276 (WebCore::HTML5ScriptRunner::PendingScript::notifyFinished): |
|
21277 * html/HTML5ScriptRunnerHost.h: |
|
21278 |
|
21279 2010-06-22 Eric Seidel <eric@webkit.org> |
|
21280 |
|
21281 Reviewed by Adam Barth. |
|
21282 |
|
21283 Fragment parsing needs to go through the HTML5 Parser code path |
|
21284 https://bugs.webkit.org/show_bug.cgi?id=40645 |
|
21285 |
|
21286 Added a new HTML5DocumentParser::parseHTMLDocumentFragment |
|
21287 codepath which optionally calls through to the old fragment |
|
21288 parsing path, now renamed parseLegacyHTMLDocumentFragment. |
|
21289 |
|
21290 * dom/Element.cpp: |
|
21291 (WebCore::Element::createContextualFragment): |
|
21292 - Use document()->createDocumentFragment() instead |
|
21293 of DocumentFragment::create() to match other callers |
|
21294 (and not depend on DocumentFragment.h). |
|
21295 - Update call to parseHTMLDocumentFragment to use the new |
|
21296 HTML5 parser codepath. |
|
21297 * dom/MappedAttributeEntry.h: |
|
21298 - Add a FIXME about this horrible enum placement. |
|
21299 Sadly this will cause a world-rebuild for everyone. |
|
21300 * html/HTML5DocumentParser.cpp: |
|
21301 (WebCore::HTML5DocumentParser::HTML5DocumentParser): |
|
21302 (WebCore::HTML5DocumentParser::runScriptsForPausedTreeConstructor): |
|
21303 - The main pumpLexer function has gotten to large. Move the script |
|
21304 running logic into this new function. |
|
21305 - Handle the case where we have no m_scriptRunner (fragment case). |
|
21306 (WebCore::HTML5DocumentParser::pumpLexer): |
|
21307 - Use new runScriptsForPausedTreeConstructor(). |
|
21308 (WebCore::HTML5DocumentParser::executingScript): |
|
21309 (WebCore::HTML5DocumentParser::inScriptExecution): |
|
21310 - New function to handle the case where m_scriptRunner is null. |
|
21311 (WebCore::HTML5DocumentParser::resumeParsingAfterScriptExecution): |
|
21312 - Use inScriptExecution() instead of m_scriptRunner->inScriptExecution(). |
|
21313 (WebCore::HTML5DocumentParser::executeScript): ditto. |
|
21314 (WebCore::HTML5DocumentParser::notifyFinished): ditto. |
|
21315 (WebCore::HTML5DocumentParser::executeScriptsWaitingForStylesheets): ditto. |
|
21316 (WebCore::shouldUseLegacyParser): |
|
21317 - Helper function to check the html5ParserEnabled() setting. |
|
21318 (WebCore::HTML5DocumentParser::parseHTMLDocumentFragment): |
|
21319 - Run HTML5DocumentParser in fragment mode, or optionally run |
|
21320 the legacy parser if !html5ParserEnabled(). |
|
21321 * html/HTML5DocumentParser.h: |
|
21322 * html/HTML5TreeBuilder.cpp: |
|
21323 (WebCore::HTML5TreeBuilder::HTML5TreeBuilder): |
|
21324 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
21325 - Implement the FragmentScriptingNotAllowed hack for platform/Pasteboard. |
|
21326 * html/HTML5TreeBuilder.h: |
|
21327 * html/HTMLDocumentParser.cpp: |
|
21328 (WebCore::parseLegacyHTMLDocumentFragment): |
|
21329 - Renamed from parseHTMLDocumentFragment |
|
21330 * html/HTMLDocumentParser.h: |
|
21331 * html/HTMLElement.cpp: |
|
21332 (WebCore::HTMLElement::insertAdjacentHTML): |
|
21333 - Call HTML5DocumentParser::parseHTMLDocumentFragment. |
|
21334 * platform/mac/PasteboardMac.mm: |
|
21335 (WebCore::Pasteboard::documentFragment): ditto. |
|
21336 * xml/XSLTProcessor.cpp: |
|
21337 (WebCore::createFragmentFromSource): ditto. |
|
21338 |
|
21339 2010-06-22 Chris Marrin <cmarrin@apple.com> |
|
21340 |
|
21341 Reviewed by Simon Fraser. |
|
21342 |
|
21343 https://bugs.webkit.org/show_bug.cgi?id=40643 |
|
21344 |
|
21345 Final phase of moving ownership of WebGLLayer to GraphicsContext3D. |
|
21346 As it turns out, I still have to have a separate CGLContextObj for |
|
21347 rendering because Core Animation composites in a separate thread, |
|
21348 so we need to disconnect WebGL rendering from CA compositing. But |
|
21349 this change is still worthwhile because it reduces dependencies |
|
21350 and makes it easier to port WebGL to other platforms. |
|
21351 |
|
21352 No new tests since this is just restructuring and the current tests |
|
21353 are all still valid and do a sufficient test of WebGL functionality. |
|
21354 |
|
21355 * platform/graphics/GraphicsContext3D.h: |
|
21356 (WebCore::GraphicsContext3D::platformLayer): |
|
21357 * platform/graphics/GraphicsLayer.h: |
|
21358 (WebCore::GraphicsLayer::setContentsToWebGL): |
|
21359 (WebCore::GraphicsLayer::setWebGLNeedsDisplay): |
|
21360 * platform/graphics/mac/GraphicsContext3DMac.mm: Add creation of WebGLLayer |
|
21361 (WebCore::GraphicsContext3D::GraphicsContext3D): |
|
21362 * platform/graphics/mac/GraphicsLayerCA.h: |
|
21363 (WebCore::GraphicsLayerCA::): |
|
21364 * platform/graphics/mac/GraphicsLayerCA.mm: Handle setting of WebGLLayer as content the same as for MediaLayer. Also changed WebGL related names for clarity |
|
21365 (WebCore::GraphicsLayerCA::GraphicsLayerCA): |
|
21366 (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): |
|
21367 (WebCore::GraphicsLayerCA::updateContentsWebGLLayer): |
|
21368 (WebCore::GraphicsLayerCA::setContentsToWebGL): |
|
21369 (WebCore::GraphicsLayerCA::setWebGLNeedsDisplay): |
|
21370 * platform/graphics/mac/WebGLLayer.h: |
|
21371 * platform/graphics/mac/WebGLLayer.mm: Got rid of storage for context and texture, now just store GraphicsContext3D and get them from there when needed |
|
21372 (-[WebGLLayer copyCGLPixelFormatForDisplayMask:]): |
|
21373 (-[WebGLLayer copyCGLContextForPixelFormat:]): |
|
21374 (-[WebGLLayer drawInCGLContext:pixelFormat:forLayerTime:displayTime:]): |
|
21375 (-[WebGLLayer copyImageSnapshotWithColorSpace:]): |
|
21376 * rendering/RenderLayerBacking.cpp: Changed init of WebGL contentsLayer to pass WebGLLayer rather than GraphicsContext3D |
|
21377 (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration): |
|
21378 (WebCore::RenderLayerBacking::rendererContentChanged): |
|
21379 |
|
21380 2010-06-22 Darin Adler <darin@apple.com> |
|
21381 |
|
21382 Reviewed by Dave Hyatt. |
|
21383 |
|
21384 * html/HTMLTableCellElement.cpp: |
|
21385 (WebCore::HTMLTableCellElement::parseMappedAttribute): Removed incorrect FIXME comments. |
|
21386 |
|
21387 2010-06-22 Dan Bernstein <mitz@apple.com> |
|
21388 |
|
21389 Reviewed by Anders Carlsson. |
|
21390 |
|
21391 <rdar://problem/8119403> REGRESSION (r61548): PLT is almost 1.5% slower, Google page cycler slower |
|
21392 https://bugs.webkit.org/show_bug.cgi?id=41012 |
|
21393 |
|
21394 * rendering/RenderBlockLineLayout.cpp: |
|
21395 (WebCore::RenderBlock::computeHorizontalPositionsForLine): Removed a redundant statement that was |
|
21396 left over in the original patch and resulted in double the calls to RenderText::width() here. |
|
21397 (WebCore::RenderBlock::findNextLineBreak): Changed the order of evaluating conditions for a |
|
21398 potential speedup. |
|
21399 |
|
21400 2010-06-22 Darin Adler <darin@apple.com> |
|
21401 |
|
21402 Reviewed by Alexey Proskuryakov. |
|
21403 |
|
21404 Alexey asked me to take out the autorelease pools because he believes |
|
21405 that there is no code that should be running using Objective-C |
|
21406 autorelease. Most likely, the code that is triggering these stderr |
|
21407 messages is incorrect, and that bug should be fixed instead. |
|
21408 |
|
21409 * workers/WorkerRunLoop.cpp: |
|
21410 (WebCore::WorkerRunLoop::run): Roll out use of AutodrainedPool. |
|
21411 |
|
21412 2010-06-22 Darin Adler <darin@apple.com> |
|
21413 |
|
21414 Reviewed by Brady Eidson. |
|
21415 |
|
21416 Fix autorelease problem seen when running worker regression tests. |
|
21417 We were seeing logs to stderr saying autorelease was used without |
|
21418 an autorelease pool being set up. |
|
21419 |
|
21420 * workers/WorkerRunLoop.cpp: |
|
21421 (WebCore::WorkerRunLoop::run): Use an AutodrainedPool as the file |
|
21422 thread, icon database, and database thread do. No effect on platforms |
|
21423 other than Mac. |
|
21424 |
|
21425 2010-06-22 Chris Fleizach <cfleizach@apple.com> |
|
21426 |
|
21427 Reviewed by Darin Adler. |
|
21428 |
|
21429 AX: If an element that is a continuation is removed, its parent tree is not notified appropriately that their children have changed |
|
21430 https://bugs.webkit.org/show_bug.cgi?id=41000 |
|
21431 |
|
21432 Test: accessibility/removed-continuation-element-causes-crash.html |
|
21433 |
|
21434 * accessibility/AccessibilityObject.h: |
|
21435 (WebCore::AccessibilityObject::updateChildrenIfNecessary): |
|
21436 * accessibility/AccessibilityRenderObject.cpp: |
|
21437 (WebCore::AccessibilityRenderObject::childrenChanged): |
|
21438 (WebCore::AccessibilityRenderObject::addChildren): |
|
21439 * accessibility/AccessibilityRenderObject.h: |
|
21440 |
|
21441 2010-06-22 Peter Kasting <pkasting@google.com> |
|
21442 |
|
21443 Reviewed by Adam Barth. |
|
21444 |
|
21445 Override setFailed() in each image decoder to clean up any temporary |
|
21446 objects. |
|
21447 https://bugs.webkit.org/show_bug.cgi?id=35411 |
|
21448 |
|
21449 In a few cases, we need to be careful to avoid deleting objects until |
|
21450 after they're no longer needed. These cases usually mean some jumping |
|
21451 through hoops, to the detriment of code simplicity. |
|
21452 |
|
21453 No layout tests because this does not change the visible output of |
|
21454 decoding in any way. |
|
21455 |
|
21456 * platform/image-decoders/ImageDecoder.h: |
|
21457 (WebCore::ImageDecoder::setData): |
|
21458 * platform/image-decoders/bmp/BMPImageDecoder.cpp: |
|
21459 (WebCore::BMPImageDecoder::setFailed): |
|
21460 (WebCore::BMPImageDecoder::decode): |
|
21461 * platform/image-decoders/bmp/BMPImageDecoder.h: |
|
21462 * platform/image-decoders/bmp/BMPImageReader.cpp: |
|
21463 (WebCore::BMPImageReader::decodeBMP): |
|
21464 (WebCore::BMPImageReader::readInfoHeaderSize): |
|
21465 (WebCore::BMPImageReader::processInfoHeader): |
|
21466 (WebCore::BMPImageReader::readInfoHeader): |
|
21467 (WebCore::BMPImageReader::processBitmasks): |
|
21468 (WebCore::BMPImageReader::processColorTable): |
|
21469 (WebCore::BMPImageReader::processRLEData): |
|
21470 (WebCore::BMPImageReader::processNonRLEData): |
|
21471 * platform/image-decoders/bmp/BMPImageReader.h: |
|
21472 (WebCore::BMPImageReader::): |
|
21473 * platform/image-decoders/gif/GIFImageDecoder.cpp: |
|
21474 (WebCore::GIFImageDecoder::setFailed): |
|
21475 (WebCore::GIFImageDecoder::decode): |
|
21476 * platform/image-decoders/gif/GIFImageDecoder.h: |
|
21477 * platform/image-decoders/ico/ICOImageDecoder.cpp: |
|
21478 (WebCore::ICOImageDecoder::setFailed): |
|
21479 (WebCore::ICOImageDecoder::decode): |
|
21480 * platform/image-decoders/ico/ICOImageDecoder.h: |
|
21481 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp: |
|
21482 (WebCore::JPEGImageReader::decode): |
|
21483 (WebCore::JPEGImageDecoder::setFailed): |
|
21484 (WebCore::JPEGImageDecoder::decode): |
|
21485 * platform/image-decoders/jpeg/JPEGImageDecoder.h: |
|
21486 * platform/image-decoders/png/PNGImageDecoder.cpp: |
|
21487 (WebCore::PNGImageReader::decode): |
|
21488 (WebCore::PNGImageDecoder::PNGImageDecoder): |
|
21489 (WebCore::PNGImageDecoder::setFailed): |
|
21490 (WebCore::PNGImageDecoder::headerAvailable): |
|
21491 (WebCore::PNGImageDecoder::decode): |
|
21492 * platform/image-decoders/png/PNGImageDecoder.h: |
|
21493 |
|
21494 2010-06-04 Dimitri Glazkov <dglazkov@chromium.org> |
|
21495 |
|
21496 Reviewed by Darin Adler. |
|
21497 |
|
21498 Remove side effects of form submission and prepare FormDataBuilder for splitting up. |
|
21499 https://bugs.webkit.org/show_bug.cgi?id=40184 |
|
21500 |
|
21501 Refactoring, covered by existing tests. |
|
21502 |
|
21503 * html/HTMLFormElement.cpp: |
|
21504 (WebCore::HTMLFormElement::prepareFormSubmission): |
|
21505 * Changed to use new accessors on FormDataBuilder; |
|
21506 * Simplified the logic around action URL; |
|
21507 * Removed form submission side effect of element's enctype property being updated when |
|
21508 submitting a mailto form; |
|
21509 * Removed unnecessary updating of action URL for mailto forms. |
|
21510 (WebCore::HTMLFormElement::submit): Moved action URL check into prepareFormSubmission. |
|
21511 (WebCore::HTMLFormElement::parseMappedAttribute): Updated to use new methods on FormDataBuilder. |
|
21512 * html/HTMLFormElement.h: Removed decls for isMailtoForm and dataEncoding methods; |
|
21513 moved m_target and m_url to FormDataBuilder. |
|
21514 * platform/network/FormData.cpp: |
|
21515 (WebCore::FormData::appendDOMFormData): Removed unnecessary instantiation of FormDataBuilder. |
|
21516 * platform/network/FormDataBuilder.cpp: |
|
21517 (WebCore::FormDataBuilder::parseAction): Moved from HTMLFormControl. |
|
21518 * platform/network/FormDataBuilder.h: |
|
21519 (WebCore::FormDataBuilder::action): Ditto. |
|
21520 (WebCore::FormDataBuilder::target): Ditto. |
|
21521 (WebCore::FormDataBuilder::setTarget): Ditto. |
|
21522 |
|
21523 2010-06-22 Yuta Kitamura <yutak@chromium.org> |
|
21524 |
|
21525 Reviewed by Alexey Proskuryakov. |
|
21526 |
|
21527 Fix WebSocketHandshakeRequest so that it fits the new handshake protocol. |
|
21528 |
|
21529 The new WebSocket specification (draft 76 and later) allows a browser to |
|
21530 send header fields in arbitrary order. Thus we can use a HTTPHeaderMap to |
|
21531 store header fields instead of Vector of pairs of a field name and |
|
21532 a field value. |
|
21533 |
|
21534 This patch also does refactoring of WebSocketHandshakeRequest class |
|
21535 to make it simpler and easier to use. |
|
21536 |
|
21537 Fix WebSocketHandshakeRequest so that it fits the new handshake protocol |
|
21538 https://bugs.webkit.org/show_bug.cgi?id=39864 |
|
21539 |
|
21540 No new tests, because there is no functional change. |
|
21541 |
|
21542 * websockets/WebSocketHandshake.cpp: |
|
21543 (WebCore::WebSocketHandshake::clientHandshakeRequest): |
|
21544 * websockets/WebSocketHandshakeRequest.cpp: |
|
21545 (WebCore::WebSocketHandshakeRequest::Key3::Key3): |
|
21546 (WebCore::WebSocketHandshakeRequest::Key3::set): |
|
21547 (WebCore::WebSocketHandshakeRequest::WebSocketHandshakeRequest): |
|
21548 (WebCore::WebSocketHandshakeRequest::requestMethod): |
|
21549 (WebCore::WebSocketHandshakeRequest::url): |
|
21550 (WebCore::WebSocketHandshakeRequest::addHeaderField): |
|
21551 (WebCore::WebSocketHandshakeRequest::headerFields): |
|
21552 (WebCore::WebSocketHandshakeRequest::key3): |
|
21553 (WebCore::WebSocketHandshakeRequest::setKey3): |
|
21554 * websockets/WebSocketHandshakeRequest.h: |
|
21555 |
|
21556 2010-06-20 MORITA Hajime <morrita@google.com> |
|
21557 |
|
21558 Reviewed by Kent Tamura. |
|
21559 |
|
21560 <meter> should be yellow when min < value < low < optimum |
|
21561 https://bugs.webkit.org/show_bug.cgi?id=40824 |
|
21562 |
|
21563 Fixed a wrong conditional on HTMLMeterElement::gaugeRegion(). |
|
21564 |
|
21565 * html/HTMLMeterElement.cpp: |
|
21566 (WebCore::HTMLMeterElement::gaugeRegion): |
|
21567 |
|
21568 Tests: fast/dom/HTMLMeterElement/meter-appearances-capacity.html |
|
21569 fast/dom/HTMLMeterElement/meter-optimums.html |
|
21570 |
|
21571 2010-06-22 Adam Barth <abarth@webkit.org> |
|
21572 |
|
21573 Reviewed by Eric Seidel. |
|
21574 |
|
21575 Follow the HTML5 spec more closely w.r.t. when to save the insertion point |
|
21576 https://bugs.webkit.org/show_bug.cgi?id=40976 |
|
21577 |
|
21578 The spec always increments the nesting level and saves the insertion |
|
21579 point at the same time. In this patch, we now do those operations |
|
21580 packaged as a RAII. |
|
21581 |
|
21582 As a side effect, the test case below no longer ASSERTs. (The output |
|
21583 is wrong, but we'll get to that next.) |
|
21584 |
|
21585 Test: fast/tokenizer/write-on-load.html |
|
21586 |
|
21587 * html/HTML5ScriptRunner.cpp: |
|
21588 (WebCore::NestScript::NestScript): |
|
21589 (WebCore::NestScript::~NestScript): |
|
21590 (WebCore::HTML5ScriptRunner::executePendingScript): |
|
21591 (WebCore::HTML5ScriptRunner::executeScript): |
|
21592 (WebCore::HTML5ScriptRunner::requestScript): |
|
21593 (WebCore::HTML5ScriptRunner::runScript): |
|
21594 * html/HTMLInputStream.h: |
|
21595 |
|
21596 2010-06-22 Adam Barth <abarth@webkit.org> |
|
21597 |
|
21598 Reviewed by Eric Seidel. |
|
21599 |
|
21600 Expose HTMLInputStream to ScriptRunner so that ScriptRunner can save the insertion point itself |
|
21601 https://bugs.webkit.org/show_bug.cgi?id=40975 |
|
21602 |
|
21603 This saves us having to call back into the HTML5DocumentParser each |
|
21604 time we need to save the insertion point. This prepares us for another |
|
21605 place we need to save the insertion point. |
|
21606 |
|
21607 * html/HTML5DocumentParser.cpp: |
|
21608 * html/HTML5DocumentParser.h: |
|
21609 (WebCore::HTML5DocumentParser::inputStream): |
|
21610 * html/HTML5ScriptRunner.cpp: |
|
21611 (WebCore::HTML5ScriptRunner::executeScript): |
|
21612 (WebCore::HTML5ScriptRunner::requestScript): |
|
21613 * html/HTML5ScriptRunnerHost.h: |
|
21614 |
|
21615 2010-06-22 Adam Barth <abarth@webkit.org> |
|
21616 |
|
21617 Reviewed by Eric Seidel. |
|
21618 |
|
21619 Move HTMLInputStream to its own file |
|
21620 https://bugs.webkit.org/show_bug.cgi?id=40974 |
|
21621 |
|
21622 No new tests, just code motion. |
|
21623 |
|
21624 * GNUmakefile.am: |
|
21625 * WebCore.gypi: |
|
21626 * WebCore.vcproj/WebCore.vcproj: |
|
21627 * WebCore.xcodeproj/project.pbxproj: |
|
21628 * html/HTML5DocumentParser.h: |
|
21629 |
|
21630 2010-06-21 Adam Barth <abarth@webkit.org> |
|
21631 |
|
21632 Reviewed by Eric Seidel. |
|
21633 |
|
21634 Save the insertion point before beforeload events |
|
21635 https://bugs.webkit.org/show_bug.cgi?id=40973 |
|
21636 |
|
21637 We need to save the insertion point before dispatching the beforeload |
|
21638 event in case someone decides to document.write during beforeload. |
|
21639 Prior to this patch, such writes would pump the lexer too much and |
|
21640 tokenize the rest of the document before executing the script. |
|
21641 |
|
21642 * html/HTML5DocumentParser.cpp: |
|
21643 (WebCore::HTML5DocumentParser::dispatchBeforeLoad): |
|
21644 * html/HTML5DocumentParser.h: |
|
21645 * html/HTML5ScriptRunner.cpp: |
|
21646 (WebCore::HTML5ScriptRunner::requestScript): |
|
21647 * html/HTML5ScriptRunnerHost.h: |
|
21648 |
|
21649 2010-06-21 Adam Barth <abarth@webkit.org> |
|
21650 |
|
21651 Reviewed by Eric Seidel. |
|
21652 |
|
21653 document.write from BeforeLoad should not assert |
|
21654 https://bugs.webkit.org/show_bug.cgi?id=40971 |
|
21655 |
|
21656 We're setting the parse blocking script too early. It's not actually |
|
21657 blocking parsing yet. |
|
21658 |
|
21659 Test: fast/tokenizer/write-before-load.html |
|
21660 |
|
21661 * html/HTML5ScriptRunner.cpp: |
|
21662 (WebCore::HTML5ScriptRunner::requestScript): |
|
21663 |
|
21664 2010-06-21 Chris Fleizach <cfleizach@apple.com> |
|
21665 |
|
21666 No review. QT build fix again. |
|
21667 |
|
21668 AX: VoiceOver does not announce WAI-ARIA state change of aria-expanded |
|
21669 https://bugs.webkit.org/show_bug.cgi?id=40927 |
|
21670 |
|
21671 * accessibility/AXObjectCache.h: |
|
21672 (WebCore::AXObjectCache::postNotification): |
|
21673 |
|
21674 2010-06-21 Chris Fleizach <cfleizach@apple.com> |
|
21675 |
|
21676 No review. QT build fix. |
|
21677 |
|
21678 AX: VoiceOver does not announce WAI-ARIA state change of aria-expanded |
|
21679 https://bugs.webkit.org/show_bug.cgi?id=40927 |
|
21680 |
|
21681 * accessibility/AXObjectCache.h: |
|
21682 (WebCore::AXObjectCache::postNotification): |
|
21683 |
|
21684 2010-06-21 Chris Fleizach <cfleizach@apple.com> |
|
21685 |
|
21686 Reviewed by Beth Dakin. |
|
21687 |
|
21688 AX: VoiceOver does not announce WAI-ARIA state change of aria-expanded |
|
21689 https://bugs.webkit.org/show_bug.cgi?id=40927 |
|
21690 |
|
21691 Test: platform/mac/accessibility/aria-expanded-notifications.html |
|
21692 |
|
21693 * accessibility/AXObjectCache.cpp: |
|
21694 (WebCore::AXObjectCache::handleAriaExpandedChange): |
|
21695 * accessibility/AXObjectCache.h: |
|
21696 (WebCore::AXObjectCache::handleAriaExpandedChange): |
|
21697 * accessibility/AccessibilityObject.h: |
|
21698 (WebCore::AccessibilityObject::handleAriaExpandedChanged): |
|
21699 * accessibility/AccessibilityRenderObject.cpp: |
|
21700 (WebCore::AccessibilityRenderObject::handleAriaExpandedChanged): |
|
21701 * accessibility/AccessibilityRenderObject.h: |
|
21702 * accessibility/mac/AXObjectCacheMac.mm: |
|
21703 (WebCore::AXObjectCache::postPlatformNotification): |
|
21704 * dom/Element.cpp: |
|
21705 (WebCore::Element::updateAfterAttributeChanged): |
|
21706 |
|
21707 2010-06-21 Sheriff Bot <webkit.review.bot@gmail.com> |
|
21708 |
|
21709 Unreviewed, rolling out r61585. |
|
21710 http://trac.webkit.org/changeset/61585 |
|
21711 https://bugs.webkit.org/show_bug.cgi?id=40950 |
|
21712 |
|
21713 It broke builds (Requested by kinuko on #webkit). |
|
21714 |
|
21715 * Android.derived.jscbindings.mk: |
|
21716 * Android.derived.v8bindings.mk: |
|
21717 * CMakeLists.txt: |
|
21718 * DerivedSources.cpp: |
|
21719 * DerivedSources.make: |
|
21720 * GNUmakefile.am: |
|
21721 * WebCore.gypi: |
|
21722 * WebCore.pri: |
|
21723 * WebCore.vcproj/WebCore.vcproj: |
|
21724 * WebCore.xcodeproj/project.pbxproj: |
|
21725 * html/BlobBuilder.cpp: |
|
21726 (WebCore::BlobBuilder::appendString): |
|
21727 (WebCore::BlobBuilder::appendBlob): |
|
21728 * html/BlobBuilder.h: |
|
21729 * page/DOMWindow.idl: |
|
21730 |
|
21731 2010-06-21 Kinuko Yasuda <kinuko@chromium.org> |
|
21732 |
|
21733 Reviewed by Adam Barth. |
|
21734 |
|
21735 Add BlobBuilder.idl to expose BlobBuilder interface |
|
21736 https://bugs.webkit.org/show_bug.cgi?id=40593 |
|
21737 |
|
21738 BlobBuilder is defined in FileAPI's FileWriter spec. |
|
21739 (http://dev.w3.org/2009/dap/file-system/file-writer.html) |
|
21740 |
|
21741 Also removes the ENABLE_FILE_WRITER ifdef guard for BlobBuilder. |
|
21742 |
|
21743 Tests: http/tests/local/blob/send-data-blob.html |
|
21744 http/tests/local/blob/send-hybrid-blob.html |
|
21745 http/tests/local/blob/send-sliced-data-blob.html |
|
21746 |
|
21747 * Android.derived.jscbindings.mk: |
|
21748 * Android.derived.v8bindings.mk: |
|
21749 * CMakeLists.txt: |
|
21750 * DerivedSources.cpp: |
|
21751 * DerivedSources.make: |
|
21752 * GNUmakefile.am: |
|
21753 * WebCore.gypi: |
|
21754 * WebCore.pri: |
|
21755 * WebCore.pro: |
|
21756 * WebCore.vcproj/WebCore.vcproj: |
|
21757 * WebCore.xcodeproj/project.pbxproj: |
|
21758 * html/BlobBuilder.cpp: |
|
21759 (WebCore::BlobBuilder::append): |
|
21760 * html/BlobBuilder.h: |
|
21761 * html/BlobBuilder.idl: Added. |
|
21762 * page/DOMWindow.idl: |
|
21763 |
|
21764 2010-06-21 Nate Chapin <japhet@chromium.org> |
|
21765 |
|
21766 Reviewed by Adam Barth. |
|
21767 |
|
21768 FrameLoader cleanup: Split high level subframe and plugin |
|
21769 loading functions into a separate class. |
|
21770 https://bugs.webkit.org/show_bug.cgi?id=40453 |
|
21771 |
|
21772 Refactor only, no new tests. |
|
21773 |
|
21774 * Android.mk: |
|
21775 * CMakeLists.txt: |
|
21776 * GNUmakefile.am: |
|
21777 * WebCore.base.exp: |
|
21778 * WebCore.gypi: |
|
21779 * WebCore.pro: |
|
21780 * WebCore.vcproj/WebCore.vcproj: |
|
21781 * WebCore.xcodeproj/project.pbxproj: |
|
21782 * dom/DOMImplementation.cpp: |
|
21783 * history/PageCache.cpp: |
|
21784 * html/HTMLFrameElementBase.cpp: |
|
21785 * html/HTMLMediaElement.cpp: |
|
21786 * loader/FrameLoader.cpp: |
|
21787 * loader/FrameLoader.h: |
|
21788 (WebCore::FrameLoader::subframeLoader): |
|
21789 * loader/PluginDocument.cpp: |
|
21790 * loader/SubframeLoader.cpp: Added. |
|
21791 (WebCore::SubframeLoader::SubframeLoader): |
|
21792 (WebCore::toPlugInElement): |
|
21793 (WebCore::SubframeLoader::clear): |
|
21794 (WebCore::SubframeLoader::requestFrame): |
|
21795 (WebCore::SubframeLoader::requestObject): |
|
21796 (WebCore::FrameLoader::loadMediaPlayerProxyPlugin): |
|
21797 (WebCore::SubframeLoader::createJavaAppletWidget): |
|
21798 (WebCore::SubframeLoader::loadSubframe): |
|
21799 (WebCore::SubframeLoader::allowPlugins): |
|
21800 (WebCore::SubframeLoader::shouldUsePlugin): |
|
21801 (WebCore::SubframeLoader::loadPlugin): |
|
21802 (WebCore::SubframeLoader::completeURL): |
|
21803 * loader/SubframeLoader.h: Added. |
|
21804 (WebCore::SubframeLoader::containsPlugins): |
|
21805 * page/Page.cpp: |
|
21806 * page/XSSAuditor.h: |
|
21807 * platform/graphics/wince/MediaPlayerProxy.cpp: |
|
21808 * plugins/MimeType.cpp: |
|
21809 * rendering/RenderApplet.cpp: |
|
21810 * rendering/RenderEmbeddedObject.cpp: |
|
21811 |
|
21812 2010-06-21 Nate Chapin <japhet@chromium.org> |
|
21813 |
|
21814 Unreviewed, build fix. |
|
21815 |
|
21816 Bad merge, left a reference to m_committedFirstRealDocumentLoad in |
|
21817 http://trac.webkit.org/changeset/61568. |
|
21818 |
|
21819 * loader/FrameLoader.cpp: |
|
21820 (WebCore::FrameLoader::transitionToCommitted): |
|
21821 |
|
21822 2010-06-21 Nate Chapin <japhet@chromium.org> |
|
21823 |
|
21824 Reviewed by Adam Barth. |
|
21825 |
|
21826 Remove a couple of FrameLoader's unused boolean members |
|
21827 (m_receivedData, m_cancellingWithLoadInProcess) and merge |
|
21828 several more into a single state machine called FrameLoaderStateMachine |
|
21829 (m_firstLayoutDone, m_creatingInitialEmptyDocument, |
|
21830 m_isDisplayingInitialEmptyDocument, m_committedFirstRealDocumentLoad). |
|
21831 |
|
21832 https://bugs.webkit.org/show_bug.cgi?id=39695 |
|
21833 |
|
21834 Refactor only, so no new tests. |
|
21835 |
|
21836 * WebCore.base.exp: |
|
21837 * WebCore.xcodeproj/project.pbxproj: |
|
21838 * loader/DocumentWriter.cpp: |
|
21839 (WebCore::DocumentWriter::createDocument): |
|
21840 (WebCore::DocumentWriter::begin): |
|
21841 * loader/FrameLoader.cpp: |
|
21842 (WebCore::FrameLoader::FrameLoader): |
|
21843 (WebCore::FrameLoader::init): |
|
21844 (WebCore::FrameLoader::stopLoading): |
|
21845 (WebCore::FrameLoader::didOpenURL): |
|
21846 (WebCore::FrameLoader::didExplicitOpen): |
|
21847 (WebCore::FrameLoader::clear): |
|
21848 (WebCore::FrameLoader::didBeginDocument): |
|
21849 (WebCore::FrameLoader::finishedParsing): |
|
21850 (WebCore::FrameLoader::provisionalLoadStarted): |
|
21851 (WebCore::FrameLoader::logCanCachePageDecision): |
|
21852 (WebCore::FrameLoader::logCanCacheFrameDecision): |
|
21853 (WebCore::FrameLoader::frameHasLoaded): |
|
21854 (WebCore::FrameLoader::commitProvisionalLoad): |
|
21855 (WebCore::FrameLoader::transitionToCommitted): |
|
21856 (WebCore::FrameLoader::finishedLoadingDocument): |
|
21857 (WebCore::FrameLoader::checkLoadCompleteForThisFrame): |
|
21858 (WebCore::FrameLoader::didFirstLayout): |
|
21859 (WebCore::FrameLoader::frameLoadCompleted): |
|
21860 (WebCore::FrameLoader::dispatchDidCommitLoad): |
|
21861 * loader/FrameLoader.h: |
|
21862 (WebCore::FrameLoader::stateMachine): |
|
21863 * loader/FrameLoaderStateMachine.cpp: Added. |
|
21864 * loader/FrameLoaderStateMachine.h: Added. |
|
21865 * loader/HistoryController.cpp: |
|
21866 (WebCore::HistoryController::restoreScrollPositionAndViewState): |
|
21867 (WebCore::HistoryController::saveDocumentState): |
|
21868 * loader/ProgressTracker.cpp: |
|
21869 (WebCore::ProgressTracker::incrementProgress): |
|
21870 * loader/RedirectScheduler.cpp: |
|
21871 (WebCore::RedirectScheduler::scheduleLocationChange): |
|
21872 (WebCore::RedirectScheduler::scheduleFormSubmission): |
|
21873 |
|
21874 2010-06-21 Kevin Ollivier <kevino@theolliviers.com> |
|
21875 |
|
21876 [wx] Build fix. Fix header includes for ENABLE(DATABASE) |
|
21877 |
|
21878 * bindings/js/JSExceptionBase.cpp: |
|
21879 |
|
21880 2010-06-21 Anders Carlsson <andersca@apple.com> |
|
21881 |
|
21882 Fix clang++ build. |
|
21883 |
|
21884 * loader/FormSubmission.h: |
|
21885 |
|
21886 2010-06-21 Dimitri Glazkov <dglazkov@chromium.org> |
|
21887 |
|
21888 Unreviewed, build fix. |
|
21889 |
|
21890 Add a missing include in AsyncImageResizer.h |
|
21891 |
|
21892 * html/AsyncImageResizer.h: Added the IntSize include. |
|
21893 |
|
21894 2010-06-21 Adam Roben <aroben@apple.com> |
|
21895 |
|
21896 Call NotifyAddrChange again each time we are notified of a change |
|
21897 |
|
21898 NotifyAddrChange only notifies you of a single change. If you want to |
|
21899 listen for subsequent changes, you have to call it again. |
|
21900 |
|
21901 Fixes <http://webkit.org/b/33004> NetworkStateNotifier ignores all |
|
21902 state changes after the first. |
|
21903 |
|
21904 No test possible, as we don't have a way to modify the system's |
|
21905 network adapters when running tests. |
|
21906 |
|
21907 Reviewed by Anders Carlsson. |
|
21908 |
|
21909 * platform/network/win/NetworkStateNotifierWin.cpp: |
|
21910 (WebCore::NetworkStateNotifier::addrChangeCallback): Call |
|
21911 registerForAddressChange as soon as we're notified of an address |
|
21912 change, so we'll also get notified of the *next* address change. I |
|
21913 added the call here instead of in addressChanged (which is called |
|
21914 later on the main thread) to minimize the time between the callback |
|
21915 and registering again (so that we won't miss changes that happen in |
|
21916 rapid succession). |
|
21917 |
|
21918 2010-06-21 Dan Bernstein <mitz@apple.com> |
|
21919 |
|
21920 Release build fix |
|
21921 |
|
21922 * rendering/RenderBlockLineLayout.cpp: |
|
21923 (WebCore::tryHyphenating): |
|
21924 |
|
21925 2010-06-21 Dan Bernstein <mitz@apple.com> |
|
21926 |
|
21927 Windows build fix |
|
21928 |
|
21929 * WebCore.vcproj/WebCore.vcproj: Fixed a typo. |
|
21930 |
|
21931 2010-06-21 Dan Bernstein <mitz@apple.com> |
|
21932 |
|
21933 Reviewed by Darin Adler. |
|
21934 |
|
21935 CSS3: Implement the 'hyphens' and 'hyphenate-character' properties |
|
21936 https://bugs.webkit.org/show_bug.cgi?id=10228 |
|
21937 |
|
21938 Tests: fast/text/hyphenate-character.html |
|
21939 fast/text/hyphens.html |
|
21940 |
|
21941 Added -webkit-hyphens and -webkit-hyphenate-character as specified in |
|
21942 <http://www.w3.org/TR/2010/WD-css3-gcpm-20100608/#hyphenation>. |
|
21943 |
|
21944 * Android.mk: Added Hyphenation.cpp. |
|
21945 * CMakeLists.txt: Ditto. |
|
21946 * GNUmakefile.am: Added Hyphenation.{cpp,h}. |
|
21947 * WebCore.base.exp: Exported wkGetHyphenationLocationBeforeIndex(). |
|
21948 * WebCore.gypi: Added Hyphenation.{cpp,h}. |
|
21949 * WebCore.pro: Added Hyphenation.{cpp,h}. |
|
21950 * WebCore.vcproj/WebCore.vcproj: Added Hyphenation.{cpp,h}. |
|
21951 * WebCore.xcodeproj/project.pbxproj: Added Hyphenation.{cpp,h}. |
|
21952 * css/CSSComputedStyleDeclaration.cpp: |
|
21953 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added the -webkit-hyphenate-character |
|
21954 and -webkit-hyphens cases. |
|
21955 * css/CSSParser.cpp: |
|
21956 (WebCore::CSSParser::parseValue): Validate values for the new properties. |
|
21957 * css/CSSPrimitiveValueMappings.h: |
|
21958 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Added. Maps from a Hyphens value to an identifier. |
|
21959 (WebCore::CSSPrimitiveValue::operator Hyphens): Added. Maps from an identifier to a Hyphens value. |
|
21960 * css/CSSPropertyNames.in: Added -webkit-hyphenate-character and -webkit-hyphens. |
|
21961 * css/CSSStyleSelector.cpp: |
|
21962 (WebCore::CSSStyleSelector::applyProperty): Apply the new properties to the RenderStyle. |
|
21963 * css/CSSValueKeywords.in: |
|
21964 * platform/mac/WebCoreSystemInterface.h: Added wkGetHyphenationLocationBeforeIndex. |
|
21965 * platform/mac/WebCoreSystemInterface.mm: Ditto. |
|
21966 * platform/text/CharacterNames.h: Added the hyphen character. |
|
21967 * platform/text/Hyphenation.cpp: Added. |
|
21968 (WebCore::lastHyphenLocation): Added this default implementation for platforms that do not implement |
|
21969 hyphenation yet. It calls notImplemented() and returns 0. |
|
21970 * platform/text/Hyphenation.h: Added. |
|
21971 * platform/text/cf/HyphenationCF.cpp: Added. |
|
21972 (WebCore::lastHyphenLocation): Returns the last hyphenation location occurring in the given string before |
|
21973 the given index. Uses the current search locale (which is based on the top language preference of the user) |
|
21974 for hyphenation. |
|
21975 * platform/text/mac/HyphenationMac.mm: Added. |
|
21976 (WebCore::lastHyphenLocation): Returns the last hyphenation location occurring in the given string before |
|
21977 the given index. Returns 0 if the current search locale is not "en", because the platform only knows how to |
|
21978 hyphenate English. |
|
21979 * rendering/BidiRun.h: |
|
21980 (WebCore::BidiRun::BidiRun): Added a boolean member, m_hasHyphen, and initialized it to false in the constructor. |
|
21981 * rendering/InlineBox.h: |
|
21982 (WebCore::InlineBox::InlineBox): Renamed m_hasEllipsisBox to m_hasEllipsisBoxOrHyphen, because this bit is now |
|
21983 shared by two subclass: RootInlineBox uses it for hasEllipsisBox(), while InlineTextBox uses it for hasHyphen(). |
|
21984 * rendering/InlineTextBox.cpp: |
|
21985 (WebCore::adjustCharactersAndLengthForHyphen): Added this helper function to get the hyphen string from the style |
|
21986 and return a UChar* and length for the concatenation of the given text with the hyphen string. |
|
21987 (WebCore::InlineTextBox::selectionRect): If the selected range touches the end and the box has a hyphen, |
|
21988 compute the width of the text with the hyphen string concatenated to it. |
|
21989 (WebCore::InlineTextBox::paint): If the box has a hyphen, draw the text with the hyphen string concatenated to it. |
|
21990 (WebCore::InlineTextBox::paintSelection): Similarly concatenate the hyphen string. |
|
21991 * rendering/InlineTextBox.h: |
|
21992 (WebCore::InlineTextBox::hasHyphen): Added this accessor. |
|
21993 (WebCore::InlineTextBox::setHasHyphen): Ditto. |
|
21994 * rendering/RenderBlock.h: |
|
21995 * rendering/RenderBlockLineLayout.cpp: |
|
21996 (WebCore::RenderBlock::constructLine): Copy the m_hasHyphen flag from the run to its text box. |
|
21997 (WebCore::RenderBlock::computeHorizontalPositionsForLine): Add the width of the hyphen string when computing the |
|
21998 width of a box that has a hyphen. |
|
21999 (WebCore::RenderBlock::layoutInlineChildren): If the line was hyphenated, set the m_hasHyphen flag on the |
|
22000 logically last run. |
|
22001 (WebCore::tryHyphenating): Added this helper function which checks if a piece of text that does not fit on the |
|
22002 line could be hyphenated such that the part before the hyphen, including the hyphen, would fit. Given the amount |
|
22003 of space remaining on the line, it finds the longest prefix that can fit in the remaining space (which leaving room for |
|
22004 the hyphen), and then checks for a hyphenation location within that prefix. |
|
22005 (WebCore::RenderBlock::findNextLineBreak): In the 'hyphens: none' case, prevent line breaks at soft hyphens. |
|
22006 In the 'hyphens: auto' case, try hyphenating when a word will not fit in the remaining space on the line. |
|
22007 * rendering/RootInlineBox.cpp: |
|
22008 (WebCore::RootInlineBox::detachEllipsisBox): Changed to use hasEllipsisBox() and setHasEllipsisBox(). |
|
22009 (WebCore::RootInlineBox::clearTruncation): Ditto. |
|
22010 (WebCore::RootInlineBox::placeEllipsis): Ditto. |
|
22011 (WebCore::RootInlineBox::paintEllipsisBox): Ditto. |
|
22012 (WebCore::RootInlineBox::nodeAtPoint): Ditto. |
|
22013 (WebCore::RootInlineBox::ellipsisBox): Ditto. |
|
22014 * rendering/RootInlineBox.h: |
|
22015 (WebCore::RootInlineBox::hasEllipsisBox): Added this accessor. |
|
22016 (WebCore::RootInlineBox::setHasEllipsisBox): Ditto. |
|
22017 * rendering/style/RenderStyle.cpp: |
|
22018 (WebCore::RenderStyle::diff): Return a layout hint if the hyphens setting or hyphenate-character differs. |
|
22019 (WebCore::RenderStyle::hyphenString): Added. For hyphenate-character: auto, returns the hyphen character. |
|
22020 * rendering/style/RenderStyle.h: |
|
22021 (WebCore::InheritedFlags::hyphens): Added this accessor. |
|
22022 (WebCore::InheritedFlags::hyphenateCharacter): Ditto. |
|
22023 (WebCore::InheritedFlags::setHyphens): Ditto. |
|
22024 (WebCore::InheritedFlags::setHyphenateCharacter): Ditto. |
|
22025 (WebCore::InheritedFlags::initialHyphens): Added. Returns HyphensManual. |
|
22026 (WebCore::InheritedFlags::initialHyphenateCharacter): Added. Returns the null string, corresponding to |
|
22027 a value of 'auto'. |
|
22028 * rendering/style/RenderStyleConstants.h: |
|
22029 Added a Hyphens enum. |
|
22030 * rendering/style/StyleRareInheritedData.cpp: |
|
22031 (WebCore::StyleRareInheritedData::StyleRareInheritedData): Initialize and copy the new members. |
|
22032 (WebCore::StyleRareInheritedData::operator==): Compare the new members. |
|
22033 * rendering/style/StyleRareInheritedData.h: Added two new members: hyphens and hyphenateCharacter. |
|
22034 |
|
22035 2010-06-03 Dimitri Glazkov <dglazkov@chromium.org> |
|
22036 |
|
22037 Reviewed by Darin Adler. |
|
22038 |
|
22039 Plumb FormSubmission through to ScheduledFormSubmission. |
|
22040 https://bugs.webkit.org/show_bug.cgi?id=40137 |
|
22041 |
|
22042 No behavior change, covered by existing tests. |
|
22043 |
|
22044 * html/HTMLFormElement.cpp: |
|
22045 (WebCore::HTMLFormElement::prepareFormSubmission): Moved creation of action URL |
|
22046 instance here from FrameLoader::submit, because it makes more sense here, |
|
22047 also added a FIXME to investigate existing code later. |
|
22048 * loader/FormSubmission.cpp: |
|
22049 (WebCore::FormSubmission::FormSubmission): Changed action to be a KURL, not a String. |
|
22050 (WebCore::FormSubmission::create): Ditto. |
|
22051 (WebCore::FormSubmission::populateFrameLoadRequest): Added, moving the logic from |
|
22052 FrameLoader::submit closer to the data. |
|
22053 * loader/FormSubmission.h: |
|
22054 (WebCore::FormSubmission::action): Changed type to KURL. |
|
22055 (WebCore::FormSubmission::clearTarget): Added. |
|
22056 (WebCore::FormSubmission::referrer): Added. |
|
22057 (WebCore::FormSubmission::setReferrer): Added. |
|
22058 (WebCore::FormSubmission::origin): Added. |
|
22059 (WebCore::FormSubmission::setOrigin): Added. |
|
22060 * loader/FrameLoader.cpp: |
|
22061 (WebCore::FrameLoader::submitForm): Cleaned up to make it more about decision-making, |
|
22062 not data manipulation. |
|
22063 * loader/RedirectScheduler.cpp: |
|
22064 (WebCore::ScheduledFormSubmission::ScheduledFormSubmission): Changed to accept FormSubmission as argument. |
|
22065 (WebCore::ScheduledFormSubmission::fire): Changed to use FormSubmission. |
|
22066 (WebCore::RedirectScheduler::scheduleFormSubmission): Removed assert that no longer makes sense, |
|
22067 changed to use FormSubmission. |
|
22068 * loader/RedirectScheduler.h: Updated ScheduledFormSubmission decl to hold FormSubmission ref. |
|
22069 |
|
22070 2010-06-21 Satish Sampath <satish@chromium.org> |
|
22071 |
|
22072 Reviewed by Steve Block. |
|
22073 |
|
22074 Speech Input Patch 0: Added compilation argument to conditionally compile pending patches. |
|
22075 https://bugs.webkit.org/show_bug.cgi?id=40878 |
|
22076 |
|
22077 No new tests are needed, because there is no new functionality. |
|
22078 |
|
22079 * Configurations/FeatureDefines.xcconfig: |
|
22080 * GNUmakefile.am: |
|
22081 * WebCore.pri: |
|
22082 |
|
22083 2010-06-21 Hans Wennborg <hans@chromium.org> |
|
22084 |
|
22085 Reviewed by Jeremy Orlow. |
|
22086 |
|
22087 Delete DOM storage databases when they are empty. |
|
22088 https://bugs.webkit.org/show_bug.cgi?id=40767 |
|
22089 |
|
22090 Even if a page clears its local storage, the database file for it stays around, |
|
22091 and there is currently no mechanism that deletes them. |
|
22092 |
|
22093 After doing the "final sync" of a storage area, the StorageAreaSyncMaster should |
|
22094 see if the database is empty, and in that case delete it. |
|
22095 |
|
22096 Tests: |
|
22097 manual-tests/localstorage-empty-database.html |
|
22098 |
|
22099 * manual-tests/localstorage-empty-database.html: |
|
22100 Added link to clear local storage for testing that the file is removed. |
|
22101 * storage/LocalStorageTask.cpp: |
|
22102 (WebCore::LocalStorageTask::LocalStorageTask): |
|
22103 Added local storage task type DeleteEmptyDatabase. |
|
22104 (WebCore::LocalStorageTask::performTask): |
|
22105 Ditto. |
|
22106 * storage/LocalStorageTask.h: |
|
22107 (WebCore::LocalStorageTask::): |
|
22108 Ditto. |
|
22109 (WebCore::LocalStorageTask::createDeleteEmptyDatabase): |
|
22110 Ditto. |
|
22111 * storage/StorageAreaSync.cpp: |
|
22112 (WebCore::StorageAreaSync::scheduleFinalSync): |
|
22113 When scheduling final sync, also schedule DeleteEmptyDatabase. |
|
22114 (WebCore::StorageAreaSync::sync): |
|
22115 Return early if final sync has nothing to sync. |
|
22116 (WebCore::StorageAreaSync::deleteEmptyDatabase): |
|
22117 Added function to check if a database is empty and in that case delete it. |
|
22118 * storage/StorageAreaSync.h: |
|
22119 Ditto. |
|
22120 * storage/StorageSyncManager.cpp: |
|
22121 (WebCore::StorageSyncManager::scheduleDeleteEmptyDatabase): |
|
22122 Added function for scheduling DeleteEmptyDatabase task. |
|
22123 * storage/StorageSyncManager.h: |
|
22124 Ditto. |
|
22125 |
|
22126 2010-06-21 Balazs Kelemen <kb@inf.u-szeged.hu> |
|
22127 |
|
22128 Reviewed by Simon Hausmann. |
|
22129 |
|
22130 [Qt] Avoid unnecessary image conversion in RGBA32Buffer::zeroFill() |
|
22131 https://bugs.webkit.org/show_bug.cgi?id=40910 |
|
22132 |
|
22133 * platform/image-decoders/qt/RGBA32BufferQt.cpp: |
|
22134 (WebCore::RGBA32Buffer::zeroFill): |
|
22135 |
|
22136 2010-06-21 Benjamin Poulain <benjamin.poulain@nokia.com> |
|
22137 |
|
22138 Reviewed by Kenneth Rohde Christiansen. |
|
22139 |
|
22140 [Qt] Decode images directly to QPixmap |
|
22141 https://bugs.webkit.org/show_bug.cgi?id=40797 |
|
22142 |
|
22143 Decode images to QPixmap directly instead of QImage when possible. |
|
22144 RGBA32Buffer transforms the pixmap back to image if |
|
22145 necessary. |
|
22146 |
|
22147 This improve the performance with certain graphic system, and |
|
22148 can reduce memory usage. |
|
22149 |
|
22150 * platform/graphics/qt/ImageDecoderQt.cpp: |
|
22151 (WebCore::ImageDecoderQt::setData): |
|
22152 (WebCore::ImageDecoderQt::internalHandleCurrentImage): |
|
22153 * platform/image-decoders/ImageDecoder.h: |
|
22154 (WebCore::RGBA32Buffer::getAddr): |
|
22155 * platform/image-decoders/qt/RGBA32BufferQt.cpp: |
|
22156 (WebCore::RGBA32Buffer::clear): |
|
22157 (WebCore::RGBA32Buffer::zeroFill): |
|
22158 (WebCore::RGBA32Buffer::copyBitmapData): |
|
22159 (WebCore::RGBA32Buffer::setSize): |
|
22160 (WebCore::RGBA32Buffer::asNewNativeImage): |
|
22161 (WebCore::RGBA32Buffer::setPixmap): |
|
22162 |
|
22163 2010-06-20 Dumitru Daniliuc <dumi@chromium.org> |
|
22164 |
|
22165 Reviewed by Adam Barth. |
|
22166 |
|
22167 Adding the SQLException class which will be used to report sync DB errors. |
|
22168 https://bugs.webkit.org/show_bug.cgi?id=40607 |
|
22169 |
|
22170 * Android.derived.jscbindings.mk: |
|
22171 * Android.derived.v8bindings.mk: |
|
22172 * CMakeLists.txt: |
|
22173 * DerivedSources.cpp: |
|
22174 * DerivedSources.make: |
|
22175 * GNUmakefile.am: |
|
22176 * WebCore.gypi: |
|
22177 * WebCore.pri: |
|
22178 * WebCore.vcproj/WebCore.vcproj: |
|
22179 * WebCore.xcodeproj/project.pbxproj: |
|
22180 * bindings/js/JSDOMBinding.cpp: |
|
22181 (WebCore::setDOMException): |
|
22182 * bindings/js/JSExceptionBase.cpp: |
|
22183 (WebCore::toExceptionBase): |
|
22184 * bindings/v8/V8Proxy.cpp: |
|
22185 (WebCore::V8Proxy::setDOMException): |
|
22186 * bindings/v8/V8Proxy.h: |
|
22187 * dom/ExceptionCode.cpp: |
|
22188 (WebCore::): |
|
22189 (WebCore::getExceptionCodeDescription): |
|
22190 * dom/ExceptionCode.h: |
|
22191 (WebCore::): |
|
22192 * page/DOMWindow.idl: |
|
22193 * storage/SQLException.h: Added. |
|
22194 (WebCore::SQLException::create): |
|
22195 (WebCore::SQLException::): |
|
22196 (WebCore::SQLException::SQLException): |
|
22197 * storage/SQLException.idl: Added. |
|
22198 |
|
22199 2010-06-20 Yury Semikhatsky <yurys@chromium.org> |
|
22200 |
|
22201 Reviewed by Pavel Feldman. |
|
22202 |
|
22203 [v8] Web Inspector: don't add ScriptDebugServer as v8 listener if browser exposes |
|
22204 v8 debugging protocol. |
|
22205 https://bugs.webkit.org/show_bug.cgi?id=40844 |
|
22206 |
|
22207 * bindings/v8/ScriptDebugServer.cpp: |
|
22208 (WebCore::ScriptDebugServer::ScriptDebugServer): |
|
22209 (WebCore::ScriptDebugServer::addListener): |
|
22210 (WebCore::ScriptDebugServer::setEnabled): |
|
22211 (WebCore::ScriptDebugServer::isDebuggerAlwaysEnabled): |
|
22212 * bindings/v8/ScriptDebugServer.h: |
|
22213 |
|
22214 2010-06-20 Gyuyoung Kim <gyuyoung.kim@samsung.com> |
|
22215 |
|
22216 Unreviewed build fix. |
|
22217 |
|
22218 [EFL] Build break for r61527 |
|
22219 https://bugs.webkit.org/post_bug.cgi |
|
22220 |
|
22221 * CMakeLists.txt: Add loader/FormSubmission.cpp |
|
22222 |
|
22223 2010-06-20 Anders Carlsson <andersca@apple.com> |
|
22224 |
|
22225 Reviewed by Dan Bernstein. |
|
22226 |
|
22227 Remove bogus const qualifiers. |
|
22228 |
|
22229 * platform/mac/PasteboardHelper.h: |
|
22230 |
|
22231 2010-06-20 Patrick Gansterer <paroga@paroga.com> |
|
22232 |
|
22233 Reviewed by Kent Tamura. |
|
22234 |
|
22235 Buildfix for NotificationCenter.h. |
|
22236 https://bugs.webkit.org/show_bug.cgi?id=40890 |
|
22237 |
|
22238 ScriptExecutionContext::completeURL is used in header, |
|
22239 but ScriptExecutionContext.h wasn't included. |
|
22240 |
|
22241 * notifications/NotificationCenter.h: |
|
22242 |
|
22243 2010-06-20 Tony Gentilcore <tonyg@chromium.org> |
|
22244 |
|
22245 Reviewed by Eric Seidel. |
|
22246 |
|
22247 Recognize async attribute on HTML script tags. |
|
22248 https://bugs.webkit.org/show_bug.cgi?id=39026 |
|
22249 |
|
22250 This does not implement async behavior, it only parses the async |
|
22251 attribute for HTML script tags. SVG script tags continue to not |
|
22252 support the async attribute. |
|
22253 |
|
22254 Tests: fast/dom/HTMLScriptElement/script-async-attr.html |
|
22255 svg/dom/SVGScriptElement/script-async-attr.svg |
|
22256 |
|
22257 * dom/ScriptElement.cpp: |
|
22258 (WebCore::ScriptElementData::isAsynchronous): |
|
22259 (WebCore::ScriptElementData::isDeferred): |
|
22260 * dom/ScriptElement.h: |
|
22261 * html/HTMLAttributeNames.in: |
|
22262 * html/HTMLScriptElement.cpp: |
|
22263 (WebCore::HTMLScriptElement::async): |
|
22264 (WebCore::HTMLScriptElement::setAsync): |
|
22265 (WebCore::HTMLScriptElement::defer): |
|
22266 (WebCore::HTMLScriptElement::asyncAttributeValue): |
|
22267 (WebCore::HTMLScriptElement::deferAttributeValue): |
|
22268 * html/HTMLScriptElement.h: |
|
22269 * html/HTMLScriptElement.idl: |
|
22270 * svg/SVGScriptElement.cpp: |
|
22271 (WebCore::SVGScriptElement::asyncAttributeValue): |
|
22272 (WebCore::SVGScriptElement::deferAttributeValue): |
|
22273 * svg/SVGScriptElement.h: |
|
22274 |
|
22275 2010-06-20 Nikita Vasilyev <me@elv1s.ru> |
|
22276 |
|
22277 Reviewed by Joseph Pecoraro. |
|
22278 |
|
22279 Web Inspector: Auto-completion for CSS property names in Styles pane |
|
22280 https://bugs.webkit.org/show_bug.cgi?id=17374 |
|
22281 |
|
22282 Added autocompletion for CSS properties. A suggestion for a property |
|
22283 shows when you type. You can also cycle through known property names |
|
22284 using the Up and Down arrow keys. |
|
22285 |
|
22286 * WebCore.gypi: |
|
22287 * inspector/front-end/CSSCompletions.js: Added. |
|
22288 (WebInspector.CSSCompletions): |
|
22289 (WebInspector.CSSCompletions.startsWith): |
|
22290 (WebInspector.CSSCompletions.firstStartsWith): |
|
22291 (WebInspector.CSSCompletions._firstIndexOfPrefix): |
|
22292 (WebInspector.CSSCompletions.next): |
|
22293 (WebInspector.CSSCompletions.previous): |
|
22294 (WebInspector.CSSCompletions._closest): |
|
22295 * inspector/front-end/StylesSidebarPane.js: |
|
22296 (WebInspector.StylePropertyTreeElement.prototype): |
|
22297 * inspector/front-end/WebKit.qrc: |
|
22298 * inspector/front-end/inspector.html: |
|
22299 * inspector/front-end/utilities.js: |
|
22300 (Text.prototype.select): |
|
22301 (): |
|
22302 |
|
22303 2010-06-14 Dimitri Glazkov <dglazkov@chromium.org> |
|
22304 |
|
22305 Reviewed by Darin Adler. |
|
22306 |
|
22307 Introduce FormSubmission, the structure representing a form submission. |
|
22308 https://bugs.webkit.org/show_bug.cgi?id=40084 |
|
22309 |
|
22310 No change in functionality, covered by existing tests. |
|
22311 |
|
22312 * GNUmakefile.am: Added FormSubmission.h/cpp. |
|
22313 * WebCore.gypi: Ditto. |
|
22314 * WebCore.pro: Ditto. |
|
22315 * WebCore.vcproj/WebCore.vcproj: Ditto. |
|
22316 * WebCore.xcodeproj/project.pbxproj: Ditto. |
|
22317 * html/HTMLFormElement.cpp: |
|
22318 (WebCore::HTMLFormElement::prepareFormSubmission): Renamed prepareFormData to prepareFormSubmission, |
|
22319 added code for populating a FormSubmission instance, moved the loop of accumulating text input |
|
22320 values into this functions (it belongs here logically). |
|
22321 (WebCore::HTMLFormElement::submit): Modified to use prepareFormSubmission. |
|
22322 * html/HTMLFormElement.h: |
|
22323 * loader/FormSubmission.cpp: Added. |
|
22324 * loader/FormSubmission.h: Added. |
|
22325 * loader/FrameLoader.cpp: |
|
22326 (WebCore::FrameLoader::submitForm): Modified to use FormSubmission. Stopped plumbing further to keep |
|
22327 the patch size down. |
|
22328 * loader/FrameLoader.h: Modified submitForm signature. |
|
22329 |
|
22330 2010-06-20 Joseph Pecoraro <joepeck@webkit.org> |
|
22331 |
|
22332 Unreviewed rollout r61506, because it made 1 test crash. |
|
22333 |
|
22334 Causes crash. Will approach the solution in a different way. |
|
22335 |
|
22336 2010-06-20 Joseph Pecoraro <joepeck@webkit.org> |
|
22337 |
|
22338 Reviewed by Timothy Hatcher. |
|
22339 |
|
22340 Web Inspector: Should Autocomplete Style Properties |
|
22341 https://bugs.webkit.org/show_bug.cgi?id=38448 |
|
22342 |
|
22343 This Autocompletes style properties when in the console. |
|
22344 |
|
22345 * inspector/front-end/InjectedScript.js: |
|
22346 (injectedScriptConstructor): |
|
22347 |
|
22348 2010-06-20 Robert Hogan <robert@webkit.org> |
|
22349 |
|
22350 Reviewed by Simon Hausmann. |
|
22351 |
|
22352 [Qt] NPP_SetWindow seems to not be called when TestNetscapePlugin is moved |
|
22353 |
|
22354 https://bugs.webkit.org/show_bug.cgi?id=36702 |
|
22355 |
|
22356 setNPWindowIfNeeded() is called on paint() in PluginViewQt, which doesn't |
|
22357 work for DRT. So call it if we are in DRT mode and the window geometry |
|
22358 has changed. |
|
22359 |
|
22360 Unskips plugins/reentrant-update-widget-positions.html |
|
22361 |
|
22362 * plugins/qt/PluginViewQt.cpp: |
|
22363 (WebCore::PluginView::updatePluginWidget): |
|
22364 |
|
22365 2010-06-19 Tony Gentilcore <tonyg@chromium.org> |
|
22366 |
|
22367 Reviewed by Adam Barth. |
|
22368 |
|
22369 Persist V8's ScriptData to the memory cache. |
|
22370 https://bugs.webkit.org/show_bug.cgi?id=38661 |
|
22371 |
|
22372 This stores V8's ScriptData in the memory cache and also causes the |
|
22373 network platform layer to be notified of the available cacheable |
|
22374 metadata. |
|
22375 |
|
22376 Chromium's morejs benchmark showed a ~7% improvement when this was |
|
22377 originally submitted (before it had to be rolled back). |
|
22378 |
|
22379 Test: fast/js/parser-high-byte-character.html |
|
22380 |
|
22381 * bindings/v8/ScriptSourceCode.h: |
|
22382 (WebCore::ScriptSourceCode::ScriptSourceCode): |
|
22383 (WebCore::ScriptSourceCode::cachedScript): |
|
22384 * bindings/v8/V8Proxy.cpp: |
|
22385 (WebCore::V8Proxy::compileScript): |
|
22386 (WebCore::V8Proxy::precompileScript): |
|
22387 (WebCore::V8Proxy::evaluate): |
|
22388 * bindings/v8/V8Proxy.h: |
|
22389 |
|
22390 2010-06-19 Kwang Yul Seo <skyul@company100.net> |
|
22391 |
|
22392 Reviewed by Kent Tamura. |
|
22393 |
|
22394 [BREWMP] Port SocketStream |
|
22395 https://bugs.webkit.org/show_bug.cgi?id=39671 |
|
22396 |
|
22397 Port SocketStream with BREW MP's ISocket interface. |
|
22398 |
|
22399 * platform/network/brew/SocketStreamError.h: Added. |
|
22400 (WebCore::SocketStreamError::SocketStreamError): |
|
22401 * platform/network/brew/SocketStreamHandle.h: Added. |
|
22402 (WebCore::SocketStreamHandle::create): |
|
22403 * platform/network/brew/SocketStreamHandleBrew.cpp: Added. |
|
22404 (WebCore::socketStreamConnectCallback): |
|
22405 (WebCore::getHostByNameCallback): |
|
22406 (WebCore::socketReadableCallback): |
|
22407 (WebCore::networkManager): |
|
22408 (WebCore::SocketStreamHandlePrivate::SocketStreamHandlePrivate): |
|
22409 (WebCore::SocketStreamHandlePrivate::~SocketStreamHandlePrivate): |
|
22410 (WebCore::SocketStreamHandlePrivate::socketConnected): |
|
22411 (WebCore::SocketStreamHandlePrivate::socketReadyRead): |
|
22412 (WebCore::SocketStreamHandlePrivate::connect): |
|
22413 (WebCore::SocketStreamHandlePrivate::send): |
|
22414 (WebCore::SocketStreamHandlePrivate::close): |
|
22415 (WebCore::SocketStreamHandlePrivate::socketClosed): |
|
22416 (WebCore::SocketStreamHandlePrivate::socketError): |
|
22417 (WebCore::SocketStreamHandle::SocketStreamHandle): |
|
22418 (WebCore::SocketStreamHandle::~SocketStreamHandle): |
|
22419 (WebCore::SocketStreamHandle::platformSend): |
|
22420 (WebCore::SocketStreamHandle::platformClose): |
|
22421 (WebCore::SocketStreamHandle::didReceiveAuthenticationChallenge): |
|
22422 (WebCore::SocketStreamHandle::receivedCredential): |
|
22423 (WebCore::SocketStreamHandle::receivedRequestToContinueWithoutCredential): |
|
22424 (WebCore::SocketStreamHandle::receivedCancellation): |
|
22425 * platform/network/brew/SocketStreamHandlePrivate.h: Added. |
|
22426 |
|
22427 2010-06-19 Nikita Vasilyev <me@elv1s.ru> |
|
22428 |
|
22429 Reviewed by Pavel Feldman. |
|
22430 |
|
22431 Web Inspector: Prevent from copying "filename.css" in Styles pane |
|
22432 https://bugs.webkit.org/show_bug.cgi?id=40420 |
|
22433 |
|
22434 * inspector/front-end/Section.js: |
|
22435 (WebInspector.Section.prototype.set subtitle): |
|
22436 (WebInspector.Section.prototype.get subtitleAsText): |
|
22437 * inspector/front-end/StylesSidebarPane.js: |
|
22438 (WebInspector.StylePropertiesSection): |
|
22439 * inspector/front-end/inspector.css: |
|
22440 (.styles-section .subtitle::before, .styles-section .subtitle a::before): |
|
22441 |
|
22442 2010-06-19 Alex Milowski <alex@milowski.com> |
|
22443 |
|
22444 Reviewed by Darin Adler. |
|
22445 |
|
22446 A fix for a change in https://bugs.webkit.org/show_bug.cgi?id=39941 |
|
22447 that caused a compile error in MathML. |
|
22448 https://bugs.webkit.org/show_bug.cgi?id=40827 |
|
22449 |
|
22450 * mathml/MathMLElement.cpp: |
|
22451 (WebCore::MathMLElement::MathMLElement): |
|
22452 |
|
22453 2010-06-19 Kartikaya Gupta <kagupta@rim.com> |
|
22454 |
|
22455 Reviewed by Nikolas Zimmermann. |
|
22456 |
|
22457 CPP bindings missing some APIs |
|
22458 https://bugs.webkit.org/show_bug.cgi?id=40570 |
|
22459 |
|
22460 Add missing C++ DOM API bindings. Specifically: |
|
22461 - NodeFilter callback support |
|
22462 - Missing custom method implementations in HTMLCollection and HTMLOptionsCollection |
|
22463 - Missing EventTarget static type-determination methods |
|
22464 - Fix CPP binding generator to not generate d-ptrs for classes that extend EventTarget and just use the parent's d-ptr instead |
|
22465 - Switch binding generator to use DOMWindow instead of AbstractView so that necessary W3C-defined methods (e.g. getComputedStyle) are accessible. |
|
22466 |
|
22467 * bindings/cpp/WebDOMDOMWindowCustom.cpp: Added. |
|
22468 (WebDOMDOMWindow::addEventListener): |
|
22469 (WebDOMDOMWindow::removeEventListener): |
|
22470 * bindings/cpp/WebDOMEventTarget.cpp: |
|
22471 (toWebKit): |
|
22472 * bindings/cpp/WebDOMEventTarget.h: |
|
22473 * bindings/cpp/WebDOMHTMLCollectionCustom.cpp: Added. |
|
22474 (WebDOMHTMLCollection::item): |
|
22475 (WebDOMHTMLCollection::namedItem): |
|
22476 * bindings/cpp/WebDOMHTMLOptionsCollectionCustom.cpp: Added. |
|
22477 (WebDOMHTMLOptionsCollection::length): |
|
22478 (WebDOMHTMLOptionsCollection::setLength): |
|
22479 * bindings/cpp/WebDOMNodeFilterCustom.cpp: Added. |
|
22480 (WebDOMNodeFilter::acceptNode): |
|
22481 (toWebKit): |
|
22482 * bindings/cpp/WebNativeNodeFilterCondition.cpp: Added. |
|
22483 (WebNativeNodeFilterCondition::WebNativeNodeFilterCondition): |
|
22484 (WebNativeNodeFilterCondition::~WebNativeNodeFilterCondition): |
|
22485 (WebNativeNodeFilterCondition::acceptNode): |
|
22486 * bindings/cpp/WebNativeNodeFilterCondition.h: Added. |
|
22487 (WebNativeNodeFilterCondition::create): |
|
22488 * bindings/scripts/CodeGeneratorCPP.pm: |
|
22489 * dom/NodeFilter.idl: |
|
22490 * page/DOMWindow.idl: |
|
22491 |
|
22492 2010-06-19 Vangelis Kokkevis <vangelis@chromium.org> |
|
22493 |
|
22494 Reviewed by Dimitri Glazkov. |
|
22495 |
|
22496 [chromium] Adding a conditional gyp dependency for the WebCore target to |
|
22497 the gles2_c_lib which is required by the gpu compositor. The dependency will |
|
22498 only kick in if the accelerated_compositing path is enabled. |
|
22499 https://bugs.webkit.org/show_bug.cgi?id=40801 |
|
22500 |
|
22501 * WebCore.gyp/WebCore.gyp: |
|
22502 |
|
22503 2010-06-19 Yael Aharon <yael.aharon@nokia.com> |
|
22504 |
|
22505 Reviewed by Kenneth Rohde Christiansen. |
|
22506 |
|
22507 [Qt] Platform plugin's multi-select does not take OptGroup into account |
|
22508 https://bugs.webkit.org/show_bug.cgi?id=40718 |
|
22509 |
|
22510 In multi-select elements, optgroup elements are counted in the index calculation, |
|
22511 but in single-select they are not. Keep the same logic even when NO_LISTBOX_RENDERING |
|
22512 is enabled. |
|
22513 Added tests to the existing manual test, as testing this requires a special build, in which |
|
22514 NO_LISTBOX_RENDERING is enabled. |
|
22515 |
|
22516 * html/HTMLSelectElement.cpp: |
|
22517 (WebCore::HTMLSelectElement::listBoxSelectItem): |
|
22518 * manual-tests/no-listbox-rendering.html: |
|
22519 * rendering/RenderMenuList.cpp: |
|
22520 (WebCore::RenderMenuList::listBoxSelectItem): |
|
22521 |
|
22522 2010-06-19 Thomas Van Lenten <thomasvl@chromium.org> |
|
22523 |
|
22524 Reviewed by David Levin. |
|
22525 |
|
22526 Warnings from -Wextra in a Chromium Mac build |
|
22527 1. checks of unsigned >= 0 |
|
22528 2. enumeral and non-enumeral type in conditional expression |
|
22529 3. copy ctors that don't call the super copy ctor or ctor |
|
22530 No functionality change so no new tests. |
|
22531 |
|
22532 https://bugs.webkit.org/show_bug.cgi?id=40791 |
|
22533 |
|
22534 * platform/chromium/ChromiumDataObject.cpp: |
|
22535 (WebCore::ChromiumDataObject::ChromiumDataObject): |
|
22536 * platform/chromium/ThemeChromiumMac.mm: |
|
22537 (WebCore::updateStates): |
|
22538 * rendering/RenderThemeChromiumMac.mm: |
|
22539 (WebCore::RenderThemeChromiumMac::updateActiveState): |
|
22540 |
|
22541 2010-06-19 Ben Murdoch <benm@google.com> |
|
22542 |
|
22543 Reviewed by Pavel Feldman. |
|
22544 |
|
22545 Fix build break with inspector disabled. |
|
22546 https://bugs.webkit.org/show_bug.cgi?id=40790 |
|
22547 |
|
22548 Replace a #include with a forward declaration. |
|
22549 |
|
22550 Fixing a build break so no new tests required. |
|
22551 |
|
22552 * inspector/InspectorController.h: Forward declare InspectorValue |
|
22553 rather than #including its header which has its content guarded |
|
22554 out. |
|
22555 |
|
22556 2010-06-19 Zhe Su <suzhe@chromium.org> |
|
22557 |
|
22558 Reviewed by Darin Fisher. |
|
22559 |
|
22560 [chromium]Refactor input method related APIs. |
|
22561 https://bugs.webkit.org/show_bug.cgi?id=40608 |
|
22562 |
|
22563 No new tests are needed, because there is no new functionality. |
|
22564 |
|
22565 * page/FocusController.cpp: |
|
22566 (WebCore::FocusController::setFocusedNode): |
|
22567 |
|
22568 2010-06-19 George Wright <gwright@rim.com> |
|
22569 |
|
22570 Reviewed by George Staikos. |
|
22571 |
|
22572 https://bugs.webkit.org/show_bug.cgi?id=40720 |
|
22573 |
|
22574 Make setWapInputFormat() public again as CSSStyleSelector.cpp calls this when WCSS is enabled. |
|
22575 |
|
22576 * html/HTMLInputElement.h: |
|
22577 (WebCore::HTMLInputElement::data): |
|
22578 |
|
22579 2010-06-02 Robert Hogan <robert@webkit.org> |
|
22580 |
|
22581 Reviewed by Adam Barth. |
|
22582 |
|
22583 [Qt] Support evaluateScriptInIsolatedWorld() |
|
22584 |
|
22585 https://bugs.webkit.org/show_bug.cgi?id=40079 |
|
22586 |
|
22587 getOwnPropertyNames() crashes if PropertyNameArray is size 0. This change allows |
|
22588 http/tests/world-reuse.html and didClearWindowObject.html to fail instead of crash. |
|
22589 |
|
22590 * WebCore.pro: Add qwebscriptworld.* |
|
22591 * bridge/qt/qt_runtime.cpp: |
|
22592 (JSC::Bindings::convertValueToQVariant): |
|
22593 |
|
22594 2010-06-19 Tony Gentilcore <tonyg@chromium.org> |
|
22595 |
|
22596 Reviewed by Eric Seidel. |
|
22597 |
|
22598 Some very minor cleanups for HTML5 Parser |
|
22599 https://bugs.webkit.org/show_bug.cgi?id=40638 |
|
22600 |
|
22601 No new tests because no new functionality. |
|
22602 |
|
22603 * html/HTML5DocumentParser.cpp: |
|
22604 (WebCore::): Make ctor explicit. |
|
22605 * html/HTML5DocumentParser.h: |
|
22606 (WebCore::HTML5DocumentParser::InsertionPointRecord::InsertionPointRecord): Make ctor explicit. |
|
22607 * html/HTML5Lexer.cpp: |
|
22608 (WebCore::HTMLNames::isEndTagBufferingState): Use switch to generate an efficient table with single branch. |
|
22609 * html/HTML5Token.h: |
|
22610 (WebCore::HTML5Token::forceQuirks): Add const. |
|
22611 * html/HTML5TreeBuilder.h: |
|
22612 (WebCore::HTML5TreeBuilder::isPaused): Add const. |
|
22613 |
|
22614 2010-06-18 Aaron Boodman <aa@chromium.org> |
|
22615 |
|
22616 Remove WebKit::WebDocument::isXHTMLDocument. |
|
22617 https://bugs.webkit.org/show_bug.cgi?id=40815 |
|
22618 |
|
22619 * dom/Document.h: remove isXHTML() getter. |
|
22620 |
|
22621 2010-06-19 Aaron Boodman <aa@chromium.org> |
|
22622 |
|
22623 Unreviewed, rolling out r61466. |
|
22624 http://trac.webkit.org/changeset/61466 |
|
22625 https://bugs.webkit.org/show_bug.cgi?id=40816 |
|
22626 |
|
22627 Landed wrong change |
|
22628 |
|
22629 * bindings/v8/V8DOMWindowShell.cpp: |
|
22630 (WebCore::V8DOMWindowShell::initContextIfNeeded): |
|
22631 * bindings/v8/V8DOMWindowShell.h: |
|
22632 |
|
22633 2010-06-18 Aaron Boodman <aa@chromium.org> |
|
22634 |
|
22635 WebKit API: Undo static hooks into V8 when WebKit is shut down. |
|
22636 https://bugs.webkit.org/show_bug.cgi?id=40816 |
|
22637 |
|
22638 * bindings/v8/V8DOMWindowShell.cpp: |
|
22639 (WebCore::V8DOMWindowShell::initContextIfNeeded): |
|
22640 (WebCore::V8DOMWindowShell::initializeV8IfNeeded): |
|
22641 (WebCore::V8DOMWindowShell::uninitializeV8IfNeeded): |
|
22642 * bindings/v8/V8DOMWindowShell.h: |
|
22643 |
|
22644 2010-06-18 Jessie Berlin <jberlin@webkit.org> |
|
22645 |
|
22646 Reviewed by Darin Adler. |
|
22647 |
|
22648 Bug 19509 - Database Tables in the Inspector should be sortable |
|
22649 https://bugs.webkit.org/show_bug.cgi?id=19509 |
|
22650 |
|
22651 * inspector/front-end/StoragePanel.js: |
|
22652 (WebInspector.StoragePanel.prototype.dataGridForResult): |
|
22653 Make each column in the DataGrid sortable. |
|
22654 (WebInspector.StoragePanel.prototype._sortDataGrid.comparator): |
|
22655 Make sure to sort numeric columns by their numeric values, instead of lexicographically. |
|
22656 (WebInspector.StoragePanel.prototype._sortDataGrid): |
|
22657 Sort the entries in the DataGrid based on the selected column. |
|
22658 |
|
22659 2010-06-18 Anders Carlsson <andersca@apple.com> |
|
22660 |
|
22661 Reviewed by Oliver Hunt. |
|
22662 |
|
22663 More clang++ warning fixes. |
|
22664 |
|
22665 * inspector/InspectorFrontendClientLocal.cpp: |
|
22666 (WebCore::InspectorFrontendClientLocal::restoreAttachedWindowHeight): |
|
22667 * platform/graphics/mac/FontPlatformData.h: |
|
22668 * platform/graphics/mac/WebLayer.mm: |
|
22669 (-[CALayer _descriptionWithPrefix:]): |
|
22670 |
|
22671 2010-06-18 Dimitri Glazkov <dglazkov@chromium.org> |
|
22672 |
|
22673 Unreviewed, build fix. |
|
22674 |
|
22675 * WebCore.gyp/WebCore.gyp: Modified inclusion rule in to actually add WebSystemInterface.mm. |
|
22676 |
|
22677 2010-06-18 Dimitri Glazkov <dglazkov@chromium.org> |
|
22678 |
|
22679 Unreviewed, build fix. |
|
22680 |
|
22681 * WebCore.gyp/WebCore.gyp: Renamed WebSystemInterface.m to WebSystemInterface.mm. |
|
22682 |
|
22683 2010-06-18 Anders Carlsson <andersca@apple.com> |
|
22684 |
|
22685 Reviewed by Sam Weinig. |
|
22686 |
|
22687 Make WebCoreSystemInterface.h a C++ only header |
|
22688 https://bugs.webkit.org/show_bug.cgi?id=40867 |
|
22689 |
|
22690 * platform/mac/WebCoreSystemInterface.h: |
|
22691 |
|
22692 2010-06-18 Abhishek Arya <inferno@chromium.org> |
|
22693 |
|
22694 Reviewed by Adam Barth. |
|
22695 |
|
22696 Convert column span from an unsigned short type to an unsigned int |
|
22697 type. Fixes a divide-by-zero crash arising from using a zero colspan |
|
22698 value coming from a narrow cast of an int to an unsigned short. |
|
22699 https://bugs.webkit.org/show_bug.cgi?id=40812 |
|
22700 |
|
22701 Test: fast/table/zero-colspan-crash.html |
|
22702 |
|
22703 * rendering/RenderTable.h: Change span from unsigned short to unsigned int. |
|
22704 * rendering/RenderTableSection.cpp: Fix a compiler warning with comparing |
|
22705 unsigned int with signed int. Value of an unsigned int here cannot be |
|
22706 greater than maximum positive value of a signed int. |
|
22707 (WebCore::RenderTableSection::addCell): |
|
22708 |
|
22709 2010-06-18 Ananth Jasty <ext-ananth.jasty@nokia.com> |
|
22710 |
|
22711 Reviewed by Simon Hausmann. |
|
22712 |
|
22713 [Qt] Text spacing miscalculation when using wordSpacing. |
|
22714 https://bugs.webkit.org/show_bug.cgi?id=40483 |
|
22715 |
|
22716 Removed wordSpacing compensation in FontQt whitespace width |
|
22717 calculation. The QFontMetrics::width() overload that takes |
|
22718 a character does not take QFont's word spacing into account. |
|
22719 |
|
22720 * platform/graphics/qt/FontQt.cpp: |
|
22721 (WebCore::Font::floatWidthForComplexText): |
|
22722 |
|
22723 2010-06-18 Anders Carlsson <andersca@apple.com> |
|
22724 |
|
22725 Reviewed by Darin Adler. |
|
22726 |
|
22727 Get rid of PluginDataMac.mm and use the plug-in strategy instead |
|
22728 https://bugs.webkit.org/show_bug.cgi?id=40860 |
|
22729 |
|
22730 * WebCore.xcodeproj/project.pbxproj: |
|
22731 * page/mac/WebCoreViewFactory.h: |
|
22732 * plugins/PluginData.cpp: |
|
22733 (WebCore::PluginData::refresh): |
|
22734 (WebCore::PluginData::initPlugins): |
|
22735 * plugins/PluginStrategy.h: |
|
22736 * plugins/mac/PluginDataMac.mm: Removed. |
|
22737 |
|
22738 2010-06-18 Anders Carlsson <andersca@apple.com> |
|
22739 |
|
22740 Reviewed by Dan Bernstein. |
|
22741 |
|
22742 Fix some (not all) clang++ warnings. |
|
22743 |
|
22744 * dom/Position.h: |
|
22745 (WebCore::lastOffsetInNode): |
|
22746 * editing/CompositeEditCommand.cpp: |
|
22747 (WebCore::CompositeEditCommand::deleteInsignificantText): |
|
22748 * loader/appcache/ApplicationCache.cpp: |
|
22749 (WebCore::ApplicationCache::resourceForRequest): |
|
22750 * platform/graphics/mac/ComplexTextController.cpp: |
|
22751 (WebCore::ComplexTextController::offsetForPosition): |
|
22752 (WebCore::ComplexTextController::collectComplexTextRuns): |
|
22753 * platform/network/CredentialStorage.cpp: |
|
22754 (WebCore::protectionSpaceMapKeyFromURL): |
|
22755 * rendering/style/StyleRareNonInheritedData.h: |
|
22756 |
|
22757 2010-06-18 Anders Carlsson <andersca@apple.com> |
|
22758 |
|
22759 Reviewed by Dan Bernstein. |
|
22760 |
|
22761 Add stubbed out WebPlatformStrategies class to WebKit. |
|
22762 https://bugs.webkit.org/show_bug.cgi?id=40851 |
|
22763 |
|
22764 * WebCore.base.exp: |
|
22765 * platform/PlatformStrategies.cpp: |
|
22766 * platform/PlatformStrategies.h: |
|
22767 (WebCore::PlatformStrategies::~PlatformStrategies): |
|
22768 |
|
22769 2010-06-18 Anders Carlsson <andersca@apple.com> |
|
22770 |
|
22771 Reviewed by Darin Adler. |
|
22772 |
|
22773 Fix build errors when building with clang++. |
|
22774 |
|
22775 * loader/archive/cf/LegacyWebArchiveMac.mm: |
|
22776 Move the const qualifier to the right place. |
|
22777 |
|
22778 * page/EditorClient.h: |
|
22779 * platform/Pasteboard.h: |
|
22780 Use @class when forward declaring Objective-C classes in Objective-C. |
|
22781 |
|
22782 2010-06-18 Alexey Proskuryakov <ap@apple.com> |
|
22783 |
|
22784 Reviewed by Geoff Garen. |
|
22785 |
|
22786 https://bugs.webkit.org/show_bug.cgi?id=40852 |
|
22787 <rdar://problem/8105498> Limit simultaneous DNS prefetch request number (40852) |
|
22788 |
|
22789 No change in functionality, so no tests. |
|
22790 |
|
22791 We still queue up to 64 names, but only make up to 8 requests at once. If there are names |
|
22792 remaining in queue, we retry after a short timeout (which is easier than posting |
|
22793 notifications from client callback). |
|
22794 |
|
22795 * platform/network/cf/DNSCFNet.cpp: |
|
22796 (WebCore::DNSResolveQueue::add): |
|
22797 (WebCore::DNSResolveQueue::fired): |
|
22798 |
|
22799 2010-06-18 Zhenyao Mo <zmo@google.com> |
|
22800 |
|
22801 Reviewed by Simon Fraser. |
|
22802 |
|
22803 WebGL demos show bad flicker |
|
22804 https://bugs.webkit.org/show_bug.cgi?id=38560 |
|
22805 |
|
22806 * platform/graphics/mac/GraphicsContext3DMac.mm: |
|
22807 (WebCore::GraphicsContext3D::prepareTexture): Move ensureContext() out of if-block so it's always executed. |
|
22808 |
|
22809 2010-06-18 Anders Carlsson <andersca@apple.com> |
|
22810 |
|
22811 Reviewed by Sam Weinig. |
|
22812 |
|
22813 Add PlatformStrategies and PluginStrategy classes. |
|
22814 https://bugs.webkit.org/show_bug.cgi?id=40850 |
|
22815 |
|
22816 * WebCore.xcodeproj/project.pbxproj: |
|
22817 * platform/PlatformStrategies.cpp: Added. |
|
22818 (WebCore::PlatformStrategies::~PlatformStrategies): |
|
22819 (WebCore::platformStrategies): |
|
22820 (WebCore::setPlatformStrategies): |
|
22821 * platform/PlatformStrategies.h: Added. |
|
22822 (WebCore::PlatformStrategies::pluginStrategy): |
|
22823 (WebCore::PlatformStrategies::PlatformStrategies): |
|
22824 * plugins/PluginData.cpp: |
|
22825 * plugins/PluginStrategy.h: Added. |
|
22826 (WebCore::PluginStrategy::~PluginStrategy): |
|
22827 |
|
22828 2010-06-18 Martin Robinson <mrobinson@igalia.com> |
|
22829 |
|
22830 Unreviewed. |
|
22831 |
|
22832 Fix the GTK+ build after r61413 and 61379. |
|
22833 |
|
22834 * bindings/scripts/CodeGeneratorGObject.pm: |
|
22835 Produce a g_value_set that uses getterExpressionPrefix instead of the raw getter. |
|
22836 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: |
|
22837 (webkit_dom_test_obj_get_property): Update expected test results. |
|
22838 |
|
22839 2010-06-18 Leandro Pereira <leandro@profusion.mobi> |
|
22840 |
|
22841 [EFL] Unreviewed build fix. |
|
22842 |
|
22843 * CMakeLists.txt: Add inspector/ScriptBreakpoint.cpp. |
|
22844 |
|
22845 2010-06-18 Andy Estes <aestes@apple.com> |
|
22846 |
|
22847 Rubber-stamped by Sam Weinig. |
|
22848 |
|
22849 Update copyright header. |
|
22850 |
|
22851 * html/HTMLLinkElement.h: |
|
22852 |
|
22853 2010-06-17 Andy Estes <aestes@apple.com> |
|
22854 |
|
22855 Reviewed by Dan Bernstein. |
|
22856 |
|
22857 <rdar://problem/8091385> Prevent a crash in WebCore when removing a stylesheet link element in |
|
22858 in a listener to its beforeload event. |
|
22859 https://bugs.webkit.org/show_bug.cgi?id=40742 |
|
22860 |
|
22861 Postpone loading of link elements until after they have been inserted into the DOM and |
|
22862 attached. This prevents DOM mutations triggered by beforeload handlers from firing in the |
|
22863 midst of DOM insertion, which can lead to assertion failures and crashes. |
|
22864 |
|
22865 Test: fast/dom/beforeload/remove-link-in-beforeload-listener.html |
|
22866 |
|
22867 * html/HTMLLinkElement.cpp: |
|
22868 (WebCore::HTMLLinkElement::HTMLLinkElement): Initialize m_shouldProcessAfterAttach to false. |
|
22869 (WebCore::HTMLLinkElement::processCallback): Add a static callback function which calls |
|
22870 HTMLLinkElement::process(). |
|
22871 (WebCore::HTMLLinkElement::insertedIntoDocument): Instead of calling process() directly, set |
|
22872 m_shouldProcessAfterAttach to true to indicate that process() should be called after attach(). |
|
22873 (WebCore::HTMLLinkElement::removedFromDocument): Set m_shouldProcessAfterAttach to false. |
|
22874 (WebCore::HTMLLinkElement::attach): If m_shouldProcessAfterAttach is true, register |
|
22875 HTMLLinkElement::processCallback() as a post-attach callback. |
|
22876 * html/HTMLLinkElement.h: Add m_shouldProcessAfterAttach. |
|
22877 (WebCore::HTMLLinkElement::canLazyAttach): Override canLazyAttach() to return false to |
|
22878 indicate that a full attach should be performed. This ensures the post-attach callbacks are |
|
22879 fired. |
|
22880 |
|
22881 2010-06-18 Chris Fleizach <cfleizach@apple.com> |
|
22882 |
|
22883 Unreviewed. Windows build fix. |
|
22884 |
|
22885 AX: presentational role needs to be inherited by required elements |
|
22886 https://bugs.webkit.org/show_bug.cgi?id=40132 |
|
22887 |
|
22888 * accessibility/AccessibilityRenderObject.cpp: |
|
22889 (WebCore::AccessibilityRenderObject::inheritsPresentationalRole): |
|
22890 |
|
22891 2010-06-18 Chris Fleizach <cfleizach@apple.com> |
|
22892 |
|
22893 Reviewed by David Kilzer. |
|
22894 |
|
22895 AX: presentational role needs to be inherited by required elements |
|
22896 https://bugs.webkit.org/show_bug.cgi?id=40132 |
|
22897 |
|
22898 Test: platform/mac/accessibility/inherited-presentational-lists.html |
|
22899 |
|
22900 * accessibility/AccessibilityRenderObject.cpp: |
|
22901 (WebCore::AccessibilityRenderObject::accessibilityIsIgnored): |
|
22902 (WebCore::AccessibilityRenderObject::inheritsPresentationalRole): |
|
22903 * accessibility/AccessibilityRenderObject.h: |
|
22904 (WebCore::AccessibilityRenderObject::node): |
|
22905 |
|
22906 2010-06-18 Darin Adler <darin@apple.com> |
|
22907 |
|
22908 Fix GTK build after reflection change. |
|
22909 |
|
22910 * bindings/scripts/CodeGeneratorGObject.pm: Changed code |
|
22911 that emits setters to convey the correct type of the attribute. |
|
22912 The GObject code generator takes a different approach to attributes |
|
22913 than the others, so it's hacked a bit to make it more like them. |
|
22914 We should find a way to share more code between the different generators. |
|
22915 |
|
22916 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: |
|
22917 Updated to expect correct results. |
|
22918 |
|
22919 2010-06-18 Yury Semikhatsky <yurys@chromium.org> |
|
22920 |
|
22921 Unreviewed: Qt build fix. |
|
22922 |
|
22923 * inspector/InspectorController.cpp: |
|
22924 |
|
22925 2010-06-18 Justin Garcia <justin.garcia@apple.com> |
|
22926 |
|
22927 Reviewed by Ojan Vafai. |
|
22928 |
|
22929 https://bugs.webkit.org/show_bug.cgi?id=39798 |
|
22930 No selection change notification for editing operation that doesn't change the selection's DOM position |
|
22931 |
|
22932 Some editing operations change the selection visually without affecting its position within |
|
22933 the DOM. This was previously known to occur for certain typing commands, but it can also |
|
22934 occur for some Pastes and changes to block style. |
|
22935 |
|
22936 * editing/Editor.cpp: |
|
22937 (WebCore::Editor::appliedEditing): |
|
22938 (WebCore::Editor::unappliedEditing): |
|
22939 (WebCore::Editor::reappliedEditing): |
|
22940 (WebCore::Editor::changeSelectionAfterCommand): |
|
22941 * editing/Editor.h: |
|
22942 |
|
22943 2010-06-18 Gyuyoung Kim <gyuyoung.kim@samsung.com> |
|
22944 |
|
22945 Unreviewed build fix. |
|
22946 |
|
22947 [EFL] Build break on Debug build. |
|
22948 https://bugs.webkit.org/show_bug.cgi?id=40810 |
|
22949 |
|
22950 * CMakeLists.txt: Add CSSPreloadScanner.cpp |
|
22951 |
|
22952 2010-06-18 Pavel Podivilov <podivilov@chromium.org> |
|
22953 |
|
22954 Reviewed by Yury Semikhatsky. |
|
22955 |
|
22956 Web Inspector: persist breakpoints in inspector settings. |
|
22957 https://bugs.webkit.org/show_bug.cgi?id=14190 |
|
22958 |
|
22959 * GNUmakefile.am: |
|
22960 * WebCore.gypi: |
|
22961 * WebCore.pro: |
|
22962 * WebCore.vcproj/WebCore.vcproj: |
|
22963 * WebCore.xcodeproj/project.pbxproj: |
|
22964 * inspector/InspectorController.cpp: |
|
22965 (WebCore::InspectorController::InspectorController): |
|
22966 (WebCore::InspectorController::setSessionSettings): |
|
22967 (WebCore::InspectorController::didCommitLoad): |
|
22968 (WebCore::InspectorController::setBreakpoint): |
|
22969 (WebCore::InspectorController::removeBreakpoint): |
|
22970 (WebCore::InspectorController::didParseSource): |
|
22971 (WebCore::InspectorController::breakpointsSettingKey): |
|
22972 (WebCore::InspectorController::loadBreakpoints): |
|
22973 (WebCore::InspectorController::saveBreakpoints): |
|
22974 * inspector/InspectorController.h: |
|
22975 * inspector/InspectorValues.cpp: |
|
22976 (WebCore::InspectorValue::parseJSON): |
|
22977 * inspector/InspectorValues.h: |
|
22978 * inspector/ScriptBreakpoint.cpp: Added. |
|
22979 (WebCore::ScriptBreakpoint::sourceBreakpointsFromInspectorObject): |
|
22980 (WebCore::ScriptBreakpoint::inspectorObjectFromSourceBreakpoints): |
|
22981 * inspector/ScriptBreakpoint.h: |
|
22982 * inspector/front-end/BreakpointManager.js: |
|
22983 (WebInspector.BreakpointManager.prototype.addBreakpoint): |
|
22984 (WebInspector.BreakpointManager.prototype.restoredBreakpoint): |
|
22985 (WebInspector.BreakpointManager.prototype.breakpointsForSourceID): |
|
22986 (WebInspector.BreakpointManager.prototype.breakpointsForURL): |
|
22987 (WebInspector.BreakpointManager.prototype._addBreakpoint): |
|
22988 * inspector/front-end/inspector.js: |
|
22989 (WebInspector.restoredBreakpoint): |
|
22990 |
|
22991 2010-06-18 Darin Adler <darin@apple.com> |
|
22992 |
|
22993 Reviewed by Sam Weinig. |
|
22994 |
|
22995 Implement additional DOM attribute reflection for bindings |
|
22996 https://bugs.webkit.org/show_bug.cgi?id=39936 |
|
22997 |
|
22998 - Added support for [Reflect] for long, unsigned long, and boolean |
|
22999 attributes. |
|
23000 - Fixed code that set attributes like this: <video controls="controls"> |
|
23001 to instead set them like this: <video controls>. |
|
23002 - Added lots more uses of [Reflect]. |
|
23003 - Removed now-unneeded [ConvertFromString]. |
|
23004 - Made [Reflect] imply [ConvertNullToNullString] so we can get rid |
|
23005 of most uses of the latter. |
|
23006 - Made [Reflect] automatically lowercase the name of the reflected |
|
23007 content attribute to minimize the need to specify a custom content |
|
23008 attribute name. |
|
23009 |
|
23010 One thing this patch does *not* do is remove the unneeded functions |
|
23011 in the various DOM classes that are no longer used by the bindings. |
|
23012 We should do that in a followup. |
|
23013 |
|
23014 * bindings/scripts/CodeGenerator.pm: Added new functions so code |
|
23015 can be shared across bindings, GetterExpressionPrefix and |
|
23016 SetterExpressionPrefix. We can do a lot more refactoring like |
|
23017 this in the future. |
|
23018 |
|
23019 * bindings/scripts/CodeGeneratorCPP.pm: Removed unneeded |
|
23020 ConvertFromString handling, changed to use the new |
|
23021 GetterExpressionPrefix and SetterExpressionPrefix functions |
|
23022 to better handle reflected DOM attributes. |
|
23023 |
|
23024 * bindings/scripts/CodeGeneratorGObject.pm: Removed unneeded |
|
23025 ConvertFromString handling, changed to use the new |
|
23026 GetterExpressionPrefix and SetterExpressionPrefix functions |
|
23027 to better handle reflected DOM attributes. Fixed a few things |
|
23028 in the output so the .cpp file will have more WebKit style. |
|
23029 The .h file should be GTK style, but the .cpp file can be the |
|
23030 standard WebKit style eventually. |
|
23031 |
|
23032 * bindings/scripts/CodeGeneratorJS.pm: Changed to use the new |
|
23033 GetterExpressionPrefix and SetterExpressionPrefix functions |
|
23034 and removed a now-unneeded IsSVGAnimatedType special case since |
|
23035 the new functions take care of it. Made reflected attributes |
|
23036 automatically convert null to the null string without a |
|
23037 separate ConvertNullToNullString attribute. |
|
23038 |
|
23039 * bindings/scripts/CodeGeneratorObjC.pm: Changed to use the new |
|
23040 GetterExpressionPrefix and SetterExpressionPrefix functions |
|
23041 and removed a now-unneeded IsSVGAnimatedType special case since |
|
23042 the new functions take care of it. Redid the special cases for |
|
23043 ownerDocument and for operator to fit better with the new code |
|
23044 paths. Removed unneeded ConvertFromString handling. |
|
23045 |
|
23046 * bindings/scripts/CodeGeneratorV8.pm: Changed to use the new |
|
23047 GetterExpressionPrefix and SetterExpressionPrefix functions |
|
23048 and removed a now-unneeded IsSVGAnimatedType special case since |
|
23049 the new functions take care of it. Made reflected attributes |
|
23050 automatically convert null to the null string without a |
|
23051 separate ConvertNullToNullString attribute. |
|
23052 |
|
23053 * bindings/scripts/test/TestObj.idl: Added some test cases for |
|
23054 content attribute reflection and for exceptions in string-typed |
|
23055 attributes. |
|
23056 |
|
23057 * bindings/scripts/test/CPP/WebKitDOMTestObj.cpp: Updated. |
|
23058 * bindings/scripts/test/CPP/WebKitDOMTestObj.h: Ditto. |
|
23059 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: Ditto. |
|
23060 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: Ditto. |
|
23061 * bindings/scripts/test/JS/JSTestObj.cpp: Ditto. |
|
23062 * bindings/scripts/test/JS/JSTestObj.h: Ditto. |
|
23063 * bindings/scripts/test/ObjC/DOMTestObj.h: Ditto. |
|
23064 * bindings/scripts/test/ObjC/DOMTestObj.mm: Ditto. |
|
23065 * bindings/scripts/test/V8/V8TestObj.cpp: Ditto. |
|
23066 |
|
23067 * dom/Element.cpp: |
|
23068 (WebCore::Element::getIntegralAttribute): Added. |
|
23069 (WebCore::Element::setIntegralAttribute): Added. |
|
23070 (WebCore::Element::getUnsignedIntegralAttribute): Added. |
|
23071 (WebCore::Element::setUnsignedIntegralAttribute): Added. |
|
23072 * dom/Element.h: Added new attribute get/set functions for bindings. |
|
23073 |
|
23074 * html/HTMLMediaElement.cpp: |
|
23075 (WebCore::HTMLMediaElement::isURLAttribute): Added. Returns true for |
|
23076 srcAttr. |
|
23077 * html/HTMLMediaElement.h: Added isURLAttribute. |
|
23078 |
|
23079 * html/HTMLVideoElement.cpp: |
|
23080 (WebCore::HTMLVideoElement::isURLAttribute): Changed to call |
|
23081 HTMLMediaElement::isURLAttribute before checking for posterAttr. |
|
23082 |
|
23083 * html/HTMLAnchorElement.idl: |
|
23084 * html/HTMLAppletElement.idl: |
|
23085 * html/HTMLAreaElement.idl: |
|
23086 * html/HTMLBRElement.idl: |
|
23087 * html/HTMLBaseElement.idl: |
|
23088 * html/HTMLBaseFontElement.idl: |
|
23089 * html/HTMLBlockquoteElement.idl: |
|
23090 * html/HTMLBodyElement.idl: |
|
23091 * html/HTMLButtonElement.idl: |
|
23092 * html/HTMLDListElement.idl: |
|
23093 * html/HTMLDirectoryElement.idl: |
|
23094 * html/HTMLDivElement.idl: |
|
23095 * html/HTMLElement.idl: |
|
23096 * html/HTMLEmbedElement.idl: |
|
23097 * html/HTMLFontElement.idl: |
|
23098 * html/HTMLFormElement.idl: |
|
23099 * html/HTMLFrameElement.idl: |
|
23100 * html/HTMLFrameSetElement.idl: |
|
23101 * html/HTMLHRElement.idl: |
|
23102 * html/HTMLHeadElement.idl: |
|
23103 * html/HTMLHeadingElement.idl: |
|
23104 * html/HTMLHtmlElement.idl: |
|
23105 * html/HTMLIFrameElement.idl: |
|
23106 * html/HTMLImageElement.idl: |
|
23107 * html/HTMLInputElement.idl: |
|
23108 * html/HTMLIsIndexElement.idl: |
|
23109 * html/HTMLLIElement.idl: |
|
23110 * html/HTMLLabelElement.idl: |
|
23111 * html/HTMLLegendElement.idl: |
|
23112 * html/HTMLLinkElement.idl: |
|
23113 * html/HTMLMapElement.idl: |
|
23114 * html/HTMLMediaElement.idl: |
|
23115 * html/HTMLMenuElement.idl: |
|
23116 * html/HTMLMetaElement.idl: |
|
23117 * html/HTMLModElement.idl: |
|
23118 * html/HTMLOListElement.idl: |
|
23119 * html/HTMLObjectElement.idl: |
|
23120 * html/HTMLOptGroupElement.idl: |
|
23121 * html/HTMLOptionElement.idl: |
|
23122 * html/HTMLParagraphElement.idl: |
|
23123 * html/HTMLParamElement.idl: |
|
23124 * html/HTMLPreElement.idl: |
|
23125 * html/HTMLQuoteElement.idl: |
|
23126 * html/HTMLScriptElement.idl: |
|
23127 * html/HTMLStyleElement.idl: |
|
23128 * html/HTMLTableCaptionElement.idl: |
|
23129 * html/HTMLTableCellElement.idl: |
|
23130 * html/HTMLTableColElement.idl: |
|
23131 * html/HTMLTableElement.idl: |
|
23132 * html/HTMLTableRowElement.idl: |
|
23133 * html/HTMLTableSectionElement.idl: |
|
23134 * html/HTMLTextAreaElement.idl: |
|
23135 * html/HTMLUListElement.idl: |
|
23136 * html/HTMLVideoElement.idl: |
|
23137 * svg/SVGElement.idl: |
|
23138 Added more uses of [Reflect]. Got rid of uses of [ConvertNullToNullString] that |
|
23139 are now unneeded since [Reflect] now implies that. Changed formatting to be |
|
23140 simpler and consistent without all the lining up and multiple lines. |
|
23141 |
|
23142 2010-06-17 Dumitru Daniliuc <dumi@chromium.org> |
|
23143 |
|
23144 Reviewed by Dimitri Glazkov. |
|
23145 |
|
23146 Remove some unnecessary checks that cause compiler warnings. |
|
23147 https://bugs.webkit.org/show_bug.cgi?id=40772 |
|
23148 |
|
23149 * bindings/v8/custom/V8SQLResultSetRowListCustom.cpp: |
|
23150 (WebCore::V8SQLResultSetRowList::itemCallback): |
|
23151 * bindings/v8/npruntime.cpp: |
|
23152 |
|
23153 2010-06-18 Mikhail Naganov <mnaganov@chromium.org> |
|
23154 |
|
23155 Reviewed by Yury Semikhatsky. |
|
23156 |
|
23157 Implement 'takeHeapSnapshot' in InspectorController. |
|
23158 |
|
23159 https://bugs.webkit.org/show_bug.cgi?id=40834 |
|
23160 |
|
23161 * bindings/js/ScriptProfiler.h: |
|
23162 (WebCore::ScriptProfiler::takeHeapSnapshot): |
|
23163 * bindings/v8/ScriptProfiler.cpp: |
|
23164 (WebCore::ScriptProfiler::takeHeapSnapshot): |
|
23165 * bindings/v8/ScriptProfiler.h: |
|
23166 * inspector/InspectorBackend.cpp: |
|
23167 (WebCore::InspectorBackend::takeHeapSnapshot): |
|
23168 * inspector/InspectorBackend.h: |
|
23169 * inspector/InspectorBackend.idl: |
|
23170 * inspector/InspectorController.cpp: |
|
23171 (WebCore::InspectorController::takeHeapSnapshot): |
|
23172 * inspector/InspectorController.h: |
|
23173 |
|
23174 2010-06-18 Dan Bernstein <mitz@apple.com> |
|
23175 |
|
23176 Reviewed by Anders Carlsson. |
|
23177 |
|
23178 REGRESSION (r61379?): Assertion failure in Element::getURLAttribute() when accessing the src attribute of a script element |
|
23179 https://bugs.webkit.org/show_bug.cgi?id=40831 |
|
23180 |
|
23181 Test: fast/dom/HTMLScriptElement/isURLAttribute.html |
|
23182 |
|
23183 * html/HTMLScriptElement.cpp: |
|
23184 (WebCore::HTMLScriptElement::isURLAttribute): Check for the 'src' attribute. |
|
23185 |
|
23186 2010-06-18 Sheriff Bot <webkit.review.bot@gmail.com> |
|
23187 |
|
23188 Unreviewed, rolling out r61405. |
|
23189 http://trac.webkit.org/changeset/61405 |
|
23190 https://bugs.webkit.org/show_bug.cgi?id=40838 |
|
23191 |
|
23192 broke chromium mac compile (Requested by tonyg-cr1 on |
|
23193 #webkit). |
|
23194 |
|
23195 * bindings/v8/ScriptSourceCode.h: |
|
23196 (WebCore::ScriptSourceCode::ScriptSourceCode): |
|
23197 * bindings/v8/V8Proxy.cpp: |
|
23198 (WebCore::V8Proxy::compileScript): |
|
23199 (WebCore::V8Proxy::evaluate): |
|
23200 * bindings/v8/V8Proxy.h: |
|
23201 |
|
23202 2010-06-18 Zhenyao Mo <zmo@google.com> |
|
23203 |
|
23204 Reviewed by Dimitri Glazkov. |
|
23205 |
|
23206 Fix WebGLRenderingContext helper functions find{Texture/Renderbuffer/Buffer} |
|
23207 https://bugs.webkit.org/show_bug.cgi?id=40176 |
|
23208 |
|
23209 * html/canvas/WebGLBuffer.cpp: Remove constructor with existing name. |
|
23210 * html/canvas/WebGLBuffer.h: Ditto. |
|
23211 * html/canvas/WebGLRenderingContext.cpp: |
|
23212 (WebCore::WebGLRenderingContext::getVertexAttrib): Use findBuffer instead of creating a new WebGLBuffer. |
|
23213 (WebCore::WebGLRenderingContext::findTexture): Deal with name == 0 case and return raw pointer. |
|
23214 (WebCore::WebGLRenderingContext::findRenderbuffer): Ditto. |
|
23215 (WebCore::WebGLRenderingContext::findBuffer): Find WebGLBuffer object using given name. |
|
23216 * html/canvas/WebGLRenderingContext.h: Add findBuffer function declaration, change return type to raw pointer. |
|
23217 |
|
23218 2010-06-18 Tony Gentilcore <tonyg@chromium.org> |
|
23219 |
|
23220 Reviewed by David Levin. |
|
23221 |
|
23222 Persist V8's ScriptData to the memory cache. |
|
23223 https://bugs.webkit.org/show_bug.cgi?id=38661 |
|
23224 |
|
23225 This stores V8's ScriptData in the memory cache and also causes the |
|
23226 network platform layer to be notified of the available cacheable |
|
23227 metadata. |
|
23228 |
|
23229 Chromium's morejs benchmark showed a ~7% improvement when this was |
|
23230 originally submitted (before it had to be rolled back). |
|
23231 |
|
23232 Test: fast/js/parser-high-byte-character.html |
|
23233 |
|
23234 * bindings/v8/ScriptSourceCode.h: |
|
23235 (WebCore::ScriptSourceCode::ScriptSourceCode): |
|
23236 (WebCore::ScriptSourceCode::cachedScript): |
|
23237 * bindings/v8/V8Proxy.cpp: |
|
23238 (WebCore::V8Proxy::compileScript): |
|
23239 (WebCore::V8Proxy::precompileScript): |
|
23240 (WebCore::V8Proxy::evaluate): |
|
23241 * bindings/v8/V8Proxy.h: |
|
23242 |
|
23243 2010-06-18 Anton Muhin <antonm@chromium.org> |
|
23244 |
|
23245 Reviewed by Dimitri Glazkov. |
|
23246 |
|
23247 [v8] Finish migration to new named property query API |
|
23248 https://bugs.webkit.org/show_bug.cgi?id=40771 |
|
23249 Remove definition which allowed gradual transition to new API. |
|
23250 See https://bugs.webkit.org/show_bug.cgi?id=40303 for first phase. |
|
23251 |
|
23252 * config.h: |
|
23253 |
|
23254 2010-06-17 Pavel Feldman <pfeldman@chromium.org> |
|
23255 |
|
23256 Reviewed by Yury Semikhatsky. |
|
23257 |
|
23258 Web Inspector: bring XHR console records back. |
|
23259 - adds "Enable XHR Monitor" / "Disable XHR Monitor" actions to the console's context menu |
|
23260 - make the chosen option persist in the settings. |
|
23261 |
|
23262 https://bugs.webkit.org/show_bug.cgi?id=40799 |
|
23263 |
|
23264 * English.lproj/localizedStrings.js: |
|
23265 * inspector/InspectorBackend.cpp: |
|
23266 (WebCore::InspectorBackend::disableSearchingForNode): |
|
23267 (WebCore::InspectorBackend::enableMonitoringXHR): |
|
23268 (WebCore::InspectorBackend::disableMonitoringXHR): |
|
23269 * inspector/InspectorBackend.h: |
|
23270 * inspector/InspectorBackend.idl: |
|
23271 * inspector/InspectorController.cpp: |
|
23272 (WebCore::InspectorController::InspectorController): |
|
23273 (WebCore::InspectorController::setMonitoringXHR): |
|
23274 (WebCore::InspectorController::didLoadResourceFromMemoryCache): |
|
23275 (WebCore::InspectorController::identifierForInitialRequest): |
|
23276 (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest): |
|
23277 (WebCore::InspectorController::ensureSettingsLoaded): |
|
23278 * inspector/InspectorController.h: |
|
23279 * inspector/InspectorFrontend.cpp: |
|
23280 (WebCore::InspectorFrontend::monitoringXHRWasEnabled): |
|
23281 (WebCore::InspectorFrontend::monitoringXHRWasDisabled): |
|
23282 * inspector/InspectorFrontend.h: |
|
23283 * inspector/front-end/ConsoleView.js: |
|
23284 (WebInspector.ConsoleView.prototype._handleContextMenuEvent): |
|
23285 (WebInspector.ConsoleView.prototype._registerShortcuts): |
|
23286 * inspector/front-end/InjectedScript.js: |
|
23287 (injectedScriptConstructor.): |
|
23288 * inspector/front-end/InspectorBackendStub.js: |
|
23289 (.WebInspector.InspectorBackendStub): |
|
23290 (.WebInspector.InspectorBackendStub.prototype.enableMonitoringXHR): |
|
23291 (.WebInspector.InspectorBackendStub.prototype.disableMonitoringXHR): |
|
23292 * inspector/front-end/inspector.js: |
|
23293 (WebInspector.monitoringXHRWasEnabled): |
|
23294 (WebInspector.monitoringXHRWasDisabled): |
|
23295 * xml/XMLHttpRequest.cpp: |
|
23296 (WebCore::XMLHttpRequest::didFinishLoading): |
|
23297 |
|
23298 2010-06-18 Nikolas Zimmermann <nzimmermann@rim.com> |
|
23299 |
|
23300 Reviewed by Dirk Schulze. |
|
23301 |
|
23302 Modernize SVG Text code, following the HTML design |
|
23303 https://bugs.webkit.org/show_bug.cgi?id=40663 |
|
23304 |
|
23305 SVG Text does not support subpixel positioning |
|
23306 https://bugs.webkit.org/show_bug.cgi?id=12172 |
|
23307 |
|
23308 RenderSVGText can't do partial repaints |
|
23309 https://bugs.webkit.org/show_bug.cgi?id=15386 |
|
23310 |
|
23311 HTML and SVG need to share more text painting code |
|
23312 https://bugs.webkit.org/show_bug.cgi?id=15644 |
|
23313 |
|
23314 Rewrite SVG Text rendering, only keeping the layout of the actual characters/chunks as it was. |
|
23315 We're now drawing SVG Text very similar to HTML Text, utilizing the SVGInlineFlowBox/SVGInlineTextBox structure, |
|
23316 instead of painting all text content of a <text> element from the SVGRootInlineBox, as it was the last years. |
|
23317 |
|
23318 Rough overview of the changes: |
|
23319 - Partial repainting support for text selections (startPos/endPos are respected), no more redrawing of the whole <text> content while selecting |
|
23320 - Subpixel positioning (near pixel-perfect rendering for all W3C tests that contain text, finally!) |
|
23321 -> much better textPath results, characters now align as expected, as all rounding hacks are disabled for SVG text runs, and subpixel precision is used while painting |
|
23322 - No more custom handling of selection, the standard methods offsetFromPosition() / selectionRectForText() are used instead. |
|
23323 - Selection works as expected on stretched/squeezed text (lengthAdjust="spacingAndGlyphs"), takes 'includePartialGlyphs' into account - just like HTML text |
|
23324 - Correct text decoration drawing (proper with and positions and rendering-order, underline/overline before text, strike-through afterwards) |
|
23325 - Proper sizing of all InlineBoxes, starting from the SVGRootInlineBox, down to every single flow & text box |
|
23326 -> correct DRT results, no more weird negative offsets of text runs, etc. Looks exactly like the HTML text test results. |
|
23327 - Rewritten SVGTextContentElement API to take per-character / per-chunk transformations into account. |
|
23328 - Speeeeeed! Drawing is much faster now. |
|
23329 |
|
23330 Add 24 new testcases covering basic selection features and the SVGTextContentElement API. Each test draws a half-opaque red rectangle, calculated using |
|
23331 SVGTextContentElement API to highlight the area that is supposed to be selected. Then eventSender API is utilized to move the mouse to the calculated |
|
23332 start origin, holding it down and moving it to the end position. |
|
23333 |
|
23334 A detailed list of tests that show progression, can be found in the corresponding LayoutTests/ChangeLog. |
|
23335 Note that this requires a rebaselining of all SVG tests containing text elements. |
|
23336 |
|
23337 Tests: svg/hixie/text/001.xml (moved from svg/hixie/text/001-broken.xml) |
|
23338 svg/text/lengthAdjust-text-metrics.html |
|
23339 svg/text/select-textLength-spacing-squeeze-1.svg |
|
23340 svg/text/select-textLength-spacing-squeeze-2.svg |
|
23341 svg/text/select-textLength-spacing-squeeze-3.svg |
|
23342 svg/text/select-textLength-spacing-squeeze-4.svg |
|
23343 svg/text/select-textLength-spacing-stretch-1.svg |
|
23344 svg/text/select-textLength-spacing-stretch-2.svg |
|
23345 svg/text/select-textLength-spacing-stretch-3.svg |
|
23346 svg/text/select-textLength-spacing-stretch-4.svg |
|
23347 svg/text/select-textLength-spacingAndGlyphs-squeeze-1.svg |
|
23348 svg/text/select-textLength-spacingAndGlyphs-squeeze-2.svg |
|
23349 svg/text/select-textLength-spacingAndGlyphs-squeeze-3.svg |
|
23350 svg/text/select-textLength-spacingAndGlyphs-squeeze-4.svg |
|
23351 svg/text/select-textLength-spacingAndGlyphs-stretch-1.svg |
|
23352 svg/text/select-textLength-spacingAndGlyphs-stretch-2.svg |
|
23353 svg/text/select-textLength-spacingAndGlyphs-stretch-3.svg |
|
23354 svg/text/select-textLength-spacingAndGlyphs-stretch-4.svg |
|
23355 svg/text/select-x-list-1.svg |
|
23356 svg/text/select-x-list-2.svg |
|
23357 svg/text/select-x-list-3.svg |
|
23358 svg/text/select-x-list-4.svg |
|
23359 svg/text/select-x-list-with-tspans-1.svg |
|
23360 svg/text/select-x-list-with-tspans-2.svg |
|
23361 svg/text/select-x-list-with-tspans-3.svg |
|
23362 svg/text/select-x-list-with-tspans-4.svg |
|
23363 |
|
23364 * rendering/InlineBox.h: Remove not needed isInlineBox() method. |
|
23365 (WebCore::InlineBox::isInlineTextBox): Constify this method. |
|
23366 (WebCore::InlineBox::isSVGInlineTextBox): Added, with ENABLE(SVG) guards, just like the existing isSVGRootInlineBox(). |
|
23367 (WebCore::InlineBox::isSVGRootInlineBox): Constify this method. |
|
23368 (WebCore::InlineBox::calculateBoundaries): Added, with ENABLE(SVG) guards, used to calculate the whole boundaries of a InlineText/FlowBox, only used in SVG text. |
|
23369 * rendering/InlineFlowBox.h: Devirtualize placeBoxesHorizontally(), SVG no more overrides it. |
|
23370 * rendering/InlineTextBox.h: Virtualize selectionStartEnd() - SVGInlineTextBox needs to change start/endPositions based on the current text chunk part that it's rendering. |
|
23371 SVGTextChunkLayoutInfo.h contains a detailed documentation what a SVGTextChunk/SVGTextChunkPart is, and why they are necessary. |
|
23372 (WebCore::InlineTextBox::isInlineTextBox): Constify this method. |
|
23373 * rendering/RenderBlock.h: |
|
23374 (WebCore::RenderBlock::forceLayoutInlineChildren): Add helper method, used only by RenderSVGText, to use a simplified layout strategy, which is a big speed win. |
|
23375 * rendering/RenderBlockLineLayout.cpp: |
|
23376 (WebCore::RenderBlock::computeHorizontalPositionsForLine): Remove all isSVGText() special cases, as this function is not called anymore for SVG text. |
|
23377 (WebCore::RenderBlock::layoutInlineChildren): Don't call computeHorizontalPositionsForLine() for SVG text. computePerCharacterLayoutInformation() overrides it anyway. |
|
23378 * rendering/RenderSVGInline.cpp: Remove custom absoluteRects/absoluteQuads code, all shared with RenderInline now. |
|
23379 (WebCore::RenderSVGInline::clippedOverflowRectForRepaint): Added, forward to SVGRenderBase, just like all other non-text SVG renderers do. |
|
23380 (WebCore::RenderSVGInline::computeRectForRepaint): Ditto. |
|
23381 (WebCore::RenderSVGInline::mapLocalToContainer): Ditto |
|
23382 * rendering/RenderSVGInline.h: |
|
23383 * rendering/RenderSVGInlineText.cpp: Remove destroy() hack, which called setNeedsLayoutAndPrefWidthsRecalc/repaint on destruction. |
|
23384 As repaint rects work properly now, this hack is no longer necessary, it was only hiding the real problem. |
|
23385 (WebCore::RenderSVGInlineText::styleDidChange): Don't skip RenderText::styleDidChange() anymore, which automatically schedules layout changes for us. |
|
23386 (WebCore::RenderSVGInlineText::localCaretRect): Remove outdated comment, localCaretRect() is not yet needed in SVG text code. |
|
23387 * rendering/RenderSVGInlineText.h: Remove custom absoluteRects/absoluteQuads/selectionRectForRepaint/positionForPoint/destroy/computeRectForRepaint* code, all shared with RenderText now. |
|
23388 * rendering/RenderSVGText.cpp: |
|
23389 (WebCore::RenderSVGText::mapLocalToContainer): Take x/y translation into account, but do NOT include in localToParentTransform(), as that would affect rendering. |
|
23390 (WebCore::RenderSVGText::layout): Use super-simplified layout strategy, removing a lot of uncessary stuff done by RenderBlock, that SVG does not need. |
|
23391 (WebCore::RenderSVGText::absoluteRects): Remove dead-code, retreving the RenderSVGRoot* object, not necessary since a longer time. |
|
23392 (WebCore::RenderSVGText::absoluteQuads): Ditto. |
|
23393 (WebCore::RenderSVGText::paint): Early exit if we're not in PaintPhaseForeground/PaintPhaseSelfOutline. We're not interessted in other phases. |
|
23394 (WebCore::RenderSVGText::strokeBoundingBox): Fix stroke width calculation, no need to special case SVGFonts. |
|
23395 * rendering/RenderSVGText.h: Remove updateFirstLineBlock/updateFirstLetter overrides, the new RenderSVGText::layout() code, doesn't use these methods at all. |
|
23396 We asked RenderBlock to layout before, which was calling updateFirstLetter & co, this is gone now, as it was all not needed. |
|
23397 (WebCore::RenderSVGText::objectBoundingBox): Directly return the frameRect here, inlined for speed. |
|
23398 * rendering/RootInlineBox.cpp: |
|
23399 (WebCore::RootInlineBox::verticallyAlignBoxes): Early-exit if we're a SVGRootInlineBox. SVG handles this on its own. |
|
23400 * rendering/RootInlineBox.h: Devirtualize verticallyAlignBoxes(), SVG no longer overrides it. Remove virtual computePerCharacterLayoutInformation() method, only lives in SVGRootInlineBox now. |
|
23401 * rendering/SVGCharacterData.h: Remove no longer needed SVGTextDecorationInfo. |
|
23402 * rendering/SVGCharacterLayoutInfo.cpp: Don't pass a reference to a Vector<SVGChar> to SVGCharacterLayoutInfo, let it create it. |
|
23403 (WebCore::SVGCharacterLayoutInfo::SVGCharacterLayoutInfo): |
|
23404 * rendering/SVGCharacterLayoutInfo.h: |
|
23405 * rendering/SVGInlineFlowBox.cpp: |
|
23406 (WebCore::SVGInlineFlowBox::paint): Ask children to paint. |
|
23407 (WebCore::SVGInlineFlowBox::calculateBoundaries): Calculate boundaries by uniting all direct children boundaries. |
|
23408 * rendering/SVGInlineFlowBox.h: Remove placeBoxesHorizontally, which does not get called anymore, and does not need to be overriden. |
|
23409 * rendering/SVGInlineTextBox.cpp: |
|
23410 (WebCore::SVGInlineTextBox::SVGInlineTextBox): Don't use abbrevations for variable names, initialize new member variables. |
|
23411 (WebCore::SVGInlineTextBox::measureCharacter): New helper function extracted from buildLayoutInformation, replacing calculateGlyphWidth/Height. |
|
23412 (WebCore::SVGInlineTextBox::offsetForPosition): Implement this method by utilizing Font::offsetForPosition(), but respecting the text chunk parts. |
|
23413 (WebCore::SVGInlineTextBox::positionForOffset): No change here, still not used. |
|
23414 (WebCore::SVGInlineTextBox::selectionRect): Rewritten, utilizing Font::selectionRectForText(), taking text chunk parts into account, and the supplied startPos/endPos. |
|
23415 (WebCore::SVGInlineTextBox::paint): Rewritten, to handle paint servers much more elegant, than the old solution. See code for details, too much to explain here. |
|
23416 (WebCore::SVGInlineTextBox::acquirePaintingResource): Helper function, used from paint(). |
|
23417 (WebCore::SVGInlineTextBox::releasePaintingResource): Ditto. |
|
23418 (WebCore::SVGInlineTextBox::prepareGraphicsContextForTextPainting): Ditto. |
|
23419 (WebCore::SVGInlineTextBox::restoreGraphicsContextAfterTextPainting): Ditto. |
|
23420 (WebCore::SVGInlineTextBox::constructTextRun): Helper function centralizing the creation of a TextRun object, used to draw/measure SVG text. |
|
23421 (WebCore::SVGInlineTextBox::mapStartEndPositionsIntoChunkPartCoordinates): Important helper function, mapping a startPos/endPos from InlineTextBox |
|
23422 coordinate space to the SVGInlineTextBox, respecting the current text chunk part. |
|
23423 (WebCore::SVGInlineTextBox::selectionStartEnd): Call InlineTextBox::selectionStartEnd(), and apply post fixes when m_currentChunkPart is set. (called when painting a selected chunk part) |
|
23424 (WebCore::positionOffsetForDecoration): Refactored from old paintDecoration() code. |
|
23425 (WebCore::thicknessForDecoration): Ditto. |
|
23426 (WebCore::findRenderObjectDefininingTextDecoration): Ditto. |
|
23427 (WebCore::SVGInlineTextBox::paintDecoration): Ditto. (Can not share the code with HTML, as we need floating point precision, and directly call fillRect, instead of drawHighlightForText.) |
|
23428 (WebCore::SVGInlineTextBox::paintDecorationWithStyle): Ditto. |
|
23429 (WebCore::SVGInlineTextBox::paintSelection): New method, painting text selections with floating-point precision. |
|
23430 (WebCore::SVGInlineTextBox::paintText): New method, painting text with floating-point precision, correctly handling selected text, removing the need for special SVG text sub-paint phases. |
|
23431 (GlyphFill/StrokeSelectionPhase, GlyphFill/StrokePhase) |
|
23432 (WebCore::SVGInlineTextBox::buildLayoutInformation): Use new measureCharacter() helper function, renamed some variables, to avoid abbrevations. |
|
23433 (WebCore::SVGInlineTextBox::calculateGlyphBoundaries): Rewritten to use new measureCharacter() helper function. |
|
23434 (WebCore::SVGInlineTextBox::calculateBoundaries): Rewritten to take text chunk parts into account, serves as central method used to layout InlineBoxes (see SVGRootInlineBox.) |
|
23435 * rendering/SVGInlineTextBox.h: |
|
23436 (WebCore::SVGInlineTextBox::isSVGInlineTextBox): Added. |
|
23437 (WebCore::SVGInlineTextBox::setHeight): Rename variable, to avoid abbrevations. |
|
23438 (WebCore::SVGInlineTextBox::chunkTransformation): New helper function, returning the transformation, that gets applied to the complete text chunk, if any. |
|
23439 (WebCore::SVGInlineTextBox::setChunkTransformation): New helper function used by SVGRrootInlineBox, to set the chunk transformation, during text chunk part propagation phase. |
|
23440 (WebCore::SVGInlineTextBox::addChunkPartInformation): Ditto. |
|
23441 (WebCore::SVGInlineTextBox::svgTextChunkParts): Ditto. |
|
23442 * rendering/SVGRootInlineBox.cpp: Virtually rewritten, to be designed more like HTMLs RootInlineBox, diving into children for painting. |
|
23443 (WebCore::SVGRootInlineBox::paint): Ask children to paint, nothing more. No more traversing through the SVGTextChunks, figuring out which part to render, this is done in layout phase now. |
|
23444 (WebCore::SVGRootInlineBox::computePerCharacterLayoutInformation): Completly redesigned, see SVGTextChunkLayoutInfo.h for a high-level overview. |
|
23445 (WebCore::SVGRootInlineBox::buildLayoutInformation): Just small cleanups, nothing changed here. |
|
23446 (WebCore::SVGRootInlineBox::layoutChildBoxes): New helper function, extracted from old layoutInlineBoxes(). |
|
23447 (WebCore::SVGRootInlineBox::layoutRootBox): Ditto. |
|
23448 (WebCore::SVGRootInlineBox::propagateTextChunkPartInformation): Key-concept of the new design, builds "text chunk parts" and propagates that knownledge to all child SVGInlineTextBoxes. |
|
23449 * rendering/SVGRootInlineBox.h: |
|
23450 (WebCore::SVGRootInlineBox::isSVGRootInlineBox): Constified method. |
|
23451 (WebCore::SVGRootInlineBox::setHeight): Change variable name, to avoid abbrevations. |
|
23452 * rendering/SVGTextChunkLayoutInfo.cpp: Remove if 0, enable compilation. |
|
23453 * rendering/SVGTextChunkLayoutInfo.h: Add large comment explaining text chunk parts, the key concept of the new design. Remove SVGTextChunkWalker & friends, no longer used. |
|
23454 (WebCore::SVGTextChunkPart::SVGTextChunkPart): |
|
23455 (WebCore::SVGTextChunkPart::isValid): |
|
23456 (WebCore::SVGTextChunk::SVGTextChunk): |
|
23457 (WebCore::SVGTextChunkLayoutInfo::SVGTextChunkLayoutInfo): |
|
23458 (WebCore::SVGTextChunkLayoutInfo::textChunks): |
|
23459 * rendering/SVGTextLayoutUtilities.cpp: |
|
23460 (WebCore::cummulatedWidthOfInlineBoxCharacterRange): |
|
23461 (WebCore::cummulatedHeightOfInlineBoxCharacterRange): |
|
23462 (WebCore::svgTextRunForInlineTextBox): Disable rounding hacks, explain parameters with comments, why they have which values. |
|
23463 * rendering/SVGTextLayoutUtilities.h: Remove SVGTextPaintSubphase and SVGTextPaintInfo. |
|
23464 * rendering/SVGTextQuery.cpp: Remove if 0, enable compilation. |
|
23465 * rendering/SVGTextQuery.h: Ditto. |
|
23466 * svg/SVGStyledElement.cpp: Very important change! Do not treat CSS attributes as recognized attributes, that would lead to setNeedsLayout() calls, reducing performance! |
|
23467 This hack existed, as we were not dealing with text updates correctly, now that RenderSVGInlineText::styleDidChange is fixed, it's no longer necessary. |
|
23468 (WebCore::SVGStyledElement::isKnownAttribute): |
|
23469 * svg/SVGTextContentElement.cpp: Completely remove the SVGTextContentElement API, that manually traversed all text chunks, instead use the new SVGTextQuery API. |
|
23470 (WebCore::SVGTextContentElement::getNumberOfChars): |
|
23471 (WebCore::SVGTextContentElement::getComputedTextLength): |
|
23472 (WebCore::SVGTextContentElement::getSubStringLength): |
|
23473 (WebCore::SVGTextContentElement::getStartPositionOfChar): |
|
23474 (WebCore::SVGTextContentElement::getEndPositionOfChar): |
|
23475 (WebCore::SVGTextContentElement::getExtentOfChar): |
|
23476 (WebCore::SVGTextContentElement::getRotationOfChar): |
|
23477 (WebCore::SVGTextContentElement::getCharNumAtPosition): |
|
23478 * svg/SVGTextElement.cpp: Very important change! Do not calls setNeedsLayout() on RenderSVGText, if childrenChanged() has been called. |
|
23479 * svg/SVGTextElement.h: Completly remove childrenChanged() - no longer necessary, updates work as expected without it now. |
|
23480 |
|
23481 2010-06-18 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
23482 |
|
23483 Reviewed by David Levin. |
|
23484 |
|
23485 Fix compilation when filters are disabled. Revision r60689 |
|
23486 changed the signature of SVGRenderBase::prepareToRenderSVGContent() |
|
23487 but didn't change the unsused parameters when filters are disabled. |
|
23488 https://bugs.webkit.org/show_bug.cgi?id=40625 |
|
23489 |
|
23490 No new tests. Compilation fix. |
|
23491 |
|
23492 * rendering/SVGRenderSupport.cpp: |
|
23493 (WebCore::SVGRenderBase::prepareToRenderSVGContent): |
|
23494 |
|
23495 2010-06-18 Adam Barth <abarth@webkit.org> |
|
23496 |
|
23497 Reviewed by Darin Adler. |
|
23498 |
|
23499 noAccess url schemes block access to inline stylesheets |
|
23500 https://bugs.webkit.org/show_bug.cgi?id=32309 |
|
23501 |
|
23502 Instead of using baseURL() to grab the security context we should just |
|
23503 use finalURL directly. When I wrote the original patch that added this |
|
23504 security check, finalURL didn't exist yet. |
|
23505 |
|
23506 If finalURL is an empty URL, that means we generated the style sheet |
|
23507 from text that didn't have a URL. It would be slightly safer to store |
|
23508 a bit on CSSStyleSheet indicating whether it came from an inline style |
|
23509 sheet, but I think this check is fairly accurate. |
|
23510 |
|
23511 Test: http/tests/security/data-url-inline.css.html |
|
23512 |
|
23513 * css/CSSStyleSheet.cpp: |
|
23514 (WebCore::CSSStyleSheet::cssRules): |
|
23515 |
|
23516 2010-06-18 Adam Barth <abarth@webkit.org> |
|
23517 |
|
23518 Reviewed by Darin Adler. |
|
23519 |
|
23520 Remove unneeded custom code for WebSocket.send |
|
23521 https://bugs.webkit.org/show_bug.cgi?id=38180 |
|
23522 |
|
23523 We don't appear to require a custom binding here. The old function was |
|
23524 wacky in two ways: |
|
23525 |
|
23526 1) It required all of its arguments. |
|
23527 |
|
23528 2) If the toString of its argument threw, it would catch the exception |
|
23529 and re-throw a different exception. |
|
23530 |
|
23531 I've kept the first behavior but changed the second (and documented it |
|
23532 with a test). |
|
23533 |
|
23534 Test: websocket/tests/send-throw.html |
|
23535 |
|
23536 * bindings/js/JSWebSocketCustom.cpp: |
|
23537 * bindings/v8/custom/V8WebSocketCustom.cpp: |
|
23538 * websockets/WebSocket.idl: |
|
23539 |
|
23540 2010-06-15 Dumitru Daniliuc <dumi@chromium.org> |
|
23541 |
|
23542 Reviewed by Adam Barth. |
|
23543 |
|
23544 Move isAvailable()/setIsAvailable() from Database/DatabaseSync to AbstractDatabase. |
|
23545 https://bugs.webkit.org/show_bug.cgi?id=39041 |
|
23546 |
|
23547 * WebCore.base.exp |
|
23548 * bindings/generic/RuntimeEnabledFeatures.cpp: |
|
23549 (WebCore::RuntimeEnabledFeatures::openDatabaseEnabled): |
|
23550 (WebCore::RuntimeEnabledFeatures::openDatabaseSyncEnabled): |
|
23551 * page/DOMWindow.cpp: |
|
23552 (WebCore::DOMWindow::openDatabase): |
|
23553 * storage/AbstractDatabase.cpp: |
|
23554 (WebCore::AbstractDatabase::isAvailable): |
|
23555 (WebCore::AbstractDatabase::setIsAvailable): |
|
23556 * storage/AbstractDatabase.h: |
|
23557 * storage/Database.cpp: |
|
23558 * storage/Database.h: |
|
23559 * storage/DatabaseSync.cpp: |
|
23560 * storage/DatabaseSync.h: |
|
23561 * workers/WorkerContext.cpp: |
|
23562 (WebCore::WorkerContext::openDatabase): |
|
23563 (WebCore::WorkerContext::openDatabaseSync): |
|
23564 * workers/WorkerContext.h: |
|
23565 |
|
23566 2010-06-18 Adam Barth <abarth@webkit.org> |
|
23567 |
|
23568 Rubber-stamped by Eric Seidel. |
|
23569 |
|
23570 Fix the namespace indent for HTML5Lexer. This patch changes |
|
23571 white-space only. |
|
23572 |
|
23573 * html/HTML5Lexer.h: |
|
23574 (WebCore::HTML5Lexer::): |
|
23575 (WebCore::HTML5Lexer::lineNumber): |
|
23576 (WebCore::HTML5Lexer::columnNumber): |
|
23577 (WebCore::HTML5Lexer::state): |
|
23578 (WebCore::HTML5Lexer::setState): |
|
23579 (WebCore::HTML5Lexer::skipLeadingNewLineForListing): |
|
23580 (WebCore::HTML5Lexer::InputStreamPreprocessor::InputStreamPreprocessor): |
|
23581 (WebCore::HTML5Lexer::InputStreamPreprocessor::nextInputCharacter): |
|
23582 (WebCore::HTML5Lexer::InputStreamPreprocessor::peek): |
|
23583 (WebCore::HTML5Lexer::InputStreamPreprocessor::advance): |
|
23584 |
|
23585 2010-06-18 Fumitoshi Ukai <ukai@chromium.org> |
|
23586 |
|
23587 Unreviewed test breakage fix. |
|
23588 |
|
23589 WebSocket: resume should not process buffer if already processing. |
|
23590 https://bugs.webkit.org/show_bug.cgi?id=39340 |
|
23591 |
|
23592 MessageLoop runs in main thread, so we don't need to use timer in worker thread. |
|
23593 Also, we should not use Timer in worker thread. |
|
23594 |
|
23595 * websockets/ThreadableWebSocketChannelClientWrapper.h: |
|
23596 (WebCore::ThreadableWebSocketChannelClientWrapper::resume): |
|
23597 (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper): |
|
23598 |
|
23599 2010-06-17 Sheriff Bot <webkit.review.bot@gmail.com> |
|
23600 |
|
23601 Unreviewed, rolling out r61379. |
|
23602 http://trac.webkit.org/changeset/61379 |
|
23603 https://bugs.webkit.org/show_bug.cgi?id=40813 |
|
23604 |
|
23605 Broke multiple tests on all platforms (Requested by tkent on |
|
23606 #webkit). |
|
23607 |
|
23608 * bindings/scripts/CodeGenerator.pm: |
|
23609 * bindings/scripts/CodeGeneratorCPP.pm: |
|
23610 * bindings/scripts/CodeGeneratorGObject.pm: |
|
23611 * bindings/scripts/CodeGeneratorJS.pm: |
|
23612 * bindings/scripts/CodeGeneratorObjC.pm: |
|
23613 * bindings/scripts/CodeGeneratorV8.pm: |
|
23614 * bindings/scripts/test/CPP/WebDOMTestObj.cpp: |
|
23615 (WebDOMTestObj::attrWithException): |
|
23616 (WebDOMTestObj::setAttrWithException): |
|
23617 (WebDOMTestObj::attrWithSetterException): |
|
23618 (WebDOMTestObj::attrWithGetterException): |
|
23619 (WebDOMTestObj::setAttrWithGetterException): |
|
23620 * bindings/scripts/test/CPP/WebDOMTestObj.h: |
|
23621 * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp: |
|
23622 (webkit_dom_test_callback_callback_with_class1param): |
|
23623 (webkit_dom_test_callback_callback_with_class2param): |
|
23624 (webkit_dom_test_callback_callback_with_non_bool_return_type): |
|
23625 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: |
|
23626 (webkit_dom_test_obj_void_method): |
|
23627 (webkit_dom_test_obj_void_method_with_args): |
|
23628 (webkit_dom_test_obj_int_method): |
|
23629 (webkit_dom_test_obj_int_method_with_args): |
|
23630 (webkit_dom_test_obj_obj_method): |
|
23631 (webkit_dom_test_obj_obj_method_with_args): |
|
23632 (webkit_dom_test_obj_method_that_requires_all_args): |
|
23633 (webkit_dom_test_obj_method_that_requires_all_args_and_throws): |
|
23634 (webkit_dom_test_obj_serialized_value): |
|
23635 (webkit_dom_test_obj_method_with_exception): |
|
23636 (webkit_dom_test_obj_with_dynamic_frame): |
|
23637 (webkit_dom_test_obj_with_dynamic_frame_and_arg): |
|
23638 (webkit_dom_test_obj_with_dynamic_frame_and_optional_arg): |
|
23639 (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture): |
|
23640 (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad): |
|
23641 (webkit_dom_test_obj_with_script_state_void): |
|
23642 (webkit_dom_test_obj_with_script_state_obj): |
|
23643 (webkit_dom_test_obj_with_script_state_void_exception): |
|
23644 (webkit_dom_test_obj_with_script_state_obj_exception): |
|
23645 (webkit_dom_test_obj_with_script_execution_context): |
|
23646 (webkit_dom_test_obj_method_with_optional_arg): |
|
23647 (webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg): |
|
23648 (webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args): |
|
23649 (webkit_dom_test_obj_get_read_only_int_attr): |
|
23650 (webkit_dom_test_obj_get_read_only_string_attr): |
|
23651 (webkit_dom_test_obj_get_read_only_test_obj_attr): |
|
23652 (webkit_dom_test_obj_get_int_attr): |
|
23653 (webkit_dom_test_obj_set_int_attr): |
|
23654 (webkit_dom_test_obj_get_long_long_attr): |
|
23655 (webkit_dom_test_obj_set_long_long_attr): |
|
23656 (webkit_dom_test_obj_get_unsigned_long_long_attr): |
|
23657 (webkit_dom_test_obj_set_unsigned_long_long_attr): |
|
23658 (webkit_dom_test_obj_get_string_attr): |
|
23659 (webkit_dom_test_obj_set_string_attr): |
|
23660 (webkit_dom_test_obj_get_test_obj_attr): |
|
23661 (webkit_dom_test_obj_set_test_obj_attr): |
|
23662 (webkit_dom_test_obj_get_attr_with_exception): |
|
23663 (webkit_dom_test_obj_set_attr_with_exception): |
|
23664 (webkit_dom_test_obj_get_attr_with_setter_exception): |
|
23665 (webkit_dom_test_obj_set_attr_with_setter_exception): |
|
23666 (webkit_dom_test_obj_get_attr_with_getter_exception): |
|
23667 (webkit_dom_test_obj_set_attr_with_getter_exception): |
|
23668 (webkit_dom_test_obj_get_script_string_attr): |
|
23669 (webkit_dom_test_obj_get_conditional_attr1): |
|
23670 (webkit_dom_test_obj_set_conditional_attr1): |
|
23671 (webkit_dom_test_obj_get_conditional_attr2): |
|
23672 (webkit_dom_test_obj_set_conditional_attr2): |
|
23673 (webkit_dom_test_obj_get_conditional_attr3): |
|
23674 (webkit_dom_test_obj_set_conditional_attr3): |
|
23675 (webkit_dom_test_obj_get_description): |
|
23676 (webkit_dom_test_obj_get_id): |
|
23677 (webkit_dom_test_obj_set_id): |
|
23678 (webkit_dom_test_obj_get_hash): |
|
23679 (webkit_dom_test_obj_set_property): |
|
23680 (webkit_dom_test_obj_get_property): |
|
23681 (webkit_dom_test_obj_class_init): |
|
23682 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: |
|
23683 * bindings/scripts/test/JS/JSTestObj.cpp: |
|
23684 (WebCore::): |
|
23685 (WebCore::jsTestObjAttrWithException): |
|
23686 (WebCore::jsTestObjAttrWithSetterException): |
|
23687 (WebCore::jsTestObjAttrWithGetterException): |
|
23688 (WebCore::setJSTestObjAttrWithException): |
|
23689 (WebCore::setJSTestObjAttrWithGetterException): |
|
23690 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod): |
|
23691 * bindings/scripts/test/JS/JSTestObj.h: |
|
23692 * bindings/scripts/test/ObjC/DOMTestObj.h: |
|
23693 * bindings/scripts/test/ObjC/DOMTestObj.mm: |
|
23694 (-[DOMTestObj attrWithException]): |
|
23695 (-[DOMTestObj setAttrWithException:]): |
|
23696 (-[DOMTestObj attrWithSetterException]): |
|
23697 (-[DOMTestObj attrWithGetterException]): |
|
23698 (-[DOMTestObj setAttrWithGetterException:]): |
|
23699 * bindings/scripts/test/TestObj.idl: |
|
23700 * bindings/scripts/test/V8/V8TestObj.cpp: |
|
23701 (WebCore::TestObjInternal::attrWithExceptionAttrGetter): |
|
23702 (WebCore::TestObjInternal::attrWithExceptionAttrSetter): |
|
23703 (WebCore::TestObjInternal::attrWithSetterExceptionAttrGetter): |
|
23704 (WebCore::TestObjInternal::attrWithGetterExceptionAttrGetter): |
|
23705 (WebCore::TestObjInternal::attrWithGetterExceptionAttrSetter): |
|
23706 (WebCore::TestObjInternal::overloadedMethodCallback): |
|
23707 (WebCore::): |
|
23708 * dom/Element.cpp: |
|
23709 * dom/Element.h: |
|
23710 * html/HTMLAnchorElement.idl: |
|
23711 * html/HTMLAppletElement.idl: |
|
23712 * html/HTMLAreaElement.idl: |
|
23713 * html/HTMLBRElement.idl: |
|
23714 * html/HTMLBaseElement.idl: |
|
23715 * html/HTMLBaseFontElement.idl: |
|
23716 * html/HTMLBlockquoteElement.idl: |
|
23717 * html/HTMLBodyElement.idl: |
|
23718 * html/HTMLButtonElement.idl: |
|
23719 * html/HTMLDListElement.idl: |
|
23720 * html/HTMLDirectoryElement.idl: |
|
23721 * html/HTMLDivElement.idl: |
|
23722 * html/HTMLElement.idl: |
|
23723 * html/HTMLEmbedElement.idl: |
|
23724 * html/HTMLFontElement.idl: |
|
23725 * html/HTMLFormElement.idl: |
|
23726 * html/HTMLFrameElement.idl: |
|
23727 * html/HTMLFrameSetElement.idl: |
|
23728 * html/HTMLHRElement.idl: |
|
23729 * html/HTMLHeadElement.idl: |
|
23730 * html/HTMLHeadingElement.idl: |
|
23731 * html/HTMLHtmlElement.idl: |
|
23732 * html/HTMLIFrameElement.idl: |
|
23733 * html/HTMLImageElement.idl: |
|
23734 * html/HTMLInputElement.idl: |
|
23735 * html/HTMLIsIndexElement.idl: |
|
23736 * html/HTMLLIElement.idl: |
|
23737 * html/HTMLLabelElement.idl: |
|
23738 * html/HTMLLegendElement.idl: |
|
23739 * html/HTMLLinkElement.idl: |
|
23740 * html/HTMLMapElement.idl: |
|
23741 * html/HTMLMediaElement.idl: |
|
23742 * html/HTMLMenuElement.idl: |
|
23743 * html/HTMLMetaElement.idl: |
|
23744 * html/HTMLModElement.idl: |
|
23745 * html/HTMLOListElement.idl: |
|
23746 * html/HTMLObjectElement.idl: |
|
23747 * html/HTMLOptGroupElement.idl: |
|
23748 * html/HTMLOptionElement.idl: |
|
23749 * html/HTMLParagraphElement.idl: |
|
23750 * html/HTMLParamElement.idl: |
|
23751 * html/HTMLPreElement.idl: |
|
23752 * html/HTMLQuoteElement.idl: |
|
23753 * html/HTMLScriptElement.idl: |
|
23754 * html/HTMLStyleElement.idl: |
|
23755 * html/HTMLTableCaptionElement.idl: |
|
23756 * html/HTMLTableCellElement.idl: |
|
23757 * html/HTMLTableColElement.idl: |
|
23758 * html/HTMLTableElement.idl: |
|
23759 * html/HTMLTableRowElement.idl: |
|
23760 * html/HTMLTableSectionElement.idl: |
|
23761 * html/HTMLTextAreaElement.idl: |
|
23762 * html/HTMLUListElement.idl: |
|
23763 * html/HTMLVideoElement.idl: |
|
23764 * svg/SVGElement.idl: |
|
23765 |
|
23766 2010-06-17 Rob Buis <rwlbuis@gmail.com> |
|
23767 |
|
23768 Reviewed by Dave Hyatt. |
|
23769 |
|
23770 CSS3 "Property is declared twice in rule" test fails |
|
23771 https://bugs.webkit.org/show_bug.cgi?id=36282 |
|
23772 |
|
23773 Filter out duplicate properties in style declaration. |
|
23774 |
|
23775 Test: fast/css/duplicate-property-in-rule.html |
|
23776 |
|
23777 * css/CSSMutableStyleDeclaration.cpp: Filter out duplicate properties |
|
23778 (WebCore::CSSMutableStyleDeclaration::CSSMutableStyleDeclaration): |
|
23779 * css/CSSParser.cpp: |
|
23780 (WebCore::CSSParser::parseValue): Discard negative padding values |
|
23781 * css/CSSStyleSelector.cpp: Remove negative padding check |
|
23782 (WebCore::CSSStyleSelector::applyProperty): |
|
23783 |
|
23784 2010-06-17 Darin Adler <darin@apple.com> |
|
23785 |
|
23786 Reviewed by Sam Weinig. |
|
23787 |
|
23788 Implement additional DOM attribute reflection for bindings |
|
23789 https://bugs.webkit.org/show_bug.cgi?id=39936 |
|
23790 |
|
23791 - Added support for [Reflect] for long, unsigned long, and boolean |
|
23792 attributes. |
|
23793 - Fixed code that set attributes like this: <video controls="controls"> |
|
23794 to instead set them like this: <video controls>. |
|
23795 - Added lots more uses of [Reflect]. |
|
23796 - Removed now-unneeded [ConvertFromString]. |
|
23797 - Made [Reflect] imply [ConvertNullToNullString] so we can get rid |
|
23798 of most uses of the latter. |
|
23799 - Made [Reflect] automatically lowercase the name of the reflected |
|
23800 content attribute to minimize the need to specify a custom content |
|
23801 attribute name. |
|
23802 |
|
23803 One thing this patch does *not* do is remove the unneeded functions |
|
23804 in the various DOM classes that are no longer used by the bindings. |
|
23805 We should do that in a followup. |
|
23806 |
|
23807 * bindings/scripts/CodeGenerator.pm: Added new functions so code |
|
23808 can be shared across bindings, GetterExpressionPrefix and |
|
23809 SetterExpressionPrefix. We can do a lot more refactoring like |
|
23810 this in the future. |
|
23811 |
|
23812 * bindings/scripts/CodeGeneratorCPP.pm: Removed unneeded |
|
23813 ConvertFromString handling, changed to use the new |
|
23814 GetterExpressionPrefix and SetterExpressionPrefix functions |
|
23815 to better handle reflected DOM attributes. |
|
23816 |
|
23817 * bindings/scripts/CodeGeneratorGObject.pm: Removed unneeded |
|
23818 ConvertFromString handling, changed to use the new |
|
23819 GetterExpressionPrefix and SetterExpressionPrefix functions |
|
23820 to better handle reflected DOM attributes. Fixed a few things |
|
23821 in the output so the .cpp file will have more WebKit style. |
|
23822 The .h file should be GTK style, but the .cpp file can be the |
|
23823 standard WebKit style eventually. |
|
23824 |
|
23825 * bindings/scripts/CodeGeneratorJS.pm: Changed to use the new |
|
23826 GetterExpressionPrefix and SetterExpressionPrefix functions |
|
23827 and removed a now-unneeded IsSVGAnimatedType special case since |
|
23828 the new functions take care of it. Made reflected attributes |
|
23829 automatically convert null to the null string without a |
|
23830 separate ConvertNullToNullString attribute. |
|
23831 |
|
23832 * bindings/scripts/CodeGeneratorObjC.pm: Changed to use the new |
|
23833 GetterExpressionPrefix and SetterExpressionPrefix functions |
|
23834 and removed a now-unneeded IsSVGAnimatedType special case since |
|
23835 the new functions take care of it. Redid the special cases for |
|
23836 ownerDocument and for operator to fit better with the new code |
|
23837 paths. Removed unneeded ConvertFromString handling. |
|
23838 |
|
23839 * bindings/scripts/CodeGeneratorV8.pm: Changed to use the new |
|
23840 GetterExpressionPrefix and SetterExpressionPrefix functions |
|
23841 and removed a now-unneeded IsSVGAnimatedType special case since |
|
23842 the new functions take care of it. Made reflected attributes |
|
23843 automatically convert null to the null string without a |
|
23844 separate ConvertNullToNullString attribute. |
|
23845 |
|
23846 * bindings/scripts/test/TestObj.idl: Added some test cases for |
|
23847 content attribute reflection and for exceptions in string-typed |
|
23848 attributes. |
|
23849 |
|
23850 * bindings/scripts/test/CPP/WebKitDOMTestObj.cpp: Updated. |
|
23851 * bindings/scripts/test/CPP/WebKitDOMTestObj.h: Ditto. |
|
23852 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: Ditto. |
|
23853 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: Ditto. |
|
23854 * bindings/scripts/test/JS/JSTestObj.cpp: Ditto. |
|
23855 * bindings/scripts/test/JS/JSTestObj.h: Ditto. |
|
23856 * bindings/scripts/test/ObjC/DOMTestObj.h: Ditto. |
|
23857 * bindings/scripts/test/ObjC/DOMTestObj.mm: Ditto. |
|
23858 * bindings/scripts/test/V8/V8TestObj.cpp: Ditto. |
|
23859 |
|
23860 * dom/Element.cpp: |
|
23861 (WebCore::Element::getIntegralAttribute): Added. |
|
23862 (WebCore::Element::setIntegralAttribute): Added. |
|
23863 (WebCore::Element::getUnsignedIntegralAttribute): Added. |
|
23864 (WebCore::Element::setUnsignedIntegralAttribute): Added. |
|
23865 * dom/Element.h: Added new attribute get/set functions for bindings. |
|
23866 |
|
23867 * html/HTMLAnchorElement.idl: |
|
23868 * html/HTMLAppletElement.idl: |
|
23869 * html/HTMLAreaElement.idl: |
|
23870 * html/HTMLBRElement.idl: |
|
23871 * html/HTMLBaseElement.idl: |
|
23872 * html/HTMLBaseFontElement.idl: |
|
23873 * html/HTMLBlockquoteElement.idl: |
|
23874 * html/HTMLBodyElement.idl: |
|
23875 * html/HTMLButtonElement.idl: |
|
23876 * html/HTMLDListElement.idl: |
|
23877 * html/HTMLDirectoryElement.idl: |
|
23878 * html/HTMLDivElement.idl: |
|
23879 * html/HTMLElement.idl: |
|
23880 * html/HTMLEmbedElement.idl: |
|
23881 * html/HTMLFontElement.idl: |
|
23882 * html/HTMLFormElement.idl: |
|
23883 * html/HTMLFrameElement.idl: |
|
23884 * html/HTMLFrameSetElement.idl: |
|
23885 * html/HTMLHRElement.idl: |
|
23886 * html/HTMLHeadElement.idl: |
|
23887 * html/HTMLHeadingElement.idl: |
|
23888 * html/HTMLHtmlElement.idl: |
|
23889 * html/HTMLIFrameElement.idl: |
|
23890 * html/HTMLImageElement.idl: |
|
23891 * html/HTMLInputElement.idl: |
|
23892 * html/HTMLIsIndexElement.idl: |
|
23893 * html/HTMLLIElement.idl: |
|
23894 * html/HTMLLabelElement.idl: |
|
23895 * html/HTMLLegendElement.idl: |
|
23896 * html/HTMLLinkElement.idl: |
|
23897 * html/HTMLMapElement.idl: |
|
23898 * html/HTMLMediaElement.idl: |
|
23899 * html/HTMLMenuElement.idl: |
|
23900 * html/HTMLMetaElement.idl: |
|
23901 * html/HTMLModElement.idl: |
|
23902 * html/HTMLOListElement.idl: |
|
23903 * html/HTMLObjectElement.idl: |
|
23904 * html/HTMLOptGroupElement.idl: |
|
23905 * html/HTMLOptionElement.idl: |
|
23906 * html/HTMLParagraphElement.idl: |
|
23907 * html/HTMLParamElement.idl: |
|
23908 * html/HTMLPreElement.idl: |
|
23909 * html/HTMLQuoteElement.idl: |
|
23910 * html/HTMLScriptElement.idl: |
|
23911 * html/HTMLStyleElement.idl: |
|
23912 * html/HTMLTableCaptionElement.idl: |
|
23913 * html/HTMLTableCellElement.idl: |
|
23914 * html/HTMLTableColElement.idl: |
|
23915 * html/HTMLTableElement.idl: |
|
23916 * html/HTMLTableRowElement.idl: |
|
23917 * html/HTMLTableSectionElement.idl: |
|
23918 * html/HTMLTextAreaElement.idl: |
|
23919 * html/HTMLUListElement.idl: |
|
23920 * html/HTMLVideoElement.idl: |
|
23921 * svg/SVGElement.idl: |
|
23922 Added more uses of [Reflect]. Got rid of uses of [ConvertNullToNullString] that |
|
23923 are now unneeded since [Reflect] now implies that. Changed formatting to be |
|
23924 simpler and consistent without all the lining up and multiple lines. |
|
23925 |
|
23926 2010-06-17 MORITA Hajime <morrita@google.com> |
|
23927 |
|
23928 Unreviewd, fixed a build break. |
|
23929 |
|
23930 * css/CSSSelector.cpp: |
|
23931 (WebCore::CSSSelector::pseudoId): |
|
23932 |
|
23933 2010-06-16 MORITA Hajime <morrita@google.com> |
|
23934 |
|
23935 Reviewed by Kent Tamura. |
|
23936 |
|
23937 <meter> should allow styling for each gauge-level and component |
|
23938 https://bugs.webkit.org/show_bug.cgi?id=40280 |
|
23939 |
|
23940 - Introduced following new pseudo classes for <meter> element. |
|
23941 |
|
23942 - -webkit-meter-horizontal-bar |
|
23943 - -webkit-meter-vertical-bar |
|
23944 - -webkit-meter-horizontal-optimum-value |
|
23945 - -webkit-meter-vertical-optimum-value |
|
23946 - -webkit-meter-horizontal-suboptimal-value |
|
23947 - -webkit-meter-vertical-suboptimal-value |
|
23948 - -webkit-meter-horizontal-even-less-good-value |
|
23949 - -webkit-meter-vertical-even-less-good-value |
|
23950 |
|
23951 - Introduced 2 shadow nodes for RenderMeter to handle CSS styling. |
|
23952 one for bar part and another for value part. |
|
23953 - Removed RenderTheme::paintMeter() implementation because it can be |
|
23954 handled by styled painting without RenderTheme. |
|
23955 - Pulled RenderIndicator up to super class from RenderProgress, |
|
23956 then make RenderMeter a subclass of it. |
|
23957 - Moved shadow related methods from RenderProgress to ShadowBlockElement |
|
23958 to share it with RenderMeter. |
|
23959 - Added rules for html.css for new pseudo classes. |
|
23960 |
|
23961 Tests: fast/dom/HTMLMeterElement/meter-styles-changing-pseudo.html |
|
23962 fast/dom/HTMLMeterElement/meter-styles.html |
|
23963 |
|
23964 * CMakeLists.txt: |
|
23965 * GNUmakefile.am: |
|
23966 * WebCore.gypi: |
|
23967 * WebCore.pro: |
|
23968 * WebCore.vcproj/WebCore.vcproj: |
|
23969 * WebCore.xcodeproj/project.pbxproj: |
|
23970 * css/CSSSelector.cpp: |
|
23971 (WebCore::CSSSelector::pseudoId): |
|
23972 (WebCore::nameToPseudoTypeMap): |
|
23973 (WebCore::CSSSelector::extractPseudoType): |
|
23974 * css/CSSSelector.h: |
|
23975 (WebCore::CSSSelector::): |
|
23976 * css/html.css: |
|
23977 (meter::-webkit-meter-horizontal-bar): |
|
23978 (meter::-webkit-meter-vertical-bar): |
|
23979 (meter::-webkit-meter-horizontal-optimum-value): |
|
23980 (meter::-webkit-meter-horizontal-suboptimal-value): |
|
23981 (meter::-webkit-meter-horizontal-even-less-good-value): |
|
23982 (meter::-webkit-meter-vertical-optimum-value): |
|
23983 (meter::-webkit-meter-vertical-suboptimal-value): |
|
23984 (meter::-webkit-meter-vertical-even-less-good-value): |
|
23985 * rendering/RenderIndicator.cpp: Added. |
|
23986 (WebCore::RenderIndicator::RenderIndicator): |
|
23987 (WebCore::RenderIndicator::~RenderIndicator): |
|
23988 (WebCore::RenderIndicator::layout): |
|
23989 (WebCore::RenderIndicator::styleDidChange): |
|
23990 (WebCore::RenderIndicator::updateFromElement): |
|
23991 (WebCore::RenderIndicator::hasParts): |
|
23992 (WebCore::RenderIndicator::requestLayoutForParts): |
|
23993 * rendering/RenderIndicator.h: Added. |
|
23994 (WebCore::RenderIndicator::requiresForcedStyleRecalcPropagation): |
|
23995 * rendering/RenderMeter.cpp: |
|
23996 (WebCore::RenderMeter::RenderMeter): |
|
23997 (WebCore::RenderMeter::~RenderMeter): |
|
23998 (WebCore::RenderMeter::layoutParts): Added. |
|
23999 (WebCore::RenderMeter::shouldHaveParts): Added. |
|
24000 (WebCore::RenderMeter::valueRatio): Added. |
|
24001 (WebCore::RenderMeter::barPartRect): Added. |
|
24002 (WebCore::RenderMeter::valuePartRect): Added. |
|
24003 (WebCore::RenderMeter::isHorizontal): Added. |
|
24004 (WebCore::RenderMeter::valuePseudoId): Added. |
|
24005 (WebCore::RenderMeter::barPseudoId): Added. |
|
24006 (WebCore::RenderMeter::updatePartsState): Added. |
|
24007 * rendering/RenderMeter.h: |
|
24008 * rendering/RenderProgress.cpp: |
|
24009 (WebCore::RenderProgress::RenderProgress): |
|
24010 (WebCore::RenderProgress::updateFromElement): |
|
24011 (WebCore::RenderProgress::paint): |
|
24012 (WebCore::RenderProgress::layoutParts): Added. |
|
24013 (WebCore::RenderProgress::shouldHaveParts): Added. |
|
24014 (WebCore::RenderProgress::updatePartsState): |
|
24015 (WebCore::RenderProgress::valuePartRect): |
|
24016 * rendering/RenderProgress.h: |
|
24017 * rendering/RenderTheme.cpp: |
|
24018 (WebCore::RenderTheme::isControlStyled): |
|
24019 (WebCore::RenderTheme::paintMeter): |
|
24020 * rendering/RenderTheme.h: |
|
24021 (WebCore::RenderTheme::supportsMeter): Added. |
|
24022 * rendering/RenderThemeMac.h: |
|
24023 * rendering/RenderThemeMac.mm: |
|
24024 (WebCore::RenderThemeMac::supportsMeter): Added. |
|
24025 * rendering/ShadowElement.cpp: |
|
24026 (WebCore::ShadowBlockElement::layoutAsPart): Added. |
|
24027 (WebCore::ShadowBlockElement::updateStyleForPart): Added. |
|
24028 (WebCore::ShadowBlockElement::createForPart): Added. |
|
24029 (WebCore::ShadowBlockElement::createStyleForPart): Added. |
|
24030 (WebCore::ShadowBlockElement::partShouldHaveStyle): Added. |
|
24031 * rendering/ShadowElement.h: |
|
24032 * rendering/style/RenderStyleConstants.h: |
|
24033 (WebCore::): |
|
24034 |
|
24035 2010-06-17 Fumitoshi Ukai <ukai@chromium.org> |
|
24036 |
|
24037 Reviewed by Alexey Proskuryakov. |
|
24038 |
|
24039 WebSocket: resume should not process buffer if already processing. |
|
24040 https://bugs.webkit.org/show_bug.cgi?id=39340 |
|
24041 |
|
24042 Test: websocket/tests/alert-in-event-handler.html |
|
24043 |
|
24044 While running an event handler of WebSocket object, it may be suspended |
|
24045 and resumed in various reason. e.g. alert() will suspend/resume |
|
24046 ActiveDOM objects. In chromium, sending IPC message would also |
|
24047 suspend/resume ActiveDOM objects. |
|
24048 If resume process pending buffer in this case, another event might |
|
24049 be fired while running the initial event handler. |
|
24050 Thus, resume should not process pending buffer immediately. |
|
24051 Pending buffer would be processed after the current task has been |
|
24052 finished. |
|
24053 |
|
24054 * websockets/ThreadableWebSocketChannelClientWrapper.h: |
|
24055 * websockets/WebSocketChannel.cpp: |
|
24056 (WebCore::WebSocketChannel::WebSocketChannel): |
|
24057 (WebCore::WebSocketChannel::resume): |
|
24058 Just set one shot timer for resumeTimerFired() if not yet set. |
|
24059 (WebCore::WebSocketChannel::resumeTimerFired): |
|
24060 Process pending event after resume was called. |
|
24061 * websockets/WebSocketChannel.h: |
|
24062 |
|
24063 2010-06-17 Eric Seidel <eric@webkit.org> |
|
24064 |
|
24065 Reviewed by Adam Barth. |
|
24066 |
|
24067 REGRESSION(HTML5 parser): editing/selection/leave-requested-block.html can fail or crash |
|
24068 https://bugs.webkit.org/show_bug.cgi?id=40764 |
|
24069 |
|
24070 HTML5ScriptRunner was careful to only call CachedResource::addClient |
|
24071 for cases where the resource was not already loaded. This was to |
|
24072 avoid getting synchronous notifyFinished callbacks from inside |
|
24073 addClient. (The old HTMLDocumentParser also has hacks to work around |
|
24074 addClient's synchronous notifyFinished behavior for already-loaded |
|
24075 resources as well.) |
|
24076 |
|
24077 It turns out that CachedResource will mark itself as purgeable if it |
|
24078 has no clients, thus it could have its data cleared (but itself not |
|
24079 deleted) in the case where we yield back to the runloop to wait for |
|
24080 CSS to load before executing the loaded script. |
|
24081 |
|
24082 The fix is to act more like the old parser and always call addClient |
|
24083 on every CachedScript we load. But unlike the old parser, we're |
|
24084 careful not to re-enter from addClient -> notifyFinished |
|
24085 using guards in HTML5DocumentParser::watchForLoad. |
|
24086 |
|
24087 I do not know how to make a CachedResource purge itself |
|
24088 from a LayoutTest, so this is not currently testable. |
|
24089 If anyone knows how I'm happy to make a test. |
|
24090 |
|
24091 * html/HTML5DocumentParser.cpp: |
|
24092 (WebCore::HTML5DocumentParser::watchForLoad): |
|
24093 - It is now expected to call watchForLoad with a loaded script. |
|
24094 (WebCore::HTML5DocumentParser::notifyFinished): |
|
24095 - Now that watchForLoad is called with loaded scripts, notifyFinished |
|
24096 may be be called from addClient, thus we may be in the middle of |
|
24097 script execution when it's called. It's OK. We pass the call |
|
24098 along to HTML5ScriptRunner::executeScriptsWaitingForLoad |
|
24099 and it knows how to ignore the call in that case. |
|
24100 * html/HTML5DocumentParser.h: |
|
24101 - Document these member variables more. |
|
24102 * html/HTML5ScriptRunner.cpp: |
|
24103 (WebCore::HTML5ScriptRunner::~HTML5ScriptRunner): |
|
24104 (WebCore::HTML5ScriptRunner::executePendingScript): |
|
24105 (WebCore::HTML5ScriptRunner::hasScriptsWaitingForLoad): |
|
24106 (WebCore::HTML5ScriptRunner::watchForLoad): |
|
24107 - Set the pending script to RegisteringForWatch state before |
|
24108 watching and WatchingForLoad after. |
|
24109 (WebCore::HTML5ScriptRunner::stopWatchingForLoad): |
|
24110 - Set the pending script to NotWatchingForLoad. |
|
24111 (WebCore::HTML5ScriptRunner::executeScriptsWaitingForLoad): |
|
24112 - Assert that callers checked hasScriptsWaitingForLoad() |
|
24113 (WebCore::HTML5ScriptRunner::requestScript): |
|
24114 * html/HTML5ScriptRunner.h: |
|
24115 (WebCore::HTML5ScriptRunner::PendingScript::): |
|
24116 (WebCore::HTML5ScriptRunner::PendingScript::PendingScript): |
|
24117 (WebCore::HTML5ScriptRunner::PendingScript::watchingForLoad): |
|
24118 * html/HTML5ScriptRunnerHost.h: |
|
24119 - Document the new expectations of watchForLoad |
|
24120 |
|
24121 2010-06-17 Tony Gentilcore <tonyg@chromium.org> |
|
24122 |
|
24123 Reviewed by Eric Seidel. |
|
24124 |
|
24125 Prevent HTML5PreloadScanner from loading resources in <noscript> tags. |
|
24126 https://bugs.webkit.org/show_bug.cgi?id=40779 |
|
24127 |
|
24128 No new tests. Will create a layout test in a subsequent patch. |
|
24129 |
|
24130 * html/HTML5PreloadScanner.cpp: |
|
24131 (WebCore::HTML5PreloadScanner::processToken): |
|
24132 * html/HTML5TreeBuilder.cpp: |
|
24133 (WebCore::HTML5TreeBuilder::adjustedLexerState): |
|
24134 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
24135 (WebCore::HTML5TreeBuilder::isScriptingFlagEnabled): |
|
24136 * html/HTML5TreeBuilder.h: |
|
24137 |
|
24138 2010-06-17 Adam Barth <abarth@webkit.org> |
|
24139 |
|
24140 Reviewed by Eric Seidel. |
|
24141 |
|
24142 HTML5PreloadScanner parses <script> in DataState |
|
24143 https://bugs.webkit.org/show_bug.cgi?id=40804 |
|
24144 |
|
24145 The ScriptDataState is handled separately from the rest of the lexer |
|
24146 state changes because it's more complicted in the tree builder. The |
|
24147 easiest thing is to just handle it separately in the preloader too. |
|
24148 |
|
24149 * html/HTML5PreloadScanner.cpp: |
|
24150 (WebCore::HTML5PreloadScanner::processToken): |
|
24151 |
|
24152 2010-06-17 Adam Barth <abarth@webkit.org> |
|
24153 |
|
24154 Reviewed by Eric Seidel. |
|
24155 |
|
24156 Add CSS scanning to HTML5PreloadScanner |
|
24157 https://bugs.webkit.org/show_bug.cgi?id=40802 |
|
24158 |
|
24159 This patch just cribs the CSS preload scanning algorithm from the old |
|
24160 preload scanner. We also invented a way of testing the preload |
|
24161 scanner. |
|
24162 |
|
24163 Tests: fast/preloader/image.html |
|
24164 fast/preloader/link.html |
|
24165 fast/preloader/script.html |
|
24166 fast/preloader/style.html |
|
24167 |
|
24168 * Android.mk: |
|
24169 * GNUmakefile.am: |
|
24170 * WebCore.gypi: |
|
24171 * WebCore.pro: |
|
24172 * WebCore.vcproj/WebCore.vcproj: |
|
24173 * WebCore.xcodeproj/project.pbxproj: |
|
24174 * html/CSSPreloadScanner.cpp: Added. |
|
24175 (WebCore::isWhitespace): |
|
24176 (WebCore::CSSPreloadScanner::CSSPreloadScanner): |
|
24177 (WebCore::CSSPreloadScanner::reset): |
|
24178 (WebCore::CSSPreloadScanner::scan): |
|
24179 (WebCore::CSSPreloadScanner::tokenize): |
|
24180 (WebCore::CSSPreloadScanner::emitRule): |
|
24181 * html/CSSPreloadScanner.h: Added. |
|
24182 (WebCore::CSSPreloadScanner::): |
|
24183 * html/HTML5PreloadScanner.cpp: |
|
24184 (WebCore::HTML5PreloadScanner::HTML5PreloadScanner): |
|
24185 (WebCore::HTML5PreloadScanner::processToken): |
|
24186 (WebCore::HTML5PreloadScanner::scanningBody): |
|
24187 * html/HTML5PreloadScanner.h: |
|
24188 |
|
24189 2010-06-17 Abhishek Arya <inferno@chromium.org> |
|
24190 |
|
24191 Reviewed by David Kilzer. |
|
24192 |
|
24193 (Landed by Dirk Pranke). |
|
24194 |
|
24195 Check for a null frame before setting drag selection. |
|
24196 https://bugs.webkit.org/show_bug.cgi?id=38893 |
|
24197 Same Layout test as https://bugs.webkit.org/show_bug.cgi?id=37168. |
|
24198 |
|
24199 Test: editing/pasteboard/drag-drop-iframe-refresh-crash.html |
|
24200 |
|
24201 Note that you need to run the test manually 20-30 times for the crash |
|
24202 to reproduce. |
|
24203 |
|
24204 * editing/SelectionController.cpp: |
|
24205 (WebCore::SelectionController::setSelection): |
|
24206 |
|
24207 2010-06-17 Benjamin Poulain <benjamin.poulain@nokia.com> |
|
24208 |
|
24209 Reviewed by Simon Hausmann. |
|
24210 |
|
24211 [Qt] Get rid of the the unused imageSize of ImageDecoderQt::internalHandleCurrentImage() |
|
24212 https://bugs.webkit.org/show_bug.cgi?id=40620 |
|
24213 |
|
24214 Remove an unused variable. |
|
24215 |
|
24216 * platform/graphics/qt/ImageDecoderQt.cpp: |
|
24217 (WebCore::ImageDecoderQt::internalHandleCurrentImage): |
|
24218 |
|
24219 2010-06-17 Jeremy Moskovich <jeremy@chromium.org> |
|
24220 |
|
24221 Reviewed by Darin Fisher. |
|
24222 |
|
24223 [Chromium API] Implement WebSandboxSupport on OS X and add stubs to allow |
|
24224 OOP loading of fonts. |
|
24225 |
|
24226 https://bugs.webkit.org/show_bug.cgi?id=40544 |
|
24227 |
|
24228 * platform/chromium/ChromiumBridge.h: Add prototype for loadFont() |
|
24229 |
|
24230 2010-06-17 Nicolas Weber <thakis@chromium.org> |
|
24231 |
|
24232 Reviewed by Eric Seidel. |
|
24233 |
|
24234 Fix various warnings that are reported when building with clang |
|
24235 https://bugs.webkit.org/show_bug.cgi?id=40503 |
|
24236 |
|
24237 * accessibility/AccessibilityRenderObject.cpp: |
|
24238 (WebCore::AccessibilityRenderObject::labelElementContainer): |
|
24239 * accessibility/AccessibilityTableCell.cpp: |
|
24240 (WebCore::AccessibilityTableCell::parentTable): |
|
24241 * bindings/v8/NPV8Object.cpp: |
|
24242 (WebCore::npObjectTypeInfo): |
|
24243 * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp: |
|
24244 (WebCore::): |
|
24245 * bindings/v8/custom/V8HTMLImageElementConstructor.cpp: |
|
24246 (WebCore::): |
|
24247 * bindings/v8/custom/V8HTMLOptionElementConstructor.cpp: |
|
24248 (WebCore::): |
|
24249 * css/CSSStyleSheet.h: |
|
24250 * html/HTMLFormElement.cpp: |
|
24251 (WebCore::HTMLFormElement::getNamedElements): |
|
24252 * inspector/InspectorValues.cpp: |
|
24253 (WebCore::InspectorObject::getObject): |
|
24254 (WebCore::InspectorObject::getArray): |
|
24255 * page/animation/AnimationBase.h: |
|
24256 * platform/graphics/BitmapImage.h: |
|
24257 (WTF::): |
|
24258 * platform/graphics/mac/FontPlatformData.h: |
|
24259 * rendering/RenderBlock.h: |
|
24260 * rendering/RootInlineBox.cpp: |
|
24261 (WebCore::RootInlineBox::ellipsisBox): |
|
24262 * storage/StorageNamespaceImpl.cpp: |
|
24263 (WebCore::StorageNamespaceImpl::storageArea): |
|
24264 |
|
24265 2010-06-17 Kwang Yul Seo <skyul@company100.net> |
|
24266 |
|
24267 Reviewed by Pavel Feldman. |
|
24268 |
|
24269 Add ENABLE(INSPECTOR) guard for m_sessionSettings |
|
24270 https://bugs.webkit.org/show_bug.cgi?id=40611 |
|
24271 |
|
24272 Build fix. |
|
24273 |
|
24274 * inspector/InspectorController.h: |
|
24275 |
|
24276 2010-06-17 Eric Seidel <eric@webkit.org> |
|
24277 |
|
24278 Reviewed by Adam Barth. |
|
24279 |
|
24280 Add FIXME to explain HTMLDocumentParser's forceSynchronous bool |
|
24281 https://bugs.webkit.org/show_bug.cgi?id=40609 |
|
24282 |
|
24283 No functional change, just adding comment. |
|
24284 |
|
24285 * dom/Document.cpp: |
|
24286 (WebCore::Document::write): |
|
24287 |
|
24288 2010-06-13 Robert Hogan <robert@webkit.org> |
|
24289 |
|
24290 Reviewed by Kenneth Rohde Christiansen. |
|
24291 |
|
24292 WebCore EventHandler needs to take account of onLoad events |
|
24293 fired before layout() complete |
|
24294 |
|
24295 https://bugs.webkit.org/show_bug.cgi?id=40102 |
|
24296 |
|
24297 WebCore 'cheats' by firing onLoad events before the frame's layout |
|
24298 has been performed. This can result in event listeners performing |
|
24299 operations that depend on the document's final layout, such as |
|
24300 scrolling operations. |
|
24301 |
|
24302 When scrolling a frameview in eventhandler ensure the layout is complete. |
|
24303 |
|
24304 * page/EventHandler.cpp: |
|
24305 (WebCore::EventHandler::scrollRecursively): |
|
24306 |
|
24307 2010-06-16 Dumitru Daniliuc <dumi@chromium.org> |
|
24308 |
|
24309 Reviewed by Dimitri Glazkov. |
|
24310 |
|
24311 Add the error codes defined in the async DB spec to SQLError.idl and SQLError.h. |
|
24312 https://bugs.webkit.org/show_bug.cgi?id=40748 |
|
24313 |
|
24314 Test: storage/sql-error-codes.html |
|
24315 |
|
24316 * storage/SQLError.h: |
|
24317 (WebCore::SQLError::): |
|
24318 * storage/SQLError.idl: |
|
24319 * storage/SQLStatement.cpp: |
|
24320 (WebCore::SQLStatement::execute): |
|
24321 (WebCore::SQLStatement::setDatabaseDeletedError): |
|
24322 (WebCore::SQLStatement::setVersionMismatchedError): |
|
24323 (WebCore::SQLStatement::setFailureDueToQuota): |
|
24324 (WebCore::SQLStatement::lastExecutionFailedDueToQuota): |
|
24325 * storage/SQLTransaction.cpp: |
|
24326 (WebCore::SQLTransaction::openTransactionAndPreflight): |
|
24327 (WebCore::SQLTransaction::deliverTransactionCallback): |
|
24328 (WebCore::SQLTransaction::handleCurrentStatementError): |
|
24329 (WebCore::SQLTransaction::deliverStatementCallback): |
|
24330 (WebCore::SQLTransaction::postflightAndCommit): |
|
24331 |
|
24332 2010-06-17 Kinuko Yasuda <kinuko@chromium.org> |
|
24333 |
|
24334 Reviewed by Jian Li. |
|
24335 |
|
24336 Fix CRLF ending conversion in StringBlobItem. |
|
24337 https://bugs.webkit.org/show_bug.cgi?id=40736 |
|
24338 Also: fix referencing uninitialized member bug and slice length bug |
|
24339 in hybrid blob case. |
|
24340 |
|
24341 Tests will be added when we add BlobBuilder jsc bindings. |
|
24342 |
|
24343 * platform/BlobItem.cpp: |
|
24344 (WebCore::StringBlobItem::convertToCString): |
|
24345 (WebCore::DataRangeBlobItem::DataRangeBlobItem): |
|
24346 |
|
24347 2010-06-17 Dimitri Glazkov <dglazkov@chromium.org> |
|
24348 |
|
24349 Unreviewed, rolling out r61340. |
|
24350 http://trac.webkit.org/changeset/61340 |
|
24351 https://bugs.webkit.org/show_bug.cgi?id=36282 |
|
24352 |
|
24353 Broke several editing tests. |
|
24354 |
|
24355 * css/CSSMutableStyleDeclaration.cpp: |
|
24356 (WebCore::CSSMutableStyleDeclaration::CSSMutableStyleDeclaration): |
|
24357 * css/CSSParser.cpp: |
|
24358 (WebCore::CSSParser::parseValue): |
|
24359 * css/CSSStyleSelector.cpp: |
|
24360 (WebCore::CSSStyleSelector::applyProperty): |
|
24361 |
|
24362 2010-06-17 Jian Li <jianli@chromium.org> |
|
24363 |
|
24364 Reviewed by David Levin. |
|
24365 |
|
24366 Add optional contentType parameter to Blob.slice per latest File API spec. |
|
24367 https://bugs.webkit.org/show_bug.cgi?id=40647 |
|
24368 |
|
24369 Tested by http/tests/local/resources/send-sliced-dragged-file.html. |
|
24370 |
|
24371 * html/Blob.cpp: |
|
24372 (WebCore::Blob::slice): |
|
24373 * html/Blob.h: |
|
24374 * html/Blob.idl: |
|
24375 |
|
24376 2010-06-17 Jesus Sanchez-Palencia <jesus@webkit.org>, Kenneth Rohde Christiansen <kenneth@webkit.org> |
|
24377 |
|
24378 Reviewed by Simon Hausmann. |
|
24379 |
|
24380 [Qt] QtWebKit does not support viewport meta tag |
|
24381 https://bugs.webkit.org/show_bug.cgi?id=39902 |
|
24382 |
|
24383 Add windowRect() to page client. |
|
24384 |
|
24385 * platform/qt/QWebPageClient.h: |
|
24386 |
|
24387 2010-06-17 Stephen White <senorblanco@chromium.org> |
|
24388 |
|
24389 Reviewed by David Levin. |
|
24390 |
|
24391 Fix for slow multiple animated resize issue. |
|
24392 https://bugs.webkit.org/show_bug.cgi?id=38233 |
|
24393 |
|
24394 The timer-based resize quality approach implemented in |
|
24395 http://trac.webkit.org/changeset/34210 is a good idea, but doesn't |
|
24396 scale to multiple images with animated resizes. This fix unifies all |
|
24397 outstanding resize timers into a single timer, and removes the "use |
|
24398 last quality" check (which doesn't work when images are overlapping). |
|
24399 It also refactors the copy of this code implemented in |
|
24400 RenderBoxModelObject in http://trac.webkit.org/changeset/53949. |
|
24401 |
|
24402 This improves Safari performance for the following IE9 platform demos on my C2D MacPro (10.5): |
|
24403 http://ie.microsoft.com/testdrive/Performance/01FlyingImages/Default.html (4->60fps) |
|
24404 http://ie.microsoft.com/testdrive/Performance/10FlickrExplorer/Default.html (3->16fps) |
|
24405 http://ie.microsoft.com/testdrive/Performance/11BrowserFlip/Default.html (9->60fps) |
|
24406 |
|
24407 * rendering/RenderBoxModelObject.cpp: |
|
24408 (WebCore::ImageQualityController::ImageQualityController): |
|
24409 Unify all timers into a single timer, rename RenderBoxModelScaleObserver |
|
24410 to ImageQualityController, and remove the resize quality "stickness", |
|
24411 since it doesn't work with multiple outstanding resizes. |
|
24412 (WebCore::ImageQualityController::objectDestroyed): |
|
24413 gImages global is now m_lastPaintTimeMap member. |
|
24414 (WebCore::ImageQualityController::highQualityRepaintTimerFired): |
|
24415 Function made non-static; repaint all pending resizes (not just one). |
|
24416 (WebCore::ImageQualityController::restartTimer): |
|
24417 Added function to restart timer at 1.05x threshold. |
|
24418 (WebCore::imageQualityController): |
|
24419 Static function to return singleton. |
|
24420 (WebCore::ImageQualityController::shouldPaintAtLowQuality): |
|
24421 Use m_lastPaintTimeMap, not gImages global. Implement new timer |
|
24422 algorithm. Remove resize "stickiness". |
|
24423 (WebCore::RenderBoxModelObject::shouldPaintAtLowQuality): |
|
24424 Implement shouldPaintAtLowQuality, which pulls out "this" and passes |
|
24425 the call to the ImageQualityController. |
|
24426 (WebCore::RenderBoxModelObject::~RenderBoxModelObject): |
|
24427 Call ImageQualityController singleton's objectDestroyed() instead of |
|
24428 old static function. |
|
24429 (WebCore::RenderBoxModelObject::paintFillLayerExtended): |
|
24430 Modify shouldPaintAtLowQuality() call to match new class name and |
|
24431 function signature. |
|
24432 * rendering/RenderBoxModelObject.h: |
|
24433 Expose shouldPaintAtLowQuality as a member function. |
|
24434 * rendering/RenderImage.cpp: |
|
24435 (WebCore::RenderImage::~RenderImage): |
|
24436 No need to call objectDestroyed() here anymore, since the |
|
24437 RenderBoxModelObject destructor will do this for us. |
|
24438 (WebCore::RenderImage::paintIntoRect): |
|
24439 Rip out RenderImageScaleObserver, and call |
|
24440 RenderBoxModelObject::shouldPaintAtLowQuality() instead. |
|
24441 |
|
24442 2010-06-17 Rob Buis <rwlbuis@gmail.com> |
|
24443 |
|
24444 Reviewed by Dave Hyatt. |
|
24445 |
|
24446 CSS3 "Property is declared twice in rule" test fails |
|
24447 https://bugs.webkit.org/show_bug.cgi?id=36282 |
|
24448 |
|
24449 Filter out duplicate properties in style declaration. |
|
24450 |
|
24451 Test: fast/css/duplicate-property-in-rule.html |
|
24452 |
|
24453 * css/CSSMutableStyleDeclaration.cpp: Filter out duplicate properties |
|
24454 (WebCore::CSSMutableStyleDeclaration::CSSMutableStyleDeclaration): |
|
24455 * css/CSSParser.cpp: |
|
24456 (WebCore::CSSParser::parseValue): Discard negative padding values |
|
24457 * css/CSSStyleSelector.cpp: Remove negative padding check |
|
24458 (WebCore::CSSStyleSelector::applyProperty): |
|
24459 |
|
24460 2010-06-17 Kenneth Russell <kbr@google.com> |
|
24461 |
|
24462 Reviewed by Dimitri Glazkov. |
|
24463 |
|
24464 Clean up error conditions for Typed Arrays |
|
24465 https://bugs.webkit.org/show_bug.cgi?id=40755 |
|
24466 |
|
24467 * bindings/js/JSArrayBufferCustom.cpp: |
|
24468 (WebCore::JSArrayBufferConstructor::constructJSArrayBuffer): |
|
24469 - Fixed handling of NaN/+inf/-inf lengths. Throw RangeError for too-large or negative lengths. |
|
24470 * bindings/js/JSArrayBufferViewHelper.h: |
|
24471 (WebCore::constructArrayBufferView): |
|
24472 - Changed all error code paths to throw exceptions. Clarified exception types. |
|
24473 * bindings/js/JSFloat32ArrayCustom.cpp: |
|
24474 (WebCore::JSFloat32ArrayConstructor::constructJSFloat32Array): |
|
24475 - Removed throwing of INDEX_SIZE_ERROR, delegating responsibility to constructArrayBufferView. |
|
24476 * bindings/js/JSInt16ArrayCustom.cpp: |
|
24477 (WebCore::JSInt16ArrayConstructor::constructJSInt16Array): |
|
24478 - Removed throwing of INDEX_SIZE_ERROR, delegating responsibility to constructArrayBufferView. |
|
24479 * bindings/js/JSInt32ArrayCustom.cpp: |
|
24480 (WebCore::JSInt32ArrayConstructor::constructJSInt32Array): |
|
24481 - Removed throwing of INDEX_SIZE_ERROR, delegating responsibility to constructArrayBufferView. |
|
24482 * bindings/js/JSInt8ArrayCustom.cpp: |
|
24483 (WebCore::JSInt8ArrayConstructor::constructJSInt8Array): |
|
24484 - Removed throwing of INDEX_SIZE_ERROR, delegating responsibility to constructArrayBufferView. |
|
24485 * bindings/js/JSUint16ArrayCustom.cpp: |
|
24486 (WebCore::JSUint16ArrayConstructor::constructJSUint16Array): |
|
24487 - Removed throwing of INDEX_SIZE_ERROR, delegating responsibility to constructArrayBufferView. |
|
24488 * bindings/js/JSUint32ArrayCustom.cpp: |
|
24489 (WebCore::JSUint32ArrayConstructor::constructJSUint32Array): |
|
24490 - Removed throwing of INDEX_SIZE_ERROR, delegating responsibility to constructArrayBufferView. |
|
24491 * bindings/js/JSUint8ArrayCustom.cpp: |
|
24492 (WebCore::JSUint8ArrayConstructor::constructJSUint8Array): |
|
24493 - Removed throwing of INDEX_SIZE_ERROR, delegating responsibility to constructArrayBufferView. |
|
24494 * bindings/v8/custom/V8ArrayBufferCustom.cpp: |
|
24495 (WebCore::V8ArrayBuffer::constructorCallback): |
|
24496 - Fixed handling of NaN/+inf/-inf lengths. Throw RangeError for too-large or negative lengths. |
|
24497 Clarified exception types. |
|
24498 * bindings/v8/custom/V8ArrayBufferViewCustom.h: |
|
24499 (WebCore::constructWebGLArray): |
|
24500 - Clarified exception types and throwing of exceptions along all error code paths. |
|
24501 * html/canvas/TypedArrayBase.h: |
|
24502 (WebCore::TypedArrayBase::create): |
|
24503 - Added necessary null checks during allocation. |
|
24504 |
|
24505 2010-06-17 Shu Chang <chang.shu@nokia.com> |
|
24506 |
|
24507 Reviewed by Kenneth Rohde Christiansen. |
|
24508 |
|
24509 [Qt] Fix the link error on symbian with ENABLE_JIT=0. |
|
24510 1. Add "#if ENABLE(JIT)" in the header file; |
|
24511 2. Put feature enable/disable logic to a common.pri so |
|
24512 that both JavaScriptCore.pri and WebCore.pri can share. |
|
24513 |
|
24514 https://bugs.webkit.org/show_bug.cgi?id=40780 |
|
24515 |
|
24516 * WebCore.pri: |
|
24517 |
|
24518 2010-06-17 Kenneth Russell <kbr@google.com> |
|
24519 |
|
24520 Reviewed by Oliver Hunt. |
|
24521 |
|
24522 Differences in error reporting for overloaded methods causing fast/canvas/webgl/texImageTest.html to fail |
|
24523 https://bugs.webkit.org/show_bug.cgi?id=40750 |
|
24524 |
|
24525 Added V8Proxy::throwTypeError() and throwSyntaxError for parity |
|
24526 with JSC::throwTypeError() and throwSyntaxError. Changed |
|
24527 CodeGeneratorV8.pm to use throwTypeError for overload resolution |
|
24528 failures. Revised CodeGeneratorJS.pm to use throwVMTypeError |
|
24529 instead of manual call to JSValue::encode. Deleted now-unnecessary |
|
24530 Chromium expectations for fast/canvas/webgl/texImageTest.html. |
|
24531 |
|
24532 * bindings/scripts/CodeGeneratorJS.pm: |
|
24533 * bindings/scripts/CodeGeneratorV8.pm: |
|
24534 * bindings/v8/V8Proxy.cpp: |
|
24535 (WebCore::V8Proxy::throwTypeError): |
|
24536 (WebCore::V8Proxy::throwSyntaxError): |
|
24537 * bindings/v8/V8Proxy.h: |
|
24538 |
|
24539 2010-06-17 Darin Fisher <darin@chromium.org> |
|
24540 |
|
24541 Reviewed by Brady Eidson. |
|
24542 |
|
24543 If Page::goToItem is passed a HistoryItem that is the current item, |
|
24544 then the page should be loaded again. |
|
24545 |
|
24546 https://bugs.webkit.org/show_bug.cgi?id=40660 |
|
24547 |
|
24548 * loader/HistoryController.cpp: |
|
24549 (WebCore::HistoryController::recursiveGoToItem): Add a check to |
|
24550 recursiveGoToItem that matches the one in FrameLoader::loadItem. |
|
24551 |
|
24552 2010-06-17 Kwang Yul Seo <skyul@company100.net> |
|
24553 |
|
24554 Reviewed by Kent Tamura. |
|
24555 |
|
24556 [BREWMP] Build fix for DragDataBrew |
|
24557 https://bugs.webkit.org/show_bug.cgi?id=40610 |
|
24558 |
|
24559 http://trac.webkit.org/changeset/60957 was not applied to DragDataBrew.cpp. |
|
24560 Add FilenameConversionPolicy argument to DragData::containsURL and DragData::asURL. |
|
24561 |
|
24562 * platform/brew/DragDataBrew.cpp: |
|
24563 (WebCore::DragData::containsURL): |
|
24564 (WebCore::DragData::asURL): |
|
24565 |
|
24566 2010-06-17 Zhenyao Mo <zmo@google.com> |
|
24567 |
|
24568 Reviewed by David Levin. |
|
24569 |
|
24570 Rename internalformat to internalFormat |
|
24571 https://bugs.webkit.org/show_bug.cgi?id=40149 |
|
24572 |
|
24573 * html/canvas/WebGLFramebuffer.cpp: Rename internalformat to internalFormat. |
|
24574 (WebCore::WebGLFramebuffer::getColorBufferFormat): |
|
24575 * html/canvas/WebGLRenderbuffer.cpp: Ditto. |
|
24576 (WebCore::WebGLRenderbuffer::WebGLRenderbuffer): |
|
24577 * html/canvas/WebGLRenderbuffer.h: Ditto. |
|
24578 (WebCore::WebGLRenderbuffer::setInternalFormat): |
|
24579 (WebCore::WebGLRenderbuffer::getInternalFormat): |
|
24580 * html/canvas/WebGLRenderingContext.cpp: Ditto. |
|
24581 (WebCore::WebGLRenderingContext::copyTexImage2D): |
|
24582 (WebCore::WebGLRenderingContext::copyTexSubImage2D): |
|
24583 (WebCore::WebGLRenderingContext::framebufferRenderbuffer): |
|
24584 (WebCore::WebGLRenderingContext::getRenderbufferParameter): |
|
24585 (WebCore::WebGLRenderingContext::renderbufferStorage): |
|
24586 (WebCore::WebGLRenderingContext::texImage2DBase): |
|
24587 (WebCore::WebGLRenderingContext::isTexInternalFormatColorBufferCombinationValid): |
|
24588 * html/canvas/WebGLRenderingContext.h: Ditto. |
|
24589 * html/canvas/WebGLTexture.cpp: Ditto. |
|
24590 (WebCore::WebGLTexture::WebGLTexture): |
|
24591 * html/canvas/WebGLTexture.h: Ditto. |
|
24592 (WebCore::WebGLTexture::setInternalFormat): |
|
24593 (WebCore::WebGLTexture::getInternalFormat): |
|
24594 |
|
24595 2010-06-17 Zhenyao Mo <zmo@google.com> |
|
24596 |
|
24597 Reviewed by David Levin. |
|
24598 |
|
24599 Remove input parameter validation for "level" upper limit in *tex* functions |
|
24600 https://bugs.webkit.org/show_bug.cgi?id=40603 |
|
24601 |
|
24602 * html/canvas/WebGLRenderingContext.cpp: |
|
24603 (WebCore::WebGLRenderingContext::validateTexFuncParameters): Don't check for "level" upper limit. |
|
24604 |
|
24605 2010-06-17 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
24606 |
|
24607 Reviewed by Eric Seidel. |
|
24608 |
|
24609 Clean EFL header files in order to diminish the compilation time with |
|
24610 EFL from subversion. We remove the EFL includes from header files and use |
|
24611 forward declarations, including the headers in correspondent source |
|
24612 files when needed. This causes only the needed source files to be |
|
24613 recompiled in case a new version of EFL is installed instead of |
|
24614 triggering a recompilation of almost all WebCore/WebKit. |
|
24615 https://bugs.webkit.org/show_bug.cgi?id=40575 |
|
24616 |
|
24617 No new functionalities, so no new tests. |
|
24618 |
|
24619 * CMakeListsEfl.txt: |
|
24620 * platform/PlatformKeyboardEvent.h: forward declaration. |
|
24621 * platform/PlatformMouseEvent.h: forward declaration and change method |
|
24622 signature to not require enum. |
|
24623 * platform/PlatformWheelEvent.h: forward declaration. |
|
24624 * platform/Widget.h: forward declaration. |
|
24625 * platform/efl/PlatformKeyboardEventEfl.cpp: include needed header. |
|
24626 * platform/efl/PlatformMouseEventEfl.cpp: |
|
24627 (WebCore::PlatformMouseEvent::setClickCount): change method signature |
|
24628 as mentioned above. |
|
24629 * platform/efl/PlatformWheelEventEfl.cpp: include needed header. |
|
24630 * platform/efl/RenderThemeEfl.cpp: include needed header |
|
24631 * platform/efl/RenderThemeEfl.h: forward declaration. |
|
24632 * platform/efl/ScrollbarEfl.cpp: include needed header. |
|
24633 * platform/efl/ScrollbarEfl.h: forward declaration. |
|
24634 * platform/efl/WidgetEfl.cpp: include needed header. |
|
24635 * platform/graphics/FloatRect.h: remove unused method. |
|
24636 * platform/graphics/Icon.h: forward declaration. |
|
24637 * platform/graphics/IntRect.h: remove unused method. |
|
24638 * platform/graphics/efl/FloatRectEfl.cpp: Removed. This file was |
|
24639 implementing an unused method. |
|
24640 * platform/graphics/efl/IntRectEfl.cpp: Removed. This file was |
|
24641 implementing an unused method. |
|
24642 |
|
24643 2010-06-17 Alex Milowski <alex@milowski.com> |
|
24644 |
|
24645 Reviewed by Darin Adler. |
|
24646 |
|
24647 Fixed a compile error in the paint() methods by making them use the |
|
24648 new visitedDependentColor() method. |
|
24649 https://bugs.webkit.org/show_bug.cgi?id=40327 |
|
24650 |
|
24651 * mathml/RenderMathMLRoot.cpp: |
|
24652 (WebCore::RenderMathMLRoot::paint): |
|
24653 (WebCore::RenderMathMLRoot::layout): Fixed a crash where every child |
|
24654 was assumed to be a RenderMathMLBlock instance when that isn't the |
|
24655 case. Also, layout() needed to mark the index for layout before |
|
24656 calling layout() on the index. |
|
24657 * mathml/RenderMathMLSquareRoot.cpp: |
|
24658 (WebCore::RenderMathMLSquareRoot::paint): |
|
24659 |
|
24660 2010-06-17 Darin Adler <darin@apple.com> |
|
24661 |
|
24662 Reviewed by Sam Weinig. |
|
24663 |
|
24664 Use adoptRef and create functions in more code paths |
|
24665 https://bugs.webkit.org/show_bug.cgi?id=40760 |
|
24666 |
|
24667 This helps prepare for an assertion that fires if you ref or destroy an |
|
24668 object before calling adoptRef on it. That will help us catch mistakes |
|
24669 that can lead to storage leaks. |
|
24670 |
|
24671 * WebCore.base.exp: Updated export now that Frame::create is not an |
|
24672 inline function. |
|
24673 |
|
24674 * css/CSSInitialValue.h: |
|
24675 (WebCore::CSSInitialValue::createExplicit): Use create. |
|
24676 (WebCore::CSSInitialValue::createImplicit): Ditto. |
|
24677 (WebCore::CSSInitialValue::create): Added. |
|
24678 |
|
24679 * css/CSSPrimitiveValue.cpp: |
|
24680 (WebCore::CSSPrimitiveValue::createUncachedIdentifier): Added. |
|
24681 (WebCore::CSSPrimitiveValue::createUncachedColor): Added. |
|
24682 (WebCore::CSSPrimitiveValue::createUncached): Added. |
|
24683 (WebCore::CSSPrimitiveValue::createIdentifier): Use createUncachedIdentifier |
|
24684 instead of using new directly. |
|
24685 (WebCore::CSSPrimitiveValue::createColor): Use createUncachedColor instead |
|
24686 of using new directly. |
|
24687 (WebCore::CSSPrimitiveValue::create): Use createdUncached instead of using |
|
24688 new directly. |
|
24689 * css/CSSPrimitiveValue.h: Declare the new functions above. |
|
24690 |
|
24691 * css/CSSStyleSelector.cpp: |
|
24692 (WebCore::loadFullDefaultStyle): Deref simpleDefaultStyleSheet instead of |
|
24693 explicitly deleting it. |
|
24694 |
|
24695 * loader/SubresourceLoader.cpp: |
|
24696 (WebCore::SubresourceLoader::SubresourceLoader): Move the call to |
|
24697 addSubresourceLoader out of here. |
|
24698 (WebCore::SubresourceLoader::create): Move it in here. This makes it so |
|
24699 we don't ref the loader before finishing its creation and calling adoptRef. |
|
24700 |
|
24701 * page/Frame.cpp: |
|
24702 (WebCore::Frame::Frame): Move the call to setMainFrame out of here. |
|
24703 Also refactor the code so an assertion is easier to read. |
|
24704 (WebCore::Frame::create): Move the call to setMainFrame in here. |
|
24705 This makes it so we don't ref the frame before finishing its creation |
|
24706 and calling adoptRef. |
|
24707 * page/Frame.h: Made the create function non-inline. |
|
24708 |
|
24709 * platform/text/BidiContext.cpp: |
|
24710 (WebCore::BidiContext::createUncached): Added. |
|
24711 (WebCore::BidiContext::create): Call createUncached instead of callling |
|
24712 new directly. |
|
24713 * platform/text/BidiContext.h: Declare createUncached. |
|
24714 |
|
24715 * rendering/RenderSVGResourceFilter.cpp: |
|
24716 (WebCore::RenderSVGResourceFilter::buildPrimitives): Use PassRefPtr and |
|
24717 RefPtr instead of OwnPtr. And use the create function instead of new. |
|
24718 * rendering/RenderSVGResourceFilter.h: Ditto. |
|
24719 * rendering/SVGRenderTreeAsText.cpp: |
|
24720 (WebCore::writeSVGResourceContainer): Ditto. |
|
24721 |
|
24722 * storage/StorageAreaImpl.cpp: |
|
24723 (WebCore::StorageAreaImpl::StorageAreaImpl): Move the code that calls |
|
24724 StorageAreaSync::create out of here. |
|
24725 (WebCore::StorageAreaImpl::create): Move it in here. This makes it so we |
|
24726 don't ref the storage area before finishing its creation and calling adoptRef. |
|
24727 |
|
24728 * svg/SVGPaint.cpp: |
|
24729 (WebCore::SVGPaint::defaultFill): Use create instead of new. |
|
24730 (WebCore::SVGPaint::defaultStroke): Ditto. |
|
24731 |
|
24732 * svg/graphics/filters/SVGFilterBuilder.h: Made the constructor private |
|
24733 and added a create function since this is a reference counted object and |
|
24734 should not be constructed directly. |
|
24735 |
|
24736 2010-06-17 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
24737 |
|
24738 Reviewed by Gustavo Noronha. |
|
24739 |
|
24740 Update CMake build system to use new script for generating source files |
|
24741 with gperf (r61091). |
|
24742 This updates also the build system to cope with recent changes to |
|
24743 source files list. |
|
24744 https://bugs.webkit.org/show_bug.cgi?id=40628 |
|
24745 |
|
24746 No new tests since it's just compilation fixes. |
|
24747 |
|
24748 * CMakeLists.txt: |
|
24749 |
|
24750 2010-06-17 Darin Adler <darin@apple.com> |
|
24751 |
|
24752 Reviewed by Sam Weinig. |
|
24753 |
|
24754 Fix boolean reflected attributes to use empty string consistently for the content attribute value |
|
24755 https://bugs.webkit.org/show_bug.cgi?id=40758 |
|
24756 |
|
24757 Test: fast/dom/boolean-attribute-reflection.html |
|
24758 |
|
24759 The HTML5 specification and other browsers are all consistent: |
|
24760 When setting a boolean IDL attribute to true, the attribute value |
|
24761 gets set to the empty string. The guidelines for authors allow either |
|
24762 the empty string or the name of the attribute, but for implementers |
|
24763 of the DOM, the reflected attribute gets empty string. |
|
24764 |
|
24765 * dom/Element.cpp: |
|
24766 (WebCore::Element::setBooleanAttribute): Use emptyAtom to set the |
|
24767 attribute to the empty string. |
|
24768 |
|
24769 * html/HTMLFormControlElement.cpp: |
|
24770 (WebCore::HTMLFormControlElement::setAutofocus): Use the empty string, |
|
24771 not "autofocus". |
|
24772 (WebCore::HTMLFormControlElement::setRequired): Use the empty string, |
|
24773 not "required". |
|
24774 |
|
24775 2010-06-17 Pavel Feldman <pfeldman@chromium.org> |
|
24776 |
|
24777 Unreviewed: chromium tests fix. Added InspectorBackend delegates for new inspector methods. |
|
24778 |
|
24779 * inspector/front-end/InspectorBackendStub.js: |
|
24780 (.WebInspector.InspectorBackendStub.prototype.clearConsoleMessages): |
|
24781 (.WebInspector.InspectorBackendStub.prototype.getOuterHTML): |
|
24782 (.WebInspector.InspectorBackendStub.prototype.setOuterHTML): |
|
24783 (.WebInspector.InspectorBackendStub.prototype.addInspectedNode): |
|
24784 |
|
24785 2010-06-17 Mark Brand <mabrand@mabrand.nl> |
|
24786 |
|
24787 Reviewed by Simon Hausmann. |
|
24788 |
|
24789 [Qt] use "win32-g++*" scope to match all MinGW makespecs |
|
24790 |
|
24791 The scope "win32-g++" comes from the name of the makespec. However, it |
|
24792 is frequently used to check for MinGW. This works fine as long as |
|
24793 win32-g++ is the only makespec for MinGW. Now we need the wildcard |
|
24794 to cover "win32-g++-cross" as well. |
|
24795 |
|
24796 * WebCore.pro: |
|
24797 |
|
24798 2010-06-16 Pavel Feldman <pfeldman@chromium.org> |
|
24799 |
|
24800 Reviewed by Joe Pecoraro. |
|
24801 |
|
24802 Web Inspector: move get/setOuterHTML, addInspectedNode and |
|
24803 clearConsole to native InspectorDOMAgent. This is done to allow |
|
24804 inspected nodes array to store nodes from different domains, |
|
24805 also moves outerhtml manipulation closer to the rest of the DOM |
|
24806 operations. In addition to that, we are slowly getting rid of |
|
24807 InjectedScriptAccess in favor of IDL-defined InspectorBackend |
|
24808 interface for clearer remote debugging API. |
|
24809 |
|
24810 https://bugs.webkit.org/show_bug.cgi?id=40733 |
|
24811 |
|
24812 * inspector/InjectedScriptHost.cpp: |
|
24813 (WebCore::InjectedScriptHost::inspectedNode): |
|
24814 * inspector/InjectedScriptHost.h: |
|
24815 * inspector/InspectorBackend.cpp: |
|
24816 (WebCore::InspectorBackend::changeTagName): |
|
24817 (WebCore::InspectorBackend::getOuterHTML): |
|
24818 (WebCore::InspectorBackend::setOuterHTML): |
|
24819 (WebCore::InspectorBackend::addInspectedNode): |
|
24820 (WebCore::InspectorBackend::clearConsoleMessages): |
|
24821 * inspector/InspectorBackend.h: |
|
24822 * inspector/InspectorBackend.idl: |
|
24823 * inspector/InspectorDOMAgent.cpp: |
|
24824 (WebCore::InspectorDOMAgent::inspectedNode): |
|
24825 (WebCore::InspectorDOMAgent::changeTagName): |
|
24826 (WebCore::InspectorDOMAgent::getOuterHTML): |
|
24827 (WebCore::InspectorDOMAgent::setOuterHTML): |
|
24828 (WebCore::InspectorDOMAgent::addInspectedNode): |
|
24829 * inspector/InspectorDOMAgent.h: |
|
24830 * inspector/InspectorFrontend.cpp: |
|
24831 (WebCore::InspectorFrontend::didGetOuterHTML): |
|
24832 (WebCore::InspectorFrontend::didSetOuterHTML): |
|
24833 * inspector/InspectorFrontend.h: |
|
24834 * inspector/front-end/ConsoleView.js: |
|
24835 (WebInspector.ConsoleView.prototype.requestClearMessages): |
|
24836 * inspector/front-end/DOMAgent.js: |
|
24837 * inspector/front-end/ElementsPanel.js: |
|
24838 (WebInspector.ElementsPanel.this.treeOutline.focusedNodeChanged): |
|
24839 (WebInspector.ElementsPanel): |
|
24840 * inspector/front-end/ElementsTreeOutline.js: |
|
24841 (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted.changeTagNameCallback): |
|
24842 (WebInspector.ElementsTreeElement.prototype._tagNameEditingCommitted): |
|
24843 (): |
|
24844 * inspector/front-end/InjectedScript.js: |
|
24845 (injectedScriptConstructor): |
|
24846 * inspector/front-end/InjectedScriptAccess.js: |
|
24847 |
|
24848 2010-06-17 John Gregg <johnnyg@google.com> |
|
24849 |
|
24850 Reviewed by David Levin. |
|
24851 |
|
24852 Move the call to the notification presenter that a Notification is being |
|
24853 destroyed from the destructor (not safe) to the ActiveDOMObject::contextDestroyed |
|
24854 method. |
|
24855 |
|
24856 Also fix up an incorrect reference loss in the V8 bindings code for Notifications. |
|
24857 https://bugs.webkit.org/show_bug.cgi?id=40097 |
|
24858 |
|
24859 No new tests; code paths are well-covered by existing tests. |
|
24860 |
|
24861 * bindings/v8/custom/V8NotificationCenterCustom.cpp: |
|
24862 (WebCore::V8NotificationCenter::createHTMLNotificationCallback): |
|
24863 (WebCore::V8NotificationCenter::createNotificationCallback): |
|
24864 * notifications/Notification.cpp: |
|
24865 (WebCore::Notification::~Notification): |
|
24866 (WebCore::Notification::contextDestroyed): |
|
24867 * notifications/Notification.h: |
|
24868 |
|
24869 2010-06-17 Csaba Osztrogonác <ossy@webkit.org> |
|
24870 |
|
24871 Unreviewed rollout r61311, because it made 2 tests fail on Qt bot. |
|
24872 |
|
24873 [Qt] NPP_SetWindow seems to not be called when TestNetscapePlugin is moved |
|
24874 https://bugs.webkit.org/show_bug.cgi?id=36702 |
|
24875 |
|
24876 * plugins/qt/PluginViewQt.cpp: |
|
24877 (WebCore::PluginView::updatePluginWidget): |
|
24878 |
|
24879 2010-05-28 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com> |
|
24880 |
|
24881 Reviewed by Simon Hausmann, Antti Koivisto |
|
24882 |
|
24883 Make repaint throttling parameters runtime configurable. |
|
24884 https://bugs.webkit.org/show_bug.cgi?id=38401 |
|
24885 |
|
24886 REPAINT_THROTTLING now chooses default values for throttling parameters. |
|
24887 Should be removed when applications start using runtime configuration. |
|
24888 |
|
24889 * page/FrameView.cpp: |
|
24890 (WebCore::FrameView::reset): |
|
24891 (WebCore::FrameView::updateDeferredRepaintDelay): |
|
24892 (WebCore::FrameView::setRepaintThrottlingDeferredRepaintDelay): |
|
24893 (WebCore::FrameView::setRepaintThrottlingnInitialDeferredRepaintDelayDuringLoading): |
|
24894 (WebCore::FrameView::setRepaintThrottlingMaxDeferredRepaintDelayDuringLoading): |
|
24895 (WebCore::FrameView::setRepaintThrottlingDeferredRepaintDelayIncrementDuringLoading): |
|
24896 * page/FrameView.h: |
|
24897 |
|
24898 2010-06-17 Robert Hogan <robert@webkit.org> |
|
24899 |
|
24900 Reviewed by Kenneth Rohde Christiansen. |
|
24901 |
|
24902 [Qt] NPP_SetWindow seems to not be called when TestNetscapePlugin is moved |
|
24903 |
|
24904 https://bugs.webkit.org/show_bug.cgi?id=36702 |
|
24905 |
|
24906 setNPWindowIfNeeded() is called on paint() in PluginViewQt, which doesn't |
|
24907 work for DRT. So call it if we are in DRT mode and the window geometry |
|
24908 has changed. |
|
24909 |
|
24910 Unskips plugins/reentrant-update-widget-positions.html |
|
24911 |
|
24912 * plugins/qt/PluginViewQt.cpp: |
|
24913 (WebCore::PluginView::updatePluginWidget): |
|
24914 |
|
24915 2010-06-17 Simon Hausmann <simon.hausmann@nokia.com> |
|
24916 |
|
24917 Reviewed by Kenneth Christiansen. |
|
24918 |
|
24919 [Qt] Avoid unnecessary calls to save() and restore() when drawing images |
|
24920 |
|
24921 Avoid calling the expensive save() and restore() on the GraphicsContext just |
|
24922 for changing the composition mode. Instead save and restore it manually |
|
24923 on QPainter. |
|
24924 |
|
24925 Change fac227f609e544f8f55aca8447b4328d6534407a in Qt makes sure that the |
|
24926 call to QPainter::setCompositionMode doesn't do anything if the mode hasn't |
|
24927 changed. |
|
24928 |
|
24929 * platform/graphics/GraphicsContext.h: |
|
24930 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
24931 (WebCore::GraphicsContext::toQtCompositionMode): |
|
24932 * platform/graphics/qt/ImageQt.cpp: |
|
24933 (WebCore::BitmapImage::draw): |
|
24934 |
|
24935 2010-06-16 Dawit Alemayehu <adawit@kde.org> |
|
24936 |
|
24937 Reviewed by Simon Hausmann. |
|
24938 |
|
24939 [Qt] QtWebKit crashes while initializing flash plugin 10.1.53.64. |
|
24940 https://bugs.webkit.org/show_bug.cgi?id=40567 |
|
24941 |
|
24942 Avoid preventable crashes by ensuring gtk_init() is called in the |
|
24943 flash viewer plugins before calling NP_Initialize. |
|
24944 |
|
24945 * plugins/qt/PluginPackageQt.cpp: |
|
24946 (WebCore::PluginPackage::load): |
|
24947 |
|
24948 2010-06-16 Tony Gentilcore <tonyg@chromium.org> |
|
24949 |
|
24950 Reviewed by David Levin. |
|
24951 |
|
24952 Guarantee that references are held for CachedScripts in HTMLDocumentParser. |
|
24953 https://bugs.webkit.org/show_bug.cgi?id=40177 |
|
24954 |
|
24955 No new tests because no new functionality. |
|
24956 |
|
24957 * html/HTMLDocumentParser.cpp: |
|
24958 (WebCore::HTMLDocumentParser::reset): |
|
24959 (WebCore::HTMLDocumentParser::executeExternalScriptsIfReady): |
|
24960 |
|
24961 2010-06-16 Qi Zhang <qi.2.zhang@nokia.com> |
|
24962 |
|
24963 Reviewed by Laszlo Gombos. |
|
24964 |
|
24965 [Qt] Repeat pattern should start from origin |
|
24966 https://bugs.webkit.org/show_bug.cgi?id=39225 |
|
24967 |
|
24968 Patterns must be painted so that the top left of the first image |
|
24969 is anchored at the origin of the coordinate space. |
|
24970 |
|
24971 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
24972 (WebCore::drawRepeatPattern): |
|
24973 (WebCore::GraphicsContext::fillRect): |
|
24974 |
|
24975 2010-06-16 Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com> |
|
24976 |
|
24977 Reviewed by Simon Hausmann. |
|
24978 |
|
24979 [Qt] WebGL viewport does not show up on N900 |
|
24980 https://bugs.webkit.org/show_bug.cgi?id=38528 |
|
24981 |
|
24982 With OGLES2 add default precision to the shader code. |
|
24983 Use GLsizeiptr and GLintptr with OGLES2. |
|
24984 Call paint() in beginPaint() so that drawTexture() is used |
|
24985 whenever possible. |
|
24986 |
|
24987 * platform/graphics/qt/GraphicsContext3DQt.cpp: |
|
24988 (WebCore::GraphicsContext3D::beginPaint): |
|
24989 (WebCore::GraphicsContext3D::paint): |
|
24990 (WebCore::GraphicsContext3D::shaderSource): |
|
24991 |
|
24992 2010-06-16 Antonio Gomes <tonikitoo@webkit.org> |
|
24993 |
|
24994 Reviewed by Simon Fraser. |
|
24995 |
|
24996 Spatial Navigation: refactor scrollInDirection to work with scrollable content |
|
24997 https://bugs.webkit.org/show_bug.cgi?id=39195 |
|
24998 |
|
24999 scrollInDirection now receives as parameter the node that the Spatial Navigation |
|
25000 found as the more appropriated to move focus to. If it is in a scrollable container |
|
25001 (e.g. <div> with clipped overflow content), it scrolls recursively starting from |
|
25002 the container, not the current focused node. |
|
25003 |
|
25004 Test: fast/events/spatial-navigation/snav-only-clipped-overflow-content.html |
|
25005 |
|
25006 * page/FocusController.cpp: |
|
25007 (WebCore::FocusController::advanceFocusDirectionally): |
|
25008 * page/SpatialNavigation.cpp: |
|
25009 (WebCore::scrollInDirection): |
|
25010 * page/SpatialNavigation.h: |
|
25011 |
|
25012 2010-06-16 Brady Eidson <beidson@apple.com> |
|
25013 |
|
25014 Reviewed by Eric Carlson |
|
25015 |
|
25016 <rdar://problem/7249553> and https://bugs.webkit.org/show_bug.cgi?id=40749 |
|
25017 ResourceLoader::willCacheResponse() needs to null-check Frame::Settings() |
|
25018 |
|
25019 No new tests. (Discovered via crash reports, no reproducible cases noted) |
|
25020 |
|
25021 * loader/ResourceLoader.cpp: |
|
25022 (WebCore::ResourceLoader::willCacheResponse): Null check m_frame->settings(), |
|
25023 but also add an ASSERT so debug-build developers can learn more about why |
|
25024 this might be happening. |
|
25025 |
|
25026 2010-06-16 Darin Adler <darin@apple.com> |
|
25027 |
|
25028 Try to fix the MathML build. |
|
25029 |
|
25030 * mathml/MathMLMathElement.h: Added missing return type. |
|
25031 |
|
25032 2010-06-16 Darin Adler <darin@apple.com> |
|
25033 |
|
25034 Reviewed by David Levin. |
|
25035 |
|
25036 Deploy adoptRef in more places, including all HTML and MathML elements |
|
25037 https://bugs.webkit.org/show_bug.cgi?id=39941 |
|
25038 |
|
25039 * dom/Element.cpp: |
|
25040 (WebCore::Element::dispatchAttrRemovalEvent): Use create instead of new |
|
25041 in commented-out code. |
|
25042 (WebCore::Element::dispatchAttrAdditionEvent): Ditto. |
|
25043 |
|
25044 * dom/Node.h: Removed now-unused CreateElementZeroRefCount and |
|
25045 CreateHTMLElementZeroRefCount. |
|
25046 |
|
25047 * editing/InsertListCommand.cpp: |
|
25048 (WebCore::InsertListCommand::insertList): Use create instead of new, fixing |
|
25049 a storage leak. |
|
25050 |
|
25051 * editing/ModifySelectionListLevel.cpp: |
|
25052 (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevel): |
|
25053 Removed "WithType" from function name. Use create instead of new, fixing a |
|
25054 storage leak. |
|
25055 (WebCore::DecreaseSelectionListLevelCommand::decreaseSelectionListLevel): Use |
|
25056 create instead of new, fixing a storage leak. |
|
25057 |
|
25058 * storage/IndexedDatabaseImpl.cpp: |
|
25059 (WebCore::IndexedDatabaseImpl::create): Use adoptRef, fixing a storage leak. |
|
25060 |
|
25061 * editing/ModifySelectionListLevel.h: Added create functions. |
|
25062 |
|
25063 * html/HTMLAnchorElement.cpp: |
|
25064 (WebCore::HTMLAnchorElement::HTMLAnchorElement): |
|
25065 * html/HTMLFrameOwnerElement.cpp: |
|
25066 (WebCore::HTMLFrameOwnerElement::HTMLFrameOwnerElement): |
|
25067 * html/HTMLMeterElement.cpp: |
|
25068 (WebCore::HTMLMeterElement::HTMLMeterElement): |
|
25069 * html/HTMLProgressElement.cpp: |
|
25070 (WebCore::HTMLProgressElement::HTMLProgressElement): |
|
25071 Removed code to explicitly pass CreateHTMLElement construction type since that's |
|
25072 now the type used for all HTML elements. |
|
25073 |
|
25074 * html/HTMLFormControlElement.cpp: |
|
25075 (WebCore::HTMLFormControlElement::HTMLFormControlElement): |
|
25076 * html/HTMLFormControlElement.h: |
|
25077 Removed construction type argument, since CreateHTMLElement is now the type used |
|
25078 for all HTML elements. |
|
25079 |
|
25080 * mathml/MathMLElement.cpp: |
|
25081 (WebCore::MathMLElement::MathMLElement): Removed construction type of |
|
25082 CreateStyledElementZeroRefCount so we'll use the default construction |
|
25083 type, CreateStyledElement. |
|
25084 (WebCore::MathMLElement::create): Use adoptRef. |
|
25085 |
|
25086 * mathml/MathMLElement.h: Made isMathMLElement function private and |
|
25087 removed unneeded override of createRenderer, because it did the |
|
25088 same thing as the base class's createRenderer function. |
|
25089 |
|
25090 * mathml/MathMLInlineContainerElement.cpp: |
|
25091 (WebCore::MathMLInlineContainerElement::create): Use adoptRef. |
|
25092 (WebCore::MathMLInlineContainerElement::createRenderer): |
|
25093 Removed unnecessarily initialization of local variable and removed the |
|
25094 case for mathTag, since that uses a different derived class. |
|
25095 |
|
25096 * mathml/MathMLInlineContainerElement.h: Made createRenderrer override |
|
25097 private. |
|
25098 |
|
25099 * mathml/MathMLMathElement.cpp: |
|
25100 (WebCore::MathMLMathElement::MathMLMathElement): Marked inline since |
|
25101 it is called in only one place. |
|
25102 (WebCore::MathMLMathElement::create): Use adoptRef. |
|
25103 (WebCore::MathMLMathElement::createRenderer): Added. Creates a |
|
25104 RenderMathMLMath object. |
|
25105 |
|
25106 * mathml/MathMLMathElement.h: Made constructor private and added a |
|
25107 private override of createRenderer. |
|
25108 |
|
25109 * mathml/MathMLTextElement.cpp: |
|
25110 (WebCore::MathMLTextElement::MathMLTextElement): Marked inline since |
|
25111 it is called in only one place. |
|
25112 (WebCore::MathMLTextElement::create): Use adoptRef. |
|
25113 (WebCore::MathMLTextElement::createRenderer): Changed to call through |
|
25114 to the base class instead of calling RenderObject::createObject directly. |
|
25115 |
|
25116 * mathml/MathMLTextElement.h: Made the constructor and createRenderer |
|
25117 function private. |
|
25118 |
|
25119 * rendering/RenderFileUploadControl.cpp: |
|
25120 (WebCore::RenderFileUploadControl::RenderFileUploadControl): |
|
25121 Removed an unneeded initializer. |
|
25122 |
|
25123 * rendering/RenderProgress.cpp: Tweaked includes. |
|
25124 |
|
25125 * rendering/ShadowElement.cpp: Added a "using namespace" directive. |
|
25126 * rendering/ShadowElement.h: Tweaked formatting. Made more functions |
|
25127 private. |
|
25128 |
|
25129 * editing/DeleteButton.cpp: |
|
25130 (WebCore::DeleteButton::create): |
|
25131 * html/HTMLAudioElement.cpp: |
|
25132 (WebCore::HTMLAudioElement::create): |
|
25133 (WebCore::HTMLAudioElement::createForJSConstructor): |
|
25134 * html/HTMLBRElement.cpp: |
|
25135 (WebCore::HTMLBRElement::create): |
|
25136 * html/HTMLBaseElement.cpp: |
|
25137 (WebCore::HTMLBaseElement::create): |
|
25138 * html/HTMLBaseFontElement.cpp: |
|
25139 (WebCore::HTMLBaseFontElement::create): |
|
25140 * html/HTMLBlockquoteElement.cpp: |
|
25141 (WebCore::HTMLBlockquoteElement::create): |
|
25142 * html/HTMLBodyElement.cpp: |
|
25143 (WebCore::HTMLBodyElement::create): |
|
25144 * html/HTMLButtonElement.cpp: |
|
25145 (WebCore::HTMLButtonElement::create): |
|
25146 * html/HTMLCanvasElement.cpp: |
|
25147 (WebCore::HTMLCanvasElement::create): |
|
25148 * html/HTMLDListElement.cpp: |
|
25149 (WebCore::HTMLDListElement::create): |
|
25150 * html/HTMLDataGridCellElement.cpp: |
|
25151 (WebCore::HTMLDataGridCellElement::create): |
|
25152 * html/HTMLDataGridColElement.cpp: |
|
25153 (WebCore::HTMLDataGridColElement::create): |
|
25154 * html/HTMLDataGridElement.cpp: |
|
25155 (WebCore::HTMLDataGridElement::create): |
|
25156 * html/HTMLDataGridRowElement.cpp: |
|
25157 (WebCore::HTMLDataGridRowElement::create): |
|
25158 * html/HTMLDataListElement.cpp: |
|
25159 (WebCore::HTMLDataListElement::create): |
|
25160 * html/HTMLDivElement.cpp: |
|
25161 (WebCore::HTMLDivElement::create): |
|
25162 * html/HTMLElement.cpp: |
|
25163 (WebCore::HTMLElement::create): |
|
25164 * html/HTMLElement.h: |
|
25165 (WebCore::HTMLElement::HTMLElement): |
|
25166 * html/HTMLFieldSetElement.cpp: |
|
25167 (WebCore::HTMLFieldSetElement::create): |
|
25168 * html/HTMLFontElement.cpp: |
|
25169 (WebCore::HTMLFontElement::create): |
|
25170 * html/HTMLFormElement.cpp: |
|
25171 (WebCore::HTMLFormElement::create): |
|
25172 * html/HTMLFrameSetElement.cpp: |
|
25173 (WebCore::HTMLFrameSetElement::create): |
|
25174 * html/HTMLHRElement.cpp: |
|
25175 (WebCore::HTMLHRElement::create): |
|
25176 * html/HTMLHeadElement.cpp: |
|
25177 (WebCore::HTMLHeadElement::create): |
|
25178 * html/HTMLHeadingElement.cpp: |
|
25179 (WebCore::HTMLHeadingElement::create): |
|
25180 * html/HTMLHtmlElement.cpp: |
|
25181 (WebCore::HTMLHtmlElement::create): |
|
25182 * html/HTMLImageElement.cpp: |
|
25183 (WebCore::HTMLImageElement::create): |
|
25184 (WebCore::HTMLImageElement::createForJSConstructor): |
|
25185 * html/HTMLInputElement.cpp: |
|
25186 (WebCore::HTMLInputElement::create): |
|
25187 * html/HTMLIsIndexElement.cpp: |
|
25188 (WebCore::HTMLIsIndexElement::create): |
|
25189 * html/HTMLKeygenElement.cpp: |
|
25190 (WebCore::HTMLKeygenElement::create): |
|
25191 * html/HTMLLIElement.cpp: |
|
25192 (WebCore::HTMLLIElement::create): |
|
25193 * html/HTMLLabelElement.cpp: |
|
25194 (WebCore::HTMLLabelElement::create): |
|
25195 * html/HTMLLegendElement.cpp: |
|
25196 (WebCore::HTMLLegendElement::create): |
|
25197 * html/HTMLLinkElement.cpp: |
|
25198 (WebCore::HTMLLinkElement::create): |
|
25199 * html/HTMLMapElement.cpp: |
|
25200 (WebCore::HTMLMapElement::create): |
|
25201 * html/HTMLMarqueeElement.cpp: |
|
25202 (WebCore::HTMLMarqueeElement::create): |
|
25203 * html/HTMLMenuElement.cpp: |
|
25204 (WebCore::HTMLMenuElement::create): |
|
25205 * html/HTMLMetaElement.cpp: |
|
25206 (WebCore::HTMLMetaElement::create): |
|
25207 * html/HTMLModElement.cpp: |
|
25208 (WebCore::HTMLModElement::create): |
|
25209 * html/HTMLNoScriptElement.cpp: |
|
25210 (WebCore::HTMLNoScriptElement::create): |
|
25211 * html/HTMLOListElement.cpp: |
|
25212 (WebCore::HTMLOListElement::create): |
|
25213 * html/HTMLOptGroupElement.cpp: |
|
25214 (WebCore::HTMLOptGroupElement::create): |
|
25215 * html/HTMLOptionElement.cpp: |
|
25216 (WebCore::HTMLOptionElement::create): |
|
25217 (WebCore::HTMLOptionElement::createForJSConstructor): |
|
25218 * html/HTMLParagraphElement.cpp: |
|
25219 (WebCore::HTMLParagraphElement::create): |
|
25220 * html/HTMLParamElement.cpp: |
|
25221 (WebCore::HTMLParamElement::create): |
|
25222 * html/HTMLPreElement.cpp: |
|
25223 (WebCore::HTMLPreElement::create): |
|
25224 * html/HTMLQuoteElement.cpp: |
|
25225 (WebCore::HTMLQuoteElement::create): |
|
25226 * html/HTMLScriptElement.cpp: |
|
25227 (WebCore::HTMLScriptElement::create): |
|
25228 * html/HTMLSelectElement.cpp: |
|
25229 (WebCore::HTMLSelectElement::create): |
|
25230 * html/HTMLSourceElement.cpp: |
|
25231 (WebCore::HTMLSourceElement::create): |
|
25232 * html/HTMLStyleElement.cpp: |
|
25233 (WebCore::HTMLStyleElement::create): |
|
25234 * html/HTMLTableCaptionElement.cpp: |
|
25235 (WebCore::HTMLTableCaptionElement::create): |
|
25236 * html/HTMLTableCellElement.cpp: |
|
25237 (WebCore::HTMLTableCellElement::create): |
|
25238 * html/HTMLTableColElement.cpp: |
|
25239 (WebCore::HTMLTableColElement::create): |
|
25240 * html/HTMLTableElement.cpp: |
|
25241 (WebCore::HTMLTableElement::create): |
|
25242 * html/HTMLTableRowElement.cpp: |
|
25243 (WebCore::HTMLTableRowElement::create): |
|
25244 * html/HTMLTableSectionElement.cpp: |
|
25245 (WebCore::HTMLTableSectionElement::create): |
|
25246 * html/HTMLTextAreaElement.cpp: |
|
25247 (WebCore::HTMLTextAreaElement::create): |
|
25248 * html/HTMLTitleElement.cpp: |
|
25249 (WebCore::HTMLTitleElement::create): |
|
25250 * html/HTMLUListElement.cpp: |
|
25251 (WebCore::HTMLUListElement::create): |
|
25252 * html/HTMLVideoElement.cpp: |
|
25253 (WebCore::HTMLVideoElement::create): |
|
25254 * loader/ImageDocument.cpp: |
|
25255 (WebCore::ImageDocumentElement::create): |
|
25256 * rendering/MediaControlElements.cpp: |
|
25257 (WebCore::MediaControlShadowRootElement::create): |
|
25258 (WebCore::MediaControlElement::create): |
|
25259 (WebCore::MediaControlTimelineContainerElement::create): |
|
25260 (WebCore::MediaControlVolumeSliderContainerElement::create): |
|
25261 (WebCore::MediaControlStatusDisplayElement::create): |
|
25262 (WebCore::MediaControlMuteButtonElement::create): |
|
25263 (WebCore::MediaControlPlayButtonElement::create): |
|
25264 (WebCore::MediaControlSeekButtonElement::create): |
|
25265 (WebCore::MediaControlRewindButtonElement::create): |
|
25266 (WebCore::MediaControlReturnToRealtimeButtonElement::create): |
|
25267 (WebCore::MediaControlToggleClosedCaptionsButtonElement::create): |
|
25268 (WebCore::MediaControlTimelineElement::create): |
|
25269 (WebCore::MediaControlVolumeSliderElement::create): |
|
25270 (WebCore::MediaControlFullscreenButtonElement::create): |
|
25271 (WebCore::MediaControlTimeDisplayElement::create): |
|
25272 * rendering/RenderSlider.cpp: |
|
25273 (WebCore::SliderThumbElement::create): |
|
25274 * rendering/TextControlInnerElements.cpp: |
|
25275 (WebCore::TextControlInnerElement::create): |
|
25276 (WebCore::TextControlInnerTextElement::create): |
|
25277 (WebCore::SearchFieldResultsButtonElement::create): |
|
25278 (WebCore::SearchFieldCancelButtonElement::create): |
|
25279 (WebCore::SpinButtonElement::create): |
|
25280 Use adoptRef. |
|
25281 |
|
25282 2010-06-16 Adam Barth <abarth@webkit.org> |
|
25283 |
|
25284 Reviewed by Eric Seidel. |
|
25285 |
|
25286 HTML5 parser crash when setTimeout document.write after slow script |
|
25287 https://bugs.webkit.org/show_bug.cgi?id=40726 |
|
25288 |
|
25289 According to the HTML5 spec, we're supposed to open() a new document if |
|
25290 we receive a document.write() after we've received EOF for the network. |
|
25291 The old parser just dumped those bytes onto the end of the network |
|
25292 stream. After this patch, our behavior matches Minefield. |
|
25293 |
|
25294 Test: http/tests/misc/write-while-waiting.html |
|
25295 |
|
25296 * WebCore.xcodeproj/project.pbxproj: |
|
25297 * dom/Document.cpp: |
|
25298 (WebCore::Document::write): |
|
25299 * dom/DocumentParser.h: |
|
25300 * dom/XMLDocumentParser.cpp: |
|
25301 (WebCore::XMLDocumentParser::finishWasCalled): |
|
25302 * dom/XMLDocumentParser.h: |
|
25303 * html/HTML5DocumentParser.cpp: |
|
25304 (WebCore::HTML5DocumentParser::finishWasCalled): |
|
25305 * html/HTML5DocumentParser.h: |
|
25306 (WebCore::HTML5DocumentParser::InputStream::isClosed): |
|
25307 * html/HTMLDocumentParser.cpp: |
|
25308 (WebCore::HTMLDocumentParser::finishWasCalled): |
|
25309 * html/HTMLDocumentParser.h: |
|
25310 * loader/ImageDocument.cpp: |
|
25311 (WebCore::ImageTokenizer::finishWasCalled): |
|
25312 * loader/MediaDocument.cpp: |
|
25313 (WebCore::MediaDocumentParser::finishWasCalled): |
|
25314 * loader/PluginDocument.cpp: |
|
25315 (WebCore::PluginDocumentParser::finishWasCalled): |
|
25316 * loader/SinkDocument.cpp: |
|
25317 (WebCore::SinkDocumentParser::finishWasCalled): |
|
25318 * loader/TextDocument.cpp: |
|
25319 (WebCore::TextDocumentParser::finishWasCalled): |
|
25320 |
|
25321 2010-06-16 Martin Robinson <mrobinson@igalia.com> |
|
25322 |
|
25323 Reviewed by Gustavo Noronha Silva. |
|
25324 |
|
25325 [GTK] ClipboardGtk::setURL does not match the behavior of other platforms |
|
25326 https://bugs.webkit.org/show_bug.cgi?id=40640 |
|
25327 |
|
25328 Instead of writing URL labels to the text portion of the clipboard or |
|
25329 drag-and-drop data, write the URL itself. Also escape the label text |
|
25330 of URLs. Abstracts logic into DataObjectGtk, so ClipboardGtk and |
|
25331 PasteboardGtk can share it. |
|
25332 |
|
25333 Tests for this issue will be activated when dropping support has been |
|
25334 added to the GTK+ EventSender. |
|
25335 |
|
25336 * platform/gtk/ClipboardGtk.cpp: |
|
25337 (WebCore::ClipboardGtk::writeURL): Use DataObjectGtk::setURL. |
|
25338 * platform/gtk/DataObjectGtk.cpp: |
|
25339 (WebCore::DataObjectGtk::setURL): |
|
25340 Added. Write URL to the text portion and remember to escape the |
|
25341 label when creating the markup portion. |
|
25342 * platform/gtk/DataObjectGtk.h: Add declaration of new method. |
|
25343 * platform/gtk/PasteboardGtk.cpp: |
|
25344 (WebCore::Pasteboard::writeURL): Use DataObjectGtk::setURL. |
|
25345 |
|
25346 2010-06-16 Adam Barth <abarth@webkit.org> |
|
25347 |
|
25348 Reviewed by Eric Seidel. |
|
25349 |
|
25350 Hit assertion in WebCore::HTML5Token::appendToSystemIdentifier |
|
25351 https://bugs.webkit.org/show_bug.cgi?id=40729 |
|
25352 |
|
25353 This was a copy/paste error. Yay for ASSERTs. |
|
25354 |
|
25355 * html/HTML5Lexer.cpp: |
|
25356 (WebCore::HTML5Lexer::nextToken): |
|
25357 |
|
25358 2010-06-16 Stuart Morgan <stuartmorgan@chromium.org> |
|
25359 |
|
25360 Reviewed by Anders Carlsson. |
|
25361 |
|
25362 Bring npapi.h more in line with upstream npapi-headers version: |
|
25363 - Remove obsolete XP_MAC sections. |
|
25364 - Remove Metrowerks defines. |
|
25365 - Add OS/2 defines. |
|
25366 - Add Maemo defines. |
|
25367 - Add new version of the custom Carbon event definitions. |
|
25368 - Sync platform define style/details |
|
25369 |
|
25370 https://bugs.webkit.org/show_bug.cgi?id=38666 |
|
25371 |
|
25372 * bridge/npapi.h: |
|
25373 |
|
25374 2010-06-16 Simon Fraser <simon.fraser@apple.com> |
|
25375 |
|
25376 Reviewed by Sam Weinig. |
|
25377 |
|
25378 Allow transitions and animations of clip: rect |
|
25379 https://bugs.webkit.org/show_bug.cgi?id=38130 |
|
25380 |
|
25381 Make the CSS clip property animatable. |
|
25382 |
|
25383 Test: transitions/clip-transition.html |
|
25384 |
|
25385 * page/animation/AnimationBase.cpp: |
|
25386 (WebCore::blendFunc): New blend function for LengthBox |
|
25387 (WebCore::AnimationBase::ensurePropertyMap): Create a PropertyWrapper for LengthBoxes. |
|
25388 |
|
25389 * platform/LengthBox.h: |
|
25390 (WebCore::LengthBox::LengthBox): New ctor that takes 4 length values. |
|
25391 * rendering/style/RenderStyle.h: |
|
25392 (WebCore::InheritedFlags::setClip): New method that takes a LengthBox. |
|
25393 |
|
25394 2010-06-16 Simon Fraser <simon.fraser@apple.com> |
|
25395 |
|
25396 Reviewed by Dan Bernstein. |
|
25397 |
|
25398 Fix clipping via CSS clip: with composited descendants |
|
25399 https://bugs.webkit.org/show_bug.cgi?id=40579 |
|
25400 |
|
25401 Consult the 'clip' style, as well as overflow, when creating clipping |
|
25402 compositing layers. |
|
25403 |
|
25404 Tests: compositing/geometry/clip.html |
|
25405 compositing/overflow/clip-descendents.html |
|
25406 |
|
25407 * rendering/RenderLayerBacking.cpp: |
|
25408 (WebCore::clipBox): Utility function that returns the union of the clip and overflow |
|
25409 boxes. |
|
25410 (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): Use clipBox() to |
|
25411 get the correct clipping rectangle. |
|
25412 * rendering/RenderLayerCompositor.cpp: |
|
25413 (WebCore::RenderLayerCompositor::enclosingNonStackingClippingLayer): Look for |
|
25414 clip as well as overflow. |
|
25415 (WebCore::RenderLayerCompositor::clipsCompositingDescendants): Ditto. |
|
25416 |
|
25417 2010-06-16 Simon Fraser <simon.fraser@apple.com> |
|
25418 |
|
25419 Reviewed by Darin Adler. |
|
25420 |
|
25421 REGRESSION: Undocked inspector toolbar is white |
|
25422 https://bugs.webkit.org/show_bug.cgi?id=40644 |
|
25423 |
|
25424 Make the html element 100% height so that we don't erase the background to white, after r61215. |
|
25425 |
|
25426 * inspector/front-end/inspector.css: |
|
25427 (html): |
|
25428 |
|
25429 2010-06-16 Brian Weinstein <bweinstein@apple.com> |
|
25430 |
|
25431 Reviewed by Darin Adler. |
|
25432 |
|
25433 User scripts injected on start are not run on image documents. |
|
25434 https://bugs.webkit.org/show_bug.cgi?id=40722 |
|
25435 <rdar://8087394> |
|
25436 |
|
25437 User scripts that are injected on start are run from FrameLoader::dispatchDocumentElementAvailable, |
|
25438 but this is never called from ImageDocument, so call it when we create a document element for |
|
25439 our image document. |
|
25440 |
|
25441 * loader/ImageDocument.cpp: |
|
25442 (WebCore::ImageDocument::createDocumentStructure): Call FrameLoader::dispatchDocumentElementAvailable |
|
25443 after creating our document element. |
|
25444 |
|
25445 2010-06-16 Brady Eidson <beidson@apple.com> |
|
25446 |
|
25447 Reviewed by NOBODY (Build fix for Mac) |
|
25448 |
|
25449 * WebCore.xcodeproj/project.pbxproj: Make paths relative to the project root. |
|
25450 |
|
25451 2010-06-16 Chris Marrin <cmarrin@apple.com> |
|
25452 |
|
25453 Reviewed by Eric Carlson. |
|
25454 |
|
25455 https://bugs.webkit.org/show_bug.cgi?id=40643 |
|
25456 |
|
25457 Second of three steps - rename Canvas3DLayer to WebGLLayer |
|
25458 |
|
25459 * WebCore.xcodeproj/project.pbxproj: |
|
25460 * platform/graphics/mac/Canvas3DLayer.h: Removed. |
|
25461 * platform/graphics/mac/Canvas3DLayer.mm: Removed. |
|
25462 * platform/graphics/mac/GraphicsLayerCA.mm: |
|
25463 (WebCore::GraphicsLayerCA::setContentsToGraphicsContext3D): |
|
25464 * platform/graphics/mac/WebGLLayer.h: Copied from WebCore/platform/graphics/mac/Canvas3DLayer.h. |
|
25465 * platform/graphics/mac/WebGLLayer.mm: Copied from WebCore/platform/graphics/mac/Canvas3DLayer.mm. |
|
25466 |
|
25467 2010-06-16 Chris Marrin <cmarrin@apple.com> |
|
25468 |
|
25469 Reviewed by Simon Fraser. |
|
25470 |
|
25471 https://bugs.webkit.org/show_bug.cgi?id=40643 |
|
25472 |
|
25473 Rename GraphicsContext3DMac.cpp so it can interact with CALayer |
|
25474 |
|
25475 * platform/graphics/mac/GraphicsContext3DMac.cpp: Removed. |
|
25476 * platform/graphics/mac/GraphicsContext3DMac.mm: Copied from WebCore/platform/graphics/mac/GraphicsContext3DMac.cpp. |
|
25477 * WebCore.xcodeproj/project.pbxproj |
|
25478 |
|
25479 2010-06-16 Nikolas Zimmermann <nzimmermann@rim.com> |
|
25480 |
|
25481 Reviewed by Dirk Schulze. |
|
25482 |
|
25483 Add new files, needed in SVG Text rewrite |
|
25484 https://bugs.webkit.org/show_bug.cgi?id=40676 |
|
25485 |
|
25486 Land SVGTextChunkLayoutInfo.cpp and SVGTextQuery.(cpp|h), both with an "#if 0" on top, as they will be needed |
|
25487 in a later patch, completing the SVG Text rewrite, that will enable them. |
|
25488 |
|
25489 Doesn't affect any code for now, it should just reduce the review amount. |
|
25490 |
|
25491 * Android.mk: |
|
25492 * CMakeLists.txt: |
|
25493 * GNUmakefile.am: |
|
25494 * WebCore.gypi: |
|
25495 * WebCore.pro: |
|
25496 * WebCore.vcproj/WebCore.vcproj: |
|
25497 * WebCore.xcodeproj/project.pbxproj: |
|
25498 * rendering/SVGTextChunkLayoutInfo.cpp: Added. |
|
25499 (WebCore::cummulatedWidthOrHeightOfTextChunk): |
|
25500 (WebCore::cummulatedWidthOfTextChunk): |
|
25501 (WebCore::cummulatedHeightOfTextChunk): |
|
25502 (WebCore::calculateTextAnchorShiftForTextChunk): |
|
25503 (WebCore::applyTextAnchorToTextChunk): |
|
25504 (WebCore::calculateTextLengthCorrectionForTextChunk): |
|
25505 (WebCore::applyTextLengthCorrectionToTextChunk): |
|
25506 (WebCore::SVGTextChunkLayoutInfo::startTextChunk): |
|
25507 (WebCore::SVGTextChunkLayoutInfo::closeTextChunk): |
|
25508 (WebCore::SVGTextChunkLayoutInfo::buildTextChunks): |
|
25509 (WebCore::SVGTextChunkLayoutInfo::recursiveBuildTextChunks): |
|
25510 (WebCore::SVGTextChunkLayoutInfo::layoutTextChunks): |
|
25511 * rendering/SVGTextChunkLayoutInfo.h: Add missing include, otherwhise compiling SVGTextChunkLayoutInfo.cpp will fail. |
|
25512 * rendering/SVGTextQuery.cpp: Added. |
|
25513 (WebCore::SVGTextQuery::Data::Data): |
|
25514 (WebCore::flowBoxForRenderer): |
|
25515 (WebCore::mapLengthThroughChunkTransformation): |
|
25516 (WebCore::SVGTextQuery::SVGTextQuery): |
|
25517 (WebCore::SVGTextQuery::collectTextBoxesInFlowBox): |
|
25518 (WebCore::SVGTextQuery::executeQuery): |
|
25519 (WebCore::SVGTextQuery::mapStartAndLengthIntoChunkPartCoordinates): |
|
25520 (WebCore::SVGTextQuery::measureCharacterRange): |
|
25521 (WebCore::NumberOfCharactersData::NumberOfCharactersData): |
|
25522 (WebCore::SVGTextQuery::numberOfCharactersCallback): |
|
25523 (WebCore::SVGTextQuery::numberOfCharacters): |
|
25524 (WebCore::TextLengthData::TextLengthData): |
|
25525 (WebCore::SVGTextQuery::textLengthCallback): |
|
25526 (WebCore::SVGTextQuery::textLength): |
|
25527 (WebCore::SubStringLengthData::SubStringLengthData): |
|
25528 (WebCore::SVGTextQuery::subStringLengthCallback): |
|
25529 (WebCore::SVGTextQuery::subStringLength): |
|
25530 (WebCore::StartPositionOfCharacterData::StartPositionOfCharacterData): |
|
25531 (WebCore::SVGTextQuery::startPositionOfCharacterCallback): |
|
25532 (WebCore::SVGTextQuery::startPositionOfCharacter): |
|
25533 (WebCore::EndPositionOfCharacterData::EndPositionOfCharacterData): |
|
25534 (WebCore::SVGTextQuery::endPositionOfCharacterCallback): |
|
25535 (WebCore::SVGTextQuery::endPositionOfCharacter): |
|
25536 (WebCore::RotationOfCharacterData::RotationOfCharacterData): |
|
25537 (WebCore::SVGTextQuery::rotationOfCharacterCallback): |
|
25538 (WebCore::SVGTextQuery::rotationOfCharacter): |
|
25539 (WebCore::ExtentOfCharacterData::ExtentOfCharacterData): |
|
25540 (WebCore::SVGTextQuery::extentOfCharacterCallback): |
|
25541 (WebCore::SVGTextQuery::extentOfCharacter): |
|
25542 (WebCore::CharacterNumberAtPositionData::CharacterNumberAtPositionData): |
|
25543 (WebCore::SVGTextQuery::characterNumberAtPositionCallback): |
|
25544 (WebCore::SVGTextQuery::characterNumberAtPosition): |
|
25545 * rendering/SVGTextQuery.h: Added. |
|
25546 |
|
25547 2010-06-16 Nikolas Zimmermann <nzimmermann@rim.com> |
|
25548 |
|
25549 Reviewed by Dirk Schulze. |
|
25550 |
|
25551 Provide floating-point support for text selection framework |
|
25552 https://bugs.webkit.org/show_bug.cgi?id=40665 |
|
25553 |
|
25554 This is the first chunk of the SVG Text rewrite patches. |
|
25555 offsetForPosition() / selectionRectForText() should accept float/FloatPoint arguments instead |
|
25556 of int/IntPoint. offsetForPosition() already worked with floats internally in Qt and Mac. |
|
25557 selectionRectForText() was already returning a FloatRect, but the passed in origin was an integer. |
|
25558 Fixing these problems in order to support sub-pixel positioning in the upcoming SVG Text rewrite patch. |
|
25559 |
|
25560 Add a glyphScale parameter to TextRun, that will be used to support text selection |
|
25561 in lengthAdjust/textLength scenarios in SVG text, soon. |
|
25562 |
|
25563 Doesn't affect any testcases so far. HTML is not affected in any way, |
|
25564 as it only ever passes integers to these functions. |
|
25565 |
|
25566 * platform/graphics/Font.cpp: |
|
25567 (WebCore::Font::selectionRectForText): |
|
25568 (WebCore::Font::offsetForPosition): |
|
25569 * platform/graphics/Font.h: |
|
25570 * platform/graphics/FontFastPath.cpp: |
|
25571 (WebCore::Font::selectionRectForSimpleText): |
|
25572 (WebCore::Font::offsetForPositionForSimpleText): |
|
25573 * platform/graphics/TextRun.h: |
|
25574 (WebCore::TextRun::TextRun): |
|
25575 (WebCore::TextRun::glyphScale): |
|
25576 (WebCore::TextRun::setGlyphScale): |
|
25577 (WebCore::TextRun::applyGlyphScaling): |
|
25578 * platform/graphics/WidthIterator.cpp: |
|
25579 (WebCore::WidthIterator::advance): |
|
25580 * platform/graphics/chromium/FontChromiumWin.cpp: |
|
25581 (WebCore::Font::selectionRectForComplexText): |
|
25582 (WebCore::Font::offsetForPositionForComplexText): |
|
25583 * platform/graphics/chromium/FontLinux.cpp: |
|
25584 (WebCore::Font::offsetForPositionForComplexText): |
|
25585 (WebCore::Font::selectionRectForComplexText): |
|
25586 * platform/graphics/efl/FontEfl.cpp: |
|
25587 (WebCore::Font::offsetForPositionForComplexText): |
|
25588 (WebCore::Font::selectionRectForComplexText): |
|
25589 * platform/graphics/gtk/FontGtk.cpp: |
|
25590 (WebCore::Font::offsetForPositionForComplexText): |
|
25591 (WebCore::Font::selectionRectForComplexText): |
|
25592 * platform/graphics/haiku/FontHaiku.cpp: |
|
25593 (WebCore::Font::selectionRectForComplexText): |
|
25594 (WebCore::Font::offsetForPositionForComplexText): |
|
25595 * platform/graphics/mac/ComplexTextController.cpp: |
|
25596 (WebCore::ComplexTextController::offsetForPosition): |
|
25597 * platform/graphics/mac/ComplexTextController.h: |
|
25598 * platform/graphics/mac/FontComplexTextMac.cpp: |
|
25599 (WebCore::Font::selectionRectForComplexText): |
|
25600 (WebCore::Font::offsetForPositionForComplexText): |
|
25601 * platform/graphics/qt/FontQt.cpp: |
|
25602 (WebCore::Font::offsetForPositionForSimpleText): |
|
25603 (WebCore::Font::offsetForPositionForComplexText): |
|
25604 (WebCore::Font::selectionRectForSimpleText): |
|
25605 (WebCore::Font::selectionRectForComplexText): |
|
25606 * platform/graphics/win/FontWin.cpp: |
|
25607 (WebCore::Font::selectionRectForComplexText): |
|
25608 (WebCore::Font::offsetForPositionForComplexText): |
|
25609 * platform/graphics/wince/FontWince.cpp: |
|
25610 (WebCore::Font::offsetForPositionForComplexText): |
|
25611 (WebCore::Font::selectionRectForComplexText): |
|
25612 * platform/graphics/wx/FontWx.cpp: |
|
25613 (WebCore::Font::selectionRectForComplexText): |
|
25614 (WebCore::Font::offsetForPositionForComplexText): |
|
25615 * svg/SVGFont.cpp: |
|
25616 (WebCore::Font::selectionRectForTextUsingSVGFont): |
|
25617 (WebCore::Font::offsetForPositionForTextUsingSVGFont): |
|
25618 |
|
25619 2010-06-16 Anton Muhin <antonm@chromium.org> |
|
25620 |
|
25621 Reviewed by Nate Chapin. |
|
25622 |
|
25623 [v8] Introduce single element caches for WebCore::String to v8::String conversions |
|
25624 https://bugs.webkit.org/show_bug.cgi?id=40435 |
|
25625 Measurements show that for some web apps (GMail, Wave) and some scenarios |
|
25626 (intensive reading and/or keeping a tab open for a long time), |
|
25627 hit rate lies in 30--50% interval. |
|
25628 Inlining fast case gives another minor performance win. |
|
25629 |
|
25630 * bindings/v8/V8Binding.cpp: |
|
25631 (WebCore::getStringCache): |
|
25632 (WebCore::v8ExternalStringSlow): |
|
25633 * bindings/v8/V8Binding.h: |
|
25634 (WebCore::v8ExternalString): |
|
25635 |
|
25636 2010-06-16 Antonio Gomes <tonikitoo@webkit.org> |
|
25637 |
|
25638 Reviewed by Kenneth Christiansen. |
|
25639 |
|
25640 Spatial Navigation: using offset{Left,Top} is not enough to get the proper inner frames position |
|
25641 https://bugs.webkit.org/show_bug.cgi?id=39439 |
|
25642 |
|
25643 As pointed out by Darin Adler in https://bugs.webkit.org/show_bug.cgi?id=18662#c20, |
|
25644 "It's not correct to use the offsetLeft and offsetTop of the frame owner element's renderer because |
|
25645 that's just the distance from the offsetParent, not the absolute position". |
|
25646 |
|
25647 Patch fixes that behavior by now considering the offsetTop and offsetLeft the offsetParent recursively, |
|
25648 starting from the HtmlFrameOwnerElement. Previously, only calling offsetTop and offsetLeft works |
|
25649 because all tests were done in htmls where the {i}frame element was a directly a child of the body, |
|
25650 e.g. <html>...<body><iframe src=xxx>....<body></html>. |
|
25651 |
|
25652 Test: fast/events/spatial-navigation/snav-iframe-recursive-offset-parent.html |
|
25653 |
|
25654 * page/SpatialNavigation.cpp: |
|
25655 (WebCore::renderRectRelativeToRootDocument): |
|
25656 |
|
25657 2010-06-16 Dan Bernstein <mitz@apple.com> |
|
25658 |
|
25659 Try to fix the Tiger build |
|
25660 |
|
25661 * platform/graphics/mac/SimpleFontDataMac.mm: |
|
25662 (WebCore::SimpleFontData::platformBoundsForGlyph): |
|
25663 |
|
25664 2010-06-16 Dan Bernstein <mitz@apple.com> |
|
25665 |
|
25666 Try to fix the Tiger build |
|
25667 |
|
25668 * platform/graphics/mac/SimpleFontDataMac.mm: |
|
25669 (WebCore::SimpleFontData::platformBoundsForGlyph): |
|
25670 |
|
25671 2010-06-16 Dan Bernstein <mitz@apple.com> |
|
25672 |
|
25673 Reviewed by Alexey Proskuryakov. |
|
25674 |
|
25675 <rdar://problem/8077119> REGRESSION (r60247): Google Reader contains the tops of pieces of unidentifiable text under feed headlines. |
|
25676 https://bugs.webkit.org/show_bug.cgi?id=40386 |
|
25677 |
|
25678 Test: platform/mac/fast/text/x-height.html |
|
25679 |
|
25680 The result of platformBoundsForGlyph() is in flipped coordinates, whereas the result of |
|
25681 -[NSFont boundingRectForGlyph:] was not. r60247 failed to account for this. |
|
25682 |
|
25683 * platform/graphics/mac/SimpleFontDataMac.mm: |
|
25684 (WebCore::SimpleFontData::platformInit): Measure the height of the x glyph above the baseline |
|
25685 correctly. |
|
25686 (WebCore::SimpleFontData::platformBoundsForGlyph): Return a rect in flipped coordinates on Tiger |
|
25687 as well. |
|
25688 |
|
25689 2010-06-16 Adam Barth <abarth@webkit.org> |
|
25690 |
|
25691 Reviewed by Eric Seidel. |
|
25692 |
|
25693 Don't crash when a document ends with an entity |
|
25694 https://bugs.webkit.org/show_bug.cgi?id=40658 |
|
25695 |
|
25696 When we SWITCH_TO a state, we're expecting our caller to have advanced |
|
25697 the source. Rather than have all the callers check for empty, we do |
|
25698 that ourselves. |
|
25699 |
|
25700 * html/HTML5Lexer.cpp: |
|
25701 |
|
25702 2010-06-15 Adam Barth <abarth@webkit.org> |
|
25703 |
|
25704 Reviewed by Eric Seidel. |
|
25705 |
|
25706 Enable HTML5 lexer |
|
25707 https://bugs.webkit.org/show_bug.cgi?id=40650 |
|
25708 |
|
25709 * page/Settings.cpp: |
|
25710 (WebCore::Settings::Settings): |
|
25711 |
|
25712 2010-06-15 Mark Rowe <mrowe@apple.com> |
|
25713 |
|
25714 Rubber-stamped by David Harrison. |
|
25715 |
|
25716 sqlite3_prepare16_v2 is not documented as always setting "tail" during error cases. |
|
25717 Explicitly initialize it to null, just to be safe. |
|
25718 |
|
25719 * platform/sql/SQLiteStatement.cpp: |
|
25720 (WebCore::SQLiteStatement::prepare): |
|
25721 |
|
25722 2010-06-15 Mark Rowe <mrowe@apple.com> |
|
25723 |
|
25724 Reviewed by Brady Eidson. |
|
25725 |
|
25726 <rdar://problem/8091103> URLs not added to history when initial load happens via back/forward navigation |
|
25727 |
|
25728 Back/forward navigation currently does not create or update items in the global history. This is usually |
|
25729 desirable, except for in the event where the back/forward list was created programmatically and attached |
|
25730 to the WebView and the initial load in that WebView is being performed as a result of a back/forward |
|
25731 navigation. In that situation it is preferable to ensure that global history item is created or updated. |
|
25732 |
|
25733 No test case is added because DumpRenderTree is not able to test the scenario where the initial |
|
25734 load in a WebView occurs via a back/forward navigation. |
|
25735 |
|
25736 * loader/FrameLoader.cpp: |
|
25737 (WebCore::FrameLoader::transitionToCommitted): If we're committing the first load in this frame as a |
|
25738 back/forward navigation then we should update the history as if it were a standard load, with the |
|
25739 exception of updating the back/forward list. |
|
25740 * loader/HistoryController.cpp: |
|
25741 (WebCore::HistoryController::updateForStandardLoad): Add a parameter to allow callers to skip updating |
|
25742 the back/forward list. |
|
25743 * loader/HistoryController.h: |
|
25744 (WebCore::HistoryController::): |
|
25745 |
|
25746 2010-06-15 Kinuko Yasuda <kinuko@chromium.org> |
|
25747 |
|
25748 Reviewed by David Levin. |
|
25749 |
|
25750 Fix compilation errors in BlobBuilder with FILE_WRITER enabled |
|
25751 https://bugs.webkit.org/show_bug.cgi?id=40606 |
|
25752 |
|
25753 No functionality change so no new tests. |
|
25754 |
|
25755 * html/BlobBuilder.cpp: |
|
25756 * html/BlobBuilder.h: |
|
25757 |
|
25758 2010-06-15 Jian Li <jianli@chromium.org> |
|
25759 |
|
25760 Reviewed by David Levin. |
|
25761 |
|
25762 Move type attribute from File.idl to Blob.idl per latest File API spec. |
|
25763 https://bugs.webkit.org/show_bug.cgi?id=40642 |
|
25764 |
|
25765 * html/Blob.idl: |
|
25766 * html/File.idl: |
|
25767 |
|
25768 2010-06-15 Darin Adler <darin@apple.com> |
|
25769 |
|
25770 Reviewed by Adam Barth. |
|
25771 |
|
25772 Move functions out of Frame class that were marked "move to Chrome" |
|
25773 https://bugs.webkit.org/show_bug.cgi?id=39636 |
|
25774 |
|
25775 Refactoring that does not require new tests. |
|
25776 |
|
25777 * loader/FrameLoader.cpp: |
|
25778 (WebCore::FrameLoader::didOpenURL): Call setStatus and setDefaultStatus |
|
25779 on DOMWindow rather than going through Frame. |
|
25780 (WebCore::FrameLoader::open): Ditto. |
|
25781 (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): Call |
|
25782 shouldClose on this object instead of going through Frame. |
|
25783 |
|
25784 * page/DOMWindow.cpp: |
|
25785 (WebCore::DOMWindow::dispatchAllPendingBeforeUnloadEvents): Call |
|
25786 shouldClose on FrameLoader instead of going through Frame. |
|
25787 (WebCore::DOMWindow::focus): Moved the code from Frame::focusWindow |
|
25788 in here. |
|
25789 (WebCore::DOMWindow::blur): Moved the code from Frame::unfocusWindow |
|
25790 in here. |
|
25791 (WebCore::DOMWindow::close): Moved the code from Frame::scheduleClose |
|
25792 in here. |
|
25793 (WebCore::DOMWindow::setStatus): Moved the code from |
|
25794 Frame::setJSStatusBarText in here. |
|
25795 (WebCore::DOMWindow::setDefaultStatus): Moved the code from |
|
25796 Frame::setJSDefaultStatusBarText in here. |
|
25797 |
|
25798 * page/DOMWindow.h: Added m_status and m_defaultStatus members to |
|
25799 store the status messages being set by the DOM. |
|
25800 |
|
25801 * page/Frame.cpp: Removed all the functions that were marked |
|
25802 "to be moved into Chrome". |
|
25803 * page/Frame.h: Ditto. |
|
25804 |
|
25805 2010-06-15 Simon Fraser <simon.fraser@apple.com> |
|
25806 |
|
25807 Fix crashing tests; need to check for null documentElement(). |
|
25808 |
|
25809 * rendering/RenderView.cpp: |
|
25810 (WebCore::RenderView::paintBoxDecorations): |
|
25811 |
|
25812 2010-06-15 Simon Fraser <simon.fraser@apple.com> |
|
25813 |
|
25814 Reviewed by Dave Hyatt. |
|
25815 |
|
25816 Garbage shown outside HTML if HTML is absolutely positioned |
|
25817 https://bugs.webkit.org/show_bug.cgi?id=36163 |
|
25818 |
|
25819 Add a check that the root renderer (the document element's renderer) covers |
|
25820 the entire viewport before deciding that we don't need the RenderView |
|
25821 to paint its background. Fixes lack of painting with positioned, floated, and |
|
25822 display: table html elements. |
|
25823 |
|
25824 Test: fast/repaint/positioned-document-element.html |
|
25825 |
|
25826 * rendering/RenderView.cpp: |
|
25827 (WebCore::RenderView::paintBoxDecorations): |
|
25828 |
|
25829 2010-06-15 Simon Fraser <simon.fraser@apple.com> |
|
25830 |
|
25831 Reviewed by Dan Bernstein. |
|
25832 |
|
25833 Safari 5 does not clear background with transformed html element |
|
25834 https://bugs.webkit.org/show_bug.cgi?id=40498 |
|
25835 |
|
25836 When the document element is composited, ensure that the FrameView |
|
25837 paints the background, because the composited layer may be transparent, |
|
25838 or might get moved via animation. |
|
25839 |
|
25840 Test: compositing/repaint/composited-document-element.html |
|
25841 |
|
25842 * rendering/RenderView.cpp: |
|
25843 (WebCore::isComposited): |
|
25844 (WebCore::rendererObscuresBackground): |
|
25845 |
|
25846 2010-06-15 Xan Lopez <xlopez@igalia.com> |
|
25847 |
|
25848 Try to fix GTK+ build. |
|
25849 |
|
25850 * platform/gtk/GtkVersioning.h: |
|
25851 |
|
25852 2010-06-15 Darin Fisher <darin@chromium.org> |
|
25853 |
|
25854 Reviewed by Brady Eidson. |
|
25855 |
|
25856 Introduce HistoryItem::itemSequenceNumber and use it to identify |
|
25857 HistoryItems that are clones of one another. |
|
25858 |
|
25859 Changes HistoryController::recursiveGoToItem to use itemSequenceNumber |
|
25860 equality instead of isTargetItem as the pre-requisite for not calling |
|
25861 FrameLoader::loadItem. |
|
25862 |
|
25863 Changes FrameLoader::loadItem to require equivalent |
|
25864 documentSequenceNumber before initiating a same document navigation. |
|
25865 This alone would appear to fix the bug, but it does not go far enough |
|
25866 since without the itemSequenceNumber equality check, we'd re-load more |
|
25867 often than we should. |
|
25868 |
|
25869 Moves documentSequenceNumber assignment into createItemTree as cleanup |
|
25870 and to ensure that it gets called properly whenever we create a cloned |
|
25871 HistoryItem. (createItemTree's mission is to create clones up until |
|
25872 or including the target frame depending on the value of the doClip |
|
25873 parameter.) |
|
25874 |
|
25875 Removes the now unused HistoryController::urlsMatchItem. |
|
25876 |
|
25877 https://bugs.webkit.org/show_bug.cgi?id=40451 |
|
25878 |
|
25879 Test: fast/history/history-back-within-subframe.html |
|
25880 http/tests/navigation/history-back-across-form-submission-to-fragment.html |
|
25881 |
|
25882 * history/HistoryItem.cpp: |
|
25883 (WebCore::generateSequenceNumber): |
|
25884 (WebCore::HistoryItem::HistoryItem): |
|
25885 * history/HistoryItem.h: |
|
25886 (WebCore::HistoryItem::setItemSequenceNumber): |
|
25887 (WebCore::HistoryItem::itemSequenceNumber): |
|
25888 * loader/FrameLoader.cpp: |
|
25889 (WebCore::FrameLoader::loadItem): |
|
25890 * loader/HistoryController.cpp: |
|
25891 (WebCore::HistoryController::updateBackForwardListForFragmentScroll): |
|
25892 (WebCore::HistoryController::createItemTree): |
|
25893 (WebCore::HistoryController::recursiveGoToItem): |
|
25894 (WebCore::HistoryController::pushState): |
|
25895 * loader/HistoryController.h: |
|
25896 |
|
25897 2010-06-15 Xan Lopez <xlopez@igalia.com> |
|
25898 |
|
25899 Reviewed by Gustavo Noronha. |
|
25900 |
|
25901 [GTK] Does not compile with -DGSEAL_ENABLE |
|
25902 https://bugs.webkit.org/show_bug.cgi?id=37851 |
|
25903 |
|
25904 Fix compilation with GSEAL_ENABLE. |
|
25905 |
|
25906 * platform/gtk/GtkVersioning.h: |
|
25907 * platform/gtk/PlatformScreenGtk.cpp: |
|
25908 (WebCore::screenDepth): |
|
25909 (WebCore::screenDepthPerComponent): |
|
25910 * platform/gtk/PopupMenuGtk.cpp: |
|
25911 (WebCore::PopupMenu::show): |
|
25912 * platform/gtk/ScrollbarGtk.cpp: |
|
25913 (ScrollbarGtk::detachAdjustment): |
|
25914 (ScrollbarGtk::updateThumbPosition): |
|
25915 (ScrollbarGtk::updateThumbProportion): |
|
25916 * plugins/gtk/PluginViewGtk.cpp: |
|
25917 (WebCore::PluginView::paint): |
|
25918 (WebCore::PluginView::initXEvent): |
|
25919 (WebCore::PluginView::platformGetValue): |
|
25920 (WebCore::PluginView::platformStart): |
|
25921 * plugins/gtk/gtk2xtbin.c: |
|
25922 (gtk_xtbin_realize): |
|
25923 (gtk_xtbin_new): |
|
25924 (gtk_xtbin_set_position): |
|
25925 (gtk_xtbin_unrealize): |
|
25926 |
|
25927 2010-06-15 Xan Lopez <xlopez@igalia.com> |
|
25928 |
|
25929 Unreviewed build fix. |
|
25930 |
|
25931 Fix the build when WebSockets are disabled. |
|
25932 |
|
25933 * bindings/js/JSWorkerContextCustom.cpp: |
|
25934 |
|
25935 2010-06-15 Simon Fraser <simon.fraser@apple.com> |
|
25936 |
|
25937 Reviewed by Dan Bernstein. |
|
25938 |
|
25939 YouTube thumbnail borders vanish during transition |
|
25940 https://bugs.webkit.org/show_bug.cgi?id=40551 |
|
25941 |
|
25942 Turn off the direct image optimization if the image has a clip style, so that is is |
|
25943 correctly rendered with the clip. |
|
25944 |
|
25945 Test: compositing/images/clip-on-directly-composited-image.html |
|
25946 |
|
25947 * rendering/RenderLayerBacking.cpp: |
|
25948 (WebCore::RenderLayerBacking::isDirectlyCompositedImage): |
|
25949 |
|
25950 2010-06-15 Yury Semikhatsky <yurys@chromium.org> |
|
25951 |
|
25952 Reviewed by Pavel Feldman. |
|
25953 |
|
25954 [v8] Web Inspector: make ui tests pass when ScriptDebugServer is used |
|
25955 https://bugs.webkit.org/show_bug.cgi?id=40623 |
|
25956 |
|
25957 * bindings/v8/JavaScriptCallFrame.cpp: |
|
25958 (WebCore::JavaScriptCallFrame::functionName): return empty string for anonymous functions instead of [anonymous]. |
|
25959 * bindings/v8/ScriptDebugServer.cpp: |
|
25960 (WebCore::ScriptDebugServer::handleV8DebugEvent): autocontinue on syntax errors since there is no stack trace and |
|
25961 not much to inspect. |
|
25962 |
|
25963 2010-06-15 Adam Roben <aroben@apple.com> |
|
25964 |
|
25965 Make WebCore's and JavaScriptCore's DerivedSources available for debugging in production builds |
|
25966 |
|
25967 Fixes <http://webkit.org/b/40626> <rdar://problem/8094205>. |
|
25968 |
|
25969 Reviewed by Sam Weinig. |
|
25970 |
|
25971 * WebCore.vcproj/WebCore.make: Copy the contents of WebCore's |
|
25972 DerivedSources directory to AppleInternal/Sources/WebCore. |
|
25973 |
|
25974 2010-06-15 Zhenyao Mo <zmo@google.com> |
|
25975 |
|
25976 Reviewed by Dimitri Glazkov. |
|
25977 |
|
25978 Bring framebuffer functions to GLES2 conformance |
|
25979 https://bugs.webkit.org/show_bug.cgi?id=40175 |
|
25980 |
|
25981 Test: fast/canvas/webgl/framebuffer-test.html |
|
25982 |
|
25983 * html/canvas/WebGLRenderingContext.cpp: |
|
25984 (WebCore::WebGLRenderingContext::checkFramebufferStatus): Check input parameters and deal with default framebuffer situation. |
|
25985 (WebCore::WebGLRenderingContext::framebufferRenderbuffer): Check input parameters. |
|
25986 (WebCore::WebGLRenderingContext::framebufferTexture2D): Ditto. |
|
25987 (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter): Ditto. |
|
25988 (WebCore::WebGLRenderingContext::validateFramebufferFuncParameters): Check input parameters. |
|
25989 * html/canvas/WebGLRenderingContext.h: Add validateFramebufferFuncParameters. |
|
25990 |
|
25991 2010-06-15 Patrick Gansterer <paroga@paroga.com> |
|
25992 |
|
25993 Reviewed by David Levin. |
|
25994 |
|
25995 Buildfix for ResourceHandleWin after r24202 and r55542. |
|
25996 https://bugs.webkit.org/show_bug.cgi?id=32963 |
|
25997 |
|
25998 * platform/network/win/ResourceHandleWin.cpp: |
|
25999 (WebCore::ResourceHandle::onHandleCreated): |
|
26000 (WebCore::ResourceHandle::onRequestComplete): |
|
26001 (WebCore::transferJobStatusCallback): |
|
26002 (WebCore::ResourceHandle::start): |
|
26003 |
|
26004 2010-06-12 Pavel Feldman <pfeldman@chromium.org> |
|
26005 |
|
26006 Reviewed by Joe Pecoraro. |
|
26007 |
|
26008 Web Inspector: Should not expose window.console._inspectorCommandLineAPI to the web. |
|
26009 |
|
26010 https://bugs.webkit.org/show_bug.cgi?id=40500 |
|
26011 |
|
26012 * inspector/front-end/InjectedScript.js: |
|
26013 (injectedScriptConstructor): |
|
26014 (injectedScriptConstructor.): |
|
26015 |
|
26016 2010-06-15 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> |
|
26017 |
|
26018 Reviewed by Simon Hausmann. |
|
26019 |
|
26020 [Qt] The qt_webkit_version.pri file gets overwritten on install |
|
26021 https://bugs.webkit.org/show_bug.cgi?id=40487 |
|
26022 |
|
26023 Don't install qt_webkit_version.pri when building WebKit inside of Qt. |
|
26024 The import of WebKit into Qt will take care of providing the file |
|
26025 in mkspecs/modules and it'll be installed through projects.pro. |
|
26026 |
|
26027 * WebCore.pro: |
|
26028 |
|
26029 2010-06-15 Tony Chang <tony@chromium.org> |
|
26030 |
|
26031 Reviewed by Ojan Vafai. |
|
26032 |
|
26033 resolve urls in text/html clipboard data |
|
26034 https://bugs.webkit.org/show_bug.cgi?id=40044 |
|
26035 |
|
26036 Allow text/html data copied from a page to contain full URLs when |
|
26037 dragging or copy/pasting. |
|
26038 |
|
26039 Tests: editing/pasteboard/copy-resolves-urls.html |
|
26040 http/tests/misc/copy-resolves-urls.html |
|
26041 |
|
26042 * WebCore.base.exp: |
|
26043 * editing/markup.cpp: |
|
26044 (WebCore::appendStartMarkup): |
|
26045 (WebCore::getStartMarkup): |
|
26046 (WebCore::MarkupAccumulator::appendMarkup): |
|
26047 (WebCore::createMarkup): |
|
26048 * editing/markup.h: |
|
26049 (WebCore::): |
|
26050 * platform/chromium/ClipboardChromium.cpp: |
|
26051 (WebCore::ClipboardChromium::writeRange): |
|
26052 * platform/chromium/PasteboardChromium.cpp: |
|
26053 (WebCore::Pasteboard::writeSelection): |
|
26054 * platform/gtk/ClipboardGtk.cpp: |
|
26055 (WebCore::ClipboardGtk::writeRange): |
|
26056 * platform/gtk/DataObjectGtk.cpp: |
|
26057 (WebCore::DataObjectGtk::markup): |
|
26058 * platform/gtk/PasteboardGtk.cpp: |
|
26059 (WebCore::Pasteboard::writeSelection): |
|
26060 * platform/haiku/PasteboardHaiku.cpp: |
|
26061 (WebCore::Pasteboard::writeSelection): |
|
26062 * platform/qt/ClipboardQt.cpp: |
|
26063 (WebCore::ClipboardQt::writeRange): |
|
26064 * platform/qt/PasteboardQt.cpp: |
|
26065 (WebCore::Pasteboard::writeSelection): |
|
26066 |
|
26067 2010-06-14 Chris Fleizach <cfleizach@apple.com> |
|
26068 |
|
26069 No review. GTK build fix. |
|
26070 |
|
26071 AX: need ListItemRole and PresentationalRole |
|
26072 https://bugs.webkit.org/show_bug.cgi?id=40133 |
|
26073 |
|
26074 Mostly speculative fix to make GTK unit tests work. |
|
26075 |
|
26076 * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: |
|
26077 (atkRole): |
|
26078 (webkit_accessible_get_role): |
|
26079 |
|
26080 2010-06-14 Eric Carlson <eric.carlson@apple.com> |
|
26081 |
|
26082 Reviewed by Dan Bernstein. |
|
26083 |
|
26084 <rdar://problem/8090895> Update http streaming MIME types |
|
26085 |
|
26086 * platform/MIMETypeRegistry.cpp: |
|
26087 (WebCore::TypeExtensionPair::): Add http streaming MIME synonyms. |
|
26088 |
|
26089 2010-06-14 Eric Carlson <eric.carlson@apple.com> |
|
26090 |
|
26091 Reviewed by Oliver Hunt. |
|
26092 |
|
26093 audio/x-mp3 MIME type not recognized |
|
26094 <rdar://problem/7875393> |
|
26095 https://bugs.webkit.org/show_bug.cgi?id=40594 |
|
26096 |
|
26097 Allow MIMETypeRegistry to have more than one MIME type for a |
|
26098 media file extension, and have the QTKit media engine register |
|
26099 all MIME types it can find for each file type QTKit supports. |
|
26100 |
|
26101 Test: media/media-can-play-mp3.html |
|
26102 |
|
26103 * platform/MIMETypeRegistry.cpp: |
|
26104 (WebCore::mediaMIMETypeMap): Update for new HashMap format. |
|
26105 (WebCore::TypeExtensionPair::): Store String+Vector<String> |
|
26106 (WebCore::MIMETypeRegistry::getMediaMIMETypeForExtension): Only consult |
|
26107 mediaMIMETypeMap(), it has the canonical answer. |
|
26108 (WebCore::MIMETypeRegistry::getMediaMIMETypesForExtension): New, return |
|
26109 a Vector of all MIME types for an extension. |
|
26110 * platform/MIMETypeRegistry.h: |
|
26111 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: |
|
26112 (WebCore::addFileTypesToCache): Add all MIME types returned in the |
|
26113 getMediaMIMETypesForExtension Vector. |
|
26114 |
|
26115 2010-06-14 Mark Rowe <mrowe@apple.com> |
|
26116 |
|
26117 Reviewed by Brady Eidson. |
|
26118 |
|
26119 <rdar://problem/8071866> REGRESSION: Crash on launch on Tiger and Leopard with network home folder |
|
26120 |
|
26121 * platform/sql/SQLiteStatement.cpp: |
|
26122 (WebCore::SQLiteStatement::prepare): Don't assume that tail is always non-null, since that may |
|
26123 not be the case with some versions of SQLite. Instead we must null-check before dereferencing. |
|
26124 |
|
26125 2010-06-14 Anders Carlsson <andersca@apple.com> |
|
26126 |
|
26127 Fix Tiger build. |
|
26128 |
|
26129 * plugins/mac/PluginDataMac.mm: |
|
26130 |
|
26131 2010-06-14 Anders Carlsson <andersca@apple.com> |
|
26132 |
|
26133 Reviewed by Darin Adler. |
|
26134 |
|
26135 Use an array for extensions in MimeClassInfo |
|
26136 https://bugs.webkit.org/show_bug.cgi?id=40602 |
|
26137 |
|
26138 Get rid of MimeClassInfo::suffixes and replace it with an array of extensions. |
|
26139 |
|
26140 * plugins/MimeType.cpp: |
|
26141 (WebCore::MimeType::suffixes): |
|
26142 Create a string of joined extensions. |
|
26143 |
|
26144 * plugins/MimeType.h: |
|
26145 * plugins/PluginData.h: |
|
26146 (WebCore::operator==): |
|
26147 * plugins/chromium/PluginDataChromium.cpp: |
|
26148 (WebCore::getPluginMimeTypeFromExtension): |
|
26149 * plugins/gtk/PluginDataGtk.cpp: |
|
26150 (WebCore::PluginData::initPlugins): |
|
26151 * plugins/mac/PluginDataMac.mm: |
|
26152 (WebCore::PluginData::initPlugins): |
|
26153 * plugins/qt/PluginDataQt.cpp: |
|
26154 (WebCore::PluginData::initPlugins): |
|
26155 * plugins/win/PluginDataWin.cpp: |
|
26156 (WebCore::PluginData::initPlugins): |
|
26157 * plugins/wx/PluginDataWx.cpp: |
|
26158 (WebCore::PluginData::initPlugins): |
|
26159 |
|
26160 2010-06-14 Adam Barth <abarth@webkit.org> |
|
26161 |
|
26162 Unreviewed. |
|
26163 |
|
26164 Add an include to try to fix Chromium build. |
|
26165 |
|
26166 * html/HTML5DocumentParser.cpp: |
|
26167 |
|
26168 2010-06-14 Eric Seidel <eric@webkit.org> |
|
26169 |
|
26170 Reviewed by Adam Barth. |
|
26171 |
|
26172 Safari beach-balls loading large pages with HTML5 parser |
|
26173 https://bugs.webkit.org/show_bug.cgi?id=40596 |
|
26174 |
|
26175 Implement parser yielding, similar to how the old |
|
26176 HTMLDocumentParser yields. |
|
26177 |
|
26178 This implementation re-uses the tokenizerTimeDelay and |
|
26179 tokenizerChunkSize settings even though they don't map exactly |
|
26180 to the token loop that the HTML5 parser uses. |
|
26181 |
|
26182 * dom/DocumentParser.h: |
|
26183 - Add a FIXME for processingData() and clarify how the |
|
26184 appendData flag is used by renaming it to isFromNetwork. |
|
26185 * html/HTML5DocumentParser.cpp: |
|
26186 (WebCore::parserTimeLimit): |
|
26187 - Defaults accessor, probably belongs on Page. |
|
26188 (WebCore::parserChunkSize): |
|
26189 - Defaults accessor, probably belongs on Page. |
|
26190 (WebCore::HTML5DocumentParser::HTML5DocumentParser): |
|
26191 (WebCore::HTML5DocumentParser::stopParsing): |
|
26192 - Stop the continue-parsing timer if active. |
|
26193 (WebCore::HTML5DocumentParser::processingData): |
|
26194 - Implement this poorly understood accessor to match |
|
26195 the old parser's behavior. It's unclear what this does |
|
26196 and it does not affect any layout tests to my knowledge |
|
26197 but likely affects the WebKit API in some way. |
|
26198 (WebCore::HTML5DocumentParser::pumpLexerIfPossible): |
|
26199 - Pass SynchronousMode. |
|
26200 - Do not ever pump if we've yielded to the timer. |
|
26201 (WebCore::HTML5DocumentParser::PumpSession::PumpSession): |
|
26202 - A struct for storing the yield counters. |
|
26203 (WebCore::HTML5DocumentParser::shouldContinueParsing): |
|
26204 - Mostly matches HTMLDocumentParser::shouldContinueParsing. |
|
26205 (WebCore::HTML5DocumentParser::pumpLexer): |
|
26206 - Respect SynchronousMode. |
|
26207 - ASSERT that a timer is not scheduled if we're pumping. |
|
26208 (WebCore::isLayoutTimerActive): |
|
26209 - This belongs on Document. |
|
26210 (WebCore::HTML5DocumentParser::continueNextChunkTimerFired): |
|
26211 (WebCore::HTML5DocumentParser::write): |
|
26212 (WebCore::HTML5DocumentParser::end): |
|
26213 - We should never end() if a timer is still outstanding. |
|
26214 (WebCore::HTML5DocumentParser::attemptToEnd): |
|
26215 (WebCore::HTML5DocumentParser::endIfDelayed): |
|
26216 (WebCore::HTML5DocumentParser::resumeParsingAfterScriptExecution): |
|
26217 * html/HTML5DocumentParser.h: |
|
26218 (WebCore::HTML5DocumentParser::): |
|
26219 * html/HTMLDocumentParser.cpp: |
|
26220 - Clarify the old TimeDelay and ChunkSize constants. |
|
26221 |
|
26222 2010-06-14 Adam Barth <abarth@webkit.org> |
|
26223 |
|
26224 Reviewed by Eric Seidel. |
|
26225 |
|
26226 Add a preload scanner for the HTML5 parser |
|
26227 https://bugs.webkit.org/show_bug.cgi?id=40557 |
|
26228 |
|
26229 This patch adds a simple preload scanner for the HTML5 parser. This |
|
26230 preload scanner is not as awesome as the old one because it doesn't |
|
26231 scan CSS, but it's much simpler. |
|
26232 |
|
26233 * Android.mk: |
|
26234 * CMakeLists.txt: |
|
26235 * GNUmakefile.am: |
|
26236 * WebCore.gypi: |
|
26237 * WebCore.pro: |
|
26238 * WebCore.vcproj/WebCore.vcproj: |
|
26239 * WebCore.xcodeproj/project.pbxproj: |
|
26240 - Build file torture. |
|
26241 * html/HTML5DocumentParser.cpp: |
|
26242 (WebCore::HTML5DocumentParser::write): |
|
26243 - Call into the preload scanner when waiting for a script. |
|
26244 * html/HTML5DocumentParser.h: |
|
26245 * html/HTML5PreloadScanner.cpp: Copied from WebCore/html/PreloadScanner.cpp. |
|
26246 (WebCore::HTML5PreloadScanner::HTML5PreloadScanner): |
|
26247 (WebCore::HTML5PreloadScanner::scan): |
|
26248 - A simple loop to pump the preload scanner's lexer. |
|
26249 (WebCore::HTML5PreloadScanner::processToken): |
|
26250 - Preload interesting resources. Stolen from the old preload |
|
26251 scanner. |
|
26252 (WebCore::HTML5PreloadScanner::scanningBody): |
|
26253 * html/HTML5PreloadScanner.h: Copied from WebCore/html/PreloadScanner.h. |
|
26254 |
|
26255 2010-06-14 Adam Barth <abarth@webkit.org> |
|
26256 |
|
26257 Reviewed by Eric Seidel. |
|
26258 |
|
26259 Constify some HTML5Token methods |
|
26260 https://bugs.webkit.org/show_bug.cgi?id=40592 |
|
26261 |
|
26262 I keep wanting these methods to be const. Eric wanted this in a |
|
26263 separate patch. |
|
26264 |
|
26265 * html/HTML5Lexer.h: |
|
26266 (WebCore::HTML5Lexer::state): |
|
26267 * html/HTML5Token.h: |
|
26268 (WebCore::HTML5Token::attributes): |
|
26269 (WebCore::HTML5Token::name): |
|
26270 (WebCore::HTML5Token::characters): |
|
26271 (WebCore::HTML5Token::comment): |
|
26272 (WebCore::HTML5Token::publicIdentifier): |
|
26273 (WebCore::HTML5Token::systemIdentifier): |
|
26274 * html/HTML5TreeBuilder.cpp: |
|
26275 (WebCore::convertToOldStyle): |
|
26276 (WebCore::HTML5TreeBuilder::adjustedLexerState): |
|
26277 - Technically, this might belong in the other patch, but I think |
|
26278 it's fine here. |
|
26279 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
26280 * html/HTML5TreeBuilder.h: |
|
26281 |
|
26282 2010-06-14 Dumitru Daniliuc <dumi@chromium.org> |
|
26283 |
|
26284 Unreviewed, build fix. |
|
26285 |
|
26286 * WebCore.xcodeproj/project.pbxproj: |
|
26287 |
|
26288 2010-06-14 Dimitri Glazkov <dglazkov@chromium.org> |
|
26289 |
|
26290 Unreviewed, build fix. |
|
26291 |
|
26292 Remove accidental specifying of the class name twice. |
|
26293 |
|
26294 * html/HTMLFormElement.cpp: |
|
26295 (WebCore::HTMLFormElement::prepareFormData): Removed my ghastly typo. |
|
26296 |
|
26297 2010-06-14 Dumitru Daniliuc <dumi@chromium.org> |
|
26298 |
|
26299 Reviewed by Adam Barth. |
|
26300 |
|
26301 Get DatabaseTracker ready for sync DBs. |
|
26302 https://bugs.webkit.org/show_bug.cgi?id=39041 |
|
26303 |
|
26304 * storage/AbstractDatabase.cpp: |
|
26305 (WebCore::AbstractDatabase::~AbstractDatabase): |
|
26306 * storage/AbstractDatabase.h: |
|
26307 * storage/Database.cpp: |
|
26308 (WebCore::Database::closeImmediately): |
|
26309 * storage/Database.h: |
|
26310 (WebCore::Database::scriptExecutionContext): |
|
26311 * storage/DatabaseTracker.cpp: |
|
26312 (WebCore::DatabaseTracker::getMaxSizeForDatabase): |
|
26313 (WebCore::DatabaseTracker::databaseChanged): |
|
26314 (WebCore::DatabaseTracker::addOpenDatabase): |
|
26315 (WebCore::DatabaseTracker::removeOpenDatabase): |
|
26316 (WebCore::DatabaseTracker::getOpenDatabases): |
|
26317 (WebCore::DatabaseTracker::deleteDatabaseFile): |
|
26318 * storage/DatabaseTracker.h: |
|
26319 * storage/OriginQuotaManager.cpp: |
|
26320 (WebCore::OriginQuotaManager::markDatabase): |
|
26321 * storage/OriginQuotaManager.h: |
|
26322 * storage/chromium/DatabaseObserver.h: |
|
26323 * storage/chromium/DatabaseTrackerChromium.cpp: |
|
26324 (WebCore::DatabaseTracker::addOpenDatabase): |
|
26325 (WebCore::TrackerRemoveOpenDatabaseTask::create): |
|
26326 (WebCore::TrackerRemoveOpenDatabaseTask::TrackerRemoveOpenDatabaseTask): |
|
26327 (WebCore::DatabaseTracker::removeOpenDatabase): |
|
26328 (WebCore::DatabaseTracker::getOpenDatabases): |
|
26329 (WebCore::DatabaseTracker::getMaxSizeForDatabase): |
|
26330 |
|
26331 2010-06-14 Alexey Proskuryakov <ap@apple.com> |
|
26332 |
|
26333 Reviewed by Darin Adler. |
|
26334 |
|
26335 https://bugs.webkit.org/show_bug.cgi?id=40529 |
|
26336 eventSender.keyDown("delete") incorrectly sends a backspace on some platforms |
|
26337 |
|
26338 * platform/mac/KeyEventMac.mm: (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): |
|
26339 Use virtual key code to force correct character code for clarity. Also, reworded comment, |
|
26340 since saying that "backspace needs to always be 8" misleadingly implied that it could |
|
26341 "sometimes" be such without this code. |
|
26342 |
|
26343 2010-06-14 Dimitri Glazkov <dglazkov@chromium.org> |
|
26344 |
|
26345 Reviewed by Darin Adler. |
|
26346 |
|
26347 Refactor form submission code in HTMLFormElement to add clarity. |
|
26348 https://bugs.webkit.org/show_bug.cgi?id=39430 |
|
26349 |
|
26350 Covered by existing tests in fast/forms/mailto. |
|
26351 |
|
26352 * html/HTMLFormElement.cpp: |
|
26353 (WebCore::appendMailtoPostFormDataToURL): Renamed from transferMailtoPostFormDataToUrl, |
|
26354 removed clearing out of the FormData and moved it to a new place (next to the call site). |
|
26355 (WebCore::HTMLFormElement::prepareFormData): Renamed from createFormData, moved the logic of |
|
26356 prepareing FormData here, including the use of appendMailtoPostFormDataToURL. |
|
26357 (WebCore::HTMLFormElement::submit): Consolidated multiple invocations of submitForm(). |
|
26358 * html/HTMLFormElement.h: Renamed createFormData to prepareFormData. |
|
26359 |
|
26360 2010-06-14 Chris Fleizach <cfleizach@apple.com> |
|
26361 |
|
26362 Reviewed by Darin Adler. |
|
26363 |
|
26364 AX: need ListItemRole and PresentationalRole |
|
26365 https://bugs.webkit.org/show_bug.cgi?id=40133 |
|
26366 |
|
26367 * accessibility/AccessibilityObject.cpp: |
|
26368 (WebCore::createARIARoleMap): |
|
26369 * accessibility/AccessibilityObject.h: |
|
26370 (WebCore::AccessibilityObject::isListItem): |
|
26371 * accessibility/AccessibilityRenderObject.cpp: |
|
26372 (WebCore::AccessibilityRenderObject::accessibilityIsIgnored): |
|
26373 (WebCore::AccessibilityRenderObject::determineAccessibilityRole): |
|
26374 * accessibility/mac/AccessibilityObjectWrapper.mm: |
|
26375 (-[AccessibilityObjectWrapper accessibilityAttributeNames]): |
|
26376 |
|
26377 2010-06-14 Anders Carlsson <andersca@apple.com> |
|
26378 |
|
26379 Reviewed by Sam Weinig. |
|
26380 |
|
26381 Remove pluginIndex from MimeClassInfo |
|
26382 https://bugs.webkit.org/show_bug.cgi?id=40588 |
|
26383 |
|
26384 * plugins/PluginData.h: |
|
26385 * plugins/gtk/PluginDataGtk.cpp: |
|
26386 (WebCore::PluginData::initPlugins): |
|
26387 * plugins/mac/PluginDataMac.mm: |
|
26388 (WebCore::PluginData::initPlugins): |
|
26389 * plugins/qt/PluginDataQt.cpp: |
|
26390 (WebCore::PluginData::initPlugins): |
|
26391 * plugins/win/PluginDataWin.cpp: |
|
26392 (WebCore::PluginData::initPlugins): |
|
26393 * plugins/wx/PluginDataWx.cpp: |
|
26394 (WebCore::PluginData::initPlugins): |
|
26395 |
|
26396 2010-06-14 Kinuko Yasuda <kinuko@chromium.org> |
|
26397 |
|
26398 Reviewed by Jian Li. |
|
26399 |
|
26400 Implement BlobBuilder internal class for BlobBuilder support as defined in FileWriter |
|
26401 https://bugs.webkit.org/show_bug.cgi?id=36903 |
|
26402 |
|
26403 No new tests; they will be added when we add jsc bindings. |
|
26404 |
|
26405 * CMakeLists.txt: |
|
26406 * GNUmakefile.am: |
|
26407 * WebCore.gypi: |
|
26408 * WebCore.pro: |
|
26409 * WebCore.vcproj/WebCore.vcproj: |
|
26410 * WebCore.xcodeproj/project.pbxproj: |
|
26411 * html/BlobBuilder.cpp: Added. |
|
26412 * html/BlobBuilder.h: Added. |
|
26413 (WebCore::BlobBuilder::create): |
|
26414 * platform/BlobItem.cpp: |
|
26415 (WebCore::StringBlobItem::convertToCString): Added EndingNative support. |
|
26416 * platform/BlobItem.h: Added EndingNative line-ending type. |
|
26417 (WebCore::): |
|
26418 |
|
26419 2010-06-14 Anders Carlsson <andersca@apple.com> |
|
26420 |
|
26421 Reviewed by Darin Adler. |
|
26422 |
|
26423 Stop using MimeClassInfo::pluginIndex |
|
26424 https://bugs.webkit.org/show_bug.cgi?id=40582 |
|
26425 |
|
26426 Add a pluginIndicies vector to PluginData and use it instead of MimeClassInfo::pluginIndex. |
|
26427 |
|
26428 * plugins/MimeType.cpp: |
|
26429 (WebCore::MimeType::enabledPlugin): |
|
26430 Get the plug-in index from the mimePluginIndices vector. |
|
26431 |
|
26432 * plugins/Plugin.cpp: |
|
26433 (WebCore::Plugin::item): |
|
26434 Compare the mime plugin index as well. |
|
26435 |
|
26436 * plugins/PluginData.cpp: |
|
26437 (WebCore::PluginData::PluginData): |
|
26438 Populate the m_mimePluginIndices vector. |
|
26439 |
|
26440 (WebCore::PluginData::pluginNameForMimeType): |
|
26441 Get the plug-in index from the m_mimePluginIndices vector. |
|
26442 |
|
26443 * plugins/PluginData.h: |
|
26444 (WebCore::operator==): |
|
26445 Don't check for pluginIndex. |
|
26446 |
|
26447 (WebCore::PluginData::mimePluginIndices): |
|
26448 Add getter for m_mimePluginIndices. |
|
26449 |
|
26450 2010-06-14 Sam Weinig <sam@webkit.org> |
|
26451 |
|
26452 Better build fix. |
|
26453 |
|
26454 * bindings/js/JSBindingsAllInOne.cpp: |
|
26455 |
|
26456 2010-06-14 Sam Weinig <sam@webkit.org> |
|
26457 |
|
26458 Another windows build fix. |
|
26459 |
|
26460 * bindings/js/JSBindingsAllInOne.cpp: |
|
26461 |
|
26462 2010-06-14 Sam Weinig <sam@webkit.org> |
|
26463 |
|
26464 Another build fix. |
|
26465 |
|
26466 * bindings/js/JSDOMWindowCustom.cpp: |
|
26467 |
|
26468 2010-06-14 Sam Weinig <sam@webkit.org> |
|
26469 |
|
26470 Add missing comma to fix GTK build. |
|
26471 |
|
26472 * xml/XSLTProcessor.idl: |
|
26473 |
|
26474 2010-06-14 Sam Weinig <sam@webkit.org> |
|
26475 |
|
26476 Reviewed by Alexey Proskuryakov. |
|
26477 |
|
26478 Fix for https://bugs.webkit.org/show_bug.cgi?id=40581 |
|
26479 Auto-generate most of the JS constructors |
|
26480 |
|
26481 - Auto-generates all the JS constructors that don't have custom |
|
26482 names (eg, Not Image(), Audio() or Option()) |
|
26483 - Fixes two typos. |
|
26484 (new XSLTConstructor()).toString() [object XSLTProcessorConsructor] -> [object XSLTProcessorConstructor]) |
|
26485 (new EventSource()).toString() [object EventSourceContructor] -> [object EventSourceConstructor]) |
|
26486 |
|
26487 * Android.jscbindings.mk: |
|
26488 * CMakeLists.txt: |
|
26489 * GNUmakefile.am: |
|
26490 * WebCore.gypi: |
|
26491 * WebCore.pro: |
|
26492 * WebCore.vcproj/WebCore.vcproj: |
|
26493 * WebCore.xcodeproj/project.pbxproj: |
|
26494 * bindings/js/JSArrayBufferConstructor.cpp: Removed. |
|
26495 * bindings/js/JSArrayBufferConstructor.h: Removed. |
|
26496 * bindings/js/JSArrayBufferCustom.cpp: Copied from WebCore/bindings/js/JSArrayBufferConstructor.cpp. |
|
26497 (WebCore::JSArrayBufferConstructor::constructJSArrayBuffer): |
|
26498 * bindings/js/JSArrayBufferViewHelper.h: |
|
26499 (WebCore::constructArrayBufferView): |
|
26500 * bindings/js/JSBindingsAllInOne.cpp: |
|
26501 * bindings/js/JSDOMWindowCustom.cpp: |
|
26502 * bindings/js/JSEventSourceConstructor.cpp: Removed. |
|
26503 * bindings/js/JSEventSourceConstructor.h: Removed. |
|
26504 * bindings/js/JSEventSourceCustom.cpp: Copied from WebCore/bindings/js/JSEventSourceConstructor.cpp. |
|
26505 (WebCore::JSEventSourceConstructor::constructJSEventSource): |
|
26506 * bindings/js/JSFloat32ArrayConstructor.cpp: Removed. |
|
26507 * bindings/js/JSFloat32ArrayConstructor.h: Removed. |
|
26508 * bindings/js/JSFloat32ArrayCustom.cpp: |
|
26509 (WebCore::JSFloat32ArrayConstructor::constructJSFloat32Array): |
|
26510 * bindings/js/JSInt16ArrayConstructor.cpp: Removed. |
|
26511 * bindings/js/JSInt16ArrayConstructor.h: Removed. |
|
26512 * bindings/js/JSInt16ArrayCustom.cpp: |
|
26513 (WebCore::JSInt16ArrayConstructor::constructJSInt16Array): |
|
26514 * bindings/js/JSInt32ArrayConstructor.cpp: Removed. |
|
26515 * bindings/js/JSInt32ArrayConstructor.h: Removed. |
|
26516 * bindings/js/JSInt32ArrayCustom.cpp: |
|
26517 (WebCore::JSInt32ArrayConstructor::constructJSInt32Array): |
|
26518 * bindings/js/JSInt8ArrayConstructor.cpp: Removed. |
|
26519 * bindings/js/JSInt8ArrayConstructor.h: Removed. |
|
26520 * bindings/js/JSInt8ArrayCustom.cpp: |
|
26521 (WebCore::JSInt8ArrayConstructor::constructJSInt8Array): |
|
26522 * bindings/js/JSMessageChannelConstructor.cpp: Removed. |
|
26523 * bindings/js/JSMessageChannelConstructor.h: Removed. |
|
26524 * bindings/js/JSMessageChannelCustom.cpp: |
|
26525 (WebCore::JSMessageChannelConstructor::constructJSMessageChannel): |
|
26526 * bindings/js/JSSharedWorkerConstructor.cpp: Removed. |
|
26527 * bindings/js/JSSharedWorkerConstructor.h: Removed. |
|
26528 * bindings/js/JSSharedWorkerCustom.cpp: |
|
26529 (WebCore::JSSharedWorkerConstructor::constructJSSharedWorker): |
|
26530 * bindings/js/JSUint16ArrayConstructor.cpp: Removed. |
|
26531 * bindings/js/JSUint16ArrayConstructor.h: Removed. |
|
26532 * bindings/js/JSUint16ArrayCustom.cpp: |
|
26533 (WebCore::JSUint16ArrayConstructor::constructJSUint16Array): |
|
26534 * bindings/js/JSUint32ArrayConstructor.cpp: Removed. |
|
26535 * bindings/js/JSUint32ArrayConstructor.h: Removed. |
|
26536 * bindings/js/JSUint32ArrayCustom.cpp: |
|
26537 (WebCore::JSUint32ArrayConstructor::constructJSUint32Array): |
|
26538 * bindings/js/JSUint8ArrayConstructor.cpp: Removed. |
|
26539 * bindings/js/JSUint8ArrayConstructor.h: Removed. |
|
26540 * bindings/js/JSUint8ArrayCustom.cpp: |
|
26541 (WebCore::JSUint8ArrayConstructor::constructJSUint8Array): |
|
26542 * bindings/js/JSWebKitCSSMatrixConstructor.cpp: Removed. |
|
26543 * bindings/js/JSWebKitCSSMatrixConstructor.h: Removed. |
|
26544 * bindings/js/JSWebKitCSSMatrixCustom.cpp: Copied from WebCore/bindings/js/JSWebKitCSSMatrixConstructor.cpp. |
|
26545 (WebCore::JSWebKitCSSMatrixConstructor::constructJSWebKitCSSMatrix): |
|
26546 * bindings/js/JSWebKitPointConstructor.cpp: Removed. |
|
26547 * bindings/js/JSWebKitPointConstructor.h: Removed. |
|
26548 * bindings/js/JSWebKitPointCustom.cpp: Copied from WebCore/bindings/js/JSWebKitPointConstructor.cpp. |
|
26549 (WebCore::JSWebKitPointConstructor::constructJSWebKitPoint): |
|
26550 * bindings/js/JSWebSocketConstructor.cpp: Removed. |
|
26551 * bindings/js/JSWebSocketConstructor.h: Removed. |
|
26552 * bindings/js/JSWebSocketCustom.cpp: |
|
26553 (WebCore::JSWebSocketConstructor::constructJSWebSocket): |
|
26554 * bindings/js/JSWorkerConstructor.cpp: Removed. |
|
26555 * bindings/js/JSWorkerConstructor.h: Removed. |
|
26556 * bindings/js/JSWorkerContextCustom.cpp: |
|
26557 * bindings/js/JSWorkerCustom.cpp: |
|
26558 (WebCore::JSWorkerConstructor::constructJSWorker): |
|
26559 * bindings/js/JSXSLTProcessorConstructor.cpp: Removed. |
|
26560 * bindings/js/JSXSLTProcessorConstructor.h: Removed. |
|
26561 * bindings/js/JSXSLTProcessorCustom.cpp: |
|
26562 (WebCore::JSXSLTProcessorConstructor::constructJSXSLTProcessor): |
|
26563 * bindings/scripts/CodeGeneratorJS.pm: |
|
26564 * css/WebKitCSSMatrix.idl: |
|
26565 * dom/MessageChannel.idl: |
|
26566 * html/canvas/ArrayBuffer.idl: |
|
26567 * html/canvas/Float32Array.idl: |
|
26568 * html/canvas/Int16Array.idl: |
|
26569 * html/canvas/Int32Array.idl: |
|
26570 * html/canvas/Int8Array.idl: |
|
26571 * html/canvas/Uint16Array.idl: |
|
26572 * html/canvas/Uint32Array.idl: |
|
26573 * html/canvas/Uint8Array.idl: |
|
26574 * page/EventSource.idl: |
|
26575 * page/WebKitPoint.idl: |
|
26576 * websockets/WebSocket.idl: |
|
26577 * workers/SharedWorker.idl: |
|
26578 * workers/Worker.idl: |
|
26579 * xml/XSLTProcessor.idl: |
|
26580 |
|
26581 2010-05-16 Antonio Gomes <tonikitoo@webkit.org> |
|
26582 |
|
26583 Unreviewed naming fixes of local variables used in Spatial Navigation methods. |
|
26584 |
|
26585 Summary: |
|
26586 * "candidate" renamed to "node"; |
|
26587 * "currentFocusCandidate" renamed to "candidate" |
|
26588 * "closestFocusCandidate" renamed to "closest" |
|
26589 |
|
26590 That way naming is more consistent in the various Spatial Navigation methods. |
|
26591 |
|
26592 * page/FocusController.cpp: |
|
26593 (WebCore::FocusController::findFocusableNodeInDirection): |
|
26594 (WebCore::FocusController::deepFindFocusableNodeInDirection): |
|
26595 |
|
26596 2010-06-14 Antonio Gomes <tonikitoo@webkit.org> |
|
26597 |
|
26598 Reviewed by Simon Fraser and Kenneth Christiansen. |
|
26599 |
|
26600 Spatial Navigation: make it work with focusable elements in overflow content |
|
26601 https://bugs.webkit.org/show_bug.cgi?id=36463 |
|
26602 |
|
26603 This patch addresses the problem with Spatial Navigation. It currently does not |
|
26604 properly traverse scrollable contents, including scrollable div's. For this to work, |
|
26605 a new class member called scrollableEnclosingBox was introduced to FocusCandidate class which |
|
26606 keeps track of the current scrollable box Node wrapping a FocusCandidate. |
|
26607 |
|
26608 To make use of enclosingScrollableBox of FocusCandidate, the DOM traversal routine |
|
26609 (FocusController::findNextFocusableInDirection) was changed as follows: when it |
|
26610 encounters a scrollable Node, each focusable node which is 'inner' keeps track of |
|
26611 the container reference. By the time a sibling of the scrollable Node is encountered, |
|
26612 there is no need to track this reference any more and the traversal algorithm continues |
|
26613 normally. |
|
26614 |
|
26615 The common case is obviously that there is no scrollable container wrapping it. |
|
26616 |
|
26617 updateFocusCandiditeIfCloser logic was also adapted to fit the need of the |
|
26618 newly introduced enclosingScrollableBox class member, getting simpler and more |
|
26619 easily maintainable. |
|
26620 |
|
26621 Tests: fast/events/spatial-navigation/snav-div-scrollable-but-without-focusable-content.html |
|
26622 fast/events/spatial-navigation/snav-clipped-overflow-content.html |
|
26623 |
|
26624 * page/FocusController.cpp: |
|
26625 (WebCore::updateFocusCandidateInSameContainer): |
|
26626 (WebCore::updateFocusCandidateIfCloser): |
|
26627 (WebCore::FocusController::findFocusableNodeInDirection): |
|
26628 (WebCore::FocusController::deepFindFocusableNodeInDirection): |
|
26629 * page/SpatialNavigation.cpp: |
|
26630 (WebCore::isScrollableContainerNode): |
|
26631 * page/SpatialNavigation.h: |
|
26632 (WebCore::FocusCandidate::FocusCandidate): |
|
26633 (WebCore::FocusCandidate::isInScrollableContainer): |
|
26634 |
|
26635 2010-06-14 Jian Li <jianli@chromium.org> |
|
26636 |
|
26637 Unreviewed. Fix build break in GTK. |
|
26638 |
|
26639 * bindings/scripts/CodeGeneratorGObject.pm: |
|
26640 * bindings/scripts/test/GObject/WebKitDOMTestCallback.h: |
|
26641 * bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h: |
|
26642 * bindings/scripts/test/GObject/WebKitDOMTestInterface.h: |
|
26643 * bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h: |
|
26644 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: |
|
26645 |
|
26646 2010-06-14 Chris Fleizach <cfleizach@apple.com> |
|
26647 |
|
26648 Reviewed by Beth Dakin. |
|
26649 |
|
26650 AX: AXUnknown objects are being returned |
|
26651 https://bugs.webkit.org/show_bug.cgi?id=40574 |
|
26652 |
|
26653 Test: platform/mac/accessibility/no-unknown-objects-when-title-attribute-present.html |
|
26654 |
|
26655 * accessibility/mac/AccessibilityObjectMac.mm: |
|
26656 (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject): |
|
26657 |
|
26658 2010-06-14 Jian Li <jianli@chromium.org> |
|
26659 |
|
26660 Reviewed by Darin Adler. |
|
26661 |
|
26662 Fix code generators to better support Conditional attribute and add test |
|
26663 coverage for it. |
|
26664 https://bugs.webkit.org/show_bug.cgi?id=39512 |
|
26665 |
|
26666 * bindings/scripts/CodeGeneratorGObject.pm: |
|
26667 * bindings/scripts/CodeGeneratorObjC.pm: |
|
26668 * bindings/scripts/CodeGeneratorV8.pm: |
|
26669 * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp: |
|
26670 * bindings/scripts/test/GObject/WebKitDOMTestCallback.h: |
|
26671 * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: |
|
26672 * bindings/scripts/test/GObject/WebKitDOMTestInterface.h: |
|
26673 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: |
|
26674 (webkit_dom_test_obj_get_conditional_attr1): |
|
26675 (webkit_dom_test_obj_set_conditional_attr1): |
|
26676 (webkit_dom_test_obj_get_conditional_attr2): |
|
26677 (webkit_dom_test_obj_set_conditional_attr2): |
|
26678 (webkit_dom_test_obj_get_conditional_attr3): |
|
26679 (webkit_dom_test_obj_set_conditional_attr3): |
|
26680 (webkit_dom_test_obj_set_property): |
|
26681 (webkit_dom_test_obj_get_property): |
|
26682 (webkit_dom_test_obj_class_init): |
|
26683 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: |
|
26684 * bindings/scripts/test/JS/JSTestInterface.cpp: |
|
26685 * bindings/scripts/test/JS/JSTestInterface.h: |
|
26686 * bindings/scripts/test/JS/JSTestObj.cpp: |
|
26687 (WebCore::): |
|
26688 (WebCore::jsTestObjConditionalAttr1): |
|
26689 (WebCore::jsTestObjConditionalAttr2): |
|
26690 (WebCore::jsTestObjConditionalAttr3): |
|
26691 (WebCore::setJSTestObjConditionalAttr1): |
|
26692 (WebCore::setJSTestObjConditionalAttr2): |
|
26693 (WebCore::setJSTestObjConditionalAttr3): |
|
26694 * bindings/scripts/test/JS/JSTestObj.h: |
|
26695 * bindings/scripts/test/ObjC/DOMTestInterface.mm: |
|
26696 * bindings/scripts/test/ObjC/DOMTestObj.h: |
|
26697 * bindings/scripts/test/ObjC/DOMTestObj.mm: |
|
26698 (-[DOMTestObj conditionalAttr1]): |
|
26699 (-[DOMTestObj setConditionalAttr1:]): |
|
26700 (-[DOMTestObj conditionalAttr2]): |
|
26701 (-[DOMTestObj setConditionalAttr2:]): |
|
26702 (-[DOMTestObj conditionalAttr3]): |
|
26703 (-[DOMTestObj setConditionalAttr3:]): |
|
26704 * bindings/scripts/test/TestInterface.idl: |
|
26705 * bindings/scripts/test/TestObj.idl: |
|
26706 * bindings/scripts/test/V8/V8TestInterface.cpp: |
|
26707 * bindings/scripts/test/V8/V8TestInterface.h: |
|
26708 * bindings/scripts/test/V8/V8TestObj.cpp: |
|
26709 (WebCore::TestObjInternal::conditionalAttr1AttrGetter): |
|
26710 (WebCore::TestObjInternal::conditionalAttr1AttrSetter): |
|
26711 (WebCore::TestObjInternal::conditionalAttr2AttrGetter): |
|
26712 (WebCore::TestObjInternal::conditionalAttr2AttrSetter): |
|
26713 (WebCore::TestObjInternal::conditionalAttr3AttrGetter): |
|
26714 (WebCore::TestObjInternal::conditionalAttr3AttrSetter): |
|
26715 (WebCore::): |
|
26716 |
|
26717 2010-06-14 Chang Shu <chang.shu@nokia.com> |
|
26718 |
|
26719 Reviewed by Kenneth Rohde Christiansen. |
|
26720 |
|
26721 Change the type of ShadowSize from IntSize to FloatSize in GraphicsContext. |
|
26722 Using IntSize loses precision and fails the test. |
|
26723 Note: This code change fixes Qt port but Mac is still failing due to |
|
26724 platform issue. |
|
26725 |
|
26726 https://bugs.webkit.org/show_bug.cgi?id=40434 |
|
26727 |
|
26728 * html/canvas/CanvasRenderingContext2D.cpp: |
|
26729 (WebCore::CanvasRenderingContext2D::applyShadow): |
|
26730 * platform/graphics/GraphicsContext.cpp: |
|
26731 (WebCore::GraphicsContext::setShadow): |
|
26732 (WebCore::GraphicsContext::getShadow): |
|
26733 * platform/graphics/GraphicsContext.h: |
|
26734 * platform/graphics/GraphicsContextPrivate.h: |
|
26735 * platform/graphics/cairo/FontCairo.cpp: |
|
26736 (WebCore::Font::drawGlyphs): |
|
26737 * platform/graphics/cairo/GraphicsContextCairo.cpp: |
|
26738 (WebCore::GraphicsContext::calculateShadowBufferDimensions): |
|
26739 (WebCore::drawPathShadow): |
|
26740 (WebCore::drawBorderlessRectShadow): |
|
26741 (WebCore::GraphicsContext::setPlatformShadow): |
|
26742 * platform/graphics/cairo/ImageCairo.cpp: |
|
26743 (WebCore::BitmapImage::draw): |
|
26744 * platform/graphics/cg/GraphicsContextCG.cpp: |
|
26745 (WebCore::GraphicsContext::setPlatformShadow): |
|
26746 * platform/graphics/chromium/FontChromiumWin.cpp: |
|
26747 (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::drawGlyphs): |
|
26748 (WebCore::Font::drawComplexText): |
|
26749 * platform/graphics/gtk/FontGtk.cpp: |
|
26750 (WebCore::Font::drawComplexText): |
|
26751 * platform/graphics/haiku/GraphicsContextHaiku.cpp: |
|
26752 (WebCore::GraphicsContext::setPlatformShadow): |
|
26753 * platform/graphics/mac/FontMac.mm: |
|
26754 (WebCore::Font::drawGlyphs): |
|
26755 * platform/graphics/openvg/GraphicsContextOpenVG.cpp: |
|
26756 (WebCore::GraphicsContext::setPlatformShadow): |
|
26757 * platform/graphics/qt/FontQt.cpp: |
|
26758 (WebCore::drawTextCommon): |
|
26759 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
26760 (WebCore::GraphicsContext::drawRect): |
|
26761 (WebCore::GraphicsContext::drawLine): |
|
26762 (WebCore::GraphicsContext::strokeArc): |
|
26763 (WebCore::GraphicsContext::drawConvexPolygon): |
|
26764 (WebCore::drawFilledShadowPath): |
|
26765 (WebCore::GraphicsContext::strokePath): |
|
26766 (WebCore::drawBorderlessRectShadow): |
|
26767 (WebCore::GraphicsContext::setPlatformShadow): |
|
26768 * platform/graphics/qt/ImageQt.cpp: |
|
26769 (WebCore::BitmapImage::draw): |
|
26770 * platform/graphics/skia/GraphicsContextSkia.cpp: |
|
26771 (WebCore::GraphicsContext::setPlatformShadow): |
|
26772 * platform/graphics/skia/SkiaFontWin.cpp: |
|
26773 (WebCore::windowsCanHandleDrawTextShadow): |
|
26774 * platform/graphics/win/FontCGWin.cpp: |
|
26775 (WebCore::drawGDIGlyphs): |
|
26776 (WebCore::Font::drawGlyphs): |
|
26777 * platform/graphics/wince/GraphicsContextWince.cpp: |
|
26778 (WebCore::GraphicsContext::fillRoundedRect): |
|
26779 (WebCore::GraphicsContext::setPlatformShadow): |
|
26780 (WebCore::GraphicsContext::drawText): |
|
26781 * platform/graphics/wx/GraphicsContextWx.cpp: |
|
26782 (WebCore::GraphicsContext::setPlatformShadow): |
|
26783 |
|
26784 2010-06-14 Dan Bernstein <mitz@apple.com> |
|
26785 |
|
26786 Reviewed by Simon Fraser. |
|
26787 |
|
26788 <rdar://problem/7752961> Unevenly distributed space in justified text |
|
26789 https://bugs.webkit.org/show_bug.cgi?id=36105 |
|
26790 |
|
26791 Test: fast/text/justify-padding-distribution.html |
|
26792 |
|
26793 * platform/graphics/WidthIterator.cpp: |
|
26794 (WebCore::WidthIterator::WidthIterator): Initialize m_padPerSpace to the quotient of the total |
|
26795 padding and the number of spaces rather than truncating it. |
|
26796 (WebCore::WidthIterator::advance): Subtract m_padPerSpace from m_padding and add the difference |
|
26797 between its old and new values, when rounded, to the advance. |
|
26798 * platform/graphics/mac/ComplexTextController.cpp: |
|
26799 (WebCore::ComplexTextController::ComplexTextController): |
|
26800 (WebCore::ComplexTextController::adjustGlyphsAndAdvances): |
|
26801 * platform/graphics/win/UniscribeController.cpp: |
|
26802 (WebCore::UniscribeController::UniscribeController): |
|
26803 (WebCore::UniscribeController::shapeAndPlaceItem): |
|
26804 * platform/graphics/win/UniscribeController.h: |
|
26805 |
|
26806 2010-06-14 Andreas Kling <andreas.kling@nokia.com> |
|
26807 |
|
26808 Reviewed by Tor Arne Vestbø. |
|
26809 |
|
26810 [Qt] Stack overflow when converting navigator object to QVariant |
|
26811 https://bugs.webkit.org/show_bug.cgi?id=40572 |
|
26812 |
|
26813 Protect against infinite recursion in JSValue->QVariant conversion. |
|
26814 This fixes a crash when trying to convert MimeType objects (they |
|
26815 recurse infinitely and on-the-fly via the enabledPlugin property.) |
|
26816 |
|
26817 * bridge/qt/qt_runtime.cpp: |
|
26818 (JSC::Bindings::convertValueToQVariant): |
|
26819 |
|
26820 2010-06-14 Yong Li <yoli@rim.com> |
|
26821 |
|
26822 Test cases created by: Robin Cao <robin.cao@torchmobile.com.cn> |
|
26823 |
|
26824 Reviewed by Darin Adler. |
|
26825 |
|
26826 https://bugs.webkit.org/show_bug.cgi?id=38910 |
|
26827 |
|
26828 Suspend Document::m_executeScriptSoonTimer objects when the page is deferred. |
|
26829 There's no reason why we suspend all active DOM timers on the page but not suspend |
|
26830 this one. Document::m_executeScriptSoonTimer can run JS and schedule more DOM Timers. |
|
26831 |
|
26832 It can only be tested manually. |
|
26833 * manual-tests/load-deferrer-script-element.html: Added. |
|
26834 * manual-tests/resources/load-deferrer-script-element.js: Added. |
|
26835 |
|
26836 * dom/Document.cpp: |
|
26837 (WebCore::Document::executeScriptSoon): |
|
26838 (WebCore::Document::suspendExecuteScriptSoonTimer): Added. |
|
26839 (WebCore::Document::resumeExecuteScriptSoonTimer): Added. |
|
26840 * dom/Document.h: |
|
26841 * page/PageGroupLoadDeferrer.cpp: |
|
26842 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): |
|
26843 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer): |
|
26844 |
|
26845 2010-06-13 Yael Aharon <yael.aharon@nokia.com> |
|
26846 |
|
26847 Reviewed by Kenneth Rohde Christiansen. |
|
26848 |
|
26849 [Qt] Platform plugin support for Notifications UI |
|
26850 https://bugs.webkit.org/show_bug.cgi?id=40005 |
|
26851 |
|
26852 To avoid race condition when GC is run during shutdown, |
|
26853 disconnect the Notification from the NotificationPresenter |
|
26854 when the presenter deletes itself. |
|
26855 This cannot be tested by a layout test, the race condition happens only |
|
26856 when GC is run during shutdown. It can be tested manually by loading |
|
26857 manually any notification test and closing the browser. |
|
26858 |
|
26859 * notifications/Notification.cpp: |
|
26860 (WebCore::Notification::~Notification): |
|
26861 * notifications/Notification.h: |
|
26862 (WebCore::Notification::detachPresenter): |
|
26863 |
|
26864 2010-06-08 Marcus Bulach <bulach@chromium.org> |
|
26865 |
|
26866 Reviewed by Jeremy Orlow. |
|
26867 |
|
26868 Adds IndexedDB's KeyRange. |
|
26869 https://bugs.webkit.org/show_bug.cgi?id=40250 |
|
26870 |
|
26871 Test: storage/indexeddb/idb-keyrange.html |
|
26872 |
|
26873 * Android.derived.jscbindings.mk: |
|
26874 * Android.derived.v8bindings.mk: |
|
26875 * Android.mk: |
|
26876 * CMakeLists.txt: |
|
26877 * DerivedSources.cpp: |
|
26878 * DerivedSources.make: |
|
26879 * GNUmakefile.am: |
|
26880 * WebCore.gypi: |
|
26881 * WebCore.pri: |
|
26882 * WebCore.pro: |
|
26883 * WebCore.vcproj/WebCore.vcproj: |
|
26884 * WebCore.xcodeproj/project.pbxproj: |
|
26885 * storage/IDBKeyRange.cpp: Added. |
|
26886 (WebCore::IDBKeyRange::IDBKeyRange): |
|
26887 * storage/IDBKeyRange.h: Added. |
|
26888 (WebCore::IDBKeyRange::): |
|
26889 (WebCore::IDBKeyRange::create): |
|
26890 (WebCore::IDBKeyRange::~IDBKeyRange): |
|
26891 (WebCore::IDBKeyRange::left): |
|
26892 (WebCore::IDBKeyRange::right): |
|
26893 (WebCore::IDBKeyRange::flags): |
|
26894 * storage/IDBKeyRange.idl: Added. |
|
26895 * storage/IndexedDatabaseRequest.cpp: |
|
26896 (WebCore::IndexedDatabaseRequest::makeSingleKeyRange): |
|
26897 (WebCore::IndexedDatabaseRequest::makeLeftBoundKeyRange): |
|
26898 (WebCore::IndexedDatabaseRequest::makeRightBoundKeyRange): |
|
26899 (WebCore::IndexedDatabaseRequest::makeBoundKeyRange): |
|
26900 * storage/IndexedDatabaseRequest.h: |
|
26901 * storage/IndexedDatabaseRequest.idl: |
|
26902 |
|
26903 2010-06-14 Jeremy Orlow <jorlow@chromium.org> |
|
26904 |
|
26905 And another. |
|
26906 |
|
26907 * storage/IndexedDatabaseRequest.h: |
|
26908 |
|
26909 2010-06-14 Jeremy Orlow <jorlow@chromium.org> |
|
26910 |
|
26911 More build fixes. |
|
26912 |
|
26913 * storage/IndexedDatabaseRequest.h: |
|
26914 |
|
26915 2010-06-14 Mahesh Kulkarni <mahesh.kulkarni@nokia.com> |
|
26916 |
|
26917 Reviewed by Laszlo Gombos. |
|
26918 |
|
26919 [Qt] navigator.geolocation support for Qt port |
|
26920 https://bugs.webkit.org/show_bug.cgi?id=39724 |
|
26921 |
|
26922 Implemetion for Qt port of navigator.gelocation. Using qtmobility location service. |
|
26923 |
|
26924 * WebCore.pri: |
|
26925 * WebCore.pro: |
|
26926 * platform/qt/GeolocationServiceQt.cpp: Added. |
|
26927 (WebCore::GeolocationServiceQt::create): |
|
26928 (WebCore::GeolocationServiceQt::GeolocationServiceQt): |
|
26929 (WebCore::GeolocationServiceQt::~GeolocationServiceQt): |
|
26930 (WebCore::GeolocationServiceQt::positionUpdated): |
|
26931 (WebCore::GeolocationServiceQt::startUpdating): |
|
26932 (WebCore::GeolocationServiceQt::stopUpdating): |
|
26933 * platform/qt/GeolocationServiceQt.h: Added. |
|
26934 (WebCore::GeolocationServiceQt::lastPosition): |
|
26935 (WebCore::GeolocationServiceQt::lastError): |
|
26936 |
|
26937 2010-06-14 Jeremy Orlow <jorlow@chromium.org> |
|
26938 |
|
26939 2 more build fixes. |
|
26940 |
|
26941 * storage/IDBDatabaseImpl.h: |
|
26942 * storage/IndexedDatabaseRequest.h: |
|
26943 |
|
26944 2010-06-14 Jeremy Orlow <jorlow@chromium.org> |
|
26945 |
|
26946 Unreviewed build fix for my last. |
|
26947 |
|
26948 * workers/WorkerScriptLoaderClient.h: |
|
26949 |
|
26950 2010-06-14 Jeremy Orlow <jorlow@chromium.org> |
|
26951 |
|
26952 Reviewed by Darin Fisher. |
|
26953 |
|
26954 [V8] Clean up SerializedScriptValue |
|
26955 https://bugs.webkit.org/show_bug.cgi?id=40482 |
|
26956 |
|
26957 SerializedScriptValue doesn't follow WebKit's style guidelines very well |
|
26958 and needlessly inlines quite a bit within the .h file. This change cleans |
|
26959 things up. No funcitonal changes. |
|
26960 |
|
26961 No change in behavior. |
|
26962 |
|
26963 * bindings/v8/SerializedScriptValue.cpp: |
|
26964 (WebCore::SerializedScriptValue::deserializeAndSetProperty): |
|
26965 (WebCore::SerializedScriptValue::create): |
|
26966 (WebCore::SerializedScriptValue::createFromWire): |
|
26967 (WebCore::SerializedScriptValue::release): |
|
26968 (WebCore::SerializedScriptValue::SerializedScriptValue): |
|
26969 * bindings/v8/SerializedScriptValue.h: |
|
26970 |
|
26971 2010-06-14 Ilya Tikhonovsky <loislo@chromium.org> |
|
26972 |
|
26973 Reviewed by Pavel Feldman. |
|
26974 |
|
26975 WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc |
|
26976 data from inspected page to WebInspector as JSON string via http. The native |
|
26977 serialization to JSON string is supported by InspectorValue's classes. This patch |
|
26978 has the implementation of sendMessageToFrontend function. WebKit version of it still |
|
26979 uses ScriptFunctionCall and will be switched to another transport a little bit later. |
|
26980 https://bugs.webkit.org/show_bug.cgi?id=40134 |
|
26981 |
|
26982 * inspector/InspectorClient.h: |
|
26983 * inspector/InspectorController.cpp: |
|
26984 (WebCore::InspectorController::connectFrontend): |
|
26985 (WebCore::InspectorController::disconnectFrontend): |
|
26986 * inspector/InspectorController.h: |
|
26987 * inspector/InspectorFrontend.cpp: |
|
26988 (WebCore::InspectorFrontend::InspectorFrontend): |
|
26989 * inspector/InspectorFrontend.h: |
|
26990 * inspector/InspectorFrontendClientLocal.cpp: |
|
26991 (WebCore::InspectorFrontendClientLocal::frontendLoaded): |
|
26992 * inspector/InspectorValues.cpp: |
|
26993 (WebCore::InspectorObject::writeJSON): |
|
26994 * inspector/front-end/inspector.js: |
|
26995 (WebInspector.dispatchMessageToFrontend): |
|
26996 * loader/EmptyClients.h: |
|
26997 (WebCore::EmptyInspectorClient::sendMessageToFrontend): |
|
26998 |
|
26999 2010-06-14 Jeremy Orlow <jorlow@chromium.org> |
|
27000 |
|
27001 Reviewed by Darin Adler. |
|
27002 |
|
27003 Reenable IDBDatabaseRequest's description attribute |
|
27004 https://bugs.webkit.org/show_bug.cgi?id=39826 |
|
27005 |
|
27006 On the 26th, Beth commented out the description attribute in |
|
27007 IDBDatabaseRequest because it was causing problems with the |
|
27008 objective c bindings. Turns out that this is the same bug as |
|
27009 in http://trac.webkit.org/changeset/19486. (Thanks for the |
|
27010 pointer, Mark!) |
|
27011 |
|
27012 The solution is to change the objective C bindings generator |
|
27013 to change the name in the generated code. id and hash both |
|
27014 just appended "Name" to them in the past. I couldn't think |
|
27015 of anything else particularly better to append, so I just |
|
27016 went with name as well. |
|
27017 |
|
27018 Test: building the world works on the first try. Layout |
|
27019 test verifies description works again. |
|
27020 |
|
27021 * bindings/scripts/CodeGeneratorObjC.pm: |
|
27022 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: |
|
27023 (webkit_dom_test_obj_get_description): |
|
27024 (webkit_dom_test_obj_get_id): |
|
27025 (webkit_dom_test_obj_set_id): |
|
27026 (webkit_dom_test_obj_get_hash): |
|
27027 (webkit_dom_test_obj_set_property): |
|
27028 (webkit_dom_test_obj_get_property): |
|
27029 (webkit_dom_test_obj_class_init): |
|
27030 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: |
|
27031 * bindings/scripts/test/JS/JSTestObj.cpp: |
|
27032 (WebCore::): |
|
27033 (WebCore::jsTestObjDescription): |
|
27034 (WebCore::jsTestObjId): |
|
27035 (WebCore::jsTestObjHash): |
|
27036 (WebCore::setJSTestObjId): |
|
27037 * bindings/scripts/test/JS/JSTestObj.h: |
|
27038 * bindings/scripts/test/ObjC/DOMTestObj.h: |
|
27039 * bindings/scripts/test/ObjC/DOMTestObj.mm: |
|
27040 (-[DOMTestObj descriptionName]): |
|
27041 (-[DOMTestObj idName]): |
|
27042 (-[DOMTestObj setIdName:]): |
|
27043 (-[DOMTestObj hashName]): |
|
27044 * bindings/scripts/test/TestObj.idl: |
|
27045 * bindings/scripts/test/V8/V8TestObj.cpp: |
|
27046 (WebCore::TestObjInternal::descriptionAttrGetter): |
|
27047 (WebCore::TestObjInternal::idAttrGetter): |
|
27048 (WebCore::TestObjInternal::idAttrSetter): |
|
27049 (WebCore::TestObjInternal::hashAttrGetter): |
|
27050 (WebCore::): |
|
27051 * storage/IDBDatabaseRequest.idl: |
|
27052 |
|
27053 2010-06-13 Anders Bakken <agbakken@gmail.com> |
|
27054 |
|
27055 Reviewed by Eric Seidel. |
|
27056 |
|
27057 [Qt] ScreenQt.cpp has coding-style errors |
|
27058 https://bugs.webkit.org/show_bug.cgi?id=39766 |
|
27059 |
|
27060 * platform/qt/ScreenQt.cpp: |
|
27061 |
|
27062 2010-06-13 Eric Seidel <eric@webkit.org> |
|
27063 |
|
27064 Reviewed by Adam Barth. |
|
27065 |
|
27066 Rename HTMLParser to LegacyHTMLTreeConstructor |
|
27067 https://bugs.webkit.org/show_bug.cgi?id=40554 |
|
27068 |
|
27069 This makes our old HTML parsing system closer match the |
|
27070 HTML5 spec, and thus easier to compare to the new HTML5 |
|
27071 parsing system. |
|
27072 |
|
27073 This rename was entirely automatic. Done by do-webcore-rename. |
|
27074 |
|
27075 * Android.mk: |
|
27076 * CMakeLists.txt: |
|
27077 * GNUmakefile.am: |
|
27078 * WebCore.gypi: |
|
27079 * WebCore.pro: |
|
27080 * WebCore.vcproj/WebCore.vcproj: |
|
27081 * WebCore.xcodeproj/project.pbxproj: |
|
27082 * dom/Document.cpp: |
|
27083 * dom/DocumentParser.h: |
|
27084 (WebCore::DocumentParser::htmlTreeConstructor): |
|
27085 * html/HTML5DocumentParser.cpp: |
|
27086 (WebCore::HTML5DocumentParser::htmlTreeConstructor): |
|
27087 * html/HTML5DocumentParser.h: |
|
27088 * html/HTML5TreeBuilder.cpp: |
|
27089 (WebCore::HTML5TreeBuilder::HTML5TreeBuilder): |
|
27090 * html/HTML5TreeBuilder.h: |
|
27091 (WebCore::HTML5TreeBuilder::legacyTreeConstructor): |
|
27092 * html/HTMLDocumentParser.cpp: |
|
27093 (WebCore::HTMLDocumentParser::HTMLDocumentParser): |
|
27094 * html/HTMLDocumentParser.h: |
|
27095 (WebCore::HTMLDocumentParser::htmlTreeConstructor): |
|
27096 * html/HTMLFormControlElement.cpp: |
|
27097 (WebCore::HTMLFormControlElement::removedFromTree): |
|
27098 * html/HTMLInputElement.cpp: |
|
27099 * html/HTMLMeterElement.cpp: |
|
27100 * html/HTMLProgressElement.cpp: |
|
27101 * html/LegacyHTMLTreeConstructor.cpp: Renamed from WebCore/html/HTMLParser.cpp. |
|
27102 (WebCore::addTags): |
|
27103 (WebCore::HTMLStackElem::HTMLStackElem): |
|
27104 (WebCore::HTMLStackElem::derefNode): |
|
27105 (WebCore::LegacyHTMLTreeConstructor::LegacyHTMLTreeConstructor): |
|
27106 (WebCore::LegacyHTMLTreeConstructor::~LegacyHTMLTreeConstructor): |
|
27107 (WebCore::LegacyHTMLTreeConstructor::reset): |
|
27108 (WebCore::LegacyHTMLTreeConstructor::setCurrent): |
|
27109 (WebCore::tagPriorityOfNode): |
|
27110 (WebCore::LegacyHTMLTreeConstructor::limitDepth): |
|
27111 (WebCore::LegacyHTMLTreeConstructor::insertNodeAfterLimitDepth): |
|
27112 (WebCore::LegacyHTMLTreeConstructor::parseToken): |
|
27113 (WebCore::LegacyHTMLTreeConstructor::parseDoctypeToken): |
|
27114 (WebCore::isTableSection): |
|
27115 (WebCore::isTablePart): |
|
27116 (WebCore::isTableRelated): |
|
27117 (WebCore::isScopingTag): |
|
27118 (WebCore::LegacyHTMLTreeConstructor::insertNode): |
|
27119 (WebCore::LegacyHTMLTreeConstructor::handleError): |
|
27120 (WebCore::LegacyHTMLTreeConstructor::textCreateErrorCheck): |
|
27121 (WebCore::LegacyHTMLTreeConstructor::commentCreateErrorCheck): |
|
27122 (WebCore::LegacyHTMLTreeConstructor::headCreateErrorCheck): |
|
27123 (WebCore::LegacyHTMLTreeConstructor::bodyCreateErrorCheck): |
|
27124 (WebCore::LegacyHTMLTreeConstructor::framesetCreateErrorCheck): |
|
27125 (WebCore::LegacyHTMLTreeConstructor::formCreateErrorCheck): |
|
27126 (WebCore::LegacyHTMLTreeConstructor::isindexCreateErrorCheck): |
|
27127 (WebCore::LegacyHTMLTreeConstructor::selectCreateErrorCheck): |
|
27128 (WebCore::LegacyHTMLTreeConstructor::ddCreateErrorCheck): |
|
27129 (WebCore::LegacyHTMLTreeConstructor::dtCreateErrorCheck): |
|
27130 (WebCore::LegacyHTMLTreeConstructor::rpCreateErrorCheck): |
|
27131 (WebCore::LegacyHTMLTreeConstructor::rtCreateErrorCheck): |
|
27132 (WebCore::LegacyHTMLTreeConstructor::nestedCreateErrorCheck): |
|
27133 (WebCore::LegacyHTMLTreeConstructor::nestedPCloserCreateErrorCheck): |
|
27134 (WebCore::LegacyHTMLTreeConstructor::nestedStyleCreateErrorCheck): |
|
27135 (WebCore::LegacyHTMLTreeConstructor::tableCellCreateErrorCheck): |
|
27136 (WebCore::LegacyHTMLTreeConstructor::tableSectionCreateErrorCheck): |
|
27137 (WebCore::LegacyHTMLTreeConstructor::noembedCreateErrorCheck): |
|
27138 (WebCore::LegacyHTMLTreeConstructor::noframesCreateErrorCheck): |
|
27139 (WebCore::LegacyHTMLTreeConstructor::noscriptCreateErrorCheck): |
|
27140 (WebCore::LegacyHTMLTreeConstructor::pCloserCreateErrorCheck): |
|
27141 (WebCore::LegacyHTMLTreeConstructor::pCloserStrictCreateErrorCheck): |
|
27142 (WebCore::LegacyHTMLTreeConstructor::mapCreateErrorCheck): |
|
27143 (WebCore::mapTagToFunc): |
|
27144 (WebCore::mapTagsToFunc): |
|
27145 (WebCore::LegacyHTMLTreeConstructor::getNode): |
|
27146 (WebCore::LegacyHTMLTreeConstructor::allowNestedRedundantTag): |
|
27147 (WebCore::LegacyHTMLTreeConstructor::processCloseTag): |
|
27148 (WebCore::LegacyHTMLTreeConstructor::isHeadingTag): |
|
27149 (WebCore::LegacyHTMLTreeConstructor::isInline): |
|
27150 (WebCore::LegacyHTMLTreeConstructor::isResidualStyleTag): |
|
27151 (WebCore::LegacyHTMLTreeConstructor::isAffectedByResidualStyle): |
|
27152 (WebCore::LegacyHTMLTreeConstructor::handleResidualStyleCloseTagAcrossBlocks): |
|
27153 (WebCore::LegacyHTMLTreeConstructor::reopenResidualStyleTags): |
|
27154 (WebCore::LegacyHTMLTreeConstructor::pushBlock): |
|
27155 (WebCore::LegacyHTMLTreeConstructor::popBlock): |
|
27156 (WebCore::LegacyHTMLTreeConstructor::popOneBlockCommon): |
|
27157 (WebCore::LegacyHTMLTreeConstructor::popOneBlock): |
|
27158 (WebCore::LegacyHTMLTreeConstructor::moveOneBlockToStack): |
|
27159 (WebCore::LegacyHTMLTreeConstructor::checkIfHasPElementInScope): |
|
27160 (WebCore::LegacyHTMLTreeConstructor::popInlineBlocks): |
|
27161 (WebCore::LegacyHTMLTreeConstructor::freeBlock): |
|
27162 (WebCore::LegacyHTMLTreeConstructor::createHead): |
|
27163 (WebCore::LegacyHTMLTreeConstructor::handleIsindex): |
|
27164 (WebCore::LegacyHTMLTreeConstructor::startBody): |
|
27165 (WebCore::LegacyHTMLTreeConstructor::finished): |
|
27166 (WebCore::LegacyHTMLTreeConstructor::reportErrorToConsole): |
|
27167 (WebCore::shouldCreateImplicitHead): |
|
27168 (WebCore::serializeForNumberType): |
|
27169 (WebCore::parseToDoubleForNumberType): |
|
27170 * html/LegacyHTMLTreeConstructor.h: Renamed from WebCore/html/HTMLParser.h. |
|
27171 (WebCore::LegacyHTMLTreeConstructor::skipMode): |
|
27172 (WebCore::LegacyHTMLTreeConstructor::isHandlingResidualStyleAcrossBlocks): |
|
27173 (WebCore::LegacyHTMLTreeConstructor::setSkipMode): |
|
27174 (WebCore::LegacyHTMLTreeConstructor::popBlock): |
|
27175 (WebCore::LegacyHTMLTreeConstructor::hasPElementInScope): |
|
27176 (WebCore::LegacyHTMLTreeConstructor::reportError): |
|
27177 (WebCore::LegacyHTMLTreeConstructor::): |
|
27178 (WebCore::shouldCreateImplicitHead): |
|
27179 * html/StepRange.cpp: |
|
27180 * html/ValidityState.cpp: |
|
27181 * rendering/RenderSlider.cpp: |
|
27182 |
|
27183 2010-06-13 Eric Seidel <eric@webkit.org> |
|
27184 |
|
27185 Reviewed by Darin Adler. |
|
27186 |
|
27187 Rename m_parser, htmlParser() to m_treeConstructor, htmlTreeConstructor() in preparation for renaming HTMLParser |
|
27188 https://bugs.webkit.org/show_bug.cgi?id=40514 |
|
27189 |
|
27190 This rename was done by hand. I realize now I should have |
|
27191 renamed HTMLParser to HTMLTreeConstructor before renaming HTMLTokenizer. |
|
27192 |
|
27193 No functional changes, thus no tests. |
|
27194 |
|
27195 * dom/DocumentParser.h: |
|
27196 (WebCore::DocumentParser::htmlTreeConstructor): |
|
27197 * html/HTML5DocumentParser.cpp: |
|
27198 (WebCore::HTML5DocumentParser::HTML5DocumentParser): |
|
27199 (WebCore::HTML5DocumentParser::pumpLexerIfPossible): |
|
27200 (WebCore::HTML5DocumentParser::pumpLexer): |
|
27201 (WebCore::HTML5DocumentParser::end): |
|
27202 (WebCore::HTML5DocumentParser::htmlTreeConstructor): |
|
27203 (WebCore::HTML5DocumentParser::isWaitingForScripts): |
|
27204 (WebCore::HTML5DocumentParser::resumeParsingAfterScriptExecution): |
|
27205 (WebCore::HTML5DocumentParser::notifyFinished): |
|
27206 (WebCore::HTML5DocumentParser::executeScriptsWaitingForStylesheets): |
|
27207 * html/HTML5DocumentParser.h: |
|
27208 * html/HTML5TreeBuilder.cpp: |
|
27209 (WebCore::HTML5TreeBuilder::HTML5TreeBuilder): |
|
27210 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
27211 (WebCore::HTML5TreeBuilder::finished): |
|
27212 * html/HTML5TreeBuilder.h: |
|
27213 (WebCore::HTML5TreeBuilder::legacyTreeConstructor): |
|
27214 * html/HTMLDocumentParser.cpp: |
|
27215 (WebCore::HTMLDocumentParser::HTMLDocumentParser): |
|
27216 (WebCore::HTMLDocumentParser::scriptHandler): |
|
27217 (WebCore::HTMLDocumentParser::parseTag): |
|
27218 (WebCore::HTMLDocumentParser::end): |
|
27219 (WebCore::HTMLDocumentParser::processToken): |
|
27220 (WebCore::HTMLDocumentParser::processDoctypeToken): |
|
27221 * html/HTMLDocumentParser.h: |
|
27222 (WebCore::HTMLDocumentParser::htmlTreeConstructor): |
|
27223 * html/HTMLFormControlElement.cpp: |
|
27224 (WebCore::HTMLFormControlElement::removedFromTree): |
|
27225 |
|
27226 2010-06-13 Eric Seidel <eric@webkit.org> |
|
27227 |
|
27228 Reviewed by Darin Adler. |
|
27229 |
|
27230 Rename tok, asHTMLTokenizer to parser, asHTMLDocumentParser |
|
27231 https://bugs.webkit.org/show_bug.cgi?id=40513 |
|
27232 |
|
27233 Last set of Tokenizer related renames, also done via do-webcore-rename: |
|
27234 asHTMLTokenizer => asHTMLDocumentParser |
|
27235 tok => parser |
|
27236 |
|
27237 No functional changes, thus no tests. |
|
27238 |
|
27239 * dom/Document.cpp: |
|
27240 (WebCore::Document::write): |
|
27241 * dom/DocumentParser.h: |
|
27242 (WebCore::DocumentParser::asHTMLDocumentParser): |
|
27243 * html/HTMLDocumentParser.cpp: |
|
27244 (WebCore::parseHTMLDocumentFragment): |
|
27245 * html/HTMLDocumentParser.h: |
|
27246 (WebCore::HTMLDocumentParser::asHTMLDocumentParser): |
|
27247 * loader/DocumentLoader.cpp: |
|
27248 (WebCore::DocumentLoader::isLoadingInAPISense): |
|
27249 |
|
27250 2010-06-13 Eric Seidel <eric@webkit.org> |
|
27251 |
|
27252 Reviewed by Darin Adler. |
|
27253 |
|
27254 Fix the rest of the references to the old Tokenizer class (now DocumentParser) |
|
27255 https://bugs.webkit.org/show_bug.cgi?id=40512 |
|
27256 |
|
27257 No functional changes, thus no new tests. |
|
27258 This was mostly done by do-webcore-rename: |
|
27259 tokenizer => parser |
|
27260 m_tokenizer => m_parser |
|
27261 createTextTokenizer => createTextDocumentParser |
|
27262 createTokenizer => createParser |
|
27263 getTokenizer => getParser |
|
27264 |
|
27265 However had to be careful to avoid renaming things related to |
|
27266 css/tokenizer.flex (which we should later rename to CSSTokenizer.flex) |
|
27267 |
|
27268 Still a couple references with "tok" and "asHTMLTokenizer" which I'll |
|
27269 get in the next patch. |
|
27270 |
|
27271 * accessibility/AccessibilityRenderObject.cpp: |
|
27272 (WebCore::AccessibilityRenderObject::isLoaded): |
|
27273 * bindings/v8/ScriptEventListener.cpp: |
|
27274 (WebCore::createAttributeEventListener): |
|
27275 * dom/Document.cpp: |
|
27276 (WebCore::Document::removedLastRef): |
|
27277 (WebCore::Document::~Document): |
|
27278 (WebCore::Document::createParser): |
|
27279 (WebCore::Document::open): |
|
27280 (WebCore::Document::cancelParsing): |
|
27281 (WebCore::Document::implicitOpen): |
|
27282 (WebCore::Document::implicitClose): |
|
27283 (WebCore::Document::write): |
|
27284 (WebCore::Document::finishParsing): |
|
27285 (WebCore::Document::removePendingSheet): |
|
27286 * dom/Document.h: |
|
27287 (WebCore::Document::parser): |
|
27288 * dom/DocumentParser.h: |
|
27289 * dom/ViewportArguments.cpp: |
|
27290 (WebCore::reportViewportWarning): |
|
27291 * dom/XMLDocumentParserLibxml2.cpp: |
|
27292 (WebCore::PendingCallbacks::callAndRemoveFirstCallback): |
|
27293 (WebCore::PendingCallbacks::PendingStartElementNSCallback::call): |
|
27294 (WebCore::PendingCallbacks::PendingEndElementNSCallback::call): |
|
27295 (WebCore::PendingCallbacks::PendingCharactersCallback::call): |
|
27296 (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::call): |
|
27297 (WebCore::PendingCallbacks::PendingCDATABlockCallback::call): |
|
27298 (WebCore::PendingCallbacks::PendingCommentCallback::call): |
|
27299 (WebCore::PendingCallbacks::PendingInternalSubsetCallback::call): |
|
27300 (WebCore::PendingCallbacks::): |
|
27301 (WebCore::getParser): |
|
27302 (WebCore::startElementNsHandler): |
|
27303 (WebCore::endElementNsHandler): |
|
27304 (WebCore::charactersHandler): |
|
27305 (WebCore::processingInstructionHandler): |
|
27306 (WebCore::cdataBlockHandler): |
|
27307 (WebCore::commentHandler): |
|
27308 (WebCore::warningHandler): |
|
27309 (WebCore::fatalErrorHandler): |
|
27310 (WebCore::normalErrorHandler): |
|
27311 (WebCore::getEntityHandler): |
|
27312 (WebCore::startDocumentHandler): |
|
27313 (WebCore::endDocumentHandler): |
|
27314 (WebCore::internalSubsetHandler): |
|
27315 (WebCore::externalSubsetHandler): |
|
27316 (WebCore::parseXMLDocumentFragment): |
|
27317 * dom/XMLDocumentParserQt.cpp: |
|
27318 (WebCore::parseXMLDocumentFragment): |
|
27319 * html/HTML5EntityParser.cpp: |
|
27320 * html/HTMLDocument.cpp: |
|
27321 (WebCore::HTMLDocument::createParser): |
|
27322 * html/HTMLDocument.h: |
|
27323 * html/HTMLDocumentParser.cpp: |
|
27324 (WebCore::HTMLDocumentParser::write): |
|
27325 (WebCore::HTMLDocumentParser::stopParsing): |
|
27326 * html/HTMLFormControlElement.cpp: |
|
27327 (WebCore::HTMLFormControlElement::removedFromTree): |
|
27328 * html/HTMLParser.cpp: |
|
27329 (WebCore::HTMLParser::finished): |
|
27330 (WebCore::HTMLParser::reportErrorToConsole): |
|
27331 * html/HTMLViewSourceDocument.cpp: |
|
27332 (WebCore::HTMLViewSourceDocument::createParser): |
|
27333 (WebCore::HTMLViewSourceDocument::addLine): |
|
27334 * html/HTMLViewSourceDocument.h: |
|
27335 * loader/DocumentLoader.cpp: |
|
27336 (WebCore::DocumentLoader::isLoadingInAPISense): |
|
27337 * loader/DocumentWriter.cpp: |
|
27338 (WebCore::DocumentWriter::begin): |
|
27339 (WebCore::DocumentWriter::addData): |
|
27340 * loader/FTPDirectoryDocument.cpp: |
|
27341 (WebCore::FTPDirectoryDocument::createParser): |
|
27342 * loader/FTPDirectoryDocument.h: |
|
27343 * loader/FrameLoader.cpp: |
|
27344 (WebCore::FrameLoader::stopLoading): |
|
27345 (WebCore::FrameLoader::stop): |
|
27346 * loader/ImageDocument.cpp: |
|
27347 (WebCore::ImageDocument::createParser): |
|
27348 * loader/ImageDocument.h: |
|
27349 * loader/MediaDocument.cpp: |
|
27350 (WebCore::MediaDocument::createParser): |
|
27351 * loader/MediaDocument.h: |
|
27352 * loader/PluginDocument.cpp: |
|
27353 (WebCore::PluginDocument::createParser): |
|
27354 * loader/PluginDocument.h: |
|
27355 * loader/SinkDocument.cpp: |
|
27356 (WebCore::SinkDocument::createParser): |
|
27357 * loader/SinkDocument.h: |
|
27358 * loader/TextDocument.cpp: |
|
27359 (WebCore::TextDocument::createParser): |
|
27360 (WebCore::createTextDocumentParser): |
|
27361 * loader/TextDocument.h: |
|
27362 * svg/SVGDocumentExtensions.cpp: |
|
27363 (WebCore::SVGDocumentExtensions::reportWarning): |
|
27364 (WebCore::SVGDocumentExtensions::reportError): |
|
27365 * wml/WMLDocument.cpp: |
|
27366 (WebCore::WMLDocument::finishedParsing): |
|
27367 * wml/WMLErrorHandling.cpp: |
|
27368 (WebCore::reportWMLError): |
|
27369 * wml/WMLTemplateElement.cpp: |
|
27370 (WebCore::WMLTemplateElement::registerTemplatesInDocument): |
|
27371 |
|
27372 2010-06-13 Chris Fleizach <cfleizach@apple.com> |
|
27373 |
|
27374 Reviewed by Darin Adler. |
|
27375 |
|
27376 AX: link won't return linked element if URL contains # |
|
27377 https://bugs.webkit.org/show_bug.cgi?id=40192 |
|
27378 |
|
27379 Test: platform/mac/accessibility/internal-link-when-document-has-fragment.html |
|
27380 |
|
27381 * accessibility/AccessibilityRenderObject.cpp: |
|
27382 (WebCore::AccessibilityRenderObject::internalLinkElement): |
|
27383 |
|
27384 2010-06-13 Sam Weinig <sam@webkit.org> |
|
27385 |
|
27386 Try and fix the chrome build. |
|
27387 |
|
27388 * bindings/scripts/CodeGeneratorV8.pm: |
|
27389 * xml/XMLHttpRequest.idl: |
|
27390 |
|
27391 2010-06-13 Sam Weinig <sam@webkit.org> |
|
27392 |
|
27393 Reviewed by Anders Carlsson. |
|
27394 |
|
27395 Fix for https://bugs.webkit.org/show_bug.cgi?id=40550 |
|
27396 XMLHttpRequest constructor object should expose the constants from the IDL. |
|
27397 |
|
27398 Test: fast/dom/XMLHttpRequest-constants.html |
|
27399 |
|
27400 * Android.jscbindings.mk: |
|
27401 * CMakeLists.txt: |
|
27402 * GNUmakefile.am: |
|
27403 * WebCore.gypi: |
|
27404 * WebCore.pro: |
|
27405 * WebCore.vcproj/WebCore.vcproj: |
|
27406 * WebCore.xcodeproj/project.pbxproj: |
|
27407 * bindings/js/JSBindingsAllInOne.cpp: |
|
27408 * bindings/js/JSDOMWindowCustom.cpp: |
|
27409 * bindings/js/JSWorkerContextCustom.cpp: |
|
27410 * bindings/js/JSXMLHttpRequestConstructor.cpp: Removed. |
|
27411 * bindings/js/JSXMLHttpRequestConstructor.h: Removed. |
|
27412 * bindings/js/JSXMLHttpRequestCustom.cpp: |
|
27413 (WebCore::JSXMLHttpRequestConstructor::constructJSXMLHttpRequest): |
|
27414 * bindings/scripts/CodeGeneratorJS.pm: |
|
27415 * xml/XMLHttpRequest.idl: |
|
27416 |
|
27417 2010-06-13 Simon Fraser <simon.fraser@apple.com> |
|
27418 |
|
27419 Reviewed by Dan Bernstein. |
|
27420 |
|
27421 -webkit-transition font-size and font-family |
|
27422 https://bugs.webkit.org/show_bug.cgi?id=33429 |
|
27423 |
|
27424 When animating font-size, update the font with a saved |
|
27425 version of the font selector to ensure that we don't clobber |
|
27426 the font family. |
|
27427 |
|
27428 Test: transitions/font-family-during-transition.html |
|
27429 |
|
27430 * rendering/style/RenderStyle.cpp: |
|
27431 (WebCore::RenderStyle::setBlendedFontSize): |
|
27432 |
|
27433 2010-06-13 Tony Chang <tony@chromium.org> |
|
27434 |
|
27435 Build fix, not reviewed. |
|
27436 |
|
27437 fix chromium compile after r61094 (id attribute refactor) |
|
27438 https://bugs.webkit.org/show_bug.cgi?id=40553 |
|
27439 |
|
27440 * bindings/v8/custom/V8NamedNodesCollection.cpp: |
|
27441 (WebCore::V8NamedNodesCollection::itemWithName): |
|
27442 |
|
27443 2010-06-13 Darin Adler <darin@apple.com> |
|
27444 |
|
27445 Reviewed by Alexey Proskuryakov. |
|
27446 |
|
27447 Partly done support for alternate ID attributes should be removed |
|
27448 https://bugs.webkit.org/show_bug.cgi?id=39692 |
|
27449 |
|
27450 Removed the include of "HTMLNames.h" from "Element.h". This prevents |
|
27451 near-world-rebuilds every time you change HTMLTagNames.in. |
|
27452 |
|
27453 Renamed the getIDAttribute function in the Element class to |
|
27454 idForStyleResolution, since it returns a value of the id attribute |
|
27455 that has been lowercased as appropriate for style matching, not the |
|
27456 actual value of the attribute. With the old name it was easy to |
|
27457 misuse it in non-style contexts. |
|
27458 |
|
27459 Got rid of the idAttributeName function on Element, since it is |
|
27460 easy to use it wrong. Replace it with isIdAttributeName, getIdAttribute, |
|
27461 and setIdAttribute functions, which are a good fit for the needs of |
|
27462 most call sites that were dealing with the id attribute. |
|
27463 |
|
27464 Added an idAttributeName function to Document. This is for a future |
|
27465 where a document can have a custom id attribute name specified in its |
|
27466 doctype. It's possible this will be insufficient because the same |
|
27467 document might have XHTML or SVG elements in it, and it's possible |
|
27468 that on those elements we will want the attribute named "id" with |
|
27469 no namespace to still work. We can deal with that when we implement |
|
27470 the actual feature, though. For now, it seems OK to fetch the name |
|
27471 of the id attribute from the document. |
|
27472 |
|
27473 * dom/DynamicNodeList.cpp: |
|
27474 (WebCore::DynamicNodeList::itemWithName): |
|
27475 * dom/StaticNodeList.cpp: |
|
27476 (WebCore::StaticNodeList::itemWithName): |
|
27477 * rendering/RenderSVGResourceContainer.h: |
|
27478 (WebCore::RenderSVGResourceContainer::RenderSVGResourceContainer): |
|
27479 (WebCore::RenderSVGResourceContainer::idChanged): |
|
27480 * svg/SVGUseElement.cpp: |
|
27481 (WebCore::SVGUseElement::handleDeepUseReferencing): |
|
27482 * svg/animation/SMILTimeContainer.cpp: |
|
27483 (WebCore::SMILTimeContainer::updateAnimations): |
|
27484 Use the new idForStyleResolution function, which is the new name of |
|
27485 the getIDAttribute function. There's a good chance these call sites are |
|
27486 incorrect, which is something we should investigate later, so there's |
|
27487 a FIXME at each call site. |
|
27488 |
|
27489 * dom/Document.cpp: |
|
27490 (WebCore::Document::Document): Initialize m_idAttributeName to the |
|
27491 standard id attribute from HTML. |
|
27492 (WebCore::Document::getElementById): Use Element::getIdAttribute. |
|
27493 * dom/Document.h: Added Document::idAttributeName. |
|
27494 |
|
27495 * dom/Element.cpp: |
|
27496 (WebCore::Element::setAttribute): Use Document::idAttributeName. |
|
27497 (WebCore::Element::setAttributeMap): Use Element::isIdAttributeName. |
|
27498 (WebCore::Element::insertedIntoDocument): Use Document::idAttributeName. |
|
27499 (WebCore::Element::removedFromDocument): Ditto. |
|
27500 (WebCore::Element::formatForDebugger): Use Element::getIdAttribute. |
|
27501 * dom/Element.h: Added isIdAttributeName, getIdAttribute, setIdAttribute, |
|
27502 idForStyleResolution. Removed rareIDAttributeName. |
|
27503 |
|
27504 * dom/ElementRareData.h: Removed m_idAttributeName. |
|
27505 |
|
27506 * dom/NamedNodeMap.cpp: |
|
27507 (WebCore::NamedNodeMap::setAttributes): Use Document::idAttributeName. |
|
27508 * dom/NamedNodeMap.h: Renamed id, setID, and m_id to idForStyleResolution, |
|
27509 setIdForStyleResolution, and m_idForStyleResolution since this is not the |
|
27510 value of the id attribute because it gets lowercased for compatibility-mode |
|
27511 documents. |
|
27512 |
|
27513 * rendering/RenderIFrame.cpp: |
|
27514 * rendering/RenderLayerCompositor.cpp: |
|
27515 * rendering/RenderProgress.cpp: |
|
27516 Added include of HTMLNames.h now that Element.h no longer includes it. |
|
27517 |
|
27518 * editing/SetNodeAttributeCommand.h: |
|
27519 * editing/markup.cpp: |
|
27520 * html/HTMLParser.cpp: |
|
27521 Removed unneeded includes. |
|
27522 |
|
27523 * html/HTMLParser.h: Sorted includes. |
|
27524 |
|
27525 * css/CSSStyleSelector.cpp: |
|
27526 (WebCore::CSSStyleSelector::matchRules): Use idForStyleResolution. |
|
27527 (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): Use idForStyleResolution. |
|
27528 * dom/Attr.cpp: |
|
27529 (WebCore::Attr::isId): Use Document::idAttributeName. |
|
27530 * dom/StyledElement.cpp: |
|
27531 (WebCore::StyledElement::parseMappedAttribute): Use isIdAttributeName, |
|
27532 and setIdForStyleResolution. |
|
27533 * editing/DeleteButtonController.cpp: |
|
27534 (WebCore::DeleteButtonController::createDeletionUI): Use setIdAttribute. |
|
27535 * editing/EditorCommand.cpp: |
|
27536 (WebCore::executeInsertHorizontalRule): Ditto. |
|
27537 * html/HTMLAppletElement.cpp: |
|
27538 (WebCore::HTMLAppletElement::parseMappedAttribute): Use isIdAttributeName. |
|
27539 (WebCore::HTMLAppletElement::createRenderer): Use getIdAttribute. |
|
27540 * html/HTMLCollection.cpp: |
|
27541 (WebCore::HTMLCollection::checkForNameMatch): Use getIdAttribute. |
|
27542 (WebCore::HTMLCollection::updateNameCache): Use getIdAttribute. |
|
27543 * html/HTMLDataGridColElement.cpp: |
|
27544 (WebCore::HTMLDataGridColElement::ensureColumn): Use getIdAttribute. |
|
27545 (WebCore::HTMLDataGridColElement::parseMappedAttribute): Use isIdAttributeName. |
|
27546 * html/HTMLElement.cpp: |
|
27547 (WebCore::HTMLElement::parseMappedAttribute): Use isIdAttributeName. |
|
27548 * html/HTMLFormCollection.cpp: |
|
27549 (WebCore::HTMLFormCollection::nextNamedItem): Added missing braces. |
|
27550 (WebCore::HTMLFormCollection::updateNameCache): Use getIdAttribute. |
|
27551 * html/HTMLFrameElementBase.cpp: |
|
27552 (WebCore::HTMLFrameElementBase::parseMappedAttribute): Use isIdAttributeName. |
|
27553 (WebCore::HTMLFrameElementBase::setName): Use getIdAttribute. |
|
27554 * html/HTMLImageElement.cpp: |
|
27555 (WebCore::HTMLImageElement::parseMappedAttribute): Use isIdAttributeName. |
|
27556 * html/HTMLMapElement.cpp: |
|
27557 (WebCore::HTMLMapElement::parseMappedAttribute): Use isIdAttributeName. |
|
27558 Also restructured the function a bit to make its structure clearer and added |
|
27559 a comment pointing out that it can't be quite right. |
|
27560 * html/HTMLNameCollection.cpp: |
|
27561 (WebCore::HTMLNameCollection::itemAfter): Use getIdAttribute. |
|
27562 * html/HTMLObjectElement.cpp: |
|
27563 (WebCore::HTMLObjectElement::parseMappedAttribute): Use isIdAttributeName. |
|
27564 * html/HTMLParamElement.cpp: |
|
27565 (WebCore::HTMLParamElement::parseMappedAttribute): Use isIdAttributeName. |
|
27566 * loader/CachedFont.cpp: |
|
27567 (WebCore::CachedFont::getSVGFontById): Use getIdAttribute. |
|
27568 * rendering/RenderLayerBacking.cpp: |
|
27569 (WebCore::RenderLayerBacking::nameForLayer): Use getIdAttribute. |
|
27570 * rendering/SVGRenderTreeAsText.cpp: |
|
27571 (WebCore::writeSVGPaintingResource): Use getIdAttribute. |
|
27572 (WebCore::writeSVGResourceContainer): Ditto. |
|
27573 * svg/SVGElement.cpp: |
|
27574 (WebCore::SVGElement::insertedIntoDocument): Use getIdAttribute. |
|
27575 * svg/SVGStyledElement.cpp: |
|
27576 (WebCore::SVGStyledElement::isKnownAttribute): Use isIdAttributeName. |
|
27577 (WebCore::SVGStyledElement::svgAttributeChanged): Use isIdAttributeName. |
|
27578 * wml/WMLElement.cpp: |
|
27579 (WebCore::WMLElement::parseMappedAttribute): Use isIdAttributeName. |
|
27580 |
|
27581 2010-06-13 Dan Bernstein <mitz@apple.com> |
|
27582 |
|
27583 Reviewed by Darin Adler. |
|
27584 |
|
27585 <rdar://problem/8087385> REGRESSION (r60974): Continuous wheel scrolling is too fast in list boxes and in Safari Reader |
|
27586 https://bugs.webkit.org/show_bug.cgi?id=40537 |
|
27587 |
|
27588 * platform/mac/WheelEventMac.mm: |
|
27589 (WebCore::PlatformWheelEvent::PlatformWheelEvent): Only multiply by pixelsPerLineStep() if the |
|
27590 event is not continuous, as was before r56012. |
|
27591 |
|
27592 2010-06-13 Andras Becsi <abecsi@webkit.org> |
|
27593 |
|
27594 Reviewed by Darin Adler. |
|
27595 |
|
27596 Centralize the gperf code generation commands into make-hash-tools.pl |
|
27597 to avoid redundancy across multiple build systems. |
|
27598 Do this in preparation of refactoring the usage of these generated |
|
27599 sources to fix the debug linking error on Linux with gcc >= 4.4.0. |
|
27600 |
|
27601 webkit.org/b/29244 |
|
27602 |
|
27603 No functionality change, so no new tests needed. |
|
27604 |
|
27605 * DerivedSources.make: |
|
27606 * GNUmakefile.am: |
|
27607 * WebCore.gyp/WebCore.gyp: |
|
27608 * WebCore.gyp/scripts/rule_gperf.py: Removed. |
|
27609 * WebCore.pri: |
|
27610 * WebCore.xcodeproj/project.pbxproj: |
|
27611 * css/CSSParser.cpp: |
|
27612 (WebCore::cssPropertyID): |
|
27613 (WebCore::cssValueKeywordID): |
|
27614 * css/makeprop.pl: |
|
27615 * css/makevalues.pl: |
|
27616 * html/DocTypeStrings.gperf: |
|
27617 * html/HTML5EntityParser.cpp: |
|
27618 * html/HTMLDocumentParser.cpp: |
|
27619 * html/HTMLEntityNames.gperf: |
|
27620 * html/PreloadScanner.cpp: |
|
27621 * make-hash-tools.pl: Added. |
|
27622 * platform/ColorData.gperf: |
|
27623 * platform/graphics/Color.cpp: |
|
27624 |
|
27625 2010-06-13 Noam Rosenthal <noam.rosenthal@nokia.com> |
|
27626 |
|
27627 Reviewed by Kenneth Rohde Christiansen. |
|
27628 |
|
27629 [Qt] tests/hybridPixmap fails |
|
27630 https://bugs.webkit.org/show_bug.cgi?id=37316 |
|
27631 |
|
27632 The problem was that JSC::Instance::createRuntimeObject was never called. |
|
27633 This is fixed by overloading newRuntimeObject and calling Instance::createRuntimeObject |
|
27634 in between, instead of creating the runtime object directly inside the static function |
|
27635 QtPixmapInstance::createRuntimeObject, which had to be renamed as to not overshadow the virtual function. |
|
27636 |
|
27637 This fixes an existing test, tests/hybridPixmap |
|
27638 |
|
27639 * bridge/qt/qt_pixmapruntime.cpp: |
|
27640 (JSC::Bindings::QtPixmapInstance::newRuntimeObject): |
|
27641 (JSC::Bindings::QtPixmapInstance::createPixmapRuntimeObject): |
|
27642 * bridge/qt/qt_pixmapruntime.h: |
|
27643 * bridge/qt/qt_runtime.cpp: |
|
27644 (JSC::Bindings::convertQVariantToValue): |
|
27645 |
|
27646 2010-06-13 Noam Rosenthal <noam.rosenthal@nokia.com> |
|
27647 |
|
27648 Reviewed by Darin Adler. |
|
27649 |
|
27650 GraphicsContext3D.h in the Qt port includes too many unnecessary files |
|
27651 https://bugs.webkit.org/show_bug.cgi?id=40536 |
|
27652 |
|
27653 Removed unncessary includes. |
|
27654 |
|
27655 No new tests; Compilation improvement. |
|
27656 |
|
27657 * platform/graphics/GraphicsContext3D.h: |
|
27658 * platform/graphics/qt/GraphicsContext3DQt.cpp: |
|
27659 |
|
27660 2010-06-13 Noam Rosenthal <noam.rosenthal@nokia.com> |
|
27661 |
|
27662 Reviewed by Eric Seidel. |
|
27663 |
|
27664 [Qt] GraphicsLayer: recaching images creates an unnecessary deep copy |
|
27665 https://bugs.webkit.org/show_bug.cgi?id=40535 |
|
27666 |
|
27667 Made sure the painter ends its operation before copying the pixmap. |
|
27668 |
|
27669 No new tests: this is an optimization. |
|
27670 |
|
27671 * platform/graphics/qt/GraphicsLayerQt.cpp: |
|
27672 (WebCore::GraphicsLayerQtImpl::recache): |
|
27673 |
|
27674 2010-06-13 Clemmitt Sigler <cmsigler@gmail.com> |
|
27675 |
|
27676 Reviewed by Eric Seidel. |
|
27677 |
|
27678 Patch to fix missing references to RenderMathMLRoot, |
|
27679 RenderMathMLSquareRoot when building GtkLauncher. |
|
27680 https://bugs.webkit.org/show_bug.cgi?id=40326 |
|
27681 |
|
27682 No change in functionality so no new tests. |
|
27683 |
|
27684 * GNUmakefile.am: |
|
27685 |
|
27686 2010-06-12 Brian Weinstein <bweinstein@apple.com> |
|
27687 |
|
27688 Reviewed by Dan Bernstein. |
|
27689 |
|
27690 https://bugs.webkit.org/show_bug.cgi?id=40538 |
|
27691 |
|
27692 Some machines have started to see the return of the dreaded: WebCore.lib : fatal error LNK1106: invalid |
|
27693 file or disk full. Since we don't have the hotfix for VS2005, work around this in the meantime |
|
27694 by creating an EditingAllInOne file, that includes all of the cpp files in the editing subdirectory. |
|
27695 |
|
27696 * WebCore.vcproj/WebCore.vcproj: Prevnt the editing cpp from building, so we only compile EditingAllInOne. |
|
27697 * editing/EditingAllInOne.cpp: Added. Includes all of the editing cpp files. |
|
27698 |
|
27699 2010-06-12 Sheriff Bot <webkit.review.bot@gmail.com> |
|
27700 |
|
27701 Unreviewed, rolling out r61031. |
|
27702 http://trac.webkit.org/changeset/61031 |
|
27703 https://bugs.webkit.org/show_bug.cgi?id=40539 |
|
27704 |
|
27705 Crashes Dromaeo jslib test in Release Chromium (Requested by |
|
27706 dimich_ on #webkit). |
|
27707 |
|
27708 * bindings/v8/V8Binding.cpp: |
|
27709 (WebCore::v8ExternalString): |
|
27710 * bindings/v8/V8Binding.h: |
|
27711 |
|
27712 2010-06-12 Eric Seidel <eric@webkit.org> |
|
27713 |
|
27714 Reviewed by Adam Barth. |
|
27715 |
|
27716 Rename the last few *Tokenizer classes (which don't have their own files) to *DocumentParser |
|
27717 https://bugs.webkit.org/show_bug.cgi?id=40508 |
|
27718 |
|
27719 This was a very simple do-webcore-rename-generated patch. |
|
27720 |
|
27721 PluginTokenizer => PluginDocumentParser |
|
27722 TextTokenizer => TextDocumentParser |
|
27723 SinkTokenizer => SinkDocumentParser |
|
27724 MediaTokenizer => MediaDocumentParser |
|
27725 FTPDirectoryTokenizer => FTPDirectoryDocumentParser |
|
27726 |
|
27727 No functional changes, thus no tests. |
|
27728 |
|
27729 * html/HTMLViewSourceDocument.cpp: |
|
27730 (WebCore::HTMLViewSourceDocument::createTokenizer): |
|
27731 * html/HTMLViewSourceDocument.h: |
|
27732 * loader/FTPDirectoryDocument.cpp: |
|
27733 (WebCore::FTPDirectoryDocumentParser::FTPDirectoryDocumentParser): |
|
27734 (WebCore::FTPDirectoryDocumentParser::appendEntry): |
|
27735 (WebCore::FTPDirectoryDocumentParser::createTDForFilename): |
|
27736 (WebCore::FTPDirectoryDocumentParser::parseAndAppendOneLine): |
|
27737 (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate): |
|
27738 (WebCore::FTPDirectoryDocumentParser::createBasicDocument): |
|
27739 (WebCore::FTPDirectoryDocumentParser::write): |
|
27740 (WebCore::FTPDirectoryDocumentParser::finish): |
|
27741 (WebCore::FTPDirectoryDocument::createTokenizer): |
|
27742 * loader/MediaDocument.cpp: |
|
27743 (WebCore::MediaDocumentParser::MediaDocumentParser): |
|
27744 (WebCore::MediaDocumentParser::write): |
|
27745 (WebCore::MediaDocumentParser::createDocumentStructure): |
|
27746 (WebCore::MediaDocumentParser::writeRawData): |
|
27747 (WebCore::MediaDocumentParser::finish): |
|
27748 (WebCore::MediaDocumentParser::isWaitingForScripts): |
|
27749 (WebCore::MediaDocument::createTokenizer): |
|
27750 * loader/PluginDocument.cpp: |
|
27751 (WebCore::PluginDocumentParser::PluginDocumentParser): |
|
27752 (WebCore::PluginDocumentParser::pluginWidgetFromDocument): |
|
27753 (WebCore::PluginDocumentParser::write): |
|
27754 (WebCore::PluginDocumentParser::createDocumentStructure): |
|
27755 (WebCore::PluginDocumentParser::writeRawData): |
|
27756 (WebCore::PluginDocumentParser::finish): |
|
27757 (WebCore::PluginDocumentParser::isWaitingForScripts): |
|
27758 (WebCore::PluginDocument::createTokenizer): |
|
27759 (WebCore::PluginDocument::pluginWidget): |
|
27760 * loader/SinkDocument.cpp: |
|
27761 (WebCore::SinkDocumentParser::SinkDocumentParser): |
|
27762 (WebCore::SinkDocumentParser::finish): |
|
27763 (WebCore::SinkDocument::createTokenizer): |
|
27764 * loader/TextDocument.cpp: |
|
27765 (WebCore::TextDocumentParser::TextDocumentParser): |
|
27766 (WebCore::TextDocumentParser::~TextDocumentParser): |
|
27767 (WebCore::TextDocumentParser::write): |
|
27768 (WebCore::TextDocumentParser::finish): |
|
27769 (WebCore::TextDocumentParser::isWaitingForScripts): |
|
27770 (WebCore::TextDocument::createTokenizer): |
|
27771 (WebCore::createTextTokenizer): |
|
27772 |
|
27773 2010-06-12 Anders Bakken <agbakken@gmail.com> |
|
27774 |
|
27775 Reviewed by Eric Seidel. |
|
27776 |
|
27777 [Qt] EventHandlerQt.cpp has coding-style errors |
|
27778 https://bugs.webkit.org/show_bug.cgi?id=40259 |
|
27779 |
|
27780 Coding style change only. |
|
27781 |
|
27782 * page/qt/EventHandlerQt.cpp: |
|
27783 (WebCore::EventHandler::eventActivatedView): |
|
27784 |
|
27785 2010-06-12 Kwang Yul Seo <skyul@company100.net> |
|
27786 |
|
27787 Reviewed by Darin Adler. |
|
27788 |
|
27789 Unify fileSystemRepresentation and filenameFromString |
|
27790 https://bugs.webkit.org/show_bug.cgi?id=40201 |
|
27791 |
|
27792 Remove filenameFromString and use fileSystemRepresentation instead |
|
27793 as they do the same job. |
|
27794 |
|
27795 * platform/FileSystem.cpp: Removed. |
|
27796 * platform/FileSystem.h: |
|
27797 * platform/efl/FileSystemEfl.cpp: |
|
27798 (WebCore::fileSystemRepresentation): |
|
27799 * platform/gtk/FileChooserGtk.cpp: |
|
27800 (WebCore::FileChooser::basenameForWidth): |
|
27801 * platform/gtk/FileSystemGtk.cpp: |
|
27802 (WebCore::fileSystemRepresentation): |
|
27803 (WebCore::filenameForDisplay): |
|
27804 (WebCore::fileExists): |
|
27805 (WebCore::deleteFile): |
|
27806 (WebCore::deleteEmptyDirectory): |
|
27807 (WebCore::getFileSize): |
|
27808 (WebCore::getFileModificationTime): |
|
27809 (WebCore::makeAllDirectories): |
|
27810 (WebCore::pathGetFileName): |
|
27811 (WebCore::directoryName): |
|
27812 (WebCore::listDirectory): |
|
27813 * platform/gtk/SharedBufferGtk.cpp: |
|
27814 (WebCore::SharedBuffer::createWithContentsOfFile): |
|
27815 * platform/network/soup/ResourceHandleSoup.cpp: |
|
27816 (WebCore::startHttp): |
|
27817 * platform/posix/SharedBufferPOSIX.cpp: |
|
27818 (WebCore::SharedBuffer::createWithContentsOfFile): |
|
27819 |
|
27820 2010-06-12 Patrick Gansterer <paroga@paroga.com> |
|
27821 |
|
27822 Reviewed by Eric Seidel. |
|
27823 |
|
27824 [Haiku] Cleanup SharedBuffer::createWithContentsOfFile |
|
27825 https://bugs.webkit.org/show_bug.cgi?id=39003 |
|
27826 |
|
27827 * platform/haiku/SharedBufferHaiku.cpp: |
|
27828 (WebCore::SharedBuffer::createWithContentsOfFile): |
|
27829 |
|
27830 2010-06-12 Anders Bakken <agbakken@gmail.com> |
|
27831 |
|
27832 Reviewed by Eric Seidel. |
|
27833 |
|
27834 [Qt] WheelEventQt.cpp has coding-style errors |
|
27835 https://bugs.webkit.org/show_bug.cgi?id=39760 |
|
27836 |
|
27837 * platform/qt/WheelEventQt.cpp: |
|
27838 (WebCore::PlatformWheelEvent::PlatformWheelEvent): |
|
27839 |
|
27840 2010-06-12 Kwang Yul Seo <skyul@company100.net> |
|
27841 |
|
27842 Reviewed by Kent Tamura. |
|
27843 |
|
27844 [BREWMP] Don't include POSIX headers in WebCorePrefix.h |
|
27845 https://bugs.webkit.org/show_bug.cgi?id=39411 |
|
27846 |
|
27847 When building for BREW MP, don't include POSIX headers: |
|
27848 <fcntl.h>, <pthread.h> and <sys/types.h>. |
|
27849 |
|
27850 * WebCorePrefix.h: |
|
27851 |
|
27852 2010-06-11 Eric Seidel <eric@webkit.org> |
|
27853 |
|
27854 Reviewed by Adam Barth. |
|
27855 |
|
27856 Rename the rest of the *Tokenizer classes to *DocumentParser |
|
27857 https://bugs.webkit.org/show_bug.cgi?id=40507 |
|
27858 |
|
27859 This search/replace was done by do-webcore-rename. |
|
27860 Just looking for a rubber stamp. |
|
27861 |
|
27862 XMLTokenizer => XMLDocumentParser |
|
27863 XMLTokenizerLibxml2 => XMLDocumentParserLibxml2 |
|
27864 XMLTokenizerQt => XMLDocumentParserQt |
|
27865 XMLTokenizerScope => XMLDocumentParserScope |
|
27866 HTML5Tokenizer => HTML5DocumentParser |
|
27867 HTMLTokenizer => HTMLDocumentParser |
|
27868 |
|
27869 No functional change, thus no tests. |
|
27870 |
|
27871 * Android.mk: |
|
27872 * CMakeLists.txt: |
|
27873 * GNUmakefile.am: |
|
27874 * WebCore.gypi: |
|
27875 * WebCore.pro: |
|
27876 * WebCore.vcproj/WebCore.vcproj: |
|
27877 * WebCore.xcodeproj/project.pbxproj: |
|
27878 * css/CSSStyleSheet.cpp: |
|
27879 (WebCore::CSSStyleSheet::checkLoaded): |
|
27880 * dom/Document.cpp: |
|
27881 (WebCore::Document::createTokenizer): |
|
27882 (WebCore::Document::write): |
|
27883 * dom/Document.h: |
|
27884 (WebCore::Document::setXMLEncoding): |
|
27885 * dom/DocumentParser.h: |
|
27886 (WebCore::DocumentParser::asHTMLTokenizer): |
|
27887 * dom/Element.cpp: |
|
27888 * dom/ProcessingInstruction.cpp: |
|
27889 * dom/XMLDocumentParser.cpp: Added. |
|
27890 (WebCore::XMLDocumentParser::isWMLDocument): |
|
27891 (WebCore::XMLDocumentParser::pushCurrentNode): |
|
27892 (WebCore::XMLDocumentParser::popCurrentNode): |
|
27893 (WebCore::XMLDocumentParser::clearCurrentNodeStack): |
|
27894 (WebCore::XMLDocumentParser::write): |
|
27895 (WebCore::XMLDocumentParser::handleError): |
|
27896 (WebCore::XMLDocumentParser::enterText): |
|
27897 (WebCore::toString): |
|
27898 (WebCore::XMLDocumentParser::exitText): |
|
27899 (WebCore::XMLDocumentParser::end): |
|
27900 (WebCore::XMLDocumentParser::finish): |
|
27901 (WebCore::createXHTMLParserErrorHeader): |
|
27902 (WebCore::XMLDocumentParser::insertErrorMessageBlock): |
|
27903 (WebCore::XMLDocumentParser::notifyFinished): |
|
27904 (WebCore::XMLDocumentParser::isWaitingForScripts): |
|
27905 (WebCore::XMLDocumentParser::pauseParsing): |
|
27906 * dom/XMLDocumentParser.h: Added. |
|
27907 (WebCore::XMLParserContext::context): |
|
27908 (WebCore::XMLParserContext::XMLParserContext): |
|
27909 (WebCore::XMLDocumentParser::): |
|
27910 (WebCore::XMLDocumentParser::setIsXHTMLDocument): |
|
27911 (WebCore::XMLDocumentParser::isXHTMLDocument): |
|
27912 (WebCore::XMLDocumentParser::setIsXHTMLMPDocument): |
|
27913 (WebCore::XMLDocumentParser::isXHTMLMPDocument): |
|
27914 (WebCore::XMLDocumentParser::wellFormed): |
|
27915 (WebCore::XMLDocumentParser::context): |
|
27916 * dom/XMLDocumentParserLibxml2.cpp: Added. |
|
27917 (WebCore::PendingCallbacks::~PendingCallbacks): |
|
27918 (WebCore::PendingCallbacks::appendStartElementNSCallback): |
|
27919 (WebCore::PendingCallbacks::appendEndElementNSCallback): |
|
27920 (WebCore::PendingCallbacks::appendCharactersCallback): |
|
27921 (WebCore::PendingCallbacks::appendProcessingInstructionCallback): |
|
27922 (WebCore::PendingCallbacks::appendCDATABlockCallback): |
|
27923 (WebCore::PendingCallbacks::appendCommentCallback): |
|
27924 (WebCore::PendingCallbacks::appendInternalSubsetCallback): |
|
27925 (WebCore::PendingCallbacks::appendErrorCallback): |
|
27926 (WebCore::PendingCallbacks::callAndRemoveFirstCallback): |
|
27927 (WebCore::PendingCallbacks::isEmpty): |
|
27928 (WebCore::PendingCallbacks::PendingCallback::~PendingCallback): |
|
27929 (WebCore::PendingCallbacks::PendingStartElementNSCallback::~PendingStartElementNSCallback): |
|
27930 (WebCore::PendingCallbacks::PendingStartElementNSCallback::call): |
|
27931 (WebCore::PendingCallbacks::PendingEndElementNSCallback::call): |
|
27932 (WebCore::PendingCallbacks::PendingCharactersCallback::~PendingCharactersCallback): |
|
27933 (WebCore::PendingCallbacks::PendingCharactersCallback::call): |
|
27934 (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::~PendingProcessingInstructionCallback): |
|
27935 (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::call): |
|
27936 (WebCore::PendingCallbacks::PendingCDATABlockCallback::~PendingCDATABlockCallback): |
|
27937 (WebCore::PendingCallbacks::PendingCDATABlockCallback::call): |
|
27938 (WebCore::PendingCallbacks::PendingCommentCallback::~PendingCommentCallback): |
|
27939 (WebCore::PendingCallbacks::PendingCommentCallback::call): |
|
27940 (WebCore::PendingCallbacks::PendingInternalSubsetCallback::~PendingInternalSubsetCallback): |
|
27941 (WebCore::PendingCallbacks::PendingInternalSubsetCallback::call): |
|
27942 (WebCore::PendingCallbacks::): |
|
27943 (WebCore::matchFunc): |
|
27944 (WebCore::OffsetBuffer::OffsetBuffer): |
|
27945 (WebCore::OffsetBuffer::readOutBytes): |
|
27946 (WebCore::shouldAllowExternalLoad): |
|
27947 (WebCore::openFunc): |
|
27948 (WebCore::readFunc): |
|
27949 (WebCore::writeFunc): |
|
27950 (WebCore::closeFunc): |
|
27951 (WebCore::errorFunc): |
|
27952 (WebCore::XMLParserContext::createStringParser): |
|
27953 (WebCore::XMLParserContext::createMemoryParser): |
|
27954 (WebCore::XMLDocumentParser::XMLDocumentParser): |
|
27955 (WebCore::XMLParserContext::~XMLParserContext): |
|
27956 (WebCore::XMLDocumentParser::~XMLDocumentParser): |
|
27957 (WebCore::XMLDocumentParser::doWrite): |
|
27958 (WebCore::toString): |
|
27959 (WebCore::handleElementNamespaces): |
|
27960 (WebCore::handleElementAttributes): |
|
27961 (WebCore::XMLDocumentParser::startElementNs): |
|
27962 (WebCore::XMLDocumentParser::endElementNs): |
|
27963 (WebCore::XMLDocumentParser::characters): |
|
27964 (WebCore::XMLDocumentParser::error): |
|
27965 (WebCore::XMLDocumentParser::processingInstruction): |
|
27966 (WebCore::XMLDocumentParser::cdataBlock): |
|
27967 (WebCore::XMLDocumentParser::comment): |
|
27968 (WebCore::XMLDocumentParser::startDocument): |
|
27969 (WebCore::XMLDocumentParser::endDocument): |
|
27970 (WebCore::XMLDocumentParser::internalSubset): |
|
27971 (WebCore::getTokenizer): |
|
27972 (WebCore::hackAroundLibXMLEntityBug): |
|
27973 (WebCore::startElementNsHandler): |
|
27974 (WebCore::endElementNsHandler): |
|
27975 (WebCore::charactersHandler): |
|
27976 (WebCore::processingInstructionHandler): |
|
27977 (WebCore::cdataBlockHandler): |
|
27978 (WebCore::commentHandler): |
|
27979 (WebCore::warningHandler): |
|
27980 (WebCore::fatalErrorHandler): |
|
27981 (WebCore::normalErrorHandler): |
|
27982 (WebCore::): |
|
27983 (WebCore::sharedXHTMLEntity): |
|
27984 (WebCore::getXHTMLEntity): |
|
27985 (WebCore::getEntityHandler): |
|
27986 (WebCore::startDocumentHandler): |
|
27987 (WebCore::endDocumentHandler): |
|
27988 (WebCore::internalSubsetHandler): |
|
27989 (WebCore::externalSubsetHandler): |
|
27990 (WebCore::ignorableWhitespaceHandler): |
|
27991 (WebCore::XMLDocumentParser::initializeParserContext): |
|
27992 (WebCore::XMLDocumentParser::doEnd): |
|
27993 (WebCore::xmlDocPtrForString): |
|
27994 (WebCore::XMLDocumentParser::lineNumber): |
|
27995 (WebCore::XMLDocumentParser::columnNumber): |
|
27996 (WebCore::XMLDocumentParser::stopParsing): |
|
27997 (WebCore::XMLDocumentParser::resumeParsing): |
|
27998 (WebCore::parseXMLDocumentFragment): |
|
27999 (WebCore::attributesStartElementNsHandler): |
|
28000 (WebCore::parseAttributes): |
|
28001 * dom/XMLDocumentParserQt.cpp: Added. |
|
28002 (WebCore::EntityResolver::resolveUndeclaredEntity): |
|
28003 (WebCore::XMLDocumentParser::XMLDocumentParser): |
|
28004 (WebCore::XMLDocumentParser::~XMLDocumentParser): |
|
28005 (WebCore::XMLDocumentParser::doWrite): |
|
28006 (WebCore::XMLDocumentParser::initializeParserContext): |
|
28007 (WebCore::XMLDocumentParser::doEnd): |
|
28008 (WebCore::XMLDocumentParser::lineNumber): |
|
28009 (WebCore::XMLDocumentParser::columnNumber): |
|
28010 (WebCore::XMLDocumentParser::stopParsing): |
|
28011 (WebCore::XMLDocumentParser::resumeParsing): |
|
28012 (WebCore::parseXMLDocumentFragment): |
|
28013 (WebCore::attributesStartElementNsHandler): |
|
28014 (WebCore::parseAttributes): |
|
28015 (WebCore::prefixFromQName): |
|
28016 (WebCore::handleElementNamespaces): |
|
28017 (WebCore::handleElementAttributes): |
|
28018 (WebCore::XMLDocumentParser::parse): |
|
28019 (WebCore::XMLDocumentParser::startDocument): |
|
28020 (WebCore::XMLDocumentParser::parseStartElement): |
|
28021 (WebCore::XMLDocumentParser::parseEndElement): |
|
28022 (WebCore::XMLDocumentParser::parseCharacters): |
|
28023 (WebCore::XMLDocumentParser::parseProcessingInstruction): |
|
28024 (WebCore::XMLDocumentParser::parseCdata): |
|
28025 (WebCore::XMLDocumentParser::parseComment): |
|
28026 (WebCore::XMLDocumentParser::endDocument): |
|
28027 (WebCore::XMLDocumentParser::hasError): |
|
28028 (WebCore::XMLDocumentParser::parseDtd): |
|
28029 * dom/XMLDocumentParserScope.cpp: Added. |
|
28030 (WebCore::XMLDocumentParserScope::XMLDocumentParserScope): |
|
28031 (WebCore::XMLDocumentParserScope::~XMLDocumentParserScope): |
|
28032 * dom/XMLDocumentParserScope.h: Added. |
|
28033 * dom/XMLTokenizer.cpp: Removed. |
|
28034 * dom/XMLTokenizer.h: Removed. |
|
28035 * dom/XMLTokenizerLibxml2.cpp: Removed. |
|
28036 * dom/XMLTokenizerQt.cpp: Removed. |
|
28037 * dom/XMLTokenizerScope.cpp: Removed. |
|
28038 * dom/XMLTokenizerScope.h: Removed. |
|
28039 * html/HTML5DocumentParser.cpp: Added. |
|
28040 (WebCore::): |
|
28041 (WebCore::HTML5DocumentParser::HTML5DocumentParser): |
|
28042 (WebCore::HTML5DocumentParser::~HTML5DocumentParser): |
|
28043 (WebCore::HTML5DocumentParser::begin): |
|
28044 (WebCore::HTML5DocumentParser::pumpLexerIfPossible): |
|
28045 (WebCore::HTML5DocumentParser::pumpLexer): |
|
28046 (WebCore::HTML5DocumentParser::write): |
|
28047 (WebCore::HTML5DocumentParser::end): |
|
28048 (WebCore::HTML5DocumentParser::attemptToEnd): |
|
28049 (WebCore::HTML5DocumentParser::endIfDelayed): |
|
28050 (WebCore::HTML5DocumentParser::finish): |
|
28051 (WebCore::HTML5DocumentParser::executingScript): |
|
28052 (WebCore::HTML5DocumentParser::lineNumber): |
|
28053 (WebCore::HTML5DocumentParser::columnNumber): |
|
28054 (WebCore::HTML5DocumentParser::htmlParser): |
|
28055 (WebCore::HTML5DocumentParser::isWaitingForScripts): |
|
28056 (WebCore::HTML5DocumentParser::resumeParsingAfterScriptExecution): |
|
28057 (WebCore::HTML5DocumentParser::watchForLoad): |
|
28058 (WebCore::HTML5DocumentParser::stopWatchingForLoad): |
|
28059 (WebCore::HTML5DocumentParser::shouldLoadExternalScriptFromSrc): |
|
28060 (WebCore::HTML5DocumentParser::executeScript): |
|
28061 (WebCore::HTML5DocumentParser::notifyFinished): |
|
28062 (WebCore::HTML5DocumentParser::executeScriptsWaitingForStylesheets): |
|
28063 (WebCore::HTML5DocumentParser::script): |
|
28064 * html/HTML5DocumentParser.h: Added. |
|
28065 (WebCore::HTML5DocumentParser::InputStream::InputStream): |
|
28066 (WebCore::HTML5DocumentParser::InputStream::appendToEnd): |
|
28067 (WebCore::HTML5DocumentParser::InputStream::insertAtCurrentInsertionPoint): |
|
28068 (WebCore::HTML5DocumentParser::InputStream::close): |
|
28069 (WebCore::HTML5DocumentParser::InputStream::current): |
|
28070 (WebCore::HTML5DocumentParser::InputStream::splitInto): |
|
28071 (WebCore::HTML5DocumentParser::InputStream::mergeFrom): |
|
28072 (WebCore::HTML5DocumentParser::InsertionPointRecord::InsertionPointRecord): |
|
28073 (WebCore::HTML5DocumentParser::InsertionPointRecord::~InsertionPointRecord): |
|
28074 (WebCore::HTML5DocumentParser::inWrite): |
|
28075 * html/HTML5Lexer.h: |
|
28076 (WebCore::HTML5Lexer::columnNumber): |
|
28077 * html/HTML5Tokenizer.cpp: Removed. |
|
28078 * html/HTML5Tokenizer.h: Removed. |
|
28079 * html/HTML5TreeBuilder.cpp: |
|
28080 * html/HTMLDocument.cpp: |
|
28081 (WebCore::HTMLDocument::createTokenizer): |
|
28082 * html/HTMLDocumentParser.cpp: Added. |
|
28083 (WebCore::): |
|
28084 (WebCore::fixUpChar): |
|
28085 (WebCore::tagMatch): |
|
28086 (WebCore::Token::addAttribute): |
|
28087 (WebCore::HTMLDocumentParser::HTMLDocumentParser): |
|
28088 (WebCore::HTMLDocumentParser::reset): |
|
28089 (WebCore::HTMLDocumentParser::begin): |
|
28090 (WebCore::HTMLDocumentParser::setForceSynchronous): |
|
28091 (WebCore::HTMLDocumentParser::processListing): |
|
28092 (WebCore::HTMLDocumentParser::parseNonHTMLText): |
|
28093 (WebCore::HTMLDocumentParser::scriptHandler): |
|
28094 (WebCore::HTMLDocumentParser::scriptExecution): |
|
28095 (WebCore::HTMLDocumentParser::parseComment): |
|
28096 (WebCore::HTMLDocumentParser::parseServer): |
|
28097 (WebCore::HTMLDocumentParser::parseProcessingInstruction): |
|
28098 (WebCore::HTMLDocumentParser::parseText): |
|
28099 (WebCore::HTMLDocumentParser::parseEntity): |
|
28100 (WebCore::HTMLDocumentParser::parseDoctype): |
|
28101 (WebCore::HTMLDocumentParser::parseTag): |
|
28102 (WebCore::HTMLDocumentParser::continueProcessing): |
|
28103 (WebCore::HTMLDocumentParser::advance): |
|
28104 (WebCore::HTMLDocumentParser::willWriteHTML): |
|
28105 (WebCore::HTMLDocumentParser::didWriteHTML): |
|
28106 (WebCore::HTMLDocumentParser::write): |
|
28107 (WebCore::HTMLDocumentParser::stopParsing): |
|
28108 (WebCore::HTMLDocumentParser::processingData): |
|
28109 (WebCore::HTMLDocumentParser::timerFired): |
|
28110 (WebCore::HTMLDocumentParser::end): |
|
28111 (WebCore::HTMLDocumentParser::finish): |
|
28112 (WebCore::HTMLDocumentParser::processToken): |
|
28113 (WebCore::HTMLDocumentParser::processDoctypeToken): |
|
28114 (WebCore::HTMLDocumentParser::~HTMLDocumentParser): |
|
28115 (WebCore::HTMLDocumentParser::enlargeBuffer): |
|
28116 (WebCore::HTMLDocumentParser::enlargeScriptBuffer): |
|
28117 (WebCore::HTMLDocumentParser::executeScriptsWaitingForStylesheets): |
|
28118 (WebCore::HTMLDocumentParser::notifyFinished): |
|
28119 (WebCore::HTMLDocumentParser::executeExternalScriptsIfReady): |
|
28120 (WebCore::HTMLDocumentParser::executeExternalScriptsTimerFired): |
|
28121 (WebCore::HTMLDocumentParser::continueExecutingExternalScripts): |
|
28122 (WebCore::HTMLDocumentParser::isWaitingForScripts): |
|
28123 (WebCore::HTMLDocumentParser::setSrc): |
|
28124 (WebCore::parseHTMLDocumentFragment): |
|
28125 (WebCore::decodeNamedEntity): |
|
28126 * html/HTMLDocumentParser.h: Added. |
|
28127 (WebCore::Token::Token): |
|
28128 (WebCore::Token::~Token): |
|
28129 (WebCore::Token::isOpenTag): |
|
28130 (WebCore::Token::isCloseTag): |
|
28131 (WebCore::Token::reset): |
|
28132 (WebCore::Token::addViewSourceChar): |
|
28133 (WebCore::): |
|
28134 (WebCore::DoctypeToken::DoctypeToken): |
|
28135 (WebCore::DoctypeToken::reset): |
|
28136 (WebCore::DoctypeToken::state): |
|
28137 (WebCore::DoctypeToken::setState): |
|
28138 (WebCore::HTMLDocumentParser::forceSynchronous): |
|
28139 (WebCore::HTMLDocumentParser::executingScript): |
|
28140 (WebCore::HTMLDocumentParser::lineNumber): |
|
28141 (WebCore::HTMLDocumentParser::columnNumber): |
|
28142 (WebCore::HTMLDocumentParser::processingContentWrittenByScript): |
|
28143 (WebCore::HTMLDocumentParser::htmlParser): |
|
28144 (WebCore::HTMLDocumentParser::asHTMLTokenizer): |
|
28145 (WebCore::HTMLDocumentParser::checkBuffer): |
|
28146 (WebCore::HTMLDocumentParser::checkScriptBuffer): |
|
28147 (WebCore::HTMLDocumentParser::): |
|
28148 (WebCore::HTMLDocumentParser::State::State): |
|
28149 (WebCore::HTMLDocumentParser::State::tagState): |
|
28150 (WebCore::HTMLDocumentParser::State::setTagState): |
|
28151 (WebCore::HTMLDocumentParser::State::entityState): |
|
28152 (WebCore::HTMLDocumentParser::State::setEntityState): |
|
28153 (WebCore::HTMLDocumentParser::State::inScript): |
|
28154 (WebCore::HTMLDocumentParser::State::setInScript): |
|
28155 (WebCore::HTMLDocumentParser::State::inStyle): |
|
28156 (WebCore::HTMLDocumentParser::State::setInStyle): |
|
28157 (WebCore::HTMLDocumentParser::State::inXmp): |
|
28158 (WebCore::HTMLDocumentParser::State::setInXmp): |
|
28159 (WebCore::HTMLDocumentParser::State::inTitle): |
|
28160 (WebCore::HTMLDocumentParser::State::setInTitle): |
|
28161 (WebCore::HTMLDocumentParser::State::inIFrame): |
|
28162 (WebCore::HTMLDocumentParser::State::setInIFrame): |
|
28163 (WebCore::HTMLDocumentParser::State::inPlainText): |
|
28164 (WebCore::HTMLDocumentParser::State::setInPlainText): |
|
28165 (WebCore::HTMLDocumentParser::State::inProcessingInstruction): |
|
28166 (WebCore::HTMLDocumentParser::State::setInProcessingInstruction): |
|
28167 (WebCore::HTMLDocumentParser::State::inComment): |
|
28168 (WebCore::HTMLDocumentParser::State::setInComment): |
|
28169 (WebCore::HTMLDocumentParser::State::inDoctype): |
|
28170 (WebCore::HTMLDocumentParser::State::setInDoctype): |
|
28171 (WebCore::HTMLDocumentParser::State::inTextArea): |
|
28172 (WebCore::HTMLDocumentParser::State::setInTextArea): |
|
28173 (WebCore::HTMLDocumentParser::State::escaped): |
|
28174 (WebCore::HTMLDocumentParser::State::setEscaped): |
|
28175 (WebCore::HTMLDocumentParser::State::inServer): |
|
28176 (WebCore::HTMLDocumentParser::State::setInServer): |
|
28177 (WebCore::HTMLDocumentParser::State::skipLF): |
|
28178 (WebCore::HTMLDocumentParser::State::setSkipLF): |
|
28179 (WebCore::HTMLDocumentParser::State::startTag): |
|
28180 (WebCore::HTMLDocumentParser::State::setStartTag): |
|
28181 (WebCore::HTMLDocumentParser::State::discardLF): |
|
28182 (WebCore::HTMLDocumentParser::State::setDiscardLF): |
|
28183 (WebCore::HTMLDocumentParser::State::allowYield): |
|
28184 (WebCore::HTMLDocumentParser::State::setAllowYield): |
|
28185 (WebCore::HTMLDocumentParser::State::loadingExtScript): |
|
28186 (WebCore::HTMLDocumentParser::State::setLoadingExtScript): |
|
28187 (WebCore::HTMLDocumentParser::State::forceSynchronous): |
|
28188 (WebCore::HTMLDocumentParser::State::setForceSynchronous): |
|
28189 (WebCore::HTMLDocumentParser::State::inAnyNonHTMLText): |
|
28190 (WebCore::HTMLDocumentParser::State::hasTagState): |
|
28191 (WebCore::HTMLDocumentParser::State::hasEntityState): |
|
28192 (WebCore::HTMLDocumentParser::State::needsSpecialWriteHandling): |
|
28193 (WebCore::HTMLDocumentParser::State::): |
|
28194 (WebCore::HTMLDocumentParser::State::setBit): |
|
28195 (WebCore::HTMLDocumentParser::State::testBit): |
|
28196 * html/HTMLElement.cpp: |
|
28197 * html/HTMLFormControlElement.cpp: |
|
28198 * html/HTMLParser.cpp: |
|
28199 (WebCore::HTMLParser::reportErrorToConsole): |
|
28200 * html/HTMLParser.h: |
|
28201 * html/HTMLTokenizer.cpp: Removed. |
|
28202 * html/HTMLTokenizer.h: Removed. |
|
28203 * html/HTMLViewSourceDocument.cpp: |
|
28204 (WebCore::HTMLViewSourceDocument::createTokenizer): |
|
28205 (WebCore::HTMLViewSourceDocument::addViewSourceToken): |
|
28206 * html/HTMLViewSourceDocument.h: |
|
28207 * loader/DocumentLoader.cpp: |
|
28208 * loader/FTPDirectoryDocument.cpp: |
|
28209 (WebCore::FTPDirectoryTokenizer::FTPDirectoryTokenizer): |
|
28210 (WebCore::FTPDirectoryTokenizer::loadDocumentTemplate): |
|
28211 (WebCore::FTPDirectoryTokenizer::finish): |
|
28212 * loader/FrameLoader.cpp: |
|
28213 * loader/ImageDocument.cpp: |
|
28214 * loader/MediaDocument.cpp: |
|
28215 * loader/PluginDocument.cpp: |
|
28216 * loader/TextDocument.cpp: |
|
28217 * page/XSSAuditor.h: |
|
28218 * svg/SVGDocumentExtensions.cpp: |
|
28219 * wml/WMLErrorHandling.cpp: |
|
28220 (WebCore::reportWMLError): |
|
28221 * xml/XSLStyleSheetLibxslt.cpp: |
|
28222 (WebCore::XSLStyleSheet::parseString): |
|
28223 * xml/XSLTProcessor.cpp: |
|
28224 * xml/XSLTProcessorLibxslt.cpp: |
|
28225 |
|
28226 2010-06-12 Andreas Kling <andreas.kling@nokia.com> |
|
28227 |
|
28228 Reviewed by Darin Adler. |
|
28229 |
|
28230 Window object should have CanvasGradient and CanvasPattern |
|
28231 https://bugs.webkit.org/show_bug.cgi?id=40394 |
|
28232 |
|
28233 This fixes the following tests: |
|
28234 - canvas/philip/tests/2d.gradient.object.return.html |
|
28235 - canvas/philip/tests/2d.pattern.basic.type.html |
|
28236 |
|
28237 * html/canvas/CanvasGradient.idl: |
|
28238 * html/canvas/CanvasPattern.idl: |
|
28239 * page/DOMWindow.idl: |
|
28240 |
|
28241 2010-06-12 Dan Bernstein <mitz@apple.com> |
|
28242 |
|
28243 Reviewed by Oliver Hunt. |
|
28244 |
|
28245 <rdar://problem/8025267> REGRESSION (Safari 4-TOT): Crash when a frame’s resize handler removes the frame |
|
28246 https://bugs.webkit.org/show_bug.cgi?id=40534 |
|
28247 |
|
28248 Test: fast/replaced/frame-removed-during-resize.html |
|
28249 |
|
28250 * rendering/RenderWidget.cpp: |
|
28251 (WebCore::RenderWidget::updateWidgetPosition): Null-check m_widget, since resizing the widget |
|
28252 may trigger an iframe’s resize handler, which may destroy the widget. |
|
28253 |
|
28254 2010-06-12 Dean Jackson <dino@apple.com> |
|
28255 |
|
28256 Reviewed by Darin Adler. |
|
28257 |
|
28258 Animation keyframe timing functions are applying incorrectly |
|
28259 https://bugs.webkit.org/show_bug.cgi?id=38963 |
|
28260 |
|
28261 When copying RenderStyles, we have to clone the AnimationList so that each keyframe |
|
28262 can have its own timing function. |
|
28263 |
|
28264 Tests: animations/keyframe-timing-functions-transform.html |
|
28265 animations/keyframe-timing-functions2.html |
|
28266 |
|
28267 * platform/animation/Animation.h: |
|
28268 (WebCore::Animation::create): |
|
28269 * platform/animation/AnimationList.cpp: |
|
28270 (WebCore::AnimationList::AnimationList): |
|
28271 * platform/animation/AnimationList.h: |
|
28272 (WebCore::AnimationList::AnimationList): |
|
28273 |
|
28274 2010-06-12 Dan Bernstein <mitz@apple.com> |
|
28275 |
|
28276 Reviewed by Dave Hyatt. |
|
28277 |
|
28278 <rdar://problem/7882140> -webkit-column-break-* properties don’t do anything |
|
28279 https://bugs.webkit.org/show_bug.cgi?id=40531 |
|
28280 |
|
28281 Test: fast/multicol/break-properties.html |
|
28282 |
|
28283 * rendering/RenderBlock.cpp: |
|
28284 (WebCore::RenderBlock::paintChildren): Check for -webkit-column-break-{before,after}: always |
|
28285 and -webkit-column-break-inside: avoid when doing column layout. |
|
28286 |
|
28287 2010-06-13 Robert Hogan <robert@webkit.org> |
|
28288 |
|
28289 Reviewed by Alexey Proskuryakov. |
|
28290 |
|
28291 FrameLoader::clear() clears JS objects that cached pages later rely on |
|
28292 |
|
28293 https://bugs.webkit.org/show_bug.cgi?id=37725 |
|
28294 https://bugs.webkit.org/show_bug.cgi?id=31626 |
|
28295 |
|
28296 Fix the following tests for Qt: |
|
28297 |
|
28298 fast/events/pageshow-pagehide-on-back-cached.html |
|
28299 fast/events/pageshow-pagehide-on-back-cached-with-frames.html |
|
28300 fast/loader/input-element-page-cache-crash.html |
|
28301 fast/dom/Window/timer-resume-on-navigation-back.html |
|
28302 loader/go-back-to-different-window-size.html |
|
28303 fast/dom/javascript-url-crash-function.html |
|
28304 fast/dom/location-new-window-no-crash.html |
|
28305 http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-window-open.html |
|
28306 |
|
28307 which currently fail because the page's Qt-bindings runtime objects are |
|
28308 cleared when navigating away from the page containing them. |
|
28309 |
|
28310 Track Qt-bindings objects in a separate ScriptController::cacheableRootBindingObject(). |
|
28311 RuntimeObjects tracked by this root object will not get invalidated on page navigations, |
|
28312 so they will still be available when the pages containing them are retrieved from the |
|
28313 b/f cache. |
|
28314 |
|
28315 This means the Qt bindings objects will only get cleared on Frame::pageDestroyed(). |
|
28316 |
|
28317 * bindings/js/ScriptController.cpp: |
|
28318 (WebCore::ScriptController::~ScriptController): |
|
28319 (WebCore::ScriptController::cacheableBindingRootObject): |
|
28320 * bindings/js/ScriptController.h: |
|
28321 |
|
28322 2010-06-12 Kent Tamura <tkent@chromium.org> |
|
28323 |
|
28324 Reviewed by Darin Adler. |
|
28325 |
|
28326 REGRESSION: Can't submit a form with <input type=radio required> |
|
28327 https://bugs.webkit.org/show_bug.cgi?id=40429 |
|
28328 |
|
28329 Validity state was not updated correctly for radio buttons, and it |
|
28330 prevents form submission even if a radio button group has a |
|
28331 checked radio button. |
|
28332 |
|
28333 Test: fast/forms/interactive-validation-required-radio.html |
|
28334 |
|
28335 * html/HTMLInputElement.cpp: |
|
28336 (WebCore::HTMLInputElement::updateCheckedRadioButtons): |
|
28337 Call setNeedsValidityCheck() for all of radio buttons in the same group |
|
28338 to update validity state. |
|
28339 (WebCore::HTMLInputElement::setChecked): |
|
28340 Remove setNeedsValidityCheck() call because it is called in |
|
28341 updateCheckedRadioButtons(). |
|
28342 |
|
28343 2010-06-12 Kent Tamura <tkent@chromium.org> |
|
28344 |
|
28345 Reviewed by Dimitri Glazkov. |
|
28346 |
|
28347 Disable interactive form validation in non-strict modes |
|
28348 https://bugs.webkit.org/show_bug.cgi?id=40218 |
|
28349 |
|
28350 The interactive validation feature of HTML5 is not compatible with |
|
28351 HTML4, and users and page authors don't expect existing sites work |
|
28352 differently in WebKit. For example, maxlength and required attributes |
|
28353 in existing sites unexpectedly prevented form submission. |
|
28354 So, we disable the interactive validation feature in non-strict |
|
28355 modes to improve compatibility. |
|
28356 |
|
28357 Test: fast/forms/interactive-validation-compat-mode.html |
|
28358 fast/forms/interactive-validation-html4.html |
|
28359 |
|
28360 * html/HTMLFormElement.cpp: |
|
28361 (WebCore::HTMLFormElement::validateInteractively): |
|
28362 Process interactive validation only in the strict mode. |
|
28363 |
|
28364 2010-06-12 Eric Seidel <eric@webkit.org> |
|
28365 |
|
28366 Reviewed by David Levin. |
|
28367 |
|
28368 Rename Tokenizer to DocumentParser to match what it actually does |
|
28369 https://bugs.webkit.org/show_bug.cgi?id=40504 |
|
28370 |
|
28371 The rename was entirely done by do-webcore-rename. |
|
28372 The only manual changes were removing out-dated comments |
|
28373 and fixing Tokenizer_h to DocumentParser_h in the header guards. |
|
28374 |
|
28375 I'll do all the rest of the renames (like the tokenizer subclasses |
|
28376 and the tokenizer() createTokenizer() methods) in separate changes. |
|
28377 |
|
28378 No functional change, thus no tests. |
|
28379 |
|
28380 * GNUmakefile.am: |
|
28381 * WebCore.gypi: |
|
28382 * WebCore.vcproj/WebCore.vcproj: |
|
28383 * WebCore.xcodeproj/project.pbxproj: |
|
28384 * bindings/js/JSHTMLDocumentCustom.cpp: |
|
28385 * bindings/v8/ScriptEventListener.cpp: |
|
28386 * dom/Document.cpp: |
|
28387 (WebCore::Document::createTokenizer): |
|
28388 * dom/Document.h: |
|
28389 (WebCore::Document::tokenizer): |
|
28390 * dom/DocumentParser.h: Added. |
|
28391 (WebCore::DocumentParser::~DocumentParser): |
|
28392 (WebCore::DocumentParser::stopParsing): |
|
28393 (WebCore::DocumentParser::processingData): |
|
28394 (WebCore::DocumentParser::executingScript): |
|
28395 (WebCore::DocumentParser::wantsRawData): |
|
28396 (WebCore::DocumentParser::writeRawData): |
|
28397 (WebCore::DocumentParser::inViewSourceMode): |
|
28398 (WebCore::DocumentParser::setInViewSourceMode): |
|
28399 (WebCore::DocumentParser::wellFormed): |
|
28400 (WebCore::DocumentParser::lineNumber): |
|
28401 (WebCore::DocumentParser::columnNumber): |
|
28402 (WebCore::DocumentParser::executeScriptsWaitingForStylesheets): |
|
28403 (WebCore::DocumentParser::htmlParser): |
|
28404 (WebCore::DocumentParser::asHTMLTokenizer): |
|
28405 (WebCore::DocumentParser::xssAuditor): |
|
28406 (WebCore::DocumentParser::setXSSAuditor): |
|
28407 (WebCore::DocumentParser::DocumentParser): |
|
28408 * dom/Tokenizer.h: Removed. |
|
28409 * dom/ViewportArguments.cpp: |
|
28410 (WebCore::reportViewportWarning): |
|
28411 * dom/XMLTokenizer.h: |
|
28412 * dom/XMLTokenizerLibxml2.cpp: |
|
28413 (WebCore::XMLTokenizer::stopParsing): |
|
28414 * dom/XMLTokenizerQt.cpp: |
|
28415 (WebCore::XMLTokenizer::stopParsing): |
|
28416 * html/HTML5Tokenizer.cpp: |
|
28417 (WebCore::HTML5Tokenizer::HTML5Tokenizer): |
|
28418 * html/HTML5Tokenizer.h: |
|
28419 * html/HTMLDocument.cpp: |
|
28420 (WebCore::HTMLDocument::createTokenizer): |
|
28421 * html/HTMLDocument.h: |
|
28422 * html/HTMLFormControlElement.cpp: |
|
28423 (WebCore::HTMLFormControlElement::removedFromTree): |
|
28424 * html/HTMLTokenizer.cpp: |
|
28425 (WebCore::HTMLTokenizer::HTMLTokenizer): |
|
28426 (WebCore::HTMLTokenizer::stopParsing): |
|
28427 * html/HTMLTokenizer.h: |
|
28428 * html/HTMLViewSourceDocument.cpp: |
|
28429 (WebCore::HTMLViewSourceDocument::createTokenizer): |
|
28430 * html/HTMLViewSourceDocument.h: |
|
28431 * loader/DocumentLoader.cpp: |
|
28432 (WebCore::DocumentLoader::isLoadingInAPISense): |
|
28433 * loader/DocumentWriter.cpp: |
|
28434 (WebCore::DocumentWriter::addData): |
|
28435 * loader/FTPDirectoryDocument.cpp: |
|
28436 (WebCore::FTPDirectoryDocument::createTokenizer): |
|
28437 * loader/FTPDirectoryDocument.h: |
|
28438 * loader/ImageDocument.cpp: |
|
28439 (WebCore::ImageDocument::createTokenizer): |
|
28440 * loader/ImageDocument.h: |
|
28441 * loader/MediaDocument.cpp: |
|
28442 (WebCore::MediaDocument::createTokenizer): |
|
28443 * loader/MediaDocument.h: |
|
28444 * loader/PluginDocument.cpp: |
|
28445 (WebCore::PluginDocument::createTokenizer): |
|
28446 * loader/PluginDocument.h: |
|
28447 * loader/SinkDocument.cpp: |
|
28448 (WebCore::SinkDocument::createTokenizer): |
|
28449 * loader/SinkDocument.h: |
|
28450 * loader/TextDocument.cpp: |
|
28451 (WebCore::TextTokenizer::TextTokenizer): |
|
28452 (WebCore::TextDocument::createTokenizer): |
|
28453 (WebCore::createTextTokenizer): |
|
28454 * loader/TextDocument.h: |
|
28455 * wml/WMLDocument.cpp: |
|
28456 (WebCore::WMLDocument::finishedParsing): |
|
28457 |
|
28458 2010-06-12 Eric Seidel <eric@webkit.org> |
|
28459 |
|
28460 Reviewed by Adam Barth. |
|
28461 |
|
28462 HTML5Tokenizer needs to tell the InspectorTimelineAgent before and after it writes |
|
28463 https://bugs.webkit.org/show_bug.cgi?id=40417 |
|
28464 |
|
28465 This "fixes" inspector/timeline-script-tag-1.html. HTML5 results |
|
28466 differ from the old parser for expected reasons. |
|
28467 |
|
28468 HTML5Tokenizer calls InspectorTimelineAgent::will/didWriteHTML every |
|
28469 time we pump the lexer instead of every write() call. |
|
28470 We end up pumping the lexer slightly more often than the old code called |
|
28471 write() in order to cleanly handle unclosed-entities, unclosed tags, |
|
28472 buffered characters, etc. at the end of a document. |
|
28473 |
|
28474 I discussed this extensively with James Robinson in #webkit and we decided |
|
28475 that it was better for the HTML5Tokenizer to call for every pump and |
|
28476 that the Inspector should later filter out empty pumps. |
|
28477 |
|
28478 We can't filter out empty pumps yet, because the number of parsed |
|
28479 characters is passed in willWrite instead of didWrite and thus is |
|
28480 speculative (and wrong). This is a problem independent of this change |
|
28481 as willWrite's "length" argument is wrong in different ways for the old |
|
28482 parser, including always being 0 when the old parser resumes. |
|
28483 |
|
28484 Tested by inspector/timeline-script-tag-1.html |
|
28485 |
|
28486 * html/HTML5Tokenizer.cpp: |
|
28487 (WebCore::HTML5Tokenizer::willPumpLexer): |
|
28488 - Notify the InspectorTimelineAgent we're about to process input. |
|
28489 (WebCore::HTML5Tokenizer::didPumpLexer): |
|
28490 - Notify the InspectorTimelineAgent we did process tokens. |
|
28491 (WebCore::HTML5Tokenizer::pumpLexer): |
|
28492 - Call willPump and didPump |
|
28493 * html/HTML5Tokenizer.h: |
|
28494 * inspector/InspectorTimelineAgent.h: |
|
28495 - Add a FIXME about passing length to didWrite instead of willWrite. |
|
28496 |
|
28497 2010-06-11 Sheriff Bot <webkit.review.bot@gmail.com> |
|
28498 |
|
28499 Unreviewed, rolling out r61052. |
|
28500 http://trac.webkit.org/changeset/61052 |
|
28501 https://bugs.webkit.org/show_bug.cgi?id=40517 |
|
28502 |
|
28503 "Broke fast/forms/caret-rtl.html on Mac bots" (Requested by |
|
28504 eseidel on #webkit). |
|
28505 |
|
28506 * html/HTMLElement.cpp: |
|
28507 (WebCore::HTMLElement::mapToEntry): |
|
28508 (WebCore::HTMLElement::parseMappedAttribute): |
|
28509 |
|
28510 2010-06-11 Maciej Stachowiak <mjs@apple.com> |
|
28511 |
|
28512 Reviewed by Ojan Vafai. |
|
28513 |
|
28514 Implement HTML5 hidden attribute |
|
28515 https://bugs.webkit.org/show_bug.cgi?id=40511 |
|
28516 |
|
28517 Test: fast/html/hidden-attr.html |
|
28518 |
|
28519 Note: I used the mapped attribute mechanism for this instead of a rule in the UA stylesheet |
|
28520 to avoid a performance hit from adding a global attribute rule to the UA stylesheet. |
|
28521 |
|
28522 * html/HTMLElement.cpp: |
|
28523 (WebCore::HTMLElement::mapToEntry): Pick up hidden as a global mapped attribute. |
|
28524 (WebCore::HTMLElement::parseMappedAttribute): Map hidden attribute to display: none. |
|
28525 |
|
28526 2010-06-10 Abhishek Arya <inferno@chromium.org> |
|
28527 |
|
28528 Reviewed by Dave Hyatt. |
|
28529 |
|
28530 Do not render CSS Styles :first-letter and :first-line in a SVG text element context. |
|
28531 https://bugs.webkit.org/show_bug.cgi?id=40031 |
|
28532 |
|
28533 Test: svg/text/text-style-invalid.svg |
|
28534 |
|
28535 * rendering/RenderSVGText.cpp: |
|
28536 (WebCore::RenderSVGText::firstLineBlock): |
|
28537 (WebCore::RenderSVGText::updateFirstLetter): |
|
28538 * rendering/RenderSVGText.h: |
|
28539 |
|
28540 2010-06-11 Kenneth Russell <kbr@google.com> |
|
28541 |
|
28542 Reviewed by Dimitri Glazkov. |
|
28543 |
|
28544 getParameter with UNPACK_FLIP_Y_WEBGL and UNPACK_PREMULTIPLY_ALPHA_WEBGL is buggy |
|
28545 https://bugs.webkit.org/show_bug.cgi?id=40506 |
|
28546 |
|
28547 Return the data members of WebGLRenderingContext for these |
|
28548 parameter queries rather than asking OpenGL, which knows nothing |
|
28549 about them. |
|
28550 |
|
28551 * html/canvas/WebGLRenderingContext.cpp: |
|
28552 (WebCore::WebGLRenderingContext::getParameter): |
|
28553 |
|
28554 2010-06-11 Simon Fraser <simon.fraser@apple.com> |
|
28555 |
|
28556 Reviewed by Dr Dan Bernstein. |
|
28557 |
|
28558 REGRESSION: crash when unloading an iFrame with Flash from the DOM |
|
28559 https://bugs.webkit.org/show_bug.cgi?id=40161 |
|
28560 <rdar://problem/7994710> |
|
28561 |
|
28562 Null-check the ownerElement of the RenderView's document when unhooking the compositing |
|
28563 root of an iframe whose layers are parented via the enclosing document. Fixes a crash when |
|
28564 dynamically removing such an iframe. |
|
28565 |
|
28566 Test: compositing/iframes/remove-iframe-crash.html |
|
28567 |
|
28568 * rendering/RenderLayerCompositor.cpp: |
|
28569 (WebCore::RenderLayerCompositor::detachRootPlatformLayer): |
|
28570 |
|
28571 2010-06-11 Abhishek Arya <inferno@chromium.org> |
|
28572 |
|
28573 Reviewed by David Hyatt. |
|
28574 |
|
28575 Don't process floats if parent node is not a RenderBlock. |
|
28576 https://bugs.webkit.org/show_bug.cgi?id=40033 |
|
28577 |
|
28578 Test: svg/text/clear-floats-crash.svg |
|
28579 |
|
28580 * rendering/RenderBlock.cpp: |
|
28581 (WebCore::RenderBlock::clearFloats): |
|
28582 |
|
28583 2010-06-11 Sheriff Bot <webkit.review.bot@gmail.com> |
|
28584 |
|
28585 Unreviewed, rolling out r61036. |
|
28586 http://trac.webkit.org/changeset/61036 |
|
28587 https://bugs.webkit.org/show_bug.cgi?id=40499 |
|
28588 |
|
28589 broke chromium compile (Requested by jamesr on #webkit). |
|
28590 |
|
28591 * bindings/v8/SerializedScriptValue.cpp: |
|
28592 * bindings/v8/SerializedScriptValue.h: |
|
28593 (WebCore::SerializedScriptValue::deserializeAndSetProperty): |
|
28594 (WebCore::SerializedScriptValue::create): |
|
28595 (WebCore::SerializedScriptValue::createFromWire): |
|
28596 (WebCore::SerializedScriptValue::release): |
|
28597 (WebCore::SerializedScriptValue::SerializedScriptValue): |
|
28598 |
|
28599 2010-06-11 Kenneth Russell <kbr@google.com> |
|
28600 |
|
28601 Reviewed by Dimitri Glazkov. |
|
28602 |
|
28603 Add texImage2D and texSubImage2D signatures with internal format, etc. |
|
28604 https://bugs.webkit.org/show_bug.cgi?id=40318 |
|
28605 |
|
28606 Added new texImage2D and texSubImage2D entry points following |
|
28607 WebGL specification changes. Added UNPACK_FLIP_Y_WEBGL and |
|
28608 UNPACK_PREMULTIPLY_ALPHA_WEBGL pixelStorei parameters, honored |
|
28609 them for the new entry points taking HTML elements, and added |
|
28610 support to getParameter. Added warnings to the console for calls |
|
28611 to the obsolete entry points, which will be removed in a few |
|
28612 weeks. Updated all layout tests to use the new entry points and |
|
28613 pixelStorei parameters, and associated expectations. No other new |
|
28614 tests. |
|
28615 |
|
28616 * html/canvas/WebGLRenderingContext.cpp: |
|
28617 (WebCore::WebGLRenderingContext::WebGLRenderingContext): |
|
28618 (WebCore::WebGLRenderingContext::getParameter): |
|
28619 (WebCore::WebGLRenderingContext::pixelStorei): |
|
28620 (WebCore::WebGLRenderingContext::texImage2DImpl): |
|
28621 (WebCore::WebGLRenderingContext::texImage2D): |
|
28622 (WebCore::WebGLRenderingContext::texSubImage2DImpl): |
|
28623 (WebCore::WebGLRenderingContext::texSubImage2D): |
|
28624 (WebCore::WebGLRenderingContext::printWarningToConsole): |
|
28625 * html/canvas/WebGLRenderingContext.h: |
|
28626 * html/canvas/WebGLRenderingContext.idl: |
|
28627 * platform/graphics/GraphicsContext3D.h: |
|
28628 (WebCore::GraphicsContext3D::): |
|
28629 |
|
28630 2010-06-11 James Robinson <jamesr@chromium.org> |
|
28631 |
|
28632 Reviewed by Dimitri Glazkov. |
|
28633 |
|
28634 [chromium] Skia mispaints pages with border-radius |
|
28635 https://bugs.webkit.org/show_bug.cgi?id=40456 |
|
28636 |
|
28637 Skia mispaints pages that have border radius set in some cases. The bug is in the anti aliased |
|
28638 clip path logic used to implement anti aliased curves in Skia. Since Skia internally only supports |
|
28639 1-bit clips, anti aliased clipping is emulated by creating a new alpha layer, storing a set of |
|
28640 clip paths on the side, and then 'erasing' the regions outside the clip. See r49641. |
|
28641 PlatformContextSkia maintains a stack of PlatformContextSkia::State objects that preserve information |
|
28642 like fill color, drawing mode, etc that is manipulated by GraphicsContext::save() / |
|
28643 GraphicsContext::restore() calls as well some internal functions. Whenever a new State object is pushed |
|
28644 a new copy of the current State object is pushed onto the top of this stack using the copy c'tor. The |
|
28645 set of anti alias clip paths is also stored on the State object, but not copied when new entries are |
|
28646 added as the paths only apply to that entry on the stack. |
|
28647 |
|
28648 The bug is that the state stack is stored in a WTF::Vector. When this vector exceeds its capacity |
|
28649 (by default at 16 elements) all of the existing State entries are copied into the new buffer using |
|
28650 State's copy constructor. This does not preserve the anti alias clip paths, so when the State entries |
|
28651 are popped the anti aliasing info is lost. This corrupts all further paint operations since it results |
|
28652 in inbalanced save/restore calls to the underlying SkCanvas. |
|
28653 |
|
28654 The fix is to make the PlatformContextSkia::State copy constructor copy all fields and to add a new |
|
28655 function PlatformContextSkia::State::cloneInheritedProperties to use when pushing new State entries |
|
28656 that copies everything except for the anti aliased clip paths. |
|
28657 |
|
28658 Test: fast/css/nested-rounded-corners.html |
|
28659 |
|
28660 * platform/graphics/skia/PlatformContextSkia.cpp: |
|
28661 (PlatformContextSkia::State::State): |
|
28662 (PlatformContextSkia::State::cloneInheritedProperties): |
|
28663 (PlatformContextSkia::save): |
|
28664 |
|
28665 2010-06-11 Jeremy Orlow <jorlow@chromium.org> |
|
28666 |
|
28667 Reviewed by Darin Fisher. |
|
28668 |
|
28669 [V8] Clean up SerializedScriptValue |
|
28670 https://bugs.webkit.org/show_bug.cgi?id=40482 |
|
28671 |
|
28672 SerializedScriptValue doesn't follow WebKit's style guidelines very well |
|
28673 and needlessly inlines quite a bit within the .h file. This change cleans |
|
28674 things up. No funcitonal changes. |
|
28675 |
|
28676 No change in behavior. |
|
28677 |
|
28678 * bindings/v8/SerializedScriptValue.cpp: |
|
28679 (WebCore::SerializedScriptValue::deserializeAndSetProperty): |
|
28680 (WebCore::SerializedScriptValue::create): |
|
28681 (WebCore::SerializedScriptValue::createFromWire): |
|
28682 (WebCore::SerializedScriptValue::release): |
|
28683 (WebCore::SerializedScriptValue::SerializedScriptValue): |
|
28684 * bindings/v8/SerializedScriptValue.h: |
|
28685 |
|
28686 2010-06-11 Anton Muhin <antonm@chromium.org> |
|
28687 |
|
28688 Reviewed by Adam Barth. |
|
28689 |
|
28690 [v8] Introduce single element caches for WebCore::String to v8::String conversions |
|
28691 https://bugs.webkit.org/show_bug.cgi?id=40435 |
|
28692 Measurements show that for some web apps (GMail, Wave) and some scenarios |
|
28693 (intensive reading and/or keeping a tab open for a long time), |
|
28694 hit rate lies in 30--50% interval. |
|
28695 Inlining fast case gives another minor performance win. |
|
28696 |
|
28697 * bindings/v8/V8Binding.cpp: |
|
28698 (WebCore::getStringCache): |
|
28699 (WebCore::v8ExternalStringSlow): |
|
28700 * bindings/v8/V8Binding.h: |
|
28701 (WebCore::v8ExternalString): |
|
28702 |
|
28703 2010-06-11 Leandro Pereira <leandro@profusion.mobi> |
|
28704 |
|
28705 Reviewed by Gustavo Noronha Silva. |
|
28706 |
|
28707 [EFL] Build fix: remove unneeded file (npapi.cpp) and add |
|
28708 other files that got added to the tree. |
|
28709 http://webkit.org/b/40331 |
|
28710 |
|
28711 * CMakeLists.txt: |
|
28712 * CMakeListsEfl.txt: |
|
28713 |
|
28714 2010-06-11 Tony Gentilcore <tonyg@chromium.org> |
|
28715 |
|
28716 Reviewed by Eric Seidel. |
|
28717 |
|
28718 Fix fast/forms/preserveFormDuringResidualStyle.html for HTML5 Parser. |
|
28719 https://bugs.webkit.org/show_bug.cgi?id=40454 |
|
28720 |
|
28721 This required exposing the HTMLParser which we definitely don't want to |
|
28722 do, but the good news is that it can go away when the HTMLParser goes |
|
28723 away. |
|
28724 |
|
28725 No new tests because covered by fast/forms/preserve/FormDuringResidualStyle.html. |
|
28726 |
|
28727 * dom/Tokenizer.h: |
|
28728 (WebCore::Tokenizer::htmlParser): |
|
28729 * html/HTML5Tokenizer.cpp: |
|
28730 (WebCore::HTML5Tokenizer::htmlParser): |
|
28731 * html/HTML5Tokenizer.h: |
|
28732 * html/HTML5TreeBuilder.h: |
|
28733 (WebCore::HTML5TreeBuilder::htmlParser): |
|
28734 * html/HTMLFormControlElement.cpp: |
|
28735 (WebCore::HTMLFormControlElement::removedFromTree): |
|
28736 * html/HTMLTokenizer.h: |
|
28737 (WebCore::HTMLTokenizer::htmlParser): |
|
28738 |
|
28739 2010-06-11 Kenneth Russell <kbr@google.com> |
|
28740 |
|
28741 Reviewed by Dimitri Glazkov. |
|
28742 |
|
28743 Delete custom JSC bindings for bufferData, texImage2D and texSubImage2D |
|
28744 https://bugs.webkit.org/show_bug.cgi?id=40443 |
|
28745 |
|
28746 Deleted custom JSC bindings for bufferData, texImage2D and |
|
28747 texSubImage2D and fixed minor associated issues in code generator |
|
28748 and IDL. Updated fast/canvas/webgl/texImageTest-expected.txt, |
|
28749 which now runs as intended. Ran all layout tests, including WebGL |
|
28750 tests, in Safari. |
|
28751 |
|
28752 * bindings/js/JSWebGLRenderingContextCustom.cpp: |
|
28753 - Deleted custom bindings. |
|
28754 * bindings/scripts/CodeGeneratorJS.pm: |
|
28755 - Made overload helper functions static to fix compiler warnings. |
|
28756 - Added needed isObject check for overloads between object and non-object arguments. |
|
28757 - Added JSValue::encode to exception return path, needed on Leopard in particular. |
|
28758 * html/HTMLCanvasElement.idl: |
|
28759 * html/HTMLImageElement.idl: |
|
28760 * html/HTMLVideoElement.idl: |
|
28761 - Added GenerateNativeConverter extended attribute. |
|
28762 * html/canvas/WebGLRenderingContext.idl: |
|
28763 - Deleted #ifdefs for custom JSC bindings. |
|
28764 |
|
28765 2010-06-11 Kevin Ollivier <kevino@theolliviers.com> |
|
28766 |
|
28767 [wx] Build fix, add KillRingNone.cpp until we can implement it. |
|
28768 |
|
28769 * wscript: |
|
28770 |
|
28771 2010-06-11 Hans Wennborg <hans@chromium.org> |
|
28772 |
|
28773 Reviewed by Jeremy Orlow. |
|
28774 |
|
28775 DOM storage should only create databases when needed |
|
28776 https://bugs.webkit.org/show_bug.cgi?id=40301 |
|
28777 |
|
28778 As soon as a page attempts to use localstorage, StorageAreaSync will |
|
28779 create an empty database if one doesn't already exist. This can lead to |
|
28780 lots of unnecessary database files. In particular, they are created |
|
28781 even when the privacy settings or private browsing mode disallow |
|
28782 localstorage data, which may seem odd to the user. |
|
28783 |
|
28784 Database creation should be put off in StorageAreaSync until it is time |
|
28785 to actually write something to the database. |
|
28786 |
|
28787 Tests: |
|
28788 manual-tests/localstorage-empty-database.html |
|
28789 |
|
28790 * manual-tests/localstorage-empty-database.html: Added. |
|
28791 * storage/StorageAreaSync.cpp: |
|
28792 (WebCore::StorageAreaSync::StorageAreaSync): |
|
28793 (WebCore::StorageAreaSync::openDatabase): |
|
28794 (WebCore::StorageAreaSync::performImport): |
|
28795 (WebCore::StorageAreaSync::sync): |
|
28796 * storage/StorageAreaSync.h: |
|
28797 (WebCore::StorageAreaSync::): |
|
28798 |
|
28799 2010-06-11 Ilya Tikhonovsky <loislo@chromium.org> |
|
28800 |
|
28801 Reviewed by Eric Seidel. |
|
28802 |
|
28803 Perl scripts for bindings don't use strict keyword. |
|
28804 As result some problems in the script code were not detected at compile stage. |
|
28805 https://bugs.webkit.org/show_bug.cgi?id=40468 |
|
28806 |
|
28807 * bindings/scripts/CodeGenerator.pm: |
|
28808 * bindings/scripts/IDLParser.pm: |
|
28809 * bindings/scripts/IDLStructure.pm: |
|
28810 |
|
28811 2010-06-11 Eric Seidel <eric@webkit.org> |
|
28812 |
|
28813 Reviewed by Adam Barth. |
|
28814 |
|
28815 HTML5Tokenizer should not delete itself while running scripts |
|
28816 https://bugs.webkit.org/show_bug.cgi?id=40458 |
|
28817 |
|
28818 Tested by fast/dom/document-clear.html |
|
28819 |
|
28820 * html/HTML5Tokenizer.cpp: |
|
28821 (WebCore::HTML5Tokenizer::attemptToEnd): |
|
28822 - Don't ever end() while running scripts. |
|
28823 This matches the old HTMLTokenizer.cpp |
|
28824 |
|
28825 2010-06-11 Zhenyao Mo <zmo@google.com> |
|
28826 |
|
28827 Reviewed by Dimitri Glazkov. |
|
28828 |
|
28829 getActiveUniform must ensure names of arrays end in "[0]" |
|
28830 https://bugs.webkit.org/show_bug.cgi?id=38709 |
|
28831 |
|
28832 Test: fast/canvas/webgl/get-active-test.html |
|
28833 |
|
28834 * html/canvas/WebGLRenderingContext.cpp: |
|
28835 (WebCore::WebGLRenderingContext::getActiveAttrib): Append "[0]" to the name if needed. |
|
28836 |
|
28837 2010-06-11 Zhenyao Mo <zmo@google.com> |
|
28838 |
|
28839 Reviewed by Dimitri Glazkov. |
|
28840 |
|
28841 readPixels with negative width/height should generate INVALID_VALUE and return |
|
28842 https://bugs.webkit.org/show_bug.cgi?id=39704 |
|
28843 |
|
28844 * html/canvas/WebGLRenderingContext.cpp: Deal with negative width/height. |
|
28845 (WebCore::WebGLRenderingContext::readPixels): |
|
28846 * html/canvas/WebGLRenderingContext.h: Change width/height type from unsigned long to long. |
|
28847 * html/canvas/WebGLRenderingContext.idl: Ditto. |
|
28848 |
|
28849 2010-06-11 Zhenyao Mo <zmo@google.com> |
|
28850 |
|
28851 Reviewed by Dimitri Glazkov. |
|
28852 |
|
28853 uniform* entry points must ignore the call if a null WebGLUniformLocation is passed |
|
28854 https://bugs.webkit.org/show_bug.cgi?id=38707 |
|
28855 |
|
28856 * html/canvas/WebGLRenderingContext.cpp: uniform* entry points ignore the call if a null WebGLUniformLocation is passed. |
|
28857 (WebCore::WebGLRenderingContext::uniform1f): |
|
28858 (WebCore::WebGLRenderingContext::uniform1fv): |
|
28859 (WebCore::WebGLRenderingContext::uniform1i): |
|
28860 (WebCore::WebGLRenderingContext::uniform1iv): |
|
28861 (WebCore::WebGLRenderingContext::uniform2f): |
|
28862 (WebCore::WebGLRenderingContext::uniform2fv): |
|
28863 (WebCore::WebGLRenderingContext::uniform2i): |
|
28864 (WebCore::WebGLRenderingContext::uniform2iv): |
|
28865 (WebCore::WebGLRenderingContext::uniform3f): |
|
28866 (WebCore::WebGLRenderingContext::uniform3fv): |
|
28867 (WebCore::WebGLRenderingContext::uniform3i): |
|
28868 (WebCore::WebGLRenderingContext::uniform3iv): |
|
28869 (WebCore::WebGLRenderingContext::uniform4f): |
|
28870 (WebCore::WebGLRenderingContext::uniform4fv): |
|
28871 (WebCore::WebGLRenderingContext::uniform4i): |
|
28872 (WebCore::WebGLRenderingContext::uniform4iv): |
|
28873 (WebCore::WebGLRenderingContext::uniformMatrix2fv): |
|
28874 (WebCore::WebGLRenderingContext::uniformMatrix3fv): |
|
28875 (WebCore::WebGLRenderingContext::uniformMatrix4fv): |
|
28876 |
|
28877 2010-06-11 Zhenyao Mo <zmo@google.com> |
|
28878 |
|
28879 Reviewed by Dimitri Glazkov. |
|
28880 |
|
28881 drawElements/drawArrays should validate input parameters according to GLES2 spec |
|
28882 https://bugs.webkit.org/show_bug.cgi?id=38700 |
|
28883 |
|
28884 Tests: fast/canvas/webgl/draw-arrays-out-of-bounds.html |
|
28885 fast/canvas/webgl/draw-elements-out-of-bounds.html |
|
28886 |
|
28887 * html/canvas/WebGLRenderingContext.cpp: |
|
28888 (WebCore::WebGLRenderingContext::drawArrays): Validate input parameters. |
|
28889 (WebCore::WebGLRenderingContext::drawElements): Ditto. |
|
28890 (WebCore::WebGLRenderingContext::validateDrawMode): Validate mode for draw{Arrays/Elements}. |
|
28891 * html/canvas/WebGLRenderingContext.h: Add validateDrawMode, fix incorrect parameter types. |
|
28892 * html/canvas/WebGLRenderingContext.idl: Fix incorrect parameter types. |
|
28893 |
|
28894 2010-06-11 Luiz Agostini <luiz.agostini@openbossa.org> |
|
28895 |
|
28896 Reviewed by Antti Koivisto. |
|
28897 |
|
28898 CSS3 Media Queries are not serialized according to CSSOM |
|
28899 https://bugs.webkit.org/show_bug.cgi?id=39220 |
|
28900 |
|
28901 MediaQuery serialization according to specification |
|
28902 http://dev.w3.org/csswg/cssom/#serializing-media-queries. |
|
28903 |
|
28904 MediaQuery objects now ignore duplicated expressions. MediaQueryEvaluator::eval() |
|
28905 now does not proccess MediaQuery objects that are known to be invalid. |
|
28906 |
|
28907 Test: fast/media/media-query-serialization.html |
|
28908 |
|
28909 * css/MediaQuery.cpp: |
|
28910 (WebCore::stringCompare): |
|
28911 (WebCore::MediaQuery::serialize): |
|
28912 (WebCore::MediaQuery::MediaQuery): |
|
28913 (WebCore::MediaQuery::~MediaQuery): |
|
28914 (WebCore::MediaQuery::operator==): |
|
28915 (WebCore::MediaQuery::cssText): |
|
28916 (WebCore::MediaQuery::append): |
|
28917 * css/MediaQuery.h: |
|
28918 (WebCore::MediaQuery::ignored): |
|
28919 (WebCore::MediaQuery::begin): |
|
28920 (WebCore::MediaQuery::end): |
|
28921 * css/MediaQueryExp.cpp: |
|
28922 (WebCore::MediaQueryExp::serialize): |
|
28923 * css/MediaQueryExp.h: |
|
28924 * css/MediaQueryEvaluator.cpp: |
|
28925 (WebCore::MediaQueryEvaluator::eval): |
|
28926 |
|
28927 |
|
28928 2010-06-10 Jeremy Orlow <jorlow@chromium.org> |
|
28929 |
|
28930 Reviewed by Steve Block. |
|
28931 |
|
28932 Implement more of IndexedDB's Indexes and ObjectStores |
|
28933 https://bugs.webkit.org/show_bug.cgi?id=40424 |
|
28934 |
|
28935 Clean up both of these classes a bit and add create/open/remove |
|
28936 methods as needed. |
|
28937 |
|
28938 Tests in a future patch (promise). |
|
28939 |
|
28940 * storage/IDBDatabase.h: |
|
28941 * storage/IDBDatabaseImpl.cpp: |
|
28942 (WebCore::IDBDatabaseImpl::objectStores): |
|
28943 (WebCore::IDBDatabaseImpl::createObjectStore): |
|
28944 (WebCore::IDBDatabaseImpl::objectStore): |
|
28945 (WebCore::IDBDatabaseImpl::removeObjectStore): |
|
28946 * storage/IDBDatabaseImpl.h: |
|
28947 (WebCore::IDBDatabaseImpl::name): |
|
28948 (WebCore::IDBDatabaseImpl::description): |
|
28949 (WebCore::IDBDatabaseImpl::version): |
|
28950 * storage/IDBDatabaseRequest.cpp: |
|
28951 (WebCore::IDBDatabaseRequest::IDBDatabaseRequest): |
|
28952 (WebCore::IDBDatabaseRequest::createObjectStore): |
|
28953 (WebCore::IDBDatabaseRequest::objectStore): |
|
28954 (WebCore::IDBDatabaseRequest::removeObjectStore): |
|
28955 * storage/IDBDatabaseRequest.h: |
|
28956 (WebCore::IDBDatabaseRequest::create): |
|
28957 (WebCore::IDBDatabaseRequest::name): |
|
28958 (WebCore::IDBDatabaseRequest::description): |
|
28959 (WebCore::IDBDatabaseRequest::version): |
|
28960 (WebCore::IDBDatabaseRequest::objectStores): |
|
28961 * storage/IDBDatabaseRequest.idl: |
|
28962 * storage/IDBObjectStore.h: |
|
28963 * storage/IDBObjectStoreImpl.h: |
|
28964 * storage/IDBObjectStoreRequest.cpp: |
|
28965 (WebCore::IDBObjectStoreRequest::get): |
|
28966 (WebCore::IDBObjectStoreRequest::add): |
|
28967 (WebCore::IDBObjectStoreRequest::modify): |
|
28968 (WebCore::IDBObjectStoreRequest::addOrModify): |
|
28969 (WebCore::IDBObjectStoreRequest::remove): |
|
28970 (WebCore::IDBObjectStoreRequest::createIndex): |
|
28971 (WebCore::IDBObjectStoreRequest::index): |
|
28972 (WebCore::IDBObjectStoreRequest::removeIndex): |
|
28973 * storage/IDBObjectStoreRequest.h: |
|
28974 * storage/IDBObjectStoreRequest.idl: |
|
28975 |
|
28976 2010-06-11 Alexander Pavlov <apavlov@chromium.org> |
|
28977 |
|
28978 Reviewed by Pavel Feldman. |
|
28979 |
|
28980 Web Inspector: Enable serialization/deserialization of the frontend state |
|
28981 https://bugs.webkit.org/show_bug.cgi?id=40228 |
|
28982 |
|
28983 * inspector/InspectorBackend.cpp: |
|
28984 (WebCore::InspectorBackend::saveApplicationSettings): |
|
28985 (WebCore::InspectorBackend::saveSessionSettings): |
|
28986 * inspector/InspectorBackend.h: |
|
28987 * inspector/InspectorBackend.idl: |
|
28988 * inspector/InspectorController.cpp: |
|
28989 (WebCore::InspectorController::InspectorController): |
|
28990 (WebCore::InspectorController::setSessionSettings): |
|
28991 (WebCore::InspectorController::populateScriptObjects): |
|
28992 (WebCore::InspectorController::didCommitLoad): |
|
28993 * inspector/InspectorController.h: |
|
28994 * inspector/InspectorFrontend.cpp: |
|
28995 (WebCore::InspectorFrontend::populateApplicationSettings): |
|
28996 (WebCore::InspectorFrontend::populateSessionSettings): |
|
28997 * inspector/InspectorFrontend.h: |
|
28998 * inspector/front-end/ConsoleView.js: |
|
28999 (WebInspector.ConsoleView.prototype._settingsLoaded): |
|
29000 (WebInspector.ConsoleView.prototype._enterKeyPressed.printResult): |
|
29001 (WebInspector.ConsoleView.prototype._enterKeyPressed): |
|
29002 * inspector/front-end/EventListenersSidebarPane.js: |
|
29003 (WebInspector.EventListenersSidebarPane.prototype._settingsLoaded): |
|
29004 (WebInspector.EventListenersSidebarPane.prototype): |
|
29005 (): |
|
29006 * inspector/front-end/InspectorBackendStub.js: |
|
29007 (.WebInspector.InspectorBackendStub.prototype.saveApplicationSettings): |
|
29008 (.WebInspector.InspectorBackendStub.prototype.saveSessionSettings): |
|
29009 * inspector/front-end/ResourceView.js: |
|
29010 (WebInspector.ResourceView.prototype._selectTab): |
|
29011 (WebInspector.ResourceView.prototype._selectHeadersTab): |
|
29012 (WebInspector.ResourceView.prototype.selectContentTab): |
|
29013 * inspector/front-end/ResourcesPanel.js: |
|
29014 (WebInspector.ResourcesPanel.prototype._createStatusbarButtons): |
|
29015 (WebInspector.ResourcesPanel.prototype._settingsLoaded): |
|
29016 (WebInspector.ResourcesPanel.prototype._toggleLargerResources): |
|
29017 * inspector/front-end/ScriptsPanel.js: |
|
29018 (WebInspector.ScriptsPanel.prototype._showScriptOrResource): |
|
29019 (WebInspector.ScriptsPanel.prototype._addScriptToFilesMenu): |
|
29020 * inspector/front-end/Settings.js: |
|
29021 (WebInspector.populateApplicationSettings): |
|
29022 (WebInspector.populateSessionSettings): |
|
29023 (WebInspector.Settings): |
|
29024 (WebInspector.Settings.prototype.reset): |
|
29025 (WebInspector.Settings.prototype._load): |
|
29026 (WebInspector.Settings.prototype._set): |
|
29027 * inspector/front-end/StylesSidebarPane.js: |
|
29028 (WebInspector.StylesSidebarPane.prototype._settingsLoaded): |
|
29029 (WebInspector.StylesSidebarPane.prototype.update): |
|
29030 (WebInspector.StylesSidebarPane.prototype._changeSetting): |
|
29031 (WebInspector.StylesSidebarPane.prototype._changeColorFormat): |
|
29032 (WebInspector.ComputedStyleSidebarPane.settingsLoaded): |
|
29033 (WebInspector.ComputedStyleSidebarPane.showInheritedToggleFunction): |
|
29034 (WebInspector.ComputedStyleSidebarPane): |
|
29035 * inspector/front-end/WatchExpressionsSidebarPane.js: |
|
29036 (WebInspector.WatchExpressionsSidebarPane): |
|
29037 (WebInspector.WatchExpressionsSidebarPane.prototype._settingsLoaded): |
|
29038 (WebInspector.WatchExpressionsSection): |
|
29039 (WebInspector.WatchExpressionsSection.prototype.saveExpressions): |
|
29040 * inspector/front-end/inspector.js: |
|
29041 (WebInspector.loaded): |
|
29042 (WebInspector.reset): |
|
29043 |
|
29044 2010-06-10 Pavel Feldman <pfeldman@chromium.org> |
|
29045 |
|
29046 Reviewed by Yury Semikhatsky. |
|
29047 |
|
29048 Web Inspector: Port performSearch from InjectedScript to InspectorDOMAgent. |
|
29049 |
|
29050 https://bugs.webkit.org/show_bug.cgi?id=40422 |
|
29051 |
|
29052 * inspector/InjectedScriptHost.cpp: |
|
29053 (WebCore::InjectedScriptHost::addNodesToSearchResult): |
|
29054 * inspector/InspectorBackend.cpp: |
|
29055 (WebCore::InspectorBackend::performSearch): |
|
29056 (WebCore::InspectorBackend::searchCanceled): |
|
29057 * inspector/InspectorBackend.h: |
|
29058 * inspector/InspectorBackend.idl: |
|
29059 * inspector/InspectorDOMAgent.cpp: |
|
29060 (WebCore::): |
|
29061 (WebCore::InspectorDOMAgent::InspectorDOMAgent): |
|
29062 (WebCore::InspectorDOMAgent::~InspectorDOMAgent): |
|
29063 (WebCore::InspectorDOMAgent::performSearch): |
|
29064 (WebCore::InspectorDOMAgent::searchCanceled): |
|
29065 (WebCore::InspectorDOMAgent::onMatchJobsTimer): |
|
29066 (WebCore::InspectorDOMAgent::reportNodesAsSearchResults): |
|
29067 * inspector/InspectorDOMAgent.h: |
|
29068 (WebCore::MatchJob::~MatchJob): |
|
29069 (WebCore::MatchJob::MatchJob): |
|
29070 (WebCore::MatchJob::addNodesToResults): |
|
29071 * inspector/InspectorFrontend.cpp: |
|
29072 (WebCore::InspectorFrontend::addNodesToSearchResult): |
|
29073 * inspector/InspectorFrontend.h: |
|
29074 * inspector/InspectorResource.cpp: |
|
29075 (WebCore::InspectorResource::updateScriptObject): |
|
29076 * inspector/front-end/ElementsPanel.js: |
|
29077 (WebInspector.ElementsPanel.prototype.searchCanceled): |
|
29078 (WebInspector.ElementsPanel.prototype.performSearch): |
|
29079 (WebInspector.ElementsPanel.prototype.addNodesToSearchResult): |
|
29080 * inspector/front-end/InjectedScript.js: |
|
29081 (injectedScriptConstructor): |
|
29082 * inspector/front-end/InjectedScriptAccess.js: |
|
29083 |
|
29084 2010-06-11 Mikhail Naganov <mnaganov@chromium.org> |
|
29085 |
|
29086 Reviewed by Pavel Feldman. |
|
29087 |
|
29088 [Chromium] Restore 'console.profiles' access. |
|
29089 |
|
29090 https://bugs.webkit.org/show_bug.cgi?id=39840 |
|
29091 |
|
29092 * bindings/v8/ScriptProfiler.cpp: |
|
29093 (WebCore::ScriptProfiler::stop): |
|
29094 * bindings/v8/custom/V8ConsoleCustom.cpp: |
|
29095 (WebCore::V8Console::profilesAccessorGetter): |
|
29096 * inspector/InspectorController.cpp: |
|
29097 (WebCore::InspectorController::stopUserInitiatedProfiling): |
|
29098 |
|
29099 2010-06-10 Nikita Vasilyev <me@elv1s.ru> |
|
29100 |
|
29101 Reviewed by Pavel Feldman. |
|
29102 |
|
29103 Web Inspector: Make a close brace in Styles pane selectable. |
|
29104 https://bugs.webkit.org/show_bug.cgi?id=40157 |
|
29105 |
|
29106 * inspector/front-end/inspector.css: |
|
29107 (.styles-selector): |
|
29108 (.styles-section .properties li): |
|
29109 (.styles-section): |
|
29110 |
|
29111 2010-06-11 Yury Semikhatsky <yurys@chromium.org> |
|
29112 |
|
29113 Reviewed by Pavel Feldman. |
|
29114 |
|
29115 Web Inspector: localize missing script source message |
|
29116 https://bugs.webkit.org/show_bug.cgi?id=40467 |
|
29117 |
|
29118 * English.lproj/localizedStrings.js: |
|
29119 * inspector/InspectorController.cpp: |
|
29120 (WebCore::InspectorController::didParseSource): fixed typo in comment. |
|
29121 |
|
29122 2010-06-11 Zhenyao Mo <zmo@google.com> |
|
29123 |
|
29124 Reviewed by Dimitri Glazkov. |
|
29125 |
|
29126 Vertex attributes enabled as arrays but not bound to buffers must generate INVALID_OPERATION |
|
29127 https://bugs.webkit.org/show_bug.cgi?id=40315 |
|
29128 |
|
29129 * html/canvas/WebGLRenderingContext.cpp: |
|
29130 (WebCore::WebGLRenderingContext::validateRenderingState): Check if an enabled vertext attribs is bound to a buffer. |
|
29131 (WebCore::WebGLRenderingContext::vertexAttribPointer): Set bound buffer in vertex attrib state. |
|
29132 * html/canvas/WebGLRenderingContext.h: Add a member in vertex attrib state to track bound buffer. |
|
29133 |
|
29134 2010-05-31 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> |
|
29135 |
|
29136 Reviewed by Simon Hausmann. |
|
29137 |
|
29138 [Qt] Implement the simple text code path. |
|
29139 https://bugs.webkit.org/show_bug.cgi?id=40077 |
|
29140 |
|
29141 Remove the FONT_FAST_PATH macro and use the Qt's |
|
29142 fast text implementation instead of the one of WebKit. |
|
29143 |
|
29144 The Qt::TextBypassShaping flag is used to tell Qt to |
|
29145 only use the glyph advances. |
|
29146 |
|
29147 Qt 4.7 is needed to get this flag thus the complex path is always |
|
29148 used if QtWebKit is compiled against an earlier version. |
|
29149 |
|
29150 Contrary to the WebKit's implementation, the complex code path |
|
29151 is taken if the text is RightToLeft, justified or is formatted |
|
29152 with non-zero letter or word spacing. |
|
29153 |
|
29154 * platform/graphics/Font.cpp: |
|
29155 (WebCore::Font::drawText): |
|
29156 (WebCore::Font::floatWidth): |
|
29157 (WebCore::Font::selectionRectForText): |
|
29158 (WebCore::Font::offsetForPosition): |
|
29159 * platform/graphics/Font.h: |
|
29160 (WebCore::Font::isRoundingHackCharacter): |
|
29161 * platform/graphics/qt/FontQt.cpp: |
|
29162 (WebCore::fromRawDataWithoutRef): |
|
29163 (WebCore::needComplexCodePath): |
|
29164 (WebCore::setupPlatformContext): |
|
29165 (WebCore::Font::canReturnFallbackFontsForComplexText): |
|
29166 (WebCore::Font::drawSimpleText): |
|
29167 (WebCore::Font::drawComplexText): |
|
29168 (WebCore::Font::floatWidthForSimpleText): |
|
29169 (WebCore::Font::offsetForPositionForSimpleText): |
|
29170 (WebCore::Font::selectionRectForSimpleText): |
|
29171 |
|
29172 2010-06-03 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> |
|
29173 |
|
29174 Reviewed by Simon Hausmann. |
|
29175 |
|
29176 Move the text code path detection code from FontFastPath.cpp to Font.cpp. |
|
29177 https://bugs.webkit.org/show_bug.cgi?id=40077 |
|
29178 |
|
29179 This is a patch preliminary to the implementation of the |
|
29180 simple font code path for the Qt port. |
|
29181 |
|
29182 * platform/graphics/Font.cpp: |
|
29183 (WebCore::Font::setCodePath): |
|
29184 (WebCore::Font::codePath): |
|
29185 * platform/graphics/Font.h: |
|
29186 * platform/graphics/FontFastPath.cpp: |
|
29187 |
|
29188 2010-06-11 Sterling Swigart <sswigart@google.com> |
|
29189 |
|
29190 Reviewed by Dmitry Titov. |
|
29191 |
|
29192 Added AsyncImageResizer and ImageResizerThread classes, which after further |
|
29193 patches will be capable of resizing images. |
|
29194 https://bugs.webkit.org/show_bug.cgi?id=40018 |
|
29195 |
|
29196 * Android.mk: |
|
29197 * CMakeLists.txt: |
|
29198 * GNUmakefile.am: |
|
29199 * WebCore.gypi: |
|
29200 * WebCore.pro: |
|
29201 * WebCore.vcproj/WebCore.vcproj: |
|
29202 * WebCore.xcodeproj/project.pbxproj: |
|
29203 * html/AsyncImageResizer.cpp: Added. |
|
29204 (WebCore::AsyncImageResizer::create): |
|
29205 (WebCore::AsyncImageResizer::AsyncImageResizer): |
|
29206 (WebCore::AsyncImageResizer::~AsyncImageResizer): |
|
29207 (WebCore::AsyncImageResizer::notifyFinished): |
|
29208 * html/AsyncImageResizer.h: Added. |
|
29209 (WebCore::AsyncImageResizer::CallbackInfo::CallbackInfo): |
|
29210 (WebCore::AsyncImageResizer::): |
|
29211 (WebCore::AsyncImageResizer::resizeComplete): |
|
29212 (WebCore::AsyncImageResizer::resizeError): |
|
29213 * html/ImageResizerThread.cpp: Added. |
|
29214 (WebCore::returnBlobOrError): |
|
29215 (WebCore::ImageResizerThread::start): |
|
29216 (WebCore::ImageResizerThread::ImageResizerThread): |
|
29217 (WebCore::ImageResizerThread::~ImageResizerThread): |
|
29218 (WebCore::ImageResizerThread::imageResizerThreadStart): |
|
29219 (WebCore::ImageResizerThread::imageResizerThread): |
|
29220 * html/ImageResizerThread.h: Added. |
|
29221 |
|
29222 2010-06-11 Steve Block <steveblock@google.com> |
|
29223 |
|
29224 Reviewed by Alexey Proskuryakov. |
|
29225 |
|
29226 Client-based Geolocation does not handle multiple simultaneous requests |
|
29227 https://bugs.webkit.org/show_bug.cgi?id=40148 |
|
29228 |
|
29229 Test: fast/dom/Geolocation/multiple-requests.html |
|
29230 |
|
29231 The Geolocation must handle multiple calls to addObserver() from the same Geolocation object. |
|
29232 |
|
29233 * page/GeolocationController.cpp: |
|
29234 (WebCore::GeolocationController::addObserver): |
|
29235 |
|
29236 2010-06-11 Nikita Vasilyev <me@elv1s.ru> |
|
29237 |
|
29238 Reviewed by Pavel Feldman. |
|
29239 |
|
29240 Web Inspector: When completing using a tab key, select very first value, not a second. |
|
29241 https://bugs.webkit.org/show_bug.cgi?id=40409 |
|
29242 |
|
29243 * inspector/front-end/TextPrompt.js: |
|
29244 (WebInspector.TextPrompt.prototype._completionsReady): |
|
29245 |
|
29246 2010-06-10 Yuzo Fujishima <yuzo@google.com> |
|
29247 |
|
29248 Reviewed by Shinichiro Hamaji. |
|
29249 |
|
29250 Implement render style selection for pages to support CSS3 Paged Media. |
|
29251 https://bugs.webkit.org/show_bug.cgi?id=35961 |
|
29252 |
|
29253 Test: printing/page-rule-selection.html |
|
29254 |
|
29255 * WebCore.base.exp: |
|
29256 * css/CSSGrammar.y: |
|
29257 * css/CSSSelector.cpp: |
|
29258 (WebCore::CSSSelector::specificity): |
|
29259 (WebCore::CSSSelector::specificityForPage): |
|
29260 * css/CSSSelector.h: |
|
29261 (WebCore::CSSSelector::CSSSelector): |
|
29262 (WebCore::CSSSelector::isForPage): |
|
29263 (WebCore::CSSSelector::setForPage): |
|
29264 * css/CSSStyleSelector.cpp: |
|
29265 (WebCore::CSSStyleSelector::styleForPage): |
|
29266 (WebCore::CSSStyleSelector::matchPageRules): |
|
29267 (WebCore::CSSStyleSelector::matchPageRulesForList): |
|
29268 (WebCore::CSSStyleSelector::isLeftPage): |
|
29269 (WebCore::CSSStyleSelector::isFirstPage): |
|
29270 (WebCore::CSSStyleSelector::pageName): |
|
29271 * css/CSSStyleSelector.h: |
|
29272 (WebCore::CSSStyleSelector::isRightPage): |
|
29273 * css/html.css: |
|
29274 (@page): |
|
29275 * dom/Document.cpp: |
|
29276 (WebCore::Document::styleForPage): |
|
29277 * dom/Document.h: |
|
29278 * page/PrintContext.cpp: |
|
29279 (WebCore::PrintContext::pageProperty): |
|
29280 * page/PrintContext.h: |
|
29281 |
|
29282 |
|
29283 2010-06-10 Yuzo Fujishima <yuzo@google.com> |
|
29284 |
|
29285 Reviewed by Shinichiro Hamaji. |
|
29286 |
|
29287 Fix Bug 40452: REGRESSION: printing is broken if stylesheet has @page |
|
29288 https://bugs.webkit.org/show_bug.cgi?id=40452 |
|
29289 |
|
29290 Test: printing/page-rule-in-media-query.html |
|
29291 |
|
29292 * css/CSSStyleSelector.cpp: |
|
29293 (WebCore::CSSRuleSet::addRulesFromSheet): |
|
29294 (WebCore::CSSRuleSet::addStyleRule): |
|
29295 |
|
29296 2010-06-10 Sheriff Bot <webkit.review.bot@gmail.com> |
|
29297 |
|
29298 Unreviewed, rolling out r60989. |
|
29299 http://trac.webkit.org/changeset/60989 |
|
29300 https://bugs.webkit.org/show_bug.cgi?id=40462 |
|
29301 |
|
29302 It makes things crash (Requested by abarth on #webkit). |
|
29303 |
|
29304 * dom/Tokenizer.h: |
|
29305 (WebCore::Tokenizer::isHTMLTokenizer): |
|
29306 * html/HTML5Tokenizer.cpp: |
|
29307 * html/HTML5Tokenizer.h: |
|
29308 * html/HTML5TreeBuilder.h: |
|
29309 * html/HTMLFormControlElement.cpp: |
|
29310 (WebCore::HTMLFormControlElement::removedFromTree): |
|
29311 * html/HTMLTokenizer.h: |
|
29312 (WebCore::HTMLTokenizer::isHTMLTokenizer): |
|
29313 (WebCore::HTMLTokenizer::htmlParser): |
|
29314 |
|
29315 2010-06-10 Tony Gentilcore <tonyg@chromium.org> |
|
29316 |
|
29317 Reviewed by Eric Seidel. |
|
29318 |
|
29319 Fix fast/forms/preserveFormDuringResidualStyle.html for HTML5 Parser. |
|
29320 https://bugs.webkit.org/show_bug.cgi?id=40454 |
|
29321 |
|
29322 This required exposing the HTMLParser which we definitely don't want to |
|
29323 do, but the good news is that it can go away when the HTMLParser goes |
|
29324 away. |
|
29325 |
|
29326 No new tests because covered by fast/forms/preserve/FormDuringResidualStyle.html. |
|
29327 |
|
29328 * dom/Tokenizer.h: |
|
29329 (WebCore::Tokenizer::htmlParser): |
|
29330 * html/HTML5Tokenizer.cpp: |
|
29331 (WebCore::HTML5Tokenizer::htmlParser): |
|
29332 * html/HTML5Tokenizer.h: |
|
29333 * html/HTML5TreeBuilder.h: |
|
29334 (WebCore::HTML5TreeBuilder::htmlParser): |
|
29335 * html/HTMLFormControlElement.cpp: |
|
29336 (WebCore::HTMLFormControlElement::removedFromTree): |
|
29337 * html/HTMLTokenizer.h: |
|
29338 (WebCore::HTMLTokenizer::htmlParser): |
|
29339 |
|
29340 2010-06-10 Tony Chang <tony@chromium.org> |
|
29341 |
|
29342 Reviewed by Kent Tamura. |
|
29343 |
|
29344 crash when focus is changed while trying to focus next element |
|
29345 https://bugs.webkit.org/show_bug.cgi?id=40407 |
|
29346 |
|
29347 Test: fast/events/focus-change-crash.html |
|
29348 |
|
29349 * dom/Element.cpp: |
|
29350 (WebCore::Element::focus): |
|
29351 |
|
29352 2010-06-10 Sheriff Bot <webkit.review.bot@gmail.com> |
|
29353 |
|
29354 Unreviewed, rolling out r60979. |
|
29355 http://trac.webkit.org/changeset/60979 |
|
29356 https://bugs.webkit.org/show_bug.cgi?id=40450 |
|
29357 |
|
29358 Broke build on Leopard (Requested by kbr_google on #webkit). |
|
29359 |
|
29360 * bindings/js/JSWebGLRenderingContextCustom.cpp: |
|
29361 (WebCore::JSWebGLRenderingContext::bufferData): |
|
29362 (WebCore::JSWebGLRenderingContext::bufferSubData): |
|
29363 (WebCore::JSWebGLRenderingContext::texImage2D): |
|
29364 (WebCore::JSWebGLRenderingContext::texSubImage2D): |
|
29365 * bindings/scripts/CodeGeneratorJS.pm: |
|
29366 * html/HTMLCanvasElement.idl: |
|
29367 * html/HTMLImageElement.idl: |
|
29368 * html/HTMLVideoElement.idl: |
|
29369 * html/canvas/WebGLRenderingContext.idl: |
|
29370 |
|
29371 2010-06-10 Kenneth Russell <kbr@google.com> |
|
29372 |
|
29373 Reviewed by Dimitri Glazkov. |
|
29374 |
|
29375 Delete custom JSC bindings for bufferData, texImage2D and texSubImage2D |
|
29376 https://bugs.webkit.org/show_bug.cgi?id=40443 |
|
29377 |
|
29378 Deleted custom JSC bindings for bufferData, texImage2D and |
|
29379 texSubImage2D and fixed minor associated issues in code generator |
|
29380 and IDL. Updated fast/canvas/webgl/texImageTest-expected.txt, |
|
29381 which now runs as intended. Ran all layout tests, including WebGL |
|
29382 tests, in Safari. |
|
29383 |
|
29384 * bindings/js/JSWebGLRenderingContextCustom.cpp: |
|
29385 - Deleted custom bindings. |
|
29386 * bindings/scripts/CodeGeneratorJS.pm: |
|
29387 - Made overload helper functions static to fix compiler warnings. |
|
29388 - Added needed isObject check for overloads between object and non-object arguments. |
|
29389 * html/HTMLCanvasElement.idl: |
|
29390 * html/HTMLImageElement.idl: |
|
29391 * html/HTMLVideoElement.idl: |
|
29392 - Added GenerateNativeConverter extended attribute. |
|
29393 * html/canvas/WebGLRenderingContext.idl: |
|
29394 - Deleted #ifdefs for custom JSC bindings. |
|
29395 |
|
29396 2010-06-10 David Hyatt <hyatt@apple.com> |
|
29397 |
|
29398 Reviewed by John Sullivan. |
|
29399 |
|
29400 https://bugs.webkit.org/show_bug.cgi?id=40441, back out the original fix for 29601, since it has broken continuous |
|
29401 wheel delta values. |
|
29402 |
|
29403 * platform/mac/WebCoreSystemInterface.h: |
|
29404 * platform/mac/WebCoreSystemInterface.mm: |
|
29405 * platform/mac/WheelEventMac.mm: |
|
29406 (WebCore::PlatformWheelEvent::PlatformWheelEvent): |
|
29407 |
|
29408 2010-06-10 Abhishek Arya <inferno@chromium.org> |
|
29409 |
|
29410 Reviewed by Dimitri Glazkov. |
|
29411 |
|
29412 Add null pointer checks for nativeImageForCurrentFrame |
|
29413 function calls. |
|
29414 https://bugs.webkit.org/show_bug.cgi?id=39797 |
|
29415 |
|
29416 * platform/chromium/PasteboardChromium.cpp: |
|
29417 (WebCore::Pasteboard::writeImage): |
|
29418 * platform/graphics/qt/GraphicsContext3DQt.cpp: |
|
29419 (WebCore::GraphicsContext3D::getImageData): |
|
29420 * platform/qt/PasteboardQt.cpp: |
|
29421 (WebCore::Pasteboard::writeImage): |
|
29422 |
|
29423 2010-06-09 Kenneth Russell <kbr@google.com> |
|
29424 |
|
29425 Reviewed by Dimitri Glazkov. |
|
29426 |
|
29427 Implement TypedArray BYTES_PER_ELEMENT |
|
29428 https://bugs.webkit.org/show_bug.cgi?id=39100 |
|
29429 |
|
29430 Implemented BYTES_PER_ELEMENT on all ArrayBufferView subclasses. |
|
29431 Required bug fixes to JSC bindings' custom constructors. Updated |
|
29432 fast/canvas/webgl/array-unit-tests.html to verify. Ran all WebGL |
|
29433 layout tests in Safari and Chromium. |
|
29434 |
|
29435 * bindings/js/JSFloat32ArrayConstructor.cpp: |
|
29436 (WebCore::JSFloat32ArrayConstructor::JSFloat32ArrayConstructor): |
|
29437 (WebCore::JSFloat32ArrayConstructor::getOwnPropertySlot): |
|
29438 (WebCore::JSFloat32ArrayConstructor::getOwnPropertyDescriptor): |
|
29439 * bindings/js/JSFloat32ArrayConstructor.h: |
|
29440 (WebCore::JSFloat32ArrayConstructor::createStructure): |
|
29441 * bindings/js/JSInt16ArrayConstructor.cpp: |
|
29442 (WebCore::JSInt16ArrayConstructor::JSInt16ArrayConstructor): |
|
29443 (WebCore::JSInt16ArrayConstructor::getOwnPropertySlot): |
|
29444 (WebCore::JSInt16ArrayConstructor::getOwnPropertyDescriptor): |
|
29445 * bindings/js/JSInt16ArrayConstructor.h: |
|
29446 (WebCore::JSInt16ArrayConstructor::createStructure): |
|
29447 * bindings/js/JSInt32ArrayConstructor.cpp: |
|
29448 (WebCore::JSInt32ArrayConstructor::JSInt32ArrayConstructor): |
|
29449 (WebCore::JSInt32ArrayConstructor::getOwnPropertySlot): |
|
29450 (WebCore::JSInt32ArrayConstructor::getOwnPropertyDescriptor): |
|
29451 * bindings/js/JSInt32ArrayConstructor.h: |
|
29452 (WebCore::JSInt32ArrayConstructor::createStructure): |
|
29453 * bindings/js/JSInt8ArrayConstructor.cpp: |
|
29454 (WebCore::JSInt8ArrayConstructor::JSInt8ArrayConstructor): |
|
29455 (WebCore::JSInt8ArrayConstructor::getOwnPropertySlot): |
|
29456 (WebCore::JSInt8ArrayConstructor::getOwnPropertyDescriptor): |
|
29457 * bindings/js/JSInt8ArrayConstructor.h: |
|
29458 (WebCore::JSInt8ArrayConstructor::createStructure): |
|
29459 * bindings/js/JSUint16ArrayConstructor.cpp: |
|
29460 (WebCore::JSUint16ArrayConstructor::JSUint16ArrayConstructor): |
|
29461 (WebCore::JSUint16ArrayConstructor::getOwnPropertySlot): |
|
29462 (WebCore::JSUint16ArrayConstructor::getOwnPropertyDescriptor): |
|
29463 * bindings/js/JSUint16ArrayConstructor.h: |
|
29464 (WebCore::JSUint16ArrayConstructor::createStructure): |
|
29465 * bindings/js/JSUint32ArrayConstructor.cpp: |
|
29466 (WebCore::JSUint32ArrayConstructor::JSUint32ArrayConstructor): |
|
29467 (WebCore::JSUint32ArrayConstructor::getOwnPropertySlot): |
|
29468 (WebCore::JSUint32ArrayConstructor::getOwnPropertyDescriptor): |
|
29469 * bindings/js/JSUint32ArrayConstructor.h: |
|
29470 (WebCore::JSUint32ArrayConstructor::createStructure): |
|
29471 * bindings/js/JSUint8ArrayConstructor.cpp: |
|
29472 (WebCore::JSUint8ArrayConstructor::JSUint8ArrayConstructor): |
|
29473 (WebCore::JSUint8ArrayConstructor::getOwnPropertySlot): |
|
29474 (WebCore::JSUint8ArrayConstructor::getOwnPropertyDescriptor): |
|
29475 * bindings/js/JSUint8ArrayConstructor.h: |
|
29476 (WebCore::JSUint8ArrayConstructor::createStructure): |
|
29477 * html/canvas/Float32Array.idl: |
|
29478 * html/canvas/Int16Array.idl: |
|
29479 * html/canvas/Int32Array.idl: |
|
29480 * html/canvas/Int8Array.idl: |
|
29481 * html/canvas/Uint16Array.idl: |
|
29482 * html/canvas/Uint32Array.idl: |
|
29483 * html/canvas/Uint8Array.idl: |
|
29484 |
|
29485 2010-06-10 Eric Seidel <eric@webkit.org> |
|
29486 |
|
29487 Reviewed by Adam Barth. |
|
29488 |
|
29489 HTML5 Parser should continue parsing after script execution |
|
29490 https://bugs.webkit.org/show_bug.cgi?id=40416 |
|
29491 |
|
29492 The previous code was just wrong. We were always blocking |
|
29493 the parser after any script execution. Now we correctly continue |
|
29494 parsing after a successful script execution and only block the |
|
29495 parser when we weren't able to execute the script immediately. |
|
29496 |
|
29497 Added a new haveParsingBlockingScript() function to HTML5ScriptRunner |
|
29498 to make some of the code more self-documenting. |
|
29499 |
|
29500 Test: fast/tokenizer/write-multiple-scripts.html |
|
29501 fast/js/implicit-call-with-global-reentry.html |
|
29502 |
|
29503 * html/HTML5ScriptRunner.cpp: |
|
29504 (WebCore::HTML5ScriptRunner::execute): |
|
29505 - Remove some old (now bogus) FIXMEs and notImplemented() calls. |
|
29506 - Fix the logic to match the HTML5 spec by continuing parsing |
|
29507 after script execution and only blocking the parser when the |
|
29508 script wasn't able to immediately run. |
|
29509 (WebCore::HTML5ScriptRunner::haveParsingBlockingScript): |
|
29510 - New function to make some of the code read better. |
|
29511 (WebCore::HTML5ScriptRunner::executeParsingBlockingScripts): |
|
29512 - Use haveParsingBlockingScript(). |
|
29513 (WebCore::HTML5ScriptRunner::executeScriptsWaitingForLoad): |
|
29514 - Use haveParsingBlockingScript(). |
|
29515 (WebCore::HTML5ScriptRunner::runScript): |
|
29516 - Use haveParsingBlockingScript(). |
|
29517 * html/HTML5ScriptRunner.h: |
|
29518 |
|
29519 2010-06-10 Yury Semikhatsky <yurys@chromium.org> |
|
29520 |
|
29521 Reviewed by Pavel Feldman. |
|
29522 |
|
29523 Web Inspector: to reduce the front end start up time don't push script |
|
29524 sources to frontend if debugger is always enabled, instead request |
|
29525 script content lazily at the moment it should be displyed. It is critical for |
|
29526 always enabled debugger because in that case lots of script may have |
|
29527 already been parsed when the front end is opening and pushing all |
|
29528 of them at once may slow things down(even though the script sources will never |
|
29529 be used if scripts panel isn't open). |
|
29530 https://bugs.webkit.org/show_bug.cgi?id=40364 |
|
29531 |
|
29532 * inspector/InspectorBackend.cpp: |
|
29533 (WebCore::InspectorBackend::getScriptSource): |
|
29534 * inspector/InspectorBackend.h: |
|
29535 * inspector/InspectorBackend.idl: |
|
29536 * inspector/InspectorController.cpp: |
|
29537 (WebCore::InspectorController::didCommitLoad): |
|
29538 (WebCore::InspectorController::getScriptSource): |
|
29539 (WebCore::InspectorController::didParseSource): |
|
29540 * inspector/InspectorController.h: |
|
29541 * inspector/InspectorFrontend.cpp: |
|
29542 (WebCore::InspectorFrontend::didGetScriptSource): |
|
29543 * inspector/InspectorFrontend.h: |
|
29544 * inspector/front-end/InspectorBackendStub.js: |
|
29545 (.WebInspector.InspectorBackendStub.prototype.editScriptSource): |
|
29546 (.WebInspector.InspectorBackendStub.prototype.getScriptSource): |
|
29547 * inspector/front-end/ScriptView.js: |
|
29548 (WebInspector.ScriptView.prototype.setupSourceFrameIfNeeded): |
|
29549 (WebInspector.ScriptView.prototype._didGetScriptSource): |
|
29550 (WebInspector.ScriptView.prototype._sourceFrameSetupFinished): |
|
29551 |
|
29552 2010-06-10 Adam Barth <abarth@webkit.org> |
|
29553 |
|
29554 Reviewed by Eric Seidel. |
|
29555 |
|
29556 Use allowRequestIfNoIllegalURICharacters instead of context for XSSAuditor::canLoadExternalScriptFromSrc |
|
29557 https://bugs.webkit.org/show_bug.cgi?id=40404 |
|
29558 |
|
29559 We originally added the context parameter to |
|
29560 canLoadExternalScriptFromSrc to work around some false positives caused |
|
29561 by folks checking external script URLs on the server. Our thought was |
|
29562 that we could tell these were not real XSS attacks because the |
|
29563 surrounding context wouldn't match in the URL and the document. |
|
29564 |
|
29565 Implementing this feature in the HTML5 parser is hard because it |
|
29566 pierces a layer of abstraction (the token abstraction of the input |
|
29567 stream). We could hack this into the new parser, but instead I think |
|
29568 it's better to switch to using the allowRequestIfNoIllegalURICharacters |
|
29569 heuristic. |
|
29570 |
|
29571 We designed the allowRequestIfNoIllegalURICharacters after the context |
|
29572 heuristic to deal with other cases where the server was validating |
|
29573 input before echoing it. However, we never tried applying it to |
|
29574 canLoadExternalScriptFromSrc. |
|
29575 |
|
29576 It's possible that this will cause false positives and will need to be |
|
29577 reverted, which is why I've left in some of the infrustructure for |
|
29578 computing context. We don't have a good way to know if that will |
|
29579 happen except to try. We do know, however, that this heuristic will |
|
29580 work for the original false positives we saw. |
|
29581 |
|
29582 * html/HTML5Tokenizer.cpp: |
|
29583 (WebCore::HTML5Tokenizer::shouldLoadExternalScriptFromSrc): |
|
29584 * html/HTMLTokenizer.cpp: |
|
29585 (WebCore::HTMLTokenizer::parseTag): |
|
29586 * page/XSSAuditor.cpp: |
|
29587 (WebCore::XSSAuditor::canLoadExternalScriptFromSrc): |
|
29588 * page/XSSAuditor.h: |
|
29589 |
|
29590 2010-06-10 Kwang Yul Seo <skyul@company100.net> |
|
29591 |
|
29592 Reviewed by Kent Tamura. |
|
29593 |
|
29594 Add ENABLE(DATABASE) guard for DatabaseAuthorizer.cpp |
|
29595 https://bugs.webkit.org/show_bug.cgi?id=40399 |
|
29596 |
|
29597 Build fix for ENABLE(DATABASE)=0. |
|
29598 |
|
29599 * storage/DatabaseAuthorizer.cpp: |
|
29600 |
|
29601 2010-06-10 Shu Chang <chang.shu@nokia.com> |
|
29602 |
|
29603 Reviewed by Kenneth Rohde Christiansen. |
|
29604 |
|
29605 Change the type of ShadowBlur from int to float in GraphicsContext. |
|
29606 Using int for ShadowBlur loses precision and fails the test. |
|
29607 Note: This code change fixes Qt port but Mac is still failing due to |
|
29608 platform issue. Function CGContextSetShadowWithColor() does not take |
|
29609 a blur value less than 0.5. |
|
29610 |
|
29611 https://bugs.webkit.org/show_bug.cgi?id=40370 |
|
29612 |
|
29613 * platform/graphics/GraphicsContext.cpp: |
|
29614 (WebCore::GraphicsContext::setShadow): |
|
29615 (WebCore::GraphicsContext::getShadow): |
|
29616 * platform/graphics/GraphicsContext.h: |
|
29617 * platform/graphics/GraphicsContextPrivate.h: |
|
29618 * platform/graphics/cairo/FontCairo.cpp: |
|
29619 (WebCore::Font::drawGlyphs): |
|
29620 * platform/graphics/cairo/GraphicsContextCairo.cpp: |
|
29621 (WebCore::GraphicsContext::calculateShadowBufferDimensions): |
|
29622 (WebCore::drawPathShadow): |
|
29623 (WebCore::drawBorderlessRectShadow): |
|
29624 (WebCore::GraphicsContext::setPlatformShadow): |
|
29625 * platform/graphics/cairo/ImageCairo.cpp: |
|
29626 (WebCore::BitmapImage::draw): |
|
29627 * platform/graphics/cg/GraphicsContextCG.cpp: |
|
29628 (WebCore::GraphicsContext::setPlatformShadow): |
|
29629 * platform/graphics/chromium/FontChromiumWin.cpp: |
|
29630 (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::drawGlyphs): |
|
29631 (WebCore::Font::drawComplexText): |
|
29632 * platform/graphics/gtk/FontGtk.cpp: |
|
29633 (WebCore::Font::drawComplexText): |
|
29634 * platform/graphics/haiku/GraphicsContextHaiku.cpp: |
|
29635 (WebCore::GraphicsContext::setPlatformShadow): |
|
29636 * platform/graphics/mac/FontMac.mm: |
|
29637 (WebCore::Font::drawGlyphs): |
|
29638 * platform/graphics/openvg/GraphicsContextOpenVG.cpp: |
|
29639 (WebCore::GraphicsContext::setPlatformShadow): |
|
29640 * platform/graphics/qt/FontQt.cpp: |
|
29641 (WebCore::Font::drawComplexText): |
|
29642 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
29643 (WebCore::GraphicsContext::drawRect): |
|
29644 (WebCore::GraphicsContext::drawLine): |
|
29645 (WebCore::GraphicsContext::strokeArc): |
|
29646 (WebCore::GraphicsContext::drawConvexPolygon): |
|
29647 (WebCore::drawFilledShadowPath): |
|
29648 (WebCore::GraphicsContext::strokePath): |
|
29649 (WebCore::drawBorderlessRectShadow): |
|
29650 (WebCore::GraphicsContext::setPlatformShadow): |
|
29651 * platform/graphics/qt/ImageQt.cpp: |
|
29652 (WebCore::BitmapImage::draw): |
|
29653 * platform/graphics/skia/GraphicsContextSkia.cpp: |
|
29654 (WebCore::GraphicsContext::setPlatformShadow): |
|
29655 * platform/graphics/skia/SkiaFontWin.cpp: |
|
29656 (WebCore::windowsCanHandleDrawTextShadow): |
|
29657 * platform/graphics/win/FontCGWin.cpp: |
|
29658 (WebCore::drawGDIGlyphs): |
|
29659 (WebCore::Font::drawGlyphs): |
|
29660 * platform/graphics/wince/GraphicsContextWince.cpp: |
|
29661 (WebCore::GraphicsContext::fillRoundedRect): |
|
29662 (WebCore::GraphicsContext::setPlatformShadow): |
|
29663 (WebCore::GraphicsContext::drawText): |
|
29664 * platform/graphics/wx/GraphicsContextWx.cpp: |
|
29665 (WebCore::GraphicsContext::setPlatformShadow): |
|
29666 |
|
29667 2010-06-10 Yael Aharon <yael.aharon@nokia.com> |
|
29668 |
|
29669 Reviewed by Kenneth Rohde Christiansen. |
|
29670 |
|
29671 Support for loading notification icons |
|
29672 https://bugs.webkit.org/show_bug.cgi?id=40396 |
|
29673 |
|
29674 Make notification objects download the icon needed for displaying the |
|
29675 notification before calling the NotificationPresenter to display the |
|
29676 notification. |
|
29677 |
|
29678 An error during the download would cause the notification to be displayed |
|
29679 without an icon. |
|
29680 |
|
29681 If a notification is in the process of download, and a new notification |
|
29682 is created with the same ReplaceId, the download is not cancelled |
|
29683 immediately and the notification is removed only after the download is |
|
29684 complete. |
|
29685 |
|
29686 Tests: http/tests/notifications/icon-does-not-exist.html |
|
29687 http/tests/notifications/icon-exists-cancel.html |
|
29688 http/tests/notifications/icon-exists-show-alert-during-load.html |
|
29689 http/tests/notifications/icon-exists.html |
|
29690 http/tests/notifications/icon-requires-auth.html |
|
29691 |
|
29692 * notifications/Notification.cpp: |
|
29693 (WebCore::Notification::Notification): |
|
29694 (WebCore::Notification::~Notification): |
|
29695 (WebCore::Notification::show): |
|
29696 (WebCore::Notification::cancel): |
|
29697 (WebCore::Notification::startLoading): |
|
29698 (WebCore::Notification::stopLoading): |
|
29699 (WebCore::Notification::didReceiveResponse): |
|
29700 (WebCore::Notification::didReceiveData): |
|
29701 (WebCore::Notification::didFinishLoading): |
|
29702 (WebCore::Notification::didFail): |
|
29703 (WebCore::Notification::didFailRedirectCheck): |
|
29704 (WebCore::Notification::didReceiveAuthenticationCancellation): |
|
29705 (WebCore::Notification::finishLoading): |
|
29706 * notifications/Notification.h: |
|
29707 (WebCore::Notification::iconData): |
|
29708 (WebCore::Notification::releaseIconData): |
|
29709 (WebCore::Notification::): |
|
29710 |
|
29711 2010-06-10 Raine Makelainen <raine.makelainen@nokia.com> |
|
29712 |
|
29713 Reviewed by Kenneth Rohde Christiansen. |
|
29714 |
|
29715 Impossible to set input method hints based HTML5 input types |
|
29716 https://bugs.webkit.org/show_bug.cgi?id=40107 |
|
29717 |
|
29718 Helper methods for checking "tel", "number", "email", |
|
29719 and "url" input element types. |
|
29720 |
|
29721 * html/HTMLInputElement.h: |
|
29722 (WebCore::HTMLInputElement::isTelephoneField): |
|
29723 (WebCore::HTMLInputElement::isNumberField): |
|
29724 (WebCore::HTMLInputElement::isEmailField): |
|
29725 (WebCore::HTMLInputElement::isUrlField): |
|
29726 |
|
29727 2010-06-10 Daniel Cheng <dcheng@chromium.org> |
|
29728 |
|
29729 Reviewed by Jian Li. |
|
29730 |
|
29731 Don't convert filenames to URLs in edit drags. |
|
29732 https://bugs.webkit.org/show_bug.cgi?id=38826 |
|
29733 |
|
29734 For security reasons, we don't want to expose file system paths to web |
|
29735 content, so we filter them out of edit drags. |
|
29736 |
|
29737 Test: editing/pasteboard/file-drag-to-editable.html |
|
29738 |
|
29739 * page/DragController.cpp: |
|
29740 (WebCore::documentFragmentFromDragData): |
|
29741 * platform/DragData.h: |
|
29742 (WebCore::DragData::): |
|
29743 * platform/android/DragDataAndroid.cpp: |
|
29744 (WebCore::DragData::containsURL): |
|
29745 (WebCore::DragData::asURL): |
|
29746 * platform/chromium/DragDataChromium.cpp: |
|
29747 (WebCore::DragData::containsURL): |
|
29748 (WebCore::DragData::asURL): |
|
29749 * platform/efl/DragDataEfl.cpp: |
|
29750 (WebCore::DragData::containsURL): |
|
29751 (WebCore::DragData::asURL): |
|
29752 * platform/gtk/DragDataGtk.cpp: |
|
29753 (WebCore::DragData::containsURL): |
|
29754 (WebCore::DragData::asURL): |
|
29755 * platform/haiku/DragDataHaiku.cpp: |
|
29756 (WebCore::DragData::containsURL): |
|
29757 (WebCore::DragData::asURL): |
|
29758 * platform/mac/DragDataMac.mm: |
|
29759 (WebCore::DragData::containsURL): |
|
29760 (WebCore::DragData::asURL): |
|
29761 * platform/qt/DragDataQt.cpp: |
|
29762 (WebCore::DragData::asPlainText): |
|
29763 (WebCore::DragData::containsURL): |
|
29764 (WebCore::DragData::asURL): |
|
29765 * platform/win/ClipboardUtilitiesWin.cpp: |
|
29766 (WebCore::getURL): |
|
29767 (WebCore::getPlainText): |
|
29768 * platform/win/ClipboardUtilitiesWin.h: |
|
29769 * platform/win/ClipboardWin.cpp: |
|
29770 (WebCore::ClipboardWin::getData): |
|
29771 * platform/win/DragDataWin.cpp: |
|
29772 (WebCore::DragData::containsURL): |
|
29773 (WebCore::DragData::asURL): |
|
29774 * platform/wince/DragDataWince.cpp: |
|
29775 (WebCore::DragData::containsURL): |
|
29776 (WebCore::DragData::asURL): |
|
29777 * platform/wx/DragDataWx.cpp: |
|
29778 (WebCore::DragData::containsURL): |
|
29779 (WebCore::DragData::asURL): |
|
29780 |
|
29781 2010-06-10 Mike Belshe <mbelshe@chromium.org> |
|
29782 |
|
29783 Reviewed by David Levin |
|
29784 |
|
29785 Track whether a resource is loaded via a proxy. |
|
29786 |
|
29787 https://bugs.webkit.org/show_bug.cgi?id=40312 |
|
29788 |
|
29789 * platform/network/chromium/ResourceResponse.h: |
|
29790 (WebCore::ResourceResponse::wasFetchedViaProxy): |
|
29791 (WebCore::ResourceResponse::setWasFetchedViaProxy): |
|
29792 |
|
29793 2010-06-10 Jungshik Shin <jshin@chromium.org> |
|
29794 |
|
29795 Reviewed by Kent Tamura |
|
29796 |
|
29797 Bug 38224 - [chromium] Enable rendering of Ethiopic, Lao, Tibetan |
|
29798 and a few other scripts on Win XP |
|
29799 |
|
29800 https://bugs.webkit.org/show_bug.cgi?id=38224 |
|
29801 |
|
29802 Make it possible to specify a list of fonts for per-script |
|
29803 fallback instead of a single font per script. This is |
|
29804 necessary for Malayalam (for which Windows font doesn't |
|
29805 support Unicode 5.x fully on Vista or earlier), Ethiopic |
|
29806 (we want to support on XP with a 3rd party font because XP |
|
29807 doesn't have any Ethiopic font out of the box) and some other |
|
29808 scripts. This is a short-term 'fix' until we have per-script |
|
29809 font preferences. |
|
29810 |
|
29811 No layout test is added because the test results would be |
|
29812 dependent on which fonts are present. |
|
29813 |
|
29814 * platform/graphics/chromium/FontUtilsChromiumWin.cpp: |
|
29815 (WebCore::): |
|
29816 (WebCore::FontMap::ScriptToFontFamilies::): |
|
29817 |
|
29818 2010-06-09 Andrei Popescu <andreip@google.com> |
|
29819 |
|
29820 Reviewed by Adam Barth. |
|
29821 |
|
29822 CodeGeneratorJS.pm incorrectly increments $paramIndex when a method is declared with [CallWith] |
|
29823 https://bugs.webkit.org/show_bug.cgi?id=40372 |
|
29824 |
|
29825 Use two variables to keep track of the number of arguments passed from JavaScript vs the number |
|
29826 of arguments passed to the corresponding C++ method. These numbers can be different since |
|
29827 the parameter declared via [CallWith] is generated in the bindings instead of being passed |
|
29828 from JavaScript. |
|
29829 |
|
29830 Test: storage/indexeddb/idb-objectstore-request.html |
|
29831 |
|
29832 * bindings/scripts/CodeGeneratorJS.pm: |
|
29833 * bindings/scripts/test/CPP/WebDOMTestObj.cpp: |
|
29834 (WebDOMTestObj::withScriptExecutionContext): |
|
29835 * bindings/scripts/test/CPP/WebDOMTestObj.h: |
|
29836 * bindings/scripts/test/JS/JSTestObj.cpp: |
|
29837 (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg): |
|
29838 (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg): |
|
29839 (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture): |
|
29840 (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD): |
|
29841 |
|
29842 2010-06-09 MORITA Hajime <morrita@google.com> |
|
29843 |
|
29844 Reviewed by Kent Tamura. |
|
29845 |
|
29846 Refactoring: Simple shadow elements should be factored out . |
|
29847 https://bugs.webkit.org/show_bug.cgi?id=40400 |
|
29848 |
|
29849 Pulled ShadowElement class up from SliderThumbElement, |
|
29850 ProgressValueElement, ShadowInputElement. |
|
29851 And renamed ProgressValueElement to ShadowBlockElement. |
|
29852 |
|
29853 No new tests. Because there is no functional change. |
|
29854 |
|
29855 * CMakeLists.txt: |
|
29856 * GNUmakefile.am: |
|
29857 * WebCore.gypi: |
|
29858 * WebCore.pro: |
|
29859 * WebCore.vcproj/WebCore.vcproj: |
|
29860 * WebCore.xcodeproj/project.pbxproj: |
|
29861 * rendering/RenderFileUploadControl.cpp: |
|
29862 * rendering/RenderProgress.cpp: |
|
29863 (WebCore::RenderProgress::updateValuePartState): |
|
29864 * rendering/RenderProgress.h: |
|
29865 * rendering/RenderSlider.cpp: |
|
29866 (WebCore::SliderThumbElement::SliderThumbElement): |
|
29867 (WebCore::SliderThumbElement::defaultEventHandler): |
|
29868 (WebCore::SliderThumbElement::detach): |
|
29869 * rendering/ShadowElement.cpp: Added. |
|
29870 (WebCore::ShadowBlockElement::create): |
|
29871 (WebCore::ShadowBlockElement::ShadowBlockElement): |
|
29872 (WebCore::ShadowInputElement::create): |
|
29873 (WebCore::ShadowInputElement::ShadowInputElement): |
|
29874 * rendering/ShadowElement.h: Added. |
|
29875 (WebCore::ShadowElement::ShadowElement): |
|
29876 (WebCore::ShadowElement::isShadowNode): |
|
29877 (WebCore::ShadowElement::shadowParentNode): |
|
29878 |
|
29879 2010-06-10 Eric Seidel <eric@webkit.org> |
|
29880 |
|
29881 Reviewed by Adam Barth. |
|
29882 |
|
29883 Reduce FrameView.h includes to speed up build times |
|
29884 https://bugs.webkit.org/show_bug.cgi?id=40408 |
|
29885 |
|
29886 Another fix for Qt. |
|
29887 |
|
29888 * page/Frame.h: |
|
29889 - Include CSSMutableStyleDeclaration.h since it's used by m_typingStyle = 0; |
|
29890 |
|
29891 2010-06-10 Eric Seidel <eric@webkit.org> |
|
29892 |
|
29893 Reviewed by Adam Barth. |
|
29894 |
|
29895 Reduce FrameView.h includes to speed up build times |
|
29896 https://bugs.webkit.org/show_bug.cgi?id=40408 |
|
29897 |
|
29898 More attempted build fixes for Tiger and Qt. |
|
29899 |
|
29900 * page/Frame.cpp: |
|
29901 * page/Frame.h: |
|
29902 |
|
29903 2010-06-10 Eric Seidel <eric@webkit.org> |
|
29904 |
|
29905 Reviewed by Adam Barth. |
|
29906 |
|
29907 Reduce FrameView.h includes to speed up build times |
|
29908 https://bugs.webkit.org/show_bug.cgi?id=40408 |
|
29909 |
|
29910 Add a few more RenderLayer.h includes to fix non-mac builds. |
|
29911 |
|
29912 * page/FrameView.cpp: |
|
29913 * rendering/RenderObject.cpp: |
|
29914 * rendering/RenderTreeAsText.cpp: |
|
29915 |
|
29916 2010-06-10 Eric Seidel <eric@webkit.org> |
|
29917 |
|
29918 Reviewed by Adam Barth. |
|
29919 |
|
29920 Reduce FrameView.h includes to speed up build times |
|
29921 https://bugs.webkit.org/show_bug.cgi?id=40408 |
|
29922 |
|
29923 Cleaned up FrameView.h includes and then propagated the |
|
29924 cascade of includes to the necessary .cpp files. |
|
29925 This should reduce the set of files rebuilt every |
|
29926 time FrameView.h changes, and should also reduce the size |
|
29927 of some .o files. |
|
29928 |
|
29929 No functional changes, thus no tests. |
|
29930 |
|
29931 * accessibility/AccessibilityRenderObject.cpp: |
|
29932 * dom/ContainerNode.cpp: |
|
29933 * dom/Document.cpp: |
|
29934 * dom/Element.cpp: |
|
29935 * dom/EventTarget.h: |
|
29936 * dom/Node.cpp: |
|
29937 * editing/EditorCommand.cpp: |
|
29938 * editing/SelectionController.cpp: |
|
29939 * html/HTML5Tokenizer.cpp: |
|
29940 (WebCore::HTML5Tokenizer::script): |
|
29941 - No need for this to be inline. Being inline required |
|
29942 Frame.h in the header, which causes huge include cascade. |
|
29943 * html/HTML5Tokenizer.h: |
|
29944 * page/DragController.cpp: |
|
29945 * page/EventHandler.cpp: |
|
29946 * page/Frame.h: |
|
29947 * page/FrameView.h: |
|
29948 * page/PrintContext.cpp: |
|
29949 * page/SpatialNavigation.cpp: |
|
29950 * rendering/RenderBlock.cpp: |
|
29951 * rendering/RenderBlockLineLayout.cpp: |
|
29952 * rendering/RenderImage.cpp: |
|
29953 * rendering/RenderInline.cpp: |
|
29954 * rendering/RenderObject.h: |
|
29955 * rendering/RenderTextControlSingleLine.cpp: |
|
29956 * rendering/RenderWidget.cpp: |
|
29957 * rendering/SVGRenderSupport.cpp: |
|
29958 |
|
29959 2010-06-10 Adam Barth <abarth@webkit.org> |
|
29960 |
|
29961 Reviewed by Eric Seidel. |
|
29962 |
|
29963 Move HTML5 entity parser to its own file |
|
29964 https://bugs.webkit.org/show_bug.cgi?id=40406 |
|
29965 |
|
29966 Moving this algorithm to its own file better encapsulates its |
|
29967 dependencies and makes it callable from other parts of WebCore. |
|
29968 |
|
29969 * Android.mk: |
|
29970 * CMakeLists.txt: |
|
29971 * GNUmakefile.am: |
|
29972 * WebCore.gypi: |
|
29973 * WebCore.pro: |
|
29974 * WebCore.vcproj/WebCore.vcproj: |
|
29975 * WebCore.xcodeproj/project.pbxproj: |
|
29976 * html/HTML5EntityParser.cpp: Copied from WebCore/html/HTML5Lexer.cpp. |
|
29977 (WebCore::): |
|
29978 (WebCore::consumeHTML5Entity): |
|
29979 * html/HTML5EntityParser.h: Copied from WebCore/html/HTML5Lexer.h. |
|
29980 * html/HTML5Lexer.cpp: |
|
29981 (WebCore::HTML5Lexer::processEntity): |
|
29982 (WebCore::HTML5Lexer::nextToken): |
|
29983 * html/HTML5Lexer.h: |
|
29984 |
|
29985 2010-06-09 Tony Gentilcore <tonyg@chromium.org> |
|
29986 |
|
29987 Reviewed by Adam Barth. |
|
29988 |
|
29989 HTML5 Parser: Fix fast/profiler tests that depend on event handler line numbers |
|
29990 https://bugs.webkit.org/show_bug.cgi?id=40393 |
|
29991 |
|
29992 This emulated the old behavior in HTMLTokenizer:processToken() |
|
29993 |
|
29994 No new tests because covered by: |
|
29995 - fast/profiler/dead-time.html |
|
29996 - fast/profiler/inline-event-handler.html |
|
29997 - fast/profiler/stop-profiling-after-setTimeout.html |
|
29998 - fast/profiler/throw-exception-from-eval.html |
|
29999 |
|
30000 * html/HTML5Tokenizer.cpp: |
|
30001 (WebCore::HTML5Tokenizer::pumpLexer): |
|
30002 |
|
30003 2010-06-09 Alexey Proskuryakov <ap@apple.com> |
|
30004 |
|
30005 Reviewed by Dan Bernstein. |
|
30006 |
|
30007 https://bugs.webkit.org/show_bug.cgi?id=9504 |
|
30008 img tag rewritten by innerHTML doesn't use image map |
|
30009 |
|
30010 Test: fast/dom/replaced-image-map.html |
|
30011 |
|
30012 * html/HTMLMapElement.cpp: |
|
30013 (WebCore::HTMLMapElement::~HTMLMapElement): Destructor is not a good place to make changes |
|
30014 that affect page behavior, because destructors are called by garbage collector. Don't |
|
30015 undregister the image map from here. |
|
30016 (WebCore::HTMLMapElement::parseMappedAttribute): Only tell document about the map if it's |
|
30017 actually in document. A map in a detached subtree isn't used by Firefox at least. |
|
30018 (WebCore::HTMLMapElement::insertedIntoDocument): Register the map. |
|
30019 (WebCore::HTMLMapElement::removedFromDocument): Unregister the map. |
|
30020 |
|
30021 * html/HTMLMapElement.h: Added insertedIntoDocument/removedFromDocument overrides. |
|
30022 |
|
30023 2010-06-09 Roland Steiner <rolandsteiner@chromium.org> |
|
30024 |
|
30025 Reviewed by Ojan Vafai. |
|
30026 |
|
30027 Bug 35632 - htmlediting.cpp : isEmptyTableCell() is incomplete |
|
30028 https://bugs.webkit.org/show_bug.cgi?id=35632 |
|
30029 |
|
30030 Correct isEmptyTableCell to check for the presence of other renderer |
|
30031 children. |
|
30032 |
|
30033 Test: editing/deleting/delete-br-in-last-table-cell.html |
|
30034 |
|
30035 * editing/htmlediting.cpp: |
|
30036 (WebCore::isEmptyTableCell): |
|
30037 |
|
30038 2010-06-09 Qi Zhang <qi.2.zhang@nokia.com> |
|
30039 |
|
30040 Reviewed by Laszlo Gombos. |
|
30041 |
|
30042 [Qt] Failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arcTo.transformation.html |
|
30043 https://bugs.webkit.org/show_bug.cgi?id=38598 |
|
30044 |
|
30045 In path transform function handle path only have moveElement case. |
|
30046 |
|
30047 * platform/graphics/qt/PathQt.cpp: |
|
30048 (WebCore::Path::transform): |
|
30049 |
|
30050 2010-06-09 Anton Muhin <antonm@chromium.org> |
|
30051 |
|
30052 Reviewed by Nate Chapin. |
|
30053 |
|
30054 [v8] First phase of switching to new named property query API |
|
30055 https://bugs.webkit.org/show_bug.cgi?id=40303 |
|
30056 |
|
30057 To allow better management of attributes of intercepted properties, |
|
30058 we're starting to switch to new named property query API which |
|
30059 now could return attributes instead of simple property present/absent |
|
30060 flag. The next step would remove USE_NEW_QUERY_CALLBACK, then |
|
30061 v8 would have them enabled by default. |
|
30062 |
|
30063 * bindings/scripts/CodeGeneratorV8.pm: |
|
30064 * bindings/v8/NPV8Object.cpp: |
|
30065 * bindings/v8/ScriptArray.cpp: |
|
30066 * bindings/v8/ScriptCallStack.cpp: |
|
30067 * bindings/v8/SerializedScriptValue.cpp: |
|
30068 * bindings/v8/V8Binding.cpp: |
|
30069 * bindings/v8/V8DOMWrapper.cpp: |
|
30070 * bindings/v8/V8GCController.cpp: |
|
30071 * bindings/v8/V8IsolatedContext.cpp: |
|
30072 * bindings/v8/V8NPObject.cpp: |
|
30073 (WebCore::npObjectQueryProperty): |
|
30074 * bindings/v8/V8Proxy.cpp: |
|
30075 * bindings/v8/custom/V8PopStateEventCustom.cpp: |
|
30076 * bindings/v8/custom/V8StorageCustom.cpp: |
|
30077 (WebCore::V8Storage::namedPropertyQuery): |
|
30078 * config.h: |
|
30079 |
|
30080 2010-06-09 Steve Block <steveblock@google.com> |
|
30081 |
|
30082 Reviewed by Jeremy Orlow. |
|
30083 |
|
30084 Need to include V8Proxy.h in V8 generated bindings for toV8Context() |
|
30085 https://bugs.webkit.org/show_bug.cgi?id=40290 |
|
30086 |
|
30087 No new tests, build fix only. |
|
30088 |
|
30089 * bindings/scripts/CodeGeneratorV8.pm: |
|
30090 |
|
30091 2010-06-09 Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com> |
|
30092 |
|
30093 Reviewed by Kenneth Rohde Christiansen. |
|
30094 |
|
30095 WebGL rendering context does not activate unless accelerated |
|
30096 compositing is enabled from settings. |
|
30097 https://bugs.webkit.org/show_bug.cgi?id=37772 |
|
30098 |
|
30099 * html/HTMLCanvasElement.cpp: |
|
30100 (WebCore::HTMLCanvasElement::getContext): |
|
30101 |
|
30102 2010-06-09 Yong Li <yoli@rim.com> |
|
30103 |
|
30104 Reviewed by George Staikos. |
|
30105 |
|
30106 https://bugs.webkit.org/show_bug.cgi?id=40252 |
|
30107 Make image down-sampling threshold runtime adjustable. |
|
30108 |
|
30109 No new test needed. |
|
30110 |
|
30111 * platform/graphics/ImageSource.cpp: |
|
30112 (WebCore::ImageSource::setData): |
|
30113 * platform/graphics/ImageSource.h: |
|
30114 (WebCore::ImageSource::maxPixelsPerDecodedImage): |
|
30115 (WebCore::ImageSource::setMaxPixelsPerDecodedImage): |
|
30116 |
|
30117 2010-06-09 Adam Barth <abarth@webkit.org> |
|
30118 |
|
30119 Reviewed by Eric Seidel. |
|
30120 |
|
30121 Fix handling of bytes received from the network while in document.write |
|
30122 https://bugs.webkit.org/show_bug.cgi?id=40356 |
|
30123 |
|
30124 The old tokenizer has specially logic for handling the case of |
|
30125 receiving bytes from the network while in a nested call to |
|
30126 document.write. This patch implements similar logic for the HTML5 |
|
30127 tokenizer. Also, this patch abstracts the tricky shuffling of |
|
30128 SegmentedStrings behind a simple API. |
|
30129 |
|
30130 I'm not sure how to trigger this case. My guess is we can trigger it |
|
30131 using a nested event loop, e.g., via alert(), but I'm not sure how to |
|
30132 test that in a LayoutTest. There don't appear to be any LayoutTests |
|
30133 that currently test this behavior despite it being present in the old |
|
30134 tokenizer. |
|
30135 |
|
30136 * html/HTML5Tokenizer.cpp: |
|
30137 (WebCore::HTML5Tokenizer::pumpLexer): |
|
30138 (WebCore::HTML5Tokenizer::write): |
|
30139 - Added a branch for the |append| argument. |
|
30140 (WebCore::HTML5Tokenizer::end): |
|
30141 (WebCore::HTML5Tokenizer::finish): |
|
30142 (WebCore::HTML5Tokenizer::executeScript): |
|
30143 - Switch over to using a RAII pattern for recording and restoring |
|
30144 insertion points. |
|
30145 * html/HTML5Tokenizer.h: |
|
30146 (WebCore::HTML5Tokenizer::InputStream::InputStream): |
|
30147 (WebCore::HTML5Tokenizer::InputStream::appendToEnd): |
|
30148 (WebCore::HTML5Tokenizer::InputStream::insertAtCurrentInsertionPoint): |
|
30149 (WebCore::HTML5Tokenizer::InputStream::close): |
|
30150 - Putting the close() method on InputStream makes it much easier to |
|
30151 handle EOF. We now just close the last buffer in the stream when |
|
30152 the network says it's done. |
|
30153 (WebCore::HTML5Tokenizer::InputStream::current): |
|
30154 - This class could be moved to its own file, but it shouldn't be |
|
30155 used outside of the tokenizer. |
|
30156 (WebCore::HTML5Tokenizer::InsertionPointRecord::InsertionPointRecord): |
|
30157 (WebCore::HTML5Tokenizer::InsertionPointRecord::~InsertionPointRecord): |
|
30158 - A simple RAII class for managing saved insertion points. |
|
30159 * platform/text/SegmentedString.cpp: |
|
30160 (WebCore::SegmentedString::operator=): |
|
30161 - Fix a related bug where m_closed was not being copied properly in |
|
30162 the assignment operator. |
|
30163 |
|
30164 2010-06-09 Tony Gentilcore <tonyg@chromium.org> |
|
30165 |
|
30166 Reviewed by Adam Barth. |
|
30167 |
|
30168 Fix fast/parser/hex-entities-length.html for HTML5 parser |
|
30169 https://bugs.webkit.org/show_bug.cgi?id=40385 |
|
30170 |
|
30171 Stripping surrogate pair values appears to be a problem with the spec |
|
30172 in "Preprocessing the input stream." Minefield doesn't appear to |
|
30173 implement the part in question. So this patch removes that guard and |
|
30174 adds a FIXME to track the issue. |
|
30175 |
|
30176 No new tests because covered by fast/parser/hex-entities-length.html |
|
30177 |
|
30178 * html/HTML5Lexer.h: |
|
30179 (WebCore::HTML5Lexer::InputStreamPreprocessor::peek): |
|
30180 |
|
30181 2010-06-09 Kenneth Russell <kbr@google.com> |
|
30182 |
|
30183 Reviewed by Dimitri Glazkov. |
|
30184 |
|
30185 Update readPixels to take ArrayBufferView rather than returning it |
|
30186 https://bugs.webkit.org/show_bug.cgi?id=40322 |
|
30187 |
|
30188 No new tests; covered by existing tests, which have been modified. |
|
30189 |
|
30190 * html/canvas/WebGLRenderingContext.cpp: |
|
30191 (WebCore::WebGLRenderingContext::readPixels): |
|
30192 * html/canvas/WebGLRenderingContext.h: |
|
30193 * html/canvas/WebGLRenderingContext.idl: |
|
30194 |
|
30195 2010-06-09 Enrico Ros <eros@codeaurora.org> |
|
30196 |
|
30197 Reviewed by Ariya Hidayat. |
|
30198 |
|
30199 Fix drawing zero-sized gradients on Canvas. |
|
30200 https://bugs.webkit.org/show_bug.cgi?id=40340 |
|
30201 |
|
30202 HTML5 draft says that nothing must be painted if the gradient start |
|
30203 point equals the stop point. |
|
30204 |
|
30205 This commit fixes the following canvas test: |
|
30206 http://philip.html5.org/tests/canvas/suite/tests/2d.gradient.interpolate.zerosize.html |
|
30207 |
|
30208 * html/canvas/CanvasRenderingContext2D.cpp: |
|
30209 (WebCore::CanvasRenderingContext2D::fillRect): skip zero-sized linear gradients |
|
30210 * platform/graphics/Gradient.h: |
|
30211 (WebCore::Gradient::isRadial): made public |
|
30212 (WebCore::Gradient::isZeroSize): true if start == stop |
|
30213 |
|
30214 2010-06-09 Leandro Pereira <leandro@profusion.mobi> |
|
30215 |
|
30216 Reviewed by Adam Treat. |
|
30217 |
|
30218 [EFL] Allow building core libraries as shared objects to speed up |
|
30219 linking time on machines with small amounts of memory. |
|
30220 http://webkit.org/b/39899 |
|
30221 |
|
30222 * CMakeLists.txt: If building with shared core, install the lib. |
|
30223 Remove npapi.cpp (causes conflicts when linking dynamically). |
|
30224 * CMakeListsEfl.txt: EFL libraries are needed to link dynamically. |
|
30225 |
|
30226 2010-06-09 Mark Rowe <mrowe@apple.com> |
|
30227 |
|
30228 Reviewed by Adele Peterson. |
|
30229 |
|
30230 <rdar://problem/8070662> REGRESSION (r51629): WebBackForwardList created via -init crashes when -addItem: is called. |
|
30231 |
|
30232 A WebBackForwardList created via -init results in a BackForwardList being created with a null m_page. |
|
30233 BackForwardList needs to be careful not to dereference m_page without first ensuring it's not null. |
|
30234 |
|
30235 * history/BackForwardList.cpp: |
|
30236 (WebCore::BackForwardList::addItem): Null-check m_page. |
|
30237 (WebCore::BackForwardList::goBack): Ditto. |
|
30238 (WebCore::BackForwardList::goForward): Ditto. |
|
30239 (WebCore::BackForwardList::goToItem): Ditto. |
|
30240 (WebCore::BackForwardList::setCapacity): Ditto. |
|
30241 |
|
30242 2010-06-09 Kwang Yul Seo <skyul@company100.net> |
|
30243 |
|
30244 Reviewed by Kent Tamura. |
|
30245 |
|
30246 [BREWMP] Add dummy Context Menu implementation |
|
30247 https://bugs.webkit.org/show_bug.cgi?id=40223 |
|
30248 |
|
30249 Brew MP does not use Context Menu. Add dummy implementation. |
|
30250 |
|
30251 * platform/brew/ContextMenuBrew.cpp: Added. |
|
30252 (WebCore::ContextMenu::ContextMenu): |
|
30253 (WebCore::ContextMenu::~ContextMenu): |
|
30254 (WebCore::ContextMenu::itemCount): |
|
30255 (WebCore::ContextMenu::insertItem): |
|
30256 (WebCore::ContextMenu::appendItem): |
|
30257 (WebCore::ContextMenu::itemWithAction): |
|
30258 (WebCore::ContextMenu::itemAtIndex): |
|
30259 (WebCore::ContextMenu::setPlatformDescription): |
|
30260 (WebCore::ContextMenu::platformDescription): |
|
30261 (WebCore::ContextMenu::releasePlatformDescription): |
|
30262 * platform/brew/ContextMenuItemBrew.cpp: Added. |
|
30263 (WebCore::ContextMenuItem::ContextMenuItem): |
|
30264 (WebCore::ContextMenuItem::~ContextMenuItem): |
|
30265 (WebCore::ContextMenuItem::releasePlatformDescription): |
|
30266 (WebCore::ContextMenuItem::type): |
|
30267 (WebCore::ContextMenuItem::action): |
|
30268 (WebCore::ContextMenuItem::title): |
|
30269 (WebCore::ContextMenuItem::platformSubMenu): |
|
30270 (WebCore::ContextMenuItem::setType): |
|
30271 (WebCore::ContextMenuItem::setAction): |
|
30272 (WebCore::ContextMenuItem::setTitle): |
|
30273 (WebCore::ContextMenuItem::setSubMenu): |
|
30274 (WebCore::ContextMenuItem::setChecked): |
|
30275 (WebCore::ContextMenuItem::setEnabled): |
|
30276 (WebCore::ContextMenuItem::enabled): |
|
30277 |
|
30278 2010-06-09 Kwang Yul Seo <skyul@company100.net> |
|
30279 |
|
30280 Reviewed by Kent Tamura. |
|
30281 |
|
30282 [BREWMP] Port Clipboard |
|
30283 https://bugs.webkit.org/show_bug.cgi?id=35734 |
|
30284 |
|
30285 Add dummy Clipboard. |
|
30286 |
|
30287 * platform/brew/ClipboardBrew.cpp: Added. |
|
30288 (WebCore::ClipboardBrew::ClipboardBrew): |
|
30289 (WebCore::ClipboardBrew::~ClipboardBrew): |
|
30290 (WebCore::ClipboardBrew::clearData): |
|
30291 (WebCore::ClipboardBrew::clearAllData): |
|
30292 (WebCore::ClipboardBrew::getData): |
|
30293 (WebCore::ClipboardBrew::setData): |
|
30294 (WebCore::ClipboardBrew::types): |
|
30295 (WebCore::ClipboardBrew::files): |
|
30296 (WebCore::ClipboardBrew::setDragImage): |
|
30297 (WebCore::ClipboardBrew::setDragImageElement): |
|
30298 (WebCore::ClipboardBrew::createDragImage): |
|
30299 (WebCore::ClipboardBrew::declareAndWriteDragImage): |
|
30300 (WebCore::ClipboardBrew::writeURL): |
|
30301 (WebCore::ClipboardBrew::writeRange): |
|
30302 (WebCore::ClipboardBrew::writePlainText): |
|
30303 (WebCore::ClipboardBrew::hasData): |
|
30304 * platform/brew/ClipboardBrew.h: Added. |
|
30305 |
|
30306 2010-06-09 Anders Bakken <agbakken@gmail.com> |
|
30307 |
|
30308 Reviewed by David Levin. |
|
30309 |
|
30310 [Qt] ClipboardQt.cpp has coding-style errors |
|
30311 https://bugs.webkit.org/show_bug.cgi?id=39781 |
|
30312 |
|
30313 * platform/qt/ClipboardQt.cpp: |
|
30314 (WebCore::ClipboardQt::declareAndWriteDragImage): |
|
30315 |
|
30316 2010-06-09 Kenneth Russell <kbr@google.com> |
|
30317 |
|
30318 Reviewed by Dimitri Glazkov. |
|
30319 |
|
30320 Rename FloatArray to Float32Array |
|
30321 https://bugs.webkit.org/show_bug.cgi?id=40323 |
|
30322 |
|
30323 Used do-webcore-rename to perform renaming. Manually undid |
|
30324 incorrect changes to WebCore/bridge/jni/jsc/JNIBridgeJSC.cpp, |
|
30325 WebCore/manual-tests/resources/ArrayParameterTestApplet.java and |
|
30326 ArrayParameterTestApplet.class. Updated LayoutTests. Built and ran |
|
30327 all layout tests on Safari; built Chromium and ran selected WebGL |
|
30328 tests. |
|
30329 |
|
30330 * CMakeLists.txt: |
|
30331 * DerivedSources.make: |
|
30332 * GNUmakefile.am: |
|
30333 * WebCore.gypi: |
|
30334 * WebCore.pri: |
|
30335 * WebCore.pro: |
|
30336 * WebCore.xcodeproj/project.pbxproj: |
|
30337 * bindings/generic/RuntimeEnabledFeatures.h: |
|
30338 (WebCore::RuntimeEnabledFeatures::float32ArrayEnabled): |
|
30339 * bindings/js/JSArrayBufferViewCustom.cpp: |
|
30340 (WebCore::toJS): |
|
30341 * bindings/js/JSDOMWindowCustom.cpp: |
|
30342 (WebCore::JSDOMWindow::float32Array): |
|
30343 (WebCore::JSDOMWindow::webGLFloatArray): |
|
30344 * bindings/js/JSFloat32ArrayConstructor.cpp: Copied from WebCore/bindings/js/JSFloatArrayConstructor.cpp. |
|
30345 (WebCore::): |
|
30346 (WebCore::JSFloat32ArrayConstructor::JSFloat32ArrayConstructor): |
|
30347 (WebCore::constructCanvasFloatArray): |
|
30348 (WebCore::JSFloat32ArrayConstructor::getConstructData): |
|
30349 * bindings/js/JSFloat32ArrayConstructor.h: Copied from WebCore/bindings/js/JSFloatArrayConstructor.h. |
|
30350 * bindings/js/JSFloat32ArrayCustom.cpp: Copied from WebCore/bindings/js/JSFloatArrayCustom.cpp. |
|
30351 (WebCore::JSFloat32Array::indexSetter): |
|
30352 (WebCore::toJS): |
|
30353 (WebCore::JSFloat32Array::set): |
|
30354 * bindings/js/JSFloatArrayConstructor.cpp: Removed. |
|
30355 * bindings/js/JSFloatArrayConstructor.h: Removed. |
|
30356 * bindings/js/JSFloatArrayCustom.cpp: Removed. |
|
30357 * bindings/js/JSWebGLRenderingContextCustom.cpp: |
|
30358 (WebCore::dataFunctionf): |
|
30359 (WebCore::dataFunctionMatrix): |
|
30360 * bindings/v8/custom/V8ArrayBufferViewCustom.cpp: |
|
30361 (WebCore::toV8): |
|
30362 * bindings/v8/custom/V8DOMWindowCustom.cpp: |
|
30363 (WebCore::V8DOMWindow::WebGLFloatArrayAccessorGetter): |
|
30364 * bindings/v8/custom/V8Float32ArrayCustom.cpp: Copied from WebCore/bindings/v8/custom/V8FloatArrayCustom.cpp. |
|
30365 (WebCore::V8Float32Array::constructorCallback): |
|
30366 (WebCore::V8Float32Array::setCallback): |
|
30367 (WebCore::toV8): |
|
30368 * bindings/v8/custom/V8FloatArrayCustom.cpp: Removed. |
|
30369 * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp: |
|
30370 (WebCore::vertexAttribAndUniformHelperf): |
|
30371 (WebCore::uniformMatrixHelper): |
|
30372 * html/canvas/Float32Array.cpp: Copied from WebCore/html/canvas/FloatArray.cpp. |
|
30373 (WebCore::Float32Array::create): |
|
30374 (WebCore::Float32Array::Float32Array): |
|
30375 (WebCore::Float32Array::slice): |
|
30376 * html/canvas/Float32Array.h: Copied from WebCore/html/canvas/FloatArray.h. |
|
30377 * html/canvas/Float32Array.idl: Copied from WebCore/html/canvas/FloatArray.idl. |
|
30378 * html/canvas/FloatArray.cpp: Removed. |
|
30379 * html/canvas/FloatArray.h: Removed. |
|
30380 * html/canvas/FloatArray.idl: Removed. |
|
30381 * html/canvas/WebGLGetInfo.cpp: |
|
30382 (WebCore::WebGLGetInfo::WebGLGetInfo): |
|
30383 (WebCore::WebGLGetInfo::getWebGLFloatArray): |
|
30384 * html/canvas/WebGLGetInfo.h: |
|
30385 * html/canvas/WebGLRenderingContext.cpp: |
|
30386 (WebCore::WebGLRenderingContext::getUniform): |
|
30387 (WebCore::WebGLRenderingContext::getVertexAttrib): |
|
30388 (WebCore::WebGLRenderingContext::uniform1fv): |
|
30389 (WebCore::WebGLRenderingContext::uniform2fv): |
|
30390 (WebCore::WebGLRenderingContext::uniform3fv): |
|
30391 (WebCore::WebGLRenderingContext::uniform4fv): |
|
30392 (WebCore::WebGLRenderingContext::uniformMatrix2fv): |
|
30393 (WebCore::WebGLRenderingContext::uniformMatrix3fv): |
|
30394 (WebCore::WebGLRenderingContext::uniformMatrix4fv): |
|
30395 (WebCore::WebGLRenderingContext::vertexAttrib1fv): |
|
30396 (WebCore::WebGLRenderingContext::vertexAttrib2fv): |
|
30397 (WebCore::WebGLRenderingContext::vertexAttrib3fv): |
|
30398 (WebCore::WebGLRenderingContext::vertexAttrib4fv): |
|
30399 (WebCore::WebGLRenderingContext::getWebGLFloatArrayParameter): |
|
30400 * html/canvas/WebGLRenderingContext.h: |
|
30401 * html/canvas/WebGLRenderingContext.idl: |
|
30402 * page/DOMWindow.idl: |
|
30403 * platform/graphics/GraphicsContext3D.h: |
|
30404 * platform/graphics/mac/GraphicsContext3DMac.cpp: |
|
30405 * platform/graphics/qt/GraphicsContext3DQt.cpp: |
|
30406 |
|
30407 2010-06-09 Eric Seidel <eric@webkit.org> |
|
30408 |
|
30409 Reviewed by Adam Barth. |
|
30410 |
|
30411 HTML5 Parser needs to integrate with the XSSAuditor |
|
30412 https://bugs.webkit.org/show_bug.cgi?id=40287 |
|
30413 |
|
30414 This fixes most of the XSSAuditor tests, except for the ones |
|
30415 which rely on the srcValue "context". The previous HTMLTokenizer |
|
30416 implementation was both Lexer and ScriptRunner and thus could |
|
30417 provide the XSSAuditor with the un-modified attribute source. |
|
30418 This naive implementation will fail the context-sensitive tests |
|
30419 but Adam Barth says he'll just have to find a new way to provide |
|
30420 the required information to the XSSAuditor in a later patch. |
|
30421 |
|
30422 Covered by numerous http/tests/security/xssAuditor tests. |
|
30423 |
|
30424 * html/HTML5ScriptRunner.cpp: |
|
30425 (WebCore::HTML5ScriptRunner::requestScript): |
|
30426 - Ask the HTML5ScriptRunner host before running any scripts. |
|
30427 * html/HTML5ScriptRunnerHost.h: |
|
30428 - Add a shouldLoadExternalScriptFromSrc declaration. |
|
30429 * html/HTML5Tokenizer.cpp: |
|
30430 (WebCore::HTML5Tokenizer::shouldLoadExternalScriptFromSrc): |
|
30431 - Ask the XSSAuditor if we're allowed to run the passed script. |
|
30432 * html/HTML5Tokenizer.h: |
|
30433 |
|
30434 2010-06-09 Tony Gentilcore <tonyg@chromium.org> |
|
30435 |
|
30436 Reviewed by Adam Barth. |
|
30437 |
|
30438 Fix script-after-frameset test in HTML5 parser |
|
30439 https://bugs.webkit.org/show_bug.cgi?id=40274 |
|
30440 |
|
30441 The old HTMLTokenizer enforced this in scriptHandler(). We don't use |
|
30442 that code anymore, so it needs to be implemented. The spec does this |
|
30443 as a part of "insertion mode"->"after frameset", so this adds an |
|
30444 InsertionMode enum instead of a one-off boolean. |
|
30445 |
|
30446 No new tests because covered by fast/tokenizer/script-after-frameset.html |
|
30447 |
|
30448 * html/HTML5TreeBuilder.cpp: |
|
30449 (WebCore::HTML5TreeBuilder::HTML5TreeBuilder): |
|
30450 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
30451 * html/HTML5TreeBuilder.h: |
|
30452 (WebCore::HTML5TreeBuilder::): |
|
30453 (WebCore::HTML5TreeBuilder::setInsertionMode): |
|
30454 (WebCore::HTML5TreeBuilder::insertionMode): |
|
30455 |
|
30456 2010-06-09 Kwang Yul Seo <skyul@company100.net> |
|
30457 |
|
30458 Reviewed by Kent Tamura. |
|
30459 |
|
30460 [BREWMP] Add EventLoop |
|
30461 https://bugs.webkit.org/show_bug.cgi?id=39401 |
|
30462 |
|
30463 BREW MP does not have an explicit event loop. Add dummy EventLoop::cycle. |
|
30464 |
|
30465 * platform/brew/EventLoopBrew.cpp: Added. |
|
30466 (WebCore::EventLoop::cycle): |
|
30467 |
|
30468 2010-06-09 Sheriff Bot <webkit.review.bot@gmail.com> |
|
30469 |
|
30470 Unreviewed, rolling out r60889. |
|
30471 http://trac.webkit.org/changeset/60889 |
|
30472 https://bugs.webkit.org/show_bug.cgi?id=40365 |
|
30473 |
|
30474 gtk bot has some kind of memory corruption (Requested by |
|
30475 loislo on #webkit). |
|
30476 |
|
30477 * inspector/InspectorClient.h: |
|
30478 * inspector/InspectorController.cpp: |
|
30479 (WebCore::InspectorController::setFrontend): |
|
30480 * inspector/InspectorController.h: |
|
30481 * inspector/InspectorFrontend.cpp: |
|
30482 (WebCore::InspectorFrontend::InspectorFrontend): |
|
30483 * inspector/InspectorFrontend.h: |
|
30484 * inspector/InspectorFrontendClientLocal.cpp: |
|
30485 (WebCore::InspectorFrontendClientLocal::frontendLoaded): |
|
30486 * inspector/InspectorValues.cpp: |
|
30487 (WebCore::InspectorObject::writeJSON): |
|
30488 * inspector/front-end/inspector.js: |
|
30489 * loader/EmptyClients.h: |
|
30490 |
|
30491 2010-06-09 Kent Tamura <tkent@chromium.org> |
|
30492 |
|
30493 Reviewed by Eric Carlson. |
|
30494 |
|
30495 [Windows] Build fix on Japanese Windows |
|
30496 https://bugs.webkit.org/show_bug.cgi?id=40358 |
|
30497 |
|
30498 cl.exe on Japanese Windows assumes files with invalid CP932 |
|
30499 sequences broken and doesn't build them at all. |
|
30500 |
|
30501 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp: Remove non-ASCII characters |
|
30502 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h: ditto. |
|
30503 * platform/graphics/win/WKCAImageQueue.cpp: ditto. |
|
30504 * platform/graphics/win/WKCAImageQueue.h: ditto. |
|
30505 |
|
30506 2010-06-09 Pavel Podivilov <podivilov@chromium.org> |
|
30507 |
|
30508 Reviewed by Yury Semikhatsky. |
|
30509 |
|
30510 Web Inspector: Add isDebuggerAlwaysEnabled method to ScriptDebugServer. |
|
30511 This method returns true if debugger should always be enabled when |
|
30512 frontend is attached. |
|
30513 https://bugs.webkit.org/show_bug.cgi?id=40289 |
|
30514 |
|
30515 * bindings/js/ScriptDebugServer.cpp: |
|
30516 (WebCore::ScriptDebugServer::isDebuggerAlwaysEnabled): |
|
30517 * bindings/js/ScriptDebugServer.h: |
|
30518 * bindings/v8/ScriptDebugServer.cpp: |
|
30519 (WebCore::ScriptDebugServer::isDebuggerAlwaysEnabled): |
|
30520 * bindings/v8/ScriptDebugServer.h: |
|
30521 * inspector/InspectorController.cpp: |
|
30522 (WebCore::InspectorController::setFrontend): |
|
30523 |
|
30524 2010-06-07 Ilya Tikhonovsky <loislo@chromium.org> |
|
30525 |
|
30526 Reviewed by Pavel Feldman. |
|
30527 |
|
30528 WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc |
|
30529 data from inspected page to WebInspector as JSON string via http. The native |
|
30530 serialization to JSON string is supported by InspectorValue's classes. This patch |
|
30531 has the implementation of sendMessageToFrontend function. WebKit version of it still |
|
30532 uses ScriptFunctionCall and will be switched to another transport a little bit later. |
|
30533 https://bugs.webkit.org/show_bug.cgi?id=40134 |
|
30534 |
|
30535 * inspector/InspectorClient.h: |
|
30536 * inspector/InspectorController.cpp: |
|
30537 (WebCore::InspectorController::connectFrontend): |
|
30538 (WebCore::InspectorController::disconnectFrontend): |
|
30539 * inspector/InspectorController.h: |
|
30540 * inspector/InspectorFrontend.cpp: |
|
30541 (WebCore::InspectorFrontend::InspectorFrontend): |
|
30542 * inspector/InspectorFrontend.h: |
|
30543 * inspector/InspectorFrontendClientLocal.cpp: |
|
30544 (WebCore::InspectorFrontendClientLocal::frontendLoaded): |
|
30545 * inspector/InspectorValues.cpp: |
|
30546 (WebCore::InspectorObject::writeJSON): |
|
30547 * inspector/front-end/inspector.js: |
|
30548 (WebInspector.dispatchMessageToFrontend): |
|
30549 * loader/EmptyClients.h: |
|
30550 (WebCore::EmptyInspectorClient::sendMessageToFrontend): |
|
30551 |
|
30552 2010-06-09 Csaba Osztrogonác <ossy@webkit.org> |
|
30553 |
|
30554 Reviewed by Dirk Schulze. |
|
30555 |
|
30556 [Qt] Imperfect dependency for generated SVGNames.cpp |
|
30557 https://bugs.webkit.org/show_bug.cgi?id=40359 |
|
30558 |
|
30559 * WebCore.pri: Missing dependency added. |
|
30560 |
|
30561 2010-06-08 Dirk Schulze <krit@webkit.org> |
|
30562 |
|
30563 Reviewed by Nikolas Zimmermann. |
|
30564 |
|
30565 Implement non-scaling-stroke (from SVG Tiny 1.2, also in Opera) |
|
30566 https://bugs.webkit.org/show_bug.cgi?id=31438 |
|
30567 |
|
30568 This is the implementation of the SVG property vector-effect according |
|
30569 to the specification of SVG Tiny 1.2. |
|
30570 getScreenCTM() was not able to calculate the transformation matrix in |
|
30571 comparison to the host coordinate system for objects, that get refereced |
|
30572 by a use element. This is fixed and covered by the the new test as well. |
|
30573 This patch is based upon a patch of Jeff Schiller. |
|
30574 |
|
30575 Test: svg/custom/non-scaling-stroke.svg |
|
30576 |
|
30577 * css/CSSComputedStyleDeclaration.cpp: Added CSSPropertyVectorEffect. |
|
30578 (WebCore::): |
|
30579 * css/CSSPrimitiveValueMappings.h: |
|
30580 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): |
|
30581 (WebCore::CSSPrimitiveValue::operator EVectorEffect): |
|
30582 * css/SVGCSSComputedStyleDeclaration.cpp: |
|
30583 (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue): |
|
30584 * css/SVGCSSParser.cpp: |
|
30585 (WebCore::CSSParser::parseSVGValue): |
|
30586 * css/SVGCSSPropertyNames.in: |
|
30587 * css/SVGCSSStyleSelector.cpp: |
|
30588 (WebCore::CSSStyleSelector::applySVGProperty): |
|
30589 * css/SVGCSSValueKeywords.in: Add vector-effect value non-scaling-stroke. |
|
30590 * rendering/RenderPath.cpp: Revert transformations to ctm and transform path instead. |
|
30591 (WebCore::fillAndStrokePath): |
|
30592 * rendering/RenderSVGResourceContainer.h: |
|
30593 (WebCore::RenderSVGResourceContainer::transformOnNonScalingStroke): |
|
30594 * rendering/RenderSVGResourceGradient.cpp: Transform the gradient with the screenCTM. |
|
30595 (WebCore::RenderSVGResourceGradient::applyResource): |
|
30596 * rendering/RenderSVGResourcePattern.cpp: Transform the pattern with the screenCTM. |
|
30597 (WebCore::RenderSVGResourcePattern::applyResource): |
|
30598 * rendering/style/SVGRenderStyle.h: Added vector-effect property, not interited. |
|
30599 (WebCore::SVGRenderStyle::NonInheritedFlags::): |
|
30600 (WebCore::SVGRenderStyle::setBitDefaults): |
|
30601 * rendering/style/SVGRenderStyleDefs.h: Added enums for vector-effect. |
|
30602 (WebCore::): |
|
30603 * svg/SVGLocatable.cpp: Calculate screenCTM for <use> referenced objects. |
|
30604 (WebCore::SVGLocatable::computeCTM): |
|
30605 * svg/SVGStyledElement.cpp: |
|
30606 (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName): |
|
30607 * svg/svgattrs.in: |
|
30608 |
|
30609 2010-06-08 Mark Rowe <mrowe@apple.com> |
|
30610 |
|
30611 Reviewed by Adele Peterson. |
|
30612 |
|
30613 <rdar://problem/8072136> REGRESSION (r56051): Inspect Element context menu does nothing in applications linked against 10.4 SDK |
|
30614 |
|
30615 Revert the change to ContextMenu::addInspectElementItem from r56051. It was made without |
|
30616 explanation and broke a reliance that WebKit has on the presence of a separator before the |
|
30617 Inspect Element menu item. This also restores the context menu item to the correct location |
|
30618 at the bottom of the context menu in applications built against the Mac OS X 10.4 SDK. |
|
30619 |
|
30620 * platform/ContextMenu.cpp: |
|
30621 (WebCore::ContextMenu::addInspectElementItem): |
|
30622 |
|
30623 2010-06-08 Roland Steiner <rolandsteiner@chromium.org> |
|
30624 |
|
30625 Unreviewed build fix |
|
30626 |
|
30627 Bug 38145 - Validate *tex* functions input parameters according to ES2 conformance |
|
30628 https://bugs.webkit.org/show_bug.cgi?id=38145 |
|
30629 https://bugs.webkit.org/show_bug.cgi?id=40346 |
|
30630 |
|
30631 Fix for 38145 broke the build ('log2 not found' on Windows), |
|
30632 the fix from 40346 also didn't catch ('log ambiguous'). |
|
30633 |
|
30634 2nd quick fix: add explicit casts to double and use double constants. |
|
30635 |
|
30636 No new tests. |
|
30637 |
|
30638 * html/canvas/WebGLRenderingContext.cpp: |
|
30639 (WebCore::WebGLRenderingContext::validateTexFuncParameters): |
|
30640 |
|
30641 2010-05-18 Yuzo Fujishima <yuzo@google.com> |
|
30642 |
|
30643 Reviewed by Shinichiro Hamaji. |
|
30644 |
|
30645 Fix for Bug 34529 - [CSSOM] issues with cssText and selectorText |
|
30646 Serialize selector as per http://dev.w3.org/csswg/cssom/#serializing-selectors |
|
30647 Without this patch, for example, selectors containing ':' or '.' are not properly serialized. |
|
30648 https://bugs.webkit.org/show_bug.cgi?id=34529 |
|
30649 |
|
30650 Test: fast/css/selector-text-escape.html |
|
30651 |
|
30652 * Android.mk: |
|
30653 * CMakeLists.txt: |
|
30654 * GNUmakefile.am: |
|
30655 * WebCore.gypi: |
|
30656 * WebCore.pro: |
|
30657 * WebCore.vcproj/WebCore.vcproj: |
|
30658 * WebCore.xcodeproj/project.pbxproj: |
|
30659 * css/CSSOMUtils.cpp: Added. |
|
30660 (WebCore::appendCharacter): |
|
30661 (WebCore::serializeCharacter): |
|
30662 (WebCore::serializeCharacterAsCodePoint): |
|
30663 (WebCore::serializeIdentifier): |
|
30664 (WebCore::serializeString): |
|
30665 * css/CSSOMUtils.h: Added. |
|
30666 * css/CSSSelector.cpp: |
|
30667 (WebCore::CSSSelector::selectorText): |
|
30668 |
|
30669 2010-06-08 Ryosuke Niwa <rniwa@webkit.org> |
|
30670 |
|
30671 Reviewed by Justin Garcia |
|
30672 |
|
30673 InsertListCommand needs cleanup |
|
30674 https://bugs.webkit.org/show_bug.cgi?id=36430 |
|
30675 |
|
30676 Separated code for listifying and unlistifying paragraphs. |
|
30677 Also isolated the dependency on the selection in doApply. |
|
30678 |
|
30679 No test is added since this is a cleanup. |
|
30680 |
|
30681 * editing/InsertListCommand.cpp: |
|
30682 (WebCore::InsertListCommand::doApply): isolated code to listify / unlistify paragraphs |
|
30683 (WebCore::InsertListCommand::unlistifyParagraph): ditto |
|
30684 (WebCore::InsertListCommand::listifyParagraph): ditto |
|
30685 * editing/InsertListCommand.h: |
|
30686 |
|
30687 2010-06-08 Kenneth Russell <kbr@google.com> |
|
30688 |
|
30689 Unreviewed, build fix. |
|
30690 |
|
30691 Fix build breakage from 38145 |
|
30692 https://bugs.webkit.org/show_bug.cgi?id=40346 |
|
30693 |
|
30694 The fix for bug 38145 broke the Chromium Win build because |
|
30695 Microsoft's cmath doesn't define log2. Suggested fix by zmo is to |
|
30696 change log2(x) to log(x) / log(2). Built and ran WebGL layout |
|
30697 tests in Safari on Mac OS X. Changed download mirrors for |
|
30698 python-irclib to working ones. |
|
30699 |
|
30700 * html/canvas/WebGLRenderingContext.cpp: |
|
30701 (WebCore::WebGLRenderingContext::validateTexFuncParameters): |
|
30702 |
|
30703 2010-06-08 Zhenyao Mo <zmo@google.com> |
|
30704 |
|
30705 Reviewed by Dimitri Glazkov. |
|
30706 |
|
30707 Validate *tex* functions input parameters according to ES2 conformance |
|
30708 https://bugs.webkit.org/show_bug.cgi?id=38145 |
|
30709 |
|
30710 Test: fast/canvas/webgl/tex-input-validation.html |
|
30711 |
|
30712 * html/canvas/WebGLFramebuffer.cpp: |
|
30713 (WebCore::WebGLFramebuffer::getColorBufferFormat): Get color buffer internalformat. |
|
30714 * html/canvas/WebGLFramebuffer.h: Ditto. |
|
30715 * html/canvas/WebGLRenderingContext.cpp: |
|
30716 (WebCore::WebGLRenderingContext::WebGLRenderingContext): Deal with max tex units and max texture size. |
|
30717 (WebCore::WebGLRenderingContext::copyTexImage2D): Validate input parameters. |
|
30718 (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto. |
|
30719 (WebCore::WebGLRenderingContext::texImage2DBase): Ditto. |
|
30720 (WebCore::WebGLRenderingContext::texParameterf): Ditto. |
|
30721 (WebCore::WebGLRenderingContext::texParameteri): Ditto. |
|
30722 (WebCore::WebGLRenderingContext::texSubImage2DBase): Ditto. |
|
30723 (WebCore::WebGLRenderingContext::handleNPOTTextures): Deal with max tex units. |
|
30724 (WebCore::WebGLRenderingContext::isTexInternalformatColorBufferCombinationValid): Check whether the texture format and framebuffer color buffer internalformat combination is valid. |
|
30725 (WebCore::WebGLRenderingContext::getTextureBinding): get the current bound texture for given target. |
|
30726 (WebCore::WebGLRenderingContext::validateTexFuncFormatAndType): Validate input format/type for *tex* functions. |
|
30727 (WebCore::WebGLRenderingContext::validateTexFuncParameters): Validate input parameters for *tex* functions. |
|
30728 (WebCore::WebGLRenderingContext::texParameter): Base function for texParameteri and texParameterf. |
|
30729 * html/canvas/WebGLRenderingContext.h: Deal with max tex units. |
|
30730 * html/canvas/WebGLTexture.cpp: |
|
30731 (WebCore::WebGLTexture::WebGLTexture): Cache internalformat. |
|
30732 * html/canvas/WebGLTexture.h: Ditto. |
|
30733 (WebCore::WebGLTexture::setInternalformat): |
|
30734 (WebCore::WebGLTexture::getInternalformat): |
|
30735 * platform/graphics/GraphicsContext3D.cpp: internalformat and format need to be the same. |
|
30736 (WebCore::GraphicsContext3D::extractImageData): |
|
30737 |
|
30738 2010-06-08 Erik Arvidsson <arv@chromium.org> |
|
30739 |
|
30740 Reviewed by Ojan Vafai. |
|
30741 |
|
30742 REGRESSION: Weird focus behavior affects quoting on University of Washington message board system |
|
30743 https://bugs.webkit.org/show_bug.cgi?id=38548 |
|
30744 |
|
30745 Test: editing/selection/click-in-focusable-link-should-not-clear-selection.html |
|
30746 |
|
30747 * page/FocusController.cpp: |
|
30748 (WebCore::clearSelectionIfNeeded): Make sure we do not clear selection when canStartSelection |
|
30749 returns false. |
|
30750 |
|
30751 2010-06-08 Enrico Ros <eros@codeaurora.org> |
|
30752 |
|
30753 Reviewed by Ariya Hidayat. |
|
30754 |
|
30755 [Qt] Crashfix on Path::contains |
|
30756 https://bugs.webkit.org/show_bug.cgi?id=40253 |
|
30757 |
|
30758 Fix accessing the first item of an empty vector, that happens when |
|
30759 CanvasRenderingContext2D::isPointInPath is invoked over a borderless |
|
30760 path (e.g. a path made of just a MoveTo operation). |
|
30761 |
|
30762 * platform/graphics/qt/PathQt.cpp: |
|
30763 (WebCore::isPointOnPathBorder): |
|
30764 |
|
30765 2010-06-08 Sheriff Bot <webkit.review.bot@gmail.com> |
|
30766 |
|
30767 Unreviewed, rolling out r60859. |
|
30768 http://trac.webkit.org/changeset/60859 |
|
30769 https://bugs.webkit.org/show_bug.cgi?id=40334 |
|
30770 |
|
30771 Included debugging statements. Caused a test to fail. |
|
30772 (Requested by ojan on #webkit). |
|
30773 |
|
30774 * page/FocusController.cpp: |
|
30775 (WebCore::clearSelectionIfNeeded): |
|
30776 |
|
30777 2010-06-08 Sheriff Bot <webkit.review.bot@gmail.com> |
|
30778 |
|
30779 Unreviewed, rolling out r60858. |
|
30780 http://trac.webkit.org/changeset/60858 |
|
30781 https://bugs.webkit.org/show_bug.cgi?id=40325 |
|
30782 |
|
30783 Qt needs a clean build. Rolling out the patch for now and fix |
|
30784 it tomorrow (Requested by krit on #webkit). |
|
30785 |
|
30786 * css/CSSComputedStyleDeclaration.cpp: |
|
30787 (WebCore::): |
|
30788 * css/CSSPrimitiveValueMappings.h: |
|
30789 * css/SVGCSSComputedStyleDeclaration.cpp: |
|
30790 (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue): |
|
30791 * css/SVGCSSParser.cpp: |
|
30792 (WebCore::CSSParser::parseSVGValue): |
|
30793 * css/SVGCSSPropertyNames.in: |
|
30794 * css/SVGCSSStyleSelector.cpp: |
|
30795 (WebCore::CSSStyleSelector::applySVGProperty): |
|
30796 * css/SVGCSSValueKeywords.in: |
|
30797 * rendering/RenderPath.cpp: |
|
30798 (WebCore::fillAndStrokePath): |
|
30799 * rendering/RenderSVGResourceContainer.h: |
|
30800 * rendering/RenderSVGResourceGradient.cpp: |
|
30801 (WebCore::RenderSVGResourceGradient::applyResource): |
|
30802 * rendering/RenderSVGResourcePattern.cpp: |
|
30803 (WebCore::RenderSVGResourcePattern::applyResource): |
|
30804 * rendering/style/SVGRenderStyle.h: |
|
30805 (WebCore::SVGRenderStyle::NonInheritedFlags::): |
|
30806 (WebCore::SVGRenderStyle::setBitDefaults): |
|
30807 * rendering/style/SVGRenderStyleDefs.h: |
|
30808 (WebCore::): |
|
30809 * svg/SVGLocatable.cpp: |
|
30810 (WebCore::SVGLocatable::computeCTM): |
|
30811 * svg/SVGStyledElement.cpp: |
|
30812 (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName): |
|
30813 * svg/svgattrs.in: |
|
30814 |
|
30815 2010-06-08 Daniel Bates <dbates@rim.com> |
|
30816 |
|
30817 Unreviewed, fix Xcode project file after change-set 60841. |
|
30818 |
|
30819 Xcode is not happy about the entries for files EditingBehavior.h and |
|
30820 EditingBehaviorTypes.h that were added in change-set 60841 (Bug # 39854). |
|
30821 Lets make Xcode happy. |
|
30822 |
|
30823 Also, lets place these entries in alphabetic order. |
|
30824 |
|
30825 * WebCore.xcodeproj/project.pbxproj: |
|
30826 |
|
30827 2010-06-08 Erik Arvidsson <arv@chromium.org> |
|
30828 |
|
30829 Reviewed by Ojan Vafai. |
|
30830 |
|
30831 REGRESSION: Weird focus behavior affects quoting on University of Washington message board system |
|
30832 https://bugs.webkit.org/show_bug.cgi?id=38548 |
|
30833 |
|
30834 We should not clear the selection when canStartSelection returns false. |
|
30835 |
|
30836 Test: editing/selection/click-in-focusable-link-should-not-clear-selection.html |
|
30837 |
|
30838 * page/FocusController.cpp: |
|
30839 (WebCore::clearSelectionIfNeeded): Make sure we do not clear selection when canStartSelection |
|
30840 returns false. |
|
30841 |
|
30842 2010-06-08 Dirk Schulze <krit@webkit.org> |
|
30843 |
|
30844 Reviewed by Nikolas Zimmermann. |
|
30845 |
|
30846 Implement non-scaling-stroke (from SVG Tiny 1.2, also in Opera) |
|
30847 https://bugs.webkit.org/show_bug.cgi?id=31438 |
|
30848 |
|
30849 This is the implementation of the SVG property vector-effect according |
|
30850 to the specification of SVG Tiny 1.2. |
|
30851 getScreenCTM() was not able to calculate the transformation matrix in |
|
30852 comparison to the host coordinate system for objects, that get refereced |
|
30853 by a use element. This is fixed and covered by the the new test as well. |
|
30854 This patch is based upon a patch of Jeff Schiller. |
|
30855 |
|
30856 Test: svg/custom/non-scaling-stroke.svg |
|
30857 |
|
30858 * css/CSSComputedStyleDeclaration.cpp: Added CSSPropertyVectorEffect. |
|
30859 (WebCore::): |
|
30860 * css/CSSPrimitiveValueMappings.h: |
|
30861 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): |
|
30862 (WebCore::CSSPrimitiveValue::operator EVectorEffect): |
|
30863 * css/SVGCSSComputedStyleDeclaration.cpp: |
|
30864 (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue): |
|
30865 * css/SVGCSSParser.cpp: |
|
30866 (WebCore::CSSParser::parseSVGValue): |
|
30867 * css/SVGCSSPropertyNames.in: |
|
30868 * css/SVGCSSStyleSelector.cpp: |
|
30869 (WebCore::CSSStyleSelector::applySVGProperty): |
|
30870 * css/SVGCSSValueKeywords.in: Add vector-effect value non-scaling-stroke. |
|
30871 * rendering/RenderPath.cpp: Revert transformations to ctm and transform path instead. |
|
30872 (WebCore::fillAndStrokePath): |
|
30873 * rendering/RenderSVGResourceContainer.h: |
|
30874 (WebCore::RenderSVGResourceContainer::transformOnNonScalingStroke): |
|
30875 * rendering/RenderSVGResourceGradient.cpp: Transform the gradient with the screenCTM. |
|
30876 (WebCore::RenderSVGResourceGradient::applyResource): |
|
30877 * rendering/RenderSVGResourcePattern.cpp: Transform the pattern with the screenCTM. |
|
30878 (WebCore::RenderSVGResourcePattern::applyResource): |
|
30879 * rendering/style/SVGRenderStyle.h: Added vector-effect property, not interited. |
|
30880 (WebCore::SVGRenderStyle::NonInheritedFlags::): |
|
30881 (WebCore::SVGRenderStyle::setBitDefaults): |
|
30882 * rendering/style/SVGRenderStyleDefs.h: Added enums for vector-effect. |
|
30883 (WebCore::): |
|
30884 * svg/SVGLocatable.cpp: Calculate screenCTM for <use> referenced objects. |
|
30885 (WebCore::SVGLocatable::computeCTM): |
|
30886 * svg/SVGStyledElement.cpp: |
|
30887 (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName): |
|
30888 * svg/svgattrs.in: |
|
30889 |
|
30890 2010-06-08 Alexey Proskuryakov <ap@apple.com> |
|
30891 |
|
30892 * GNUmakefile.am: Also adding platform/Cursor.cpp to Gtk build. |
|
30893 |
|
30894 2010-06-08 Csaba Osztrogonác <ossy@webkit.org> |
|
30895 |
|
30896 [Qt] Unreviewed buildfix after r60849. |
|
30897 |
|
30898 * WebCore.pro: platform/Cursor.cpp is added to Qt build system. |
|
30899 |
|
30900 2010-06-08 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> |
|
30901 |
|
30902 Unreviewed Buildbot fix. |
|
30903 |
|
30904 Reset the Qt TextBreakIterator when reusing it. |
|
30905 |
|
30906 * platform/text/qt/TextBreakIteratorQt.cpp: |
|
30907 (WebCore::setUpIterator): |
|
30908 |
|
30909 2010-06-04 Alexey Proskuryakov <ap@apple.com> |
|
30910 |
|
30911 Reviewed by John Sullivan. |
|
30912 |
|
30913 https://bugs.webkit.org/show_bug.cgi?id=15779 |
|
30914 <rdar://problem/8002964> Custom CSS .cur cursor anchor point is ignored |
|
30915 |
|
30916 Test: manual-tests/cur-hotspot.html |
|
30917 |
|
30918 Currently, this patch only has effect in Safari 5 on Windows. Other platforms will need |
|
30919 to implement getting hot spot information from .cur files. |
|
30920 |
|
30921 * WebCore.vcproj/WebCore.vcproj: |
|
30922 * WebCore.xcodeproj/project.pbxproj: |
|
30923 Added Cursor.cpp. Looks like TextWrangler fixed line endings in vcproj file. |
|
30924 |
|
30925 * css/CSSCursorImageValue.cpp: |
|
30926 (WebCore::CSSCursorImageValue::CSSCursorImageValue): Renamed "hotspot" to "hotSpot" to match |
|
30927 other code. |
|
30928 (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed): Ditto. Added a FIXME about possibly |
|
30929 incorrect code for resolving differences with CSS specified hotspot. |
|
30930 |
|
30931 * css/CSSCursorImageValue.h: |
|
30932 (WebCore::CSSCursorImageValue::create): |
|
30933 (WebCore::CSSCursorImageValue::hotSpot): |
|
30934 Renamed "hotspot" to "hotSpot" to match other code. |
|
30935 |
|
30936 * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): Start with an invalid value for hot |
|
30937 spot, so that we can differentiate between missing and (0, 0) CSS hot spots. Missing and |
|
30938 invalid (-1, -1) are treated identically by Firefox, so we don't need to differentiate these. |
|
30939 |
|
30940 * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty): Renamed "hotspot" to |
|
30941 "hotSpot" to match other code. |
|
30942 |
|
30943 * page/EventHandler.cpp: (WebCore::EventHandler::selectCursor): Don't ignore cursors with |
|
30944 invalid CSS hot spots. Firefox ignores only the hot spot, not the whole cursor in this case |
|
30945 (and IE doesn't support CSS3 cursor declarations). |
|
30946 |
|
30947 * platform/Cursor.cpp: Added. (WebCore::determineHotSpot): Added a function that decides |
|
30948 where hot spot is, provided an image and a possible out of band coordinate specification. |
|
30949 |
|
30950 * platform/Cursor.h: Added determineHotSpot(). |
|
30951 |
|
30952 * platform/graphics/BitmapImage.cpp: |
|
30953 (WebCore::BitmapImage::getHotSpot): |
|
30954 * platform/graphics/BitmapImage.h: |
|
30955 * platform/graphics/Image.h: |
|
30956 (WebCore::Image::getHotSpot): |
|
30957 * platform/graphics/ImageSource.cpp: |
|
30958 (WebCore::ImageSource::getHotSpot): |
|
30959 * platform/graphics/ImageSource.h: |
|
30960 Added plumbing to get hot spot data from an image provider. |
|
30961 |
|
30962 * platform/graphics/cg/ImageSourceCG.cpp: (WebCore::ImageSource::getHotSpot): CG implemantation. |
|
30963 |
|
30964 * platform/mac/CursorMac.mm: (WebCore::createCustomCursor): Call determineHotSpot() to |
|
30965 determine where hot spot should be. |
|
30966 (WebCore::Cursor::Cursor): Renamed "hotspot" to "hotSpot" to match other code. |
|
30967 |
|
30968 * platform/win/CursorWin.cpp: (WebCore::Cursor::Cursor): Call determineHotSpot() to determine |
|
30969 where hot spot should be. |
|
30970 |
|
30971 * platform/gtk/CursorGtk.cpp: (WebCore::Cursor::Cursor): Ditto. This must be done despite |
|
30972 this platform not having an implementation for ImageSource::getHotSpot(), because we no longer |
|
30973 check for out of bounds hot spots in EventHandler::selectCursor(). |
|
30974 |
|
30975 * platform/qt/CursorQt.cpp: (WebCore::Cursor::Cursor): Ditto. |
|
30976 |
|
30977 2010-06-08 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> |
|
30978 |
|
30979 Reviewed by Antti Koivisto. |
|
30980 |
|
30981 [Qt] TextBreakIterator Qt performance |
|
30982 https://bugs.webkit.org/show_bug.cgi?id=39958 |
|
30983 |
|
30984 Rework TextBreakIteratorQt to be more in line with the ICU version. |
|
30985 |
|
30986 We now reuse iterators where ever possible. The string data is compared |
|
30987 with memcmp, which should be faster than using a hash, as you need |
|
30988 to traverse the full buffer in the case the strings don't match, |
|
30989 where as the compare would fail quickly. |
|
30990 |
|
30991 * platform/text/qt/TextBreakIteratorQt.cpp: |
|
30992 (WebCore::TextBreakIterator::TextBreakIterator): |
|
30993 (WebCore::setUpIterator): |
|
30994 (WebCore::wordBreakIterator): |
|
30995 (WebCore::characterBreakIterator): |
|
30996 (WebCore::lineBreakIterator): |
|
30997 (WebCore::sentenceBreakIterator): |
|
30998 |
|
30999 2010-06-08 Andras Becsi <abecsi@webkit.org> |
|
31000 |
|
31001 Unreviewed build fix after r60785. |
|
31002 |
|
31003 [GTK] Add missing GtkVersioning.h include to fix the build |
|
31004 on older GTK+ versions. |
|
31005 |
|
31006 No new tests needed. |
|
31007 |
|
31008 * platform/gtk/WidgetGtk.cpp: |
|
31009 |
|
31010 2010-06-08 Yury Semikhatsky <yurys@chromium.org> |
|
31011 |
|
31012 Reviewed by Pavel Feldman. |
|
31013 |
|
31014 Web Inspector: extend ScriptDebugServer to support script source editing |
|
31015 https://bugs.webkit.org/show_bug.cgi?id=40297 |
|
31016 |
|
31017 * bindings/js/ScriptDebugServer.cpp: |
|
31018 (WebCore::ScriptDebugServer::editScriptSource): |
|
31019 * bindings/js/ScriptDebugServer.h: |
|
31020 * bindings/v8/ScriptDebugServer.cpp: |
|
31021 (WebCore::ScriptDebugServer::editScriptSource): |
|
31022 * bindings/v8/ScriptDebugServer.h: |
|
31023 * inspector/InspectorBackend.cpp: |
|
31024 (WebCore::InspectorBackend::editScriptSource): |
|
31025 * inspector/InspectorBackend.h: |
|
31026 * inspector/InspectorBackend.idl: |
|
31027 * inspector/InspectorController.cpp: |
|
31028 (WebCore::InspectorController::InspectorController): |
|
31029 (WebCore::InspectorController::disableDebugger): |
|
31030 (WebCore::InspectorController::editScriptSource): |
|
31031 (WebCore::InspectorController::currentCallFrames): |
|
31032 (WebCore::InspectorController::didPause): |
|
31033 (WebCore::InspectorController::didContinue): |
|
31034 * inspector/InspectorController.h: |
|
31035 * inspector/InspectorFrontend.cpp: |
|
31036 (WebCore::InspectorFrontend::didEditScriptSource): |
|
31037 * inspector/InspectorFrontend.h: |
|
31038 * inspector/front-end/Script.js: |
|
31039 * inspector/front-end/ScriptsPanel.js: |
|
31040 (WebInspector.ScriptsPanel.prototype.canEditScripts): |
|
31041 (WebInspector.ScriptsPanel.prototype.editScriptSource.mycallback): |
|
31042 (WebInspector.ScriptsPanel.prototype.editScriptSource): |
|
31043 * inspector/front-end/Settings.js: |
|
31044 * inspector/front-end/SourceView.js: |
|
31045 (WebInspector.SourceView.prototype._editLine): |
|
31046 * inspector/front-end/TextViewer.js: |
|
31047 (WebInspector.TextViewer.prototype._handleDoubleClick): |
|
31048 (WebInspector.TextViewer.prototype._commitEditingLine): |
|
31049 * inspector/front-end/inspector.css: |
|
31050 (#scripts-files option.extension-script): |
|
31051 |
|
31052 2010-06-08 Antonio Gomes <tonikitoo@webkit.org> |
|
31053 |
|
31054 Reviewed by Ojan Vafai and Darin Adler. |
|
31055 |
|
31056 Refactor platform dependent editing behavior code out of Settings |
|
31057 https://bugs.webkit.org/show_bug.cgi?id=39854 |
|
31058 |
|
31059 As per discussion in bug 36627, Darin Adler suggested: "before the addition of any new EditingBehavior, |
|
31060 I think we to add functions to translate the overall behavior policy into specific behaviors rather than |
|
31061 directly saying 'behavior == Mac' or 'behavior == Windows'. Helper functions that expression the different |
|
31062 rules in plain language.". Patch addresses this request. |
|
31063 |
|
31064 No behavior change, so no new tests. |
|
31065 |
|
31066 * GNUmakefile.am: |
|
31067 * WebCore.pro: |
|
31068 * WebCore/WebCore.vcproj/WebCore.vcproj |
|
31069 * WebCore/WebCore.xcodeproj/project.pbxproj |
|
31070 * page/Settings.cpp: |
|
31071 (WebCore::Settings::Settings): |
|
31072 * page/Settings.h: Moved out EditingBehavior enum to WebCore/editing/EditingBehaviorTypes.h, |
|
31073 and renamed to EditingBehaviorTypes. |
|
31074 (WebCore::Settings::setEditingBehaviorType): Renamed from setEditingBehavior. |
|
31075 (WebCore::Settings::editingBehaviorType): Renamed from editingBehavior. |
|
31076 * editing/EditingBehavior.h: Added. |
|
31077 (WebCore::EditingBehavior::EditingBehavior): Class to work as a central point for |
|
31078 editing behavior that might have to be handled differently in the different platforms/ports. |
|
31079 Class should be not used or instantiated directly, but rather implicitly constructed |
|
31080 through the Editor class. |
|
31081 (WebCore::EditingBehavior::shouldMoveCaretToHorizontalBoundaryWhenPastTopOrBottom): |
|
31082 (WebCore::EditingBehavior::shouldConsiderSelectionAsDirectional): |
|
31083 (WebCore::EditingBehavior::shouldCenterAlignWhenSelectionIsRevealed): |
|
31084 * editing/EditingBehaviorTypes.h: Added. |
|
31085 (WebCore::): |
|
31086 * editing/Editor.cpp: |
|
31087 (WebCore::Editor::behavior): Getter for EditingBehavior class. |
|
31088 * editing/Editor.h: |
|
31089 * editing/EditorCommand.cpp: |
|
31090 (WebCore::executeToggleStyle): |
|
31091 * editing/SelectionController.cpp: |
|
31092 (WebCore::SelectionController::setSelection): |
|
31093 (WebCore::SelectionController::setIsDirectional): |
|
31094 (WebCore::SelectionController::positionForPlatform): |
|
31095 (WebCore::SelectionController::modify): |
|
31096 * page/EventHandler.cpp: |
|
31097 (WebCore::EventHandler::handleMousePressEventSingleClick): |
|
31098 * rendering/RenderBlock.cpp: |
|
31099 (WebCore::RenderBlock::positionForPointWithInlineChildren): |
|
31100 |
|
31101 - Call sites will look like: |
|
31102 if (frame->editor()->behavior().shouldThisIfThat())) |
|
31103 // do something |
|
31104 |
|
31105 2010-06-08 Steve Block <steveblock@google.com> |
|
31106 |
|
31107 Reviewed by Jeremy Orlow. |
|
31108 |
|
31109 Prevent Geolocation making callbacks to a ScriptExecutionContext that no longer exists |
|
31110 https://bugs.webkit.org/show_bug.cgi?id=40162 |
|
31111 |
|
31112 Before making callbacks, we check that the relevant ScriptExecutionContext still exists. |
|
31113 To achieve this, the callbacks inherit from ActiveDOMObject. |
|
31114 |
|
31115 The ScriptExecutionContext is ref'ed from script, so may not be GC'ed for some time after |
|
31116 it is disconnected from its frame. Making the callback currently involves accessing the |
|
31117 Frame, so an additional check for the Frame is required. |
|
31118 |
|
31119 This change also prevents the V8 bindings from incorrectly holding a reference to the Frame. |
|
31120 |
|
31121 Test: fast/dom/Geolocation/callback-to-deleted-context.html |
|
31122 |
|
31123 * bindings/js/JSCallbackData.cpp: |
|
31124 (WebCore::JSCallbackData::invokeCallback): |
|
31125 * bindings/js/JSCustomPositionCallback.cpp: |
|
31126 (WebCore::JSCustomPositionCallback::JSCustomPositionCallback): |
|
31127 (WebCore::JSCustomPositionCallback::handleEvent): |
|
31128 * bindings/js/JSCustomPositionErrorCallback.cpp: |
|
31129 (WebCore::JSCustomPositionErrorCallback::JSCustomPositionErrorCallback): |
|
31130 (WebCore::JSCustomPositionErrorCallback::handleEvent): |
|
31131 * bindings/v8/custom/V8CustomPositionCallback.cpp: |
|
31132 (WebCore::V8CustomPositionCallback::V8CustomPositionCallback): |
|
31133 (WebCore::V8CustomPositionCallback::handleEvent): |
|
31134 * bindings/v8/custom/V8CustomPositionCallback.h: |
|
31135 (WebCore::V8CustomPositionCallback::create): |
|
31136 * bindings/v8/custom/V8CustomPositionErrorCallback.cpp: |
|
31137 (WebCore::V8CustomPositionErrorCallback::V8CustomPositionErrorCallback): |
|
31138 (WebCore::V8CustomPositionErrorCallback::handleEvent): |
|
31139 * bindings/v8/custom/V8CustomPositionErrorCallback.h: |
|
31140 (WebCore::V8CustomPositionErrorCallback::create): |
|
31141 * bindings/v8/custom/V8GeolocationCustom.cpp: |
|
31142 (WebCore::createPositionCallback): |
|
31143 (WebCore::createPositionErrorCallback): |
|
31144 * page/PositionCallback.h: |
|
31145 (WebCore::PositionCallback::PositionCallback): |
|
31146 * page/PositionErrorCallback.h: |
|
31147 (WebCore::PositionErrorCallback::PositionErrorCallback): |
|
31148 |
|
31149 2010-06-08 Xan Lopez <xlopez@igalia.com> |
|
31150 |
|
31151 Reviewed by Gustavo Noronha. |
|
31152 |
|
31153 [GTK] Avoid duplicated signals in DOM bindings |
|
31154 https://bugs.webkit.org/show_bug.cgi?id=40170 |
|
31155 |
|
31156 Do not create duplicated event signals between a class and its |
|
31157 ancestor. |
|
31158 |
|
31159 * bindings/scripts/CodeGeneratorGObject.pm: |
|
31160 |
|
31161 2010-06-08 MORITA Hajime <morrita@google.com> |
|
31162 |
|
31163 Unreviewd. Touched the file to force rebuild. |
|
31164 |
|
31165 * html/HTMLMeterElement.idl: |
|
31166 |
|
31167 2010-06-08 Vangelis Kokkevis <vangelis@chromium.org> |
|
31168 |
|
31169 Reviewed by Dimitri Glazkov. |
|
31170 |
|
31171 [Chromium] Fix the math for transform matrices of composited layers. There |
|
31172 were problems both with how content layers were setting their position and |
|
31173 how the overal matrix stack was computed when the layer anchor isn't at the |
|
31174 center of the layer. |
|
31175 https://bugs.webkit.org/post_bug.cgi |
|
31176 |
|
31177 * platform/graphics/chromium/GraphicsLayerChromium.cpp: |
|
31178 (WebCore::GraphicsLayerChromium::updateContentsRect): |
|
31179 * platform/graphics/chromium/LayerRendererChromium.cpp: |
|
31180 (WebCore::LayerRendererChromium::updateLayersRecursive): |
|
31181 (WebCore::LayerRendererChromium::drawLayer): |
|
31182 |
|
31183 2010-06-07 Eric Seidel <eric@webkit.org> |
|
31184 |
|
31185 Reviewed by Adam Barth. |
|
31186 |
|
31187 HTML5Lexer does not handle <div FOO ><img><img></div> correctly |
|
31188 https://bugs.webkit.org/show_bug.cgi?id=40283 |
|
31189 |
|
31190 Fix a typo in the AfterAttributeNameState. |
|
31191 The compiler really should have caught this since the typo |
|
31192 resulted in unreachable code. |
|
31193 |
|
31194 Tests: |
|
31195 10 tables/mozilla/marvin/colgroup* tests. |
|
31196 Also added a new sub-test in html5lib/resources/webkit01.dat |
|
31197 |
|
31198 * html/HTML5Lexer.cpp: |
|
31199 (WebCore::HTML5Lexer::nextToken): |
|
31200 - Fix typo of = instead of > |
|
31201 |
|
31202 2010-06-08 Adam Barth <abarth@webkit.org> |
|
31203 |
|
31204 Reviewed by Eric Seidel. |
|
31205 |
|
31206 Implement HTML5's forceQuirks flag |
|
31207 https://bugs.webkit.org/show_bug.cgi?id=40284 |
|
31208 |
|
31209 I didn't implement this before because I didn't know how to test it, |
|
31210 but now I do. |
|
31211 |
|
31212 Tests: |
|
31213 * fast/doctypes/doctype-parsing.html. |
|
31214 |
|
31215 When we actually implement the quirks mode handling in the tree |
|
31216 builder, we'll probably want to add to this test. |
|
31217 |
|
31218 * html/HTML5Lexer.cpp: |
|
31219 (WebCore::HTML5Lexer::nextToken): |
|
31220 * html/HTML5Token.h: |
|
31221 (WebCore::HTML5Token::forceQuirks): |
|
31222 (WebCore::HTML5Token::setForceQuirks): |
|
31223 * html/HTML5TreeBuilder.cpp: |
|
31224 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
31225 * html/HTMLParser.cpp: |
|
31226 (WebCore::HTMLParser::parseDoctypeToken): |
|
31227 * html/HTMLTokenizer.h: |
|
31228 (WebCore::DoctypeToken::reset): |
|
31229 |
|
31230 2010-06-08 Adam Barth <abarth@webkit.org> |
|
31231 |
|
31232 Reviewed by Eric Seidel. |
|
31233 |
|
31234 Remove ASSERT in ~HTML5Tokenizer |
|
31235 https://bugs.webkit.org/show_bug.cgi?id=40282 |
|
31236 |
|
31237 We thought this ASSERT would be a good idea, but the problem is that |
|
31238 this object is deleted without warning in some circumstances, so |
|
31239 there's no way to know whether it has reached the end of its state |
|
31240 machine. |
|
31241 |
|
31242 * html/HTML5Tokenizer.cpp: |
|
31243 (WebCore::HTML5Tokenizer::~HTML5Tokenizer): |
|
31244 |
|
31245 2010-06-07 MORITA Hajime <morrita@google.com> |
|
31246 |
|
31247 Reviewed by Kent Tamura. |
|
31248 |
|
31249 [Mac] <meter> elements should be rendered as level indicators. |
|
31250 https://bugs.webkit.org/show_bug.cgi?id=40217 |
|
31251 |
|
31252 Implemented RenderThemeMac::paintMeter() using NSLevelIndicatorCell. |
|
31253 |
|
31254 This change also added new -webkit-appearance values to select the |
|
31255 style of level indicators: |
|
31256 |
|
31257 - relevancy-level-indicator, |
|
31258 - continuous-capacity-level-indicator, |
|
31259 - discrete-capacity-level-indicator, and |
|
31260 - rating-level-indicator. |
|
31261 |
|
31262 The size of elements are adjusted based on the bounds of the indicator |
|
31263 to make room for painting whole indicator cells. |
|
31264 |
|
31265 Tests: fast/dom/HTMLMeterElement/meter-appearances-capacity.html |
|
31266 fast/dom/HTMLMeterElement/meter-appearances-rating-relevancy.html |
|
31267 fast/dom/HTMLMeterElement/meter-optimums.html |
|
31268 |
|
31269 * css/CSSPrimitiveValueMappings.h: |
|
31270 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): |
|
31271 * css/CSSValueKeywords.in: |
|
31272 * html/HTMLMeterElement.cpp: |
|
31273 (WebCore::HTMLMeterElement::gaugeRegion): |
|
31274 * html/HTMLMeterElement.h: |
|
31275 (WebCore::HTMLMeterElement::): |
|
31276 * platform/ThemeTypes.h: |
|
31277 (WebCore::): |
|
31278 * rendering/RenderMeter.cpp: |
|
31279 (WebCore::RenderMeter::calcWidth): |
|
31280 (WebCore::RenderMeter::calcHeight): |
|
31281 * rendering/RenderMeter.h: |
|
31282 * rendering/RenderTheme.cpp: |
|
31283 (WebCore::RenderTheme::adjustStyle): |
|
31284 (WebCore::RenderTheme::paint): |
|
31285 (WebCore::RenderTheme::paintBorderOnly): |
|
31286 (WebCore::RenderTheme::paintDecorations): |
|
31287 (WebCore::RenderTheme::meterSizeForBounds): |
|
31288 * rendering/RenderTheme.h: |
|
31289 * rendering/RenderThemeMac.h: |
|
31290 * rendering/RenderThemeMac.mm: |
|
31291 (WebCore::RenderThemeMac::meterSizeForBounds): |
|
31292 (WebCore::RenderThemeMac::paintMeter): |
|
31293 (WebCore::RenderThemeMac::levelIndicatorStyleFor): |
|
31294 (WebCore::RenderThemeMac::levelIndicatorFor): |
|
31295 |
|
31296 2010-06-07 MORITA Hajime <morrita@google.com> |
|
31297 |
|
31298 Reviewed by Kent Tamura. |
|
31299 |
|
31300 [Mac] ENABLE_METER_TAG should be enabled. |
|
31301 https://bugs.webkit.org/show_bug.cgi?id=40219 |
|
31302 |
|
31303 * Configurations/FeatureDefines.xcconfig: |
|
31304 * WebCore.xcodeproj/project.pbxproj: |
|
31305 |
|
31306 2010-06-07 Eric Seidel <eric@webkit.org> |
|
31307 |
|
31308 Unreviewed. Just commit an edit Xcode keeps making automatically. |
|
31309 |
|
31310 It appears someone hand-edited the file, Xcode no-like. |
|
31311 |
|
31312 * WebCore.xcodeproj/project.pbxproj: |
|
31313 |
|
31314 2010-06-07 Eric Seidel <eric@webkit.org> |
|
31315 |
|
31316 Reviewed by Adam Barth. |
|
31317 |
|
31318 HTML5 Parser fails script-tests which use document.write |
|
31319 https://bugs.webkit.org/show_bug.cgi?id=40276 |
|
31320 |
|
31321 We were leaving the TreeBuilder paused when executing the scripts |
|
31322 resulting in document.write() calls being ignored. |
|
31323 |
|
31324 I don't see a good way to ASSERT this correct behavior, since |
|
31325 the HTML5ScriptRunner and the HTML5TreeBuilder do not know about |
|
31326 each other. We should never have document.write() called while |
|
31327 the HTML5TreeBuilder is paused, however both document.write and |
|
31328 the network call the same HTML5Tokenizer::write method. It's OK |
|
31329 to be paused when the network writes, but during document.write |
|
31330 (or any other script execution). |
|
31331 |
|
31332 Tested by all of fast/url and numerous other tests. |
|
31333 |
|
31334 * html/HTML5Tokenizer.cpp: |
|
31335 (WebCore::HTML5Tokenizer::notifyFinished): |
|
31336 - Unpause the treebuilder before executing scripts. |
|
31337 (WebCore::HTML5Tokenizer::executeScriptsWaitingForStylesheets): |
|
31338 - Unpause the treebuilder before executing scripts. |
|
31339 |
|
31340 2010-06-07 Eric Seidel <eric@webkit.org> |
|
31341 |
|
31342 Reviewed by Adam Barth. |
|
31343 |
|
31344 HTML5 Parser hits ASSERT in fast/events/stop-load-in-unload-handler-using-document-write.html |
|
31345 https://bugs.webkit.org/show_bug.cgi?id=40268 |
|
31346 |
|
31347 Teach HTML5Tokenizer about m_parserStopped. |
|
31348 |
|
31349 While tracking down how m_parserStopped was used, I found |
|
31350 several useless implementations of stopParsing() which I removed. |
|
31351 |
|
31352 I also found a comment in HTMLTokenizer which still talks about the |
|
31353 "part" (an old class now split into Frame, Page, FrameLoader, etc.) |
|
31354 and an nearly empty FrameLoader::tokenizerProcessedData which I just |
|
31355 inlined into its one caller. |
|
31356 |
|
31357 Tests: |
|
31358 fast/events/stop-load-in-unload-handler-using-document-write.html |
|
31359 http/tests/security/xssAuditor/full-block-base-href.html |
|
31360 |
|
31361 * html/HTML5Tokenizer.cpp: |
|
31362 (WebCore::HTML5Tokenizer::pumpLexerIfPossible): |
|
31363 - New method used instead of direct calls to pumpLexer for when |
|
31364 callers would like to pump the lexer if possible, but don't want |
|
31365 to check if the parser is stopped, etc. |
|
31366 (WebCore::HTML5Tokenizer::pumpLexer): |
|
31367 - Added an ASSERT that the parser is not stopped. |
|
31368 - Stop pumping if the parser is stopped. |
|
31369 (WebCore::HTML5Tokenizer::write): |
|
31370 - Ignore the write if the parser is already stopped. |
|
31371 (WebCore::HTML5Tokenizer::end): |
|
31372 (WebCore::HTML5Tokenizer::attemptToEnd): |
|
31373 - Move comment back to finish() which was incorrectly moved here. |
|
31374 (WebCore::HTML5Tokenizer::endIfDelayed): |
|
31375 (WebCore::HTML5Tokenizer::finish): |
|
31376 - Move comment back here from attemptToEnd() |
|
31377 (WebCore::HTML5Tokenizer::resumeParsingAfterScriptExecution): |
|
31378 - Remove a bogus ASSERT. The lexer will stop when it needs |
|
31379 more data, which may not necessarily mean m_source.isEmpty(). |
|
31380 * html/HTML5Tokenizer.h: |
|
31381 - Add pumpLexerIfPossible(). |
|
31382 * html/HTMLTokenizer.cpp: |
|
31383 (WebCore::HTMLTokenizer::stopParsing): |
|
31384 - Add a FIXME about if we really should call checkCompleted() here. |
|
31385 - Inline FrameLoader::tokenizerProcessedData() since this was the only caller. |
|
31386 * loader/FrameLoader.cpp: |
|
31387 - Remove tokenizerProcessedData() |
|
31388 * loader/FrameLoader.h: |
|
31389 - Remove tokenizerProcessedData() |
|
31390 * loader/MediaDocument.cpp: |
|
31391 - Remove unneeded Tokenizer::stopParsing() override. |
|
31392 * loader/PluginDocument.cpp: |
|
31393 - Remove unneeded Tokenizer::stopParsing() override. |
|
31394 * loader/SinkDocument.cpp: |
|
31395 - Remove unneeded Tokenizer::stopParsing() override. |
|
31396 |
|
31397 2010-06-07 Adam Barth <abarth@webkit.org> |
|
31398 |
|
31399 Reviewed by Eric Seidel. |
|
31400 |
|
31401 Fix XFrameOptions and xssAuditor crashes in HTML5 parser |
|
31402 https://bugs.webkit.org/show_bug.cgi?id=40265 |
|
31403 |
|
31404 We're not supposed to call end() while the tokenizer's write() method. |
|
31405 This causes a bunch of LayoutTests to crash. In particular, this patch |
|
31406 fixes crashes in the following tests: |
|
31407 |
|
31408 Tests: |
|
31409 * http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-in-body.html |
|
31410 * http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-deny.html |
|
31411 * http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag.html |
|
31412 * http/tests/security/xssAuditor/full-block-base-href.html |
|
31413 * http/tests/security/xssAuditor/full-block-get-from-iframe.html |
|
31414 * http/tests/security/xssAuditor/full-block-iframe-javascript-url.html |
|
31415 * http/tests/security/xssAuditor/full-block-link-onclick.html |
|
31416 * http/tests/security/xssAuditor/full-block-post-from-iframe.html |
|
31417 * http/tests/security/xssAuditor/full-block-script-tag.html |
|
31418 * http/tests/security/xssAuditor/xss-protection-parsing-01.html |
|
31419 |
|
31420 * html/HTML5Tokenizer.cpp: |
|
31421 (WebCore::): |
|
31422 (WebCore::HTML5Tokenizer::HTML5Tokenizer): |
|
31423 (WebCore::HTML5Tokenizer::write): |
|
31424 (WebCore::HTML5Tokenizer::attemptToEnd): |
|
31425 (WebCore::HTML5Tokenizer::endIfDelayed): |
|
31426 (WebCore::HTML5Tokenizer::finish): |
|
31427 (WebCore::HTML5Tokenizer::resumeParsingAfterScriptExecution): |
|
31428 * html/HTML5Tokenizer.h: |
|
31429 (WebCore::HTML5Tokenizer::inWrite): |
|
31430 |
|
31431 2010-06-07 Eric Seidel <eric@webkit.org> |
|
31432 |
|
31433 Reviewed by Adam Barth. |
|
31434 |
|
31435 HTML5 parser hits ASSERT in http/tests/misc/window-dot-stop.html |
|
31436 https://bugs.webkit.org/show_bug.cgi?id=40264 |
|
31437 |
|
31438 * html/HTML5Tokenizer.cpp: |
|
31439 (WebCore::HTML5Tokenizer::executeScript): |
|
31440 |
|
31441 2010-06-07 Kinuko Yasuda <kinuko@chromium.org> |
|
31442 |
|
31443 Unreviewed. |
|
31444 |
|
31445 Avoid "warning: no previous prototype for" in Snow Leopard compilation. |
|
31446 |
|
31447 * platform/BlobItem.cpp: Added static to getFileSnapshotModificationTime(). |
|
31448 |
|
31449 2010-06-07 Kinuko Yasuda <kinuko@chromium.org> |
|
31450 |
|
31451 Reviewed by Jian Li. |
|
31452 |
|
31453 Refactor FormData and Blob for better support of Blobs synthesized by BlobBuilder. |
|
31454 https://bugs.webkit.org/show_bug.cgi?id=39083 |
|
31455 |
|
31456 - Introduces a new class BlobItem as a basic component of Blob and FormDataList. |
|
31457 - File would become a special type of Blob that contains only one FileBlobItem. |
|
31458 - Fix the dependency violation in FormData so that the files under platform/ do not include any html/ files. |
|
31459 |
|
31460 The patch doesn't support the latest File API changes (e.g. type, |
|
31461 url and slice's type parameters) and should not change any of its |
|
31462 existing behaviors. |
|
31463 |
|
31464 The existing tests should be able to be used for regression. |
|
31465 |
|
31466 * CMakeLists.txt: |
|
31467 * GNUmakefile.am: |
|
31468 * WebCore.gypi: |
|
31469 * WebCore.pro: |
|
31470 * WebCore.vcproj/WebCore.vcproj: |
|
31471 * WebCore.xcodeproj/project.pbxproj: |
|
31472 * html/Blob.cpp: |
|
31473 (WebCore::Blob::Blob): |
|
31474 (WebCore::Blob::size): |
|
31475 (WebCore::Blob::path): |
|
31476 (WebCore::Blob::append): |
|
31477 (WebCore::Blob::slice): |
|
31478 * html/Blob.h: |
|
31479 (WebCore::Blob::create): |
|
31480 (WebCore::Blob::type): |
|
31481 (WebCore::Blob::items): |
|
31482 (WebCore::Blob::Blob): |
|
31483 * html/File.cpp: |
|
31484 (WebCore::File::File): |
|
31485 (WebCore::File::name): |
|
31486 * html/File.h: |
|
31487 (WebCore::File::fileName): |
|
31488 * html/FileReader.cpp: |
|
31489 (WebCore::FileReader::readAsBinaryString): |
|
31490 (WebCore::FileReader::readAsText): |
|
31491 * html/FileStream.cpp: |
|
31492 (WebCore::FileStream::openForRead): |
|
31493 * html/FormDataList.cpp: |
|
31494 (WebCore::FormDataList::appendString): Moved the line ending fix logic to StringBlobItem::convertToCString. |
|
31495 (WebCore::FormDataList::appendBlob): |
|
31496 * html/FormDataList.h: |
|
31497 (WebCore::FormDataList::items): |
|
31498 * html/HTMLFormElement.cpp: |
|
31499 (WebCore::HTMLFormElement::createFormData): |
|
31500 * html/HTMLProgressElement.cpp: |
|
31501 * platform/BlobItem.cpp: Added. |
|
31502 * platform/BlobItem.h: Added. |
|
31503 * platform/network/FormData.cpp: |
|
31504 (WebCore::FormDataElement::FormDataElement): |
|
31505 (WebCore::FormData::create): |
|
31506 (WebCore::FormData::createMultiPart): |
|
31507 (WebCore::FormData::deepCopy): |
|
31508 (WebCore::FormData::appendData): |
|
31509 (WebCore::FormData::appendString): |
|
31510 (WebCore::FormData::appendFile): |
|
31511 (WebCore::FormData::appendFileRange): |
|
31512 (WebCore::FormData::appendItems): |
|
31513 (WebCore::FormData::appendItem): |
|
31514 (WebCore::FormData::appendKeyValuePairItems): |
|
31515 * platform/network/FormData.h: |
|
31516 (WebCore::operator!=): |
|
31517 * platform/network/mac/FormDataStreamMac.mm: |
|
31518 (WebCore::closeCurrentStream): |
|
31519 (WebCore::advanceCurrentStream): |
|
31520 (WebCore::formCreate): |
|
31521 (WebCore::formRead): |
|
31522 (WebCore::setHTTPBody): |
|
31523 * xml/XMLHttpRequest.cpp: |
|
31524 (WebCore::XMLHttpRequest::send): |
|
31525 |
|
31526 2010-06-07 Vangelis Kokkevis <vangelis@chromium.org> |
|
31527 |
|
31528 Reviewed by Dimitri Glazkov. |
|
31529 |
|
31530 [chromium] Decoupled transform matrix update of composited layers from |
|
31531 drawing and interposed a sorting step so that the layers are now composited |
|
31532 back to front to get transparency working correctly. Also added missing code |
|
31533 for the preserves3D CSS property. |
|
31534 |
|
31535 * platform/graphics/chromium/GraphicsLayerChromium.cpp: |
|
31536 (WebCore::GraphicsLayerChromium::updateLayerPreserves3D): |
|
31537 * platform/graphics/chromium/LayerChromium.h: |
|
31538 (WebCore::LayerChromium::setDrawTransform): |
|
31539 (WebCore::LayerChromium::drawTransform): |
|
31540 (WebCore::LayerChromium::setDrawOpacity): |
|
31541 (WebCore::LayerChromium::drawOpacity): |
|
31542 (WebCore::LayerChromium::preserves3D): |
|
31543 * platform/graphics/chromium/LayerRendererChromium.cpp: |
|
31544 (WebCore::compareLayerZ): |
|
31545 (WebCore::LayerRendererChromium::drawLayers): |
|
31546 (WebCore::LayerRendererChromium::updateLayersRecursive): |
|
31547 (WebCore::LayerRendererChromium::drawLayer): |
|
31548 * platform/graphics/chromium/LayerRendererChromium.h: |
|
31549 |
|
31550 2010-06-07 Anton Muhin <antonm@chromium.org> |
|
31551 |
|
31552 Reviewed by Nate Chapin. |
|
31553 |
|
31554 [Chromium] convert a key to AtomicString in V8NodeList::namedPropertyGetter |
|
31555 https://bugs.webkit.org/show_bug.cgi?id=40238 |
|
31556 |
|
31557 Comparison to "length" below could be performed faster in this (major) case |
|
31558 as it would only require direct pointer comparison (cf. to full text |
|
31559 comparison if key is converted to WebCore::String.) |
|
31560 |
|
31561 * bindings/v8/custom/V8NodeListCustom.cpp: |
|
31562 (WebCore::V8NodeList::namedPropertyGetter): |
|
31563 |
|
31564 2010-06-07 Ariya Hidayat <ariya.hidayat@codeaurora.org> |
|
31565 |
|
31566 Reviewed by Kenneth Rohde Christiansen. |
|
31567 |
|
31568 [Qt] Fix GraphicsContext::clipOut to take the transformation matrix into account. |
|
31569 |
|
31570 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
31571 (WebCore::GraphicsContext::clipOut): |
|
31572 |
|
31573 2010-06-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> |
|
31574 |
|
31575 Reviewed by Xan Lopez. |
|
31576 |
|
31577 [gtk] web fonts not loaded properly in scribd html5 reader |
|
31578 https://bugs.webkit.org/show_bug.cgi?id=38758 |
|
31579 |
|
31580 Avoid always giving a positive reply in createFontPlatformData. We |
|
31581 do not want every non-existing family name to be considered a hit, |
|
31582 or weird usage of local sources in @font-face rules will make |
|
31583 WebKitGTK+ never consider the online fonts. |
|
31584 |
|
31585 * GNUmakefile.am: |
|
31586 * platform/graphics/cairo/FontCacheCairo.cpp: |
|
31587 (WebCore::isWellKnownFontName): |
|
31588 (WebCore::FontCache::createFontPlatformData): |
|
31589 * platform/graphics/cairo/GOwnPtrCairo.cpp: Added. |
|
31590 (WTF::FcPattern): |
|
31591 (WTF::FcObjectSet): |
|
31592 (WTF::FcFontSet): |
|
31593 * platform/graphics/cairo/GOwnPtrCairo.h: Added. |
|
31594 |
|
31595 2010-06-07 Adam Barth <abarth@webkit.org> |
|
31596 |
|
31597 Reviewed by Eric Seidel. |
|
31598 |
|
31599 "Fix" fast/dom/stripNullFromTextNodes.html in HTML5 parser |
|
31600 https://bugs.webkit.org/show_bug.cgi?id=40200 |
|
31601 |
|
31602 The proper handling of null characters is to replace them with U+FFFD. |
|
31603 This patch "fixes" fast/dom/stripNullFromTextNodes.html in the sense |
|
31604 that it makes it give the proper output w.r.t. HTML5. However, that |
|
31605 doesn't match the behavior of the old parser, which just stripped the |
|
31606 nulls. |
|
31607 |
|
31608 * html/HTML5Lexer.h: |
|
31609 (WebCore::HTML5Lexer::InputStreamPreprocessor::peek): |
|
31610 |
|
31611 2010-06-07 Adam Barth <abarth@webkit.org> |
|
31612 |
|
31613 Reviewed by Eric Seidel. |
|
31614 |
|
31615 HTML5 parser should normalize line endings |
|
31616 https://bugs.webkit.org/show_bug.cgi?id=40199 |
|
31617 |
|
31618 When reading characters from the source, we need to normalize line |
|
31619 endings, which means treating \r as \n and folding \r\n sequences into |
|
31620 a single \n. Doing this requires a slightly tighter pattern for |
|
31621 advancing the source (to make sure we update our state machine |
|
31622 correctly). |
|
31623 |
|
31624 Fixes fast/css/first-child-pseudo-class.html and hundreds of other |
|
31625 LayoutTests in the HTML5 parser. |
|
31626 |
|
31627 * html/HTML5Lexer.cpp: |
|
31628 (WebCore::HTML5Lexer::nextToken): |
|
31629 * html/HTML5Lexer.h: |
|
31630 (WebCore::HTML5Lexer::InputStreamPreprocessor::LineEndingNormalizer): |
|
31631 - Introduced InputStreamPreprocessor to keep track of our line |
|
31632 endings state machine. This class will grow to eventually do |
|
31633 all the input stream preprocessing required by the HTML5 spec. |
|
31634 (WebCore::HTML5Lexer::InputStreamPreprocessor::nextInputCharacter): |
|
31635 - We need to be careful not to read *source more than |
|
31636 once because we need to know whether we've transformed the |
|
31637 character. Keeping the next input character in this state |
|
31638 machine requires some careful coding, but seems advantageous. |
|
31639 (WebCore::HTML5Lexer::InputStreamPreprocessor::peek): |
|
31640 (WebCore::HTML5Lexer::InputStreamPreprocessor::advance): |
|
31641 |
|
31642 2010-06-07 Andrei Popescu <andreip@google.com> |
|
31643 |
|
31644 Reviewed by Jeremy Orlow. |
|
31645 |
|
31646 run-bindings-tests results broken by Changeset 60776 |
|
31647 https://bugs.webkit.org/show_bug.cgi?id=40230 |
|
31648 |
|
31649 The change to CodeGeneratorJS.pm in |
|
31650 http://trac.webkit.org/changeset/60776/trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm |
|
31651 added the possibility to use [CallWith=ScriptExecutionContext] in idl files. |
|
31652 |
|
31653 Before the above change was submitted, CodeGeneratorJS.pm was modified so that native |
|
31654 functions return EncodedJSValue instead of JSValues. This was done in |
|
31655 http://trac.webkit.org/changeset/60631/trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm |
|
31656 |
|
31657 This CL updates the CodeGeneratorJS.pm to correctly return an EncodedJSValue in the case |
|
31658 where the ScriptExecutionContext pointer is 0 at the time when the native function is invoked. |
|
31659 |
|
31660 No new tests, just fixing run-bindings-tests. |
|
31661 |
|
31662 * bindings/scripts/CodeGeneratorJS.pm: |
|
31663 * bindings/scripts/test/JS/JSTestObj.cpp: |
|
31664 (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContext): |
|
31665 * bindings/scripts/test/JS/JSTestObj.h: |
|
31666 |
|
31667 2010-06-07 Kwang Yul Seo <skyul@company100.net> |
|
31668 |
|
31669 Reviewed by Eric Seidel. |
|
31670 |
|
31671 [BREWMP] Add dummy SearchPopupMenu implementation |
|
31672 https://bugs.webkit.org/show_bug.cgi?id=40224 |
|
31673 |
|
31674 Add dummy implementation of SearchPopupMenu. |
|
31675 |
|
31676 * platform/brew/SearchPopupMenuBrew.cpp: Added. |
|
31677 (WebCore::SearchPopupMenu::saveRecentSearches): |
|
31678 (WebCore::SearchPopupMenu::loadRecentSearches): |
|
31679 (WebCore::SearchPopupMenu::SearchPopupMenu): |
|
31680 (WebCore::SearchPopupMenu::enabled): |
|
31681 |
|
31682 2010-06-07 Julien Chaffraix <jchaffraix@webkit.org> |
|
31683 |
|
31684 Unreviewed, reverting my HTML comment parsing change as it |
|
31685 breaks Gtk and Qt. |
|
31686 |
|
31687 * html/HTMLTokenizer.cpp: |
|
31688 (WebCore::HTMLTokenizer::parseComment): |
|
31689 (WebCore::HTMLTokenizer::parseTag): |
|
31690 * html/HTMLTokenizer.h: |
|
31691 |
|
31692 2010-06-07 Martin Robinson <mrobinson@igalia.com> |
|
31693 |
|
31694 Reviewed by Oliver Hunt. |
|
31695 |
|
31696 [GTK] HTML5 input type=range is not drawn |
|
31697 https://bugs.webkit.org/show_bug.cgi?id=39561 |
|
31698 |
|
31699 Support HTML5 range widgets. They are now drawn using the standard |
|
31700 GTK+ theme drawing mechanism. |
|
31701 |
|
31702 * platform/gtk/RenderThemeGtk.cpp: |
|
31703 (WebCore::supportsFocus): Add focus support for parts of sliders. |
|
31704 (WebCore::setMozillaState): |
|
31705 Add the GtkThemeWidgetType argument and honor depressed states for slider thumbs. |
|
31706 (WebCore::paintMozillaGtkWidget): Pass in the widget type to setMozillaState. |
|
31707 (WebCore::RenderThemeGtk::paintSliderTrack): Added. |
|
31708 (WebCore::RenderThemeGtk::adjustSliderTrackStyle): Added. |
|
31709 (WebCore::RenderThemeGtk::paintSliderThumb): Added. |
|
31710 (WebCore::RenderThemeGtk::adjustSliderThumbStyle): Added. |
|
31711 (WebCore::RenderThemeGtk::adjustSliderThumbSize): Added support for non-media sliders. |
|
31712 * platform/gtk/RenderThemeGtk.h: Added new method declarations. |
|
31713 |
|
31714 2010-06-07 Martin Robinson <mrobinson@igalia.com> |
|
31715 |
|
31716 Reviewed by Xan Lopez. |
|
31717 |
|
31718 [GTK] gtk_widget_get_window should replace widget->window |
|
31719 https://bugs.webkit.org/show_bug.cgi?id=40180 |
|
31720 |
|
31721 Replace all uses of widget->window with gtk_widget_get_window. For older |
|
31722 GTK+ versions, #define gtk_widget_get_window in GtkVersioning.h. |
|
31723 |
|
31724 No tests necessary as functionality has not changed. |
|
31725 |
|
31726 * platform/gtk/GtkPluginWidget.cpp: |
|
31727 (WebCore::GtkPluginWidget::invalidateRect): Replace widget->window use. |
|
31728 * platform/gtk/GtkVersioning.h: Add gtk_widget_get_window for old GTK+ versions. |
|
31729 * platform/gtk/PlatformScreenGtk.cpp: |
|
31730 (WebCore::getVisual): Replace widget->window use. |
|
31731 (WebCore::screenRect): Ditto. |
|
31732 * platform/gtk/PopupMenuGtk.cpp: |
|
31733 (WebCore::PopupMenu::show): Ditto. |
|
31734 * platform/gtk/WidgetGtk.cpp: |
|
31735 (WebCore::gdkDrawable): Ditto. |
|
31736 (WebCore::Widget::setCursor): Ditto. |
|
31737 |
|
31738 2010-06-07 Nikolas Zimmermann <nzimmermann@rim.com> |
|
31739 |
|
31740 Reviewed by Sam Weinig. |
|
31741 |
|
31742 Add CPP bindings generator |
|
31743 https://bugs.webkit.org/show_bug.cgi?id=38279 |
|
31744 |
|
31745 Add CPP bindings generator used in Olympia platform. |
|
31746 We can succesfully generate cpp bindings for all IDLs except: |
|
31747 - DOMWindow.idl / EventTarget.idl (filtered out in the IDL list in DerivedSources.make for non-jsc/v8 generators anyways, so no problem at all) |
|
31748 - inspector/ (not needed for us at all) |
|
31749 - svg/ (needs custom handling, related to animated attributes) |
|
31750 |
|
31751 All generated files are free of style issues: "Total errors found: 0 in 510 files" |
|
31752 Not integrated in any build system so far, though I've successfully tested on Mac and inside Olympia, of course. |
|
31753 |
|
31754 * bindings/cpp: Added. |
|
31755 * bindings/cpp/WebDOMCString.cpp: Added. |
|
31756 (WebDOMCString::reset): |
|
31757 (WebDOMCString::assign): |
|
31758 (WebDOMCString::length): |
|
31759 (WebDOMCString::data): |
|
31760 (WebDOMCString::utf16): |
|
31761 (WebDOMCString::fromUTF16): |
|
31762 (WebDOMCString::WebDOMCString): |
|
31763 (WebDOMCString::operator=): |
|
31764 (WebDOMCString::operator WTF::CString): |
|
31765 * bindings/cpp/WebDOMCString.h: Added. |
|
31766 (WebDOMCString::~WebDOMCString): |
|
31767 (WebDOMCString::WebDOMCString): |
|
31768 (WebDOMCString::operator=): |
|
31769 (WebDOMCString::isEmpty): |
|
31770 (WebDOMCString::isNull): |
|
31771 * bindings/cpp/WebDOMEventListenerCustom.cpp: Added. |
|
31772 (WebDOMEventListener::handleEvent): |
|
31773 (toWebKit): |
|
31774 * bindings/cpp/WebDOMEventTarget.cpp: Added. |
|
31775 (WebDOMEventTarget::WebDOMEventTargetPrivate::WebDOMEventTargetPrivate): |
|
31776 (WebDOMEventTarget::WebDOMEventTarget): |
|
31777 (WebDOMEventTarget::~WebDOMEventTarget): |
|
31778 (WebDOMEventTarget::impl): |
|
31779 (toWebCore): |
|
31780 (toWebKit): |
|
31781 * bindings/cpp/WebDOMEventTarget.h: Added. |
|
31782 * bindings/cpp/WebDOMHTMLDocumentCustom.cpp: Added. |
|
31783 (documentWrite): |
|
31784 (WebDOMHTMLDocument::write): |
|
31785 (WebDOMHTMLDocument::writeln): |
|
31786 * bindings/cpp/WebDOMNodeCustom.cpp: Added. |
|
31787 (WebDOMNode::insertBefore): |
|
31788 (WebDOMNode::replaceChild): |
|
31789 (WebDOMNode::removeChild): |
|
31790 (WebDOMNode::appendChild): |
|
31791 (WebDOMNode::addEventListener): |
|
31792 (WebDOMNode::removeEventListener): |
|
31793 * bindings/cpp/WebDOMObject.h: Added. |
|
31794 (WebDOMObject::WebDOMObject): |
|
31795 (WebDOMObject::~WebDOMObject): |
|
31796 * bindings/cpp/WebDOMString.cpp: Added. |
|
31797 (WebDOMString::reset): |
|
31798 (WebDOMString::assign): |
|
31799 (WebDOMString::length): |
|
31800 (WebDOMString::data): |
|
31801 (WebDOMString::utf8): |
|
31802 (WebDOMString::fromUTF8): |
|
31803 (WebDOMString::WebDOMString): |
|
31804 (WebDOMString::operator=): |
|
31805 (WebDOMString::operator WebCore::String): |
|
31806 (WebDOMString::operator WebCore::AtomicString): |
|
31807 (WebDOMString::equals): |
|
31808 * bindings/cpp/WebDOMString.h: Added. |
|
31809 (WebDOMString::~WebDOMString): |
|
31810 (WebDOMString::WebDOMString): |
|
31811 (WebDOMString::operator=): |
|
31812 (WebDOMString::isEmpty): |
|
31813 (WebDOMString::isNull): |
|
31814 * bindings/cpp/WebExceptionHandler.cpp: Added. |
|
31815 (globalExceptionHandler): |
|
31816 (webInstallExceptionHandler): |
|
31817 (webRaiseDOMException): |
|
31818 * bindings/cpp/WebExceptionHandler.h: Added. |
|
31819 (webDOMRaiseError): |
|
31820 * bindings/cpp/WebNativeEventListener.cpp: Added. |
|
31821 (WebNativeEventListener::WebNativeEventListener): |
|
31822 (WebNativeEventListener::~WebNativeEventListener): |
|
31823 (WebNativeEventListener::handleEvent): |
|
31824 (WebNativeEventListener::reportError): |
|
31825 (WebNativeEventListener::operator==): |
|
31826 * bindings/cpp/WebNativeEventListener.h: Added. |
|
31827 (WebNativeEventListener::create): |
|
31828 (WebNativeEventListener::cast): |
|
31829 * bindings/scripts/CodeGeneratorCPP.pm: Added. |
|
31830 * bindings/scripts/test/CPP: Added. |
|
31831 * bindings/scripts/test/CPP/WebDOMTestCallback.cpp: Added. |
|
31832 (WebDOMTestCallback::WebDOMTestCallbackPrivate::WebDOMTestCallbackPrivate): |
|
31833 (WebDOMTestCallback::WebDOMTestCallback): |
|
31834 (WebDOMTestCallback::impl): |
|
31835 (WebDOMTestCallback::~WebDOMTestCallback): |
|
31836 (WebDOMTestCallback::callbackWithClass1Param): |
|
31837 (WebDOMTestCallback::callbackWithClass2Param): |
|
31838 (WebDOMTestCallback::callbackWithNonBoolReturnType): |
|
31839 (toWebCore): |
|
31840 (toWebKit): |
|
31841 * bindings/scripts/test/CPP/WebDOMTestCallback.h: Added. |
|
31842 * bindings/scripts/test/CPP/WebDOMTestInterface.cpp: Added. |
|
31843 (WebDOMTestInterface::WebDOMTestInterfacePrivate::WebDOMTestInterfacePrivate): |
|
31844 (WebDOMTestInterface::WebDOMTestInterface): |
|
31845 (WebDOMTestInterface::impl): |
|
31846 (WebDOMTestInterface::~WebDOMTestInterface): |
|
31847 (toWebCore): |
|
31848 (toWebKit): |
|
31849 * bindings/scripts/test/CPP/WebDOMTestInterface.h: Added. |
|
31850 * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Added. |
|
31851 (WebDOMTestObj::WebDOMTestObjPrivate::WebDOMTestObjPrivate): |
|
31852 (WebDOMTestObj::WebDOMTestObj): |
|
31853 (WebDOMTestObj::impl): |
|
31854 (WebDOMTestObj::~WebDOMTestObj): |
|
31855 (WebDOMTestObj::readOnlyIntAttr): |
|
31856 (WebDOMTestObj::readOnlyStringAttr): |
|
31857 (WebDOMTestObj::readOnlyTestObjAttr): |
|
31858 (WebDOMTestObj::intAttr): |
|
31859 (WebDOMTestObj::setIntAttr): |
|
31860 (WebDOMTestObj::longLongAttr): |
|
31861 (WebDOMTestObj::setLongLongAttr): |
|
31862 (WebDOMTestObj::unsignedLongLongAttr): |
|
31863 (WebDOMTestObj::setUnsignedLongLongAttr): |
|
31864 (WebDOMTestObj::stringAttr): |
|
31865 (WebDOMTestObj::setStringAttr): |
|
31866 (WebDOMTestObj::testObjAttr): |
|
31867 (WebDOMTestObj::setTestObjAttr): |
|
31868 (WebDOMTestObj::attrWithException): |
|
31869 (WebDOMTestObj::setAttrWithException): |
|
31870 (WebDOMTestObj::attrWithSetterException): |
|
31871 (WebDOMTestObj::setAttrWithSetterException): |
|
31872 (WebDOMTestObj::attrWithGetterException): |
|
31873 (WebDOMTestObj::setAttrWithGetterException): |
|
31874 (WebDOMTestObj::scriptStringAttr): |
|
31875 (WebDOMTestObj::voidMethod): |
|
31876 (WebDOMTestObj::voidMethodWithArgs): |
|
31877 (WebDOMTestObj::intMethod): |
|
31878 (WebDOMTestObj::intMethodWithArgs): |
|
31879 (WebDOMTestObj::objMethod): |
|
31880 (WebDOMTestObj::objMethodWithArgs): |
|
31881 (WebDOMTestObj::methodThatRequiresAllArgs): |
|
31882 (WebDOMTestObj::methodThatRequiresAllArgsAndThrows): |
|
31883 (WebDOMTestObj::serializedValue): |
|
31884 (WebDOMTestObj::methodWithException): |
|
31885 (WebDOMTestObj::addEventListener): |
|
31886 (WebDOMTestObj::removeEventListener): |
|
31887 (WebDOMTestObj::withDynamicFrame): |
|
31888 (WebDOMTestObj::withDynamicFrameAndArg): |
|
31889 (WebDOMTestObj::withDynamicFrameAndOptionalArg): |
|
31890 (WebDOMTestObj::withScriptStateVoid): |
|
31891 (WebDOMTestObj::withScriptStateObj): |
|
31892 (WebDOMTestObj::withScriptStateVoidException): |
|
31893 (WebDOMTestObj::withScriptStateObjException): |
|
31894 (WebDOMTestObj::methodWithOptionalArg): |
|
31895 (WebDOMTestObj::methodWithNonOptionalArgAndOptionalArg): |
|
31896 (WebDOMTestObj::methodWithNonOptionalArgAndTwoOptionalArgs): |
|
31897 (toWebCore): |
|
31898 (toWebKit): |
|
31899 * bindings/scripts/test/CPP/WebDOMTestObj.h: Added. |
|
31900 * css/StyleSheet.idl: Export helper method isCSSStyleSheet() for cpp bindings only. |
|
31901 * dom/CustomEvent.idl: Disabled for cpp bindings, needs arbitary input parameter handling support ('DOMObject' type). |
|
31902 * dom/Document.idl: Ignore getCSSCanvasContext() for cpp bindings and export helper method isHTMLDocument() (cpp bindings only). |
|
31903 * dom/Event.idl: Export isMutationEvent()/isMouseEvent()/isUIEvent() helpers for cpp bindings only. |
|
31904 * dom/EventListener.h: Add CPPEventListenerType. |
|
31905 * dom/Node.idl: addEventListener/removeEventListener need [Custom] flag for cpp bindings. |
|
31906 * dom/PopStateEvent.idl: Disabled just like CustomEvent, for the same reason ("any" argument type handling). |
|
31907 * html/HTMLCanvasElement.idl: Disable getContext() method for cpp bindings, as it's done for objc bindings. |
|
31908 * html/HTMLDocument.idl: Add [NoCPPCustom] marker for open(), as we're just autogenerating it. |
|
31909 * html/HTMLInputElement.idl: Disable valueAsDate() method for cpp bindings, as we're missing native 'Date' type support. |
|
31910 * html/TextMetrics.h: Add missing PassRefPtr.h include. |
|
31911 * html/canvas/CanvasRenderingContext2D.idl: Disable methods (setLineCap, etc..) for cpp bindings whose names clash with property setters. |
|
31912 * page/AbstractView.idl: Rename 'Media' type to 'StyleMedia' - this should have been done before. |
|
31913 * page/Location.idl: Disable several methods which would need a custom implementation for the cpp bindings. |
|
31914 * page/WebKitPoint.h: Add missing PassRefPtr.h include. |
|
31915 * storage/SQLResultSet.idl: Correct type from 'long' to 'long long', for cpp bindings only though as it wouldn't build on Chromium/V8. |
|
31916 * workers/DedicatedWorkerContext.idl: Disable postMessage() for now when using cpp bindings, would need custom code for us. |
|
31917 * workers/WorkerContext.idl: Hide constructors from cpp bindings. |
|
31918 |
|
31919 2010-06-07 Julien Chaffraix <jchaffraix@webkit.org> |
|
31920 |
|
31921 Reviewed by Alexey Proskuryakov. |
|
31922 |
|
31923 Space should be allowed between -- and > in comment end |
|
31924 https://bugs.webkit.org/show_bug.cgi?id=21945 |
|
31925 |
|
31926 Implemented the HTML comment parsing algorithm so that we match HTML5 and |
|
31927 FF when parsing comments. Missing from this patch is |
|
31928 the parser errors, which will be added in a follow up patch. |
|
31929 |
|
31930 Added tests cases for broken comments. |
|
31931 |
|
31932 Tests: fast/parser/broken-comment-1.html |
|
31933 fast/parser/broken-comment-2.html |
|
31934 fast/parser/broken-comment-3.html |
|
31935 fast/parser/broken-comment-4.html |
|
31936 fast/parser/broken-comment-5.html |
|
31937 fast/parser/broken-comment-6.html |
|
31938 fast/parser/broken-comment-in-head-1.html |
|
31939 fast/parser/broken-comment-in-head-2.html |
|
31940 fast/parser/broken-comment-in-head-3.html |
|
31941 fast/parser/broken-comment-in-head-4.html |
|
31942 fast/parser/broken-comment-in-head-5.html |
|
31943 |
|
31944 * html/HTMLTokenizer.cpp: |
|
31945 (WebCore::HTMLTokenizer::parseComment): Now we use a state machine |
|
31946 that matches the HTML5 specification. |
|
31947 (WebCore::HTMLTokenizer::emitCommentToken): This emits the comment token |
|
31948 and keep some of the original behavior as parseComment is called in wrong |
|
31949 context (inside a <title> for example). Added a more explicit comment about |
|
31950 this. |
|
31951 (WebCore::HTMLTokenizer::parseTag): Remove the handling of <!--> in quirks mode. |
|
31952 HTML5 specifies that we should accept this in strict mode too. |
|
31953 * html/HTMLTokenizer.h: |
|
31954 (WebCore::HTMLTokenizer::): Added a new enum for the comment parsing state. |
|
31955 |
|
31956 2010-06-07 Mahesh Kulakrni <mahesh.kulkarni@nokia.com> |
|
31957 |
|
31958 Reviewed by Simon Hausmann. |
|
31959 |
|
31960 [QT] QT_BEARER flag is not enabled on S60 properly |
|
31961 https://bugs.webkit.org/show_bug.cgi?id=39357 |
|
31962 |
|
31963 enable QT_BEARER for all platform based on qtmobility + |
|
31964 bearer module availability or for qt 4.7+ |
|
31965 |
|
31966 * WebCore.pri: |
|
31967 |
|
31968 2010-06-07 Leon Clarke <leonclarke@google.com> |
|
31969 |
|
31970 Reviewed by Jeremy Orlow. |
|
31971 |
|
31972 Fix indexeddb idls in android makefile |
|
31973 https://bugs.webkit.org/show_bug.cgi?id=40169 |
|
31974 |
|
31975 No new tests. Android-specific build fix. |
|
31976 |
|
31977 * Android.derived.v8bindings.mk: |
|
31978 |
|
31979 2010-06-07 Andrei Popescu <andreip@google.com> |
|
31980 |
|
31981 Reviewed by Jeremy Orlow. |
|
31982 |
|
31983 [indexedDB] It is impossible to create object stores |
|
31984 https://bugs.webkit.org/show_bug.cgi?id=40054 |
|
31985 |
|
31986 No new tests. Layout tests will be added separately. |
|
31987 |
|
31988 * Android.mk: |
|
31989 * CMakeLists.txt: |
|
31990 * GNUmakefile.am: |
|
31991 * WebCore.gypi: |
|
31992 * WebCore.pro: |
|
31993 * WebCore.vcproj/WebCore.vcproj: |
|
31994 * WebCore.xcodeproj/project.pbxproj: |
|
31995 * bindings/scripts/CodeGeneratorJS.pm: |
|
31996 * bindings/scripts/CodeGeneratorV8.pm: |
|
31997 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: |
|
31998 (webkit_dom_test_obj_with_script_execution_context): |
|
31999 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: |
|
32000 * bindings/scripts/test/JS/JSTestObj.cpp: |
|
32001 (WebCore::): |
|
32002 (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContext): |
|
32003 * bindings/scripts/test/JS/JSTestObj.h: |
|
32004 * bindings/scripts/test/ObjC/DOMTestObj.h: |
|
32005 * bindings/scripts/test/ObjC/DOMTestObj.mm: |
|
32006 (-[DOMTestObj withScriptExecutionContext]): |
|
32007 * bindings/scripts/test/TestObj.idl: |
|
32008 * bindings/scripts/test/V8/V8TestObj.cpp: |
|
32009 (WebCore::TestObjInternal::withScriptExecutionContextCallback): |
|
32010 (WebCore::): |
|
32011 * page/DOMWindow.cpp: |
|
32012 (WebCore::DOMWindow::clear): |
|
32013 (WebCore::DOMWindow::indexedDB): |
|
32014 * storage/IDBCallbacks.h: |
|
32015 * storage/IDBDatabase.h: |
|
32016 * storage/IDBDatabaseImpl.cpp: |
|
32017 (WebCore::IDBDatabaseImpl::createObjectStore): |
|
32018 * storage/IDBDatabaseImpl.h: |
|
32019 * storage/IDBDatabaseRequest.cpp: |
|
32020 (WebCore::IDBDatabaseRequest::IDBDatabaseRequest): |
|
32021 (WebCore::IDBDatabaseRequest::createObjectStore): |
|
32022 * storage/IDBDatabaseRequest.h: |
|
32023 * storage/IDBDatabaseRequest.idl: |
|
32024 * storage/IDBObjectStore.cpp: Removed. |
|
32025 * storage/IDBObjectStore.h: |
|
32026 (WebCore::IDBObjectStore::~IDBObjectStore): |
|
32027 * storage/IDBObjectStoreImpl.cpp: Added. |
|
32028 (WebCore::IDBObjectStoreImpl::~IDBObjectStoreImpl): |
|
32029 (WebCore::IDBObjectStoreImpl::IDBObjectStoreImpl): |
|
32030 (WebCore::IDBObjectStoreImpl::indexNames): |
|
32031 (WebCore::IDBObjectStoreImpl::createIndex): |
|
32032 (WebCore::IDBObjectStoreImpl::index): |
|
32033 (WebCore::IDBObjectStoreImpl::removeIndex): |
|
32034 * storage/IDBObjectStoreImpl.h: Added. |
|
32035 (WebCore::IDBObjectStoreImpl::create): |
|
32036 (WebCore::IDBObjectStoreImpl::name): |
|
32037 (WebCore::IDBObjectStoreImpl::keyPath): |
|
32038 * storage/IDBObjectStoreRequest.cpp: |
|
32039 (WebCore::IDBObjectStoreRequest::IDBObjectStoreRequest): |
|
32040 * storage/IDBObjectStoreRequest.h: |
|
32041 (WebCore::IDBObjectStoreRequest::create): |
|
32042 * storage/IDBRequest.cpp: |
|
32043 (WebCore::IDBRequest::onSuccess): |
|
32044 * storage/IDBRequest.h: |
|
32045 * storage/IndexedDatabaseRequest.cpp: |
|
32046 (WebCore::IndexedDatabaseRequest::IndexedDatabaseRequest): |
|
32047 (WebCore::IndexedDatabaseRequest::open): |
|
32048 * storage/IndexedDatabaseRequest.h: |
|
32049 (WebCore::IndexedDatabaseRequest::create): |
|
32050 * storage/IndexedDatabaseRequest.idl: |
|
32051 |
|
32052 2010-06-07 Nikolas Zimmermann <nzimmermann@rim.com> |
|
32053 |
|
32054 Not reviewed. Updated run-bindings-tests results. |
|
32055 |
|
32056 * bindings/scripts/test/JS/JSTestInterface.cpp: |
|
32057 (WebCore::JSTestInterfaceConstructor::constructTestInterface): |
|
32058 * bindings/scripts/test/JS/JSTestObj.cpp: |
|
32059 (WebCore::jsTestObjPrototypeFunctionVoidMethod): |
|
32060 (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): |
|
32061 (WebCore::jsTestObjPrototypeFunctionIntMethod): |
|
32062 (WebCore::jsTestObjPrototypeFunctionIntMethodWithArgs): |
|
32063 (WebCore::jsTestObjPrototypeFunctionObjMethod): |
|
32064 (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs): |
|
32065 (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgs): |
|
32066 (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows): |
|
32067 (WebCore::jsTestObjPrototypeFunctionSerializedValue): |
|
32068 (WebCore::jsTestObjPrototypeFunctionMethodWithException): |
|
32069 (WebCore::jsTestObjPrototypeFunctionCustomMethod): |
|
32070 (WebCore::jsTestObjPrototypeFunctionCustomMethodWithArgs): |
|
32071 (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException): |
|
32072 (WebCore::jsTestObjPrototypeFunctionAddEventListener): |
|
32073 (WebCore::jsTestObjPrototypeFunctionRemoveEventListener): |
|
32074 (WebCore::jsTestObjPrototypeFunctionWithDynamicFrame): |
|
32075 (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndArg): |
|
32076 (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg): |
|
32077 (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture): |
|
32078 (WebCore::jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD): |
|
32079 (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoid): |
|
32080 (WebCore::jsTestObjPrototypeFunctionWithScriptStateObj): |
|
32081 (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoidException): |
|
32082 (WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException): |
|
32083 (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg): |
|
32084 (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg): |
|
32085 (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs): |
|
32086 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1): |
|
32087 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2): |
|
32088 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3): |
|
32089 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4): |
|
32090 (WebCore::jsTestObjPrototypeFunctionOverloadedMethod): |
|
32091 * bindings/scripts/test/JS/JSTestObj.h: |
|
32092 |
|
32093 2010-06-07 Pavel Podivilov <podivilov@chromium.org> |
|
32094 |
|
32095 Reviewed by Pavel Feldman. |
|
32096 |
|
32097 Web Inspector: Implement JSON parsing for InspectorValue. |
|
32098 https://bugs.webkit.org/show_bug.cgi?id=40064 |
|
32099 |
|
32100 * inspector/InspectorValues.cpp: |
|
32101 (WebCore::): |
|
32102 (WebCore::InspectorValue::asBool): |
|
32103 (WebCore::InspectorValue::asNumber): |
|
32104 (WebCore::InspectorValue::asString): |
|
32105 (WebCore::InspectorValue::asObject): |
|
32106 (WebCore::InspectorValue::asArray): |
|
32107 (WebCore::InspectorValue::readJSON): |
|
32108 (WebCore::InspectorValue::writeJSON): |
|
32109 (WebCore::InspectorBasicValue::asBool): |
|
32110 (WebCore::InspectorBasicValue::asNumber): |
|
32111 (WebCore::InspectorBasicValue::writeJSON): |
|
32112 (WebCore::InspectorString::asString): |
|
32113 (WebCore::InspectorObject::asObject): |
|
32114 (WebCore::InspectorObject::getBool): |
|
32115 (WebCore::InspectorObject::getNumber): |
|
32116 (WebCore::InspectorObject::getString): |
|
32117 (WebCore::InspectorObject::getObject): |
|
32118 (WebCore::InspectorObject::getArray): |
|
32119 (WebCore::InspectorObject::get): |
|
32120 (WebCore::InspectorArray::asArray): |
|
32121 * inspector/InspectorValues.h: |
|
32122 (WebCore::InspectorObject::begin): |
|
32123 (WebCore::InspectorObject::end): |
|
32124 |
|
32125 2010-06-07 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> |
|
32126 |
|
32127 Reviewed by Simon Hausmann. |
|
32128 |
|
32129 [Qt] Fix text selection drawing. |
|
32130 https://bugs.webkit.org/show_bug.cgi?id=40221 |
|
32131 |
|
32132 The regression was introduced in r60169. |
|
32133 |
|
32134 * platform/graphics/qt/FontQt.cpp: |
|
32135 (WebCore::drawTextCommon): |
|
32136 |
|
32137 2010-06-07 Yury Semikhatsky <yurys@chromium.org> |
|
32138 |
|
32139 Reviewed by Pavel Feldman. |
|
32140 |
|
32141 Web Inspector: should be possible to distinguish extension scripts from main world scripts |
|
32142 https://bugs.webkit.org/show_bug.cgi?id=40220 |
|
32143 |
|
32144 * bindings/js/ScriptDebugServer.cpp: remove global listeners set which is not used anymore. |
|
32145 (WebCore::ScriptDebugServer::dispatchDidParseSource): pass script wrold type to the listeners. |
|
32146 (WebCore::currentWorldType): |
|
32147 (WebCore::ScriptDebugServer::sourceParsed): |
|
32148 * bindings/js/ScriptDebugServer.h: |
|
32149 * bindings/v8/ScriptDebugServer.cpp: |
|
32150 (WebCore::ScriptDebugServer::dispatchDidParseSource): |
|
32151 * inspector/InspectorController.cpp: |
|
32152 (WebCore::InspectorController::didParseSource): |
|
32153 * inspector/InspectorController.h: |
|
32154 * inspector/InspectorFrontend.cpp: |
|
32155 (WebCore::InspectorFrontend::parsedScriptSource): |
|
32156 * inspector/InspectorFrontend.h: |
|
32157 * inspector/ScriptDebugListener.h: pass type of the isolated world where the script was compiled to didParseSource. |
|
32158 (WebCore::): |
|
32159 * inspector/front-end/InjectedScript.js: |
|
32160 (injectedScriptConstructor): |
|
32161 * inspector/front-end/Script.js: |
|
32162 (WebInspector.Script): |
|
32163 * inspector/front-end/ScriptsPanel.js: |
|
32164 (WebInspector.ScriptsPanel.prototype.addScript): |
|
32165 (WebInspector.ScriptsPanel.prototype._addScriptToFilesMenu): use different style to highlight content scripts. |
|
32166 * inspector/front-end/inspector.css: |
|
32167 (#scripts-files option.extension-script): |
|
32168 * inspector/front-end/inspector.js: |
|
32169 (WebInspector.parsedScriptSource): |
|
32170 |
|
32171 2010-06-06 MORITA Hajime <morrita@google.com> |
|
32172 |
|
32173 Unreviewd, Chromium windows build fix. |
|
32174 |
|
32175 * rendering/RenderThemeChromiumWin.cpp: |
|
32176 (WebCore::RenderThemeChromiumWin::paintProgressBar): |
|
32177 |
|
32178 2010-06-06 MORITA Hajime <morrita@google.com> |
|
32179 |
|
32180 Reviewed by Kent Tamura. |
|
32181 |
|
32182 ASSERTION FAILED with -webkit-appearance:progress-bar for non <progress> elements |
|
32183 https://bugs.webkit.org/show_bug.cgi?id=40158 |
|
32184 |
|
32185 paintProgressBar() and paintMeter() assumed given RenderObject is |
|
32186 RenderProgress or RenderMeter respectively, but arbitrary elements |
|
32187 can have -webkit-appearance: progress-bar and such elements |
|
32188 violates that assumption. So this change added type check before |
|
32189 downcasting the RenderObject. |
|
32190 |
|
32191 * platform/qt/RenderThemeQt.cpp: |
|
32192 (WebCore::RenderThemeQt::paintProgressBar): |
|
32193 * rendering/RenderTheme.cpp: |
|
32194 (WebCore::RenderTheme::paintMeter): |
|
32195 * rendering/RenderThemeChromiumSkia.cpp: |
|
32196 (WebCore::RenderThemeChromiumSkia::paintProgressBar): |
|
32197 * rendering/RenderThemeChromiumWin.cpp: |
|
32198 (WebCore::RenderThemeChromiumWin::paintProgressBar): |
|
32199 * rendering/RenderThemeMac.mm: |
|
32200 (WebCore::RenderThemeMac::paintProgressBar): |
|
32201 |
|
32202 2010-06-06 Gavin Barraclough <barraclough@apple.com> |
|
32203 |
|
32204 Reviewed by NOBODY (Qt build fix pt 2). |
|
32205 |
|
32206 * bridge/qt/qt_runtime.cpp: |
|
32207 (JSC::Bindings::findMethodIndex): |
|
32208 (JSC::Bindings::QtRuntimeMetaMethod::call): |
|
32209 (JSC::Bindings::QtRuntimeConnectionMethod::call): |
|
32210 |
|
32211 2010-06-06 Gavin Barraclough <barraclough@apple.com> |
|
32212 |
|
32213 Reviewed by NOBODY (Qt build fix). |
|
32214 |
|
32215 * bridge/qt/qt_runtime.cpp: |
|
32216 (JSC::Bindings::findMethodIndex): |
|
32217 (JSC::Bindings::QtRuntimeMetaMethod::call): |
|
32218 (JSC::Bindings::QtRuntimeConnectionMethod::call): |
|
32219 |
|
32220 2010-06-06 Gavin Barraclough <barraclough@apple.com> |
|
32221 |
|
32222 Reviewed by Sam Weinig. |
|
32223 |
|
32224 Bug 40214 - Clean up error construction / throwing in JSC. |
|
32225 |
|
32226 The one egregious insanity here is that creating an error requires |
|
32227 a VM-entry-esqe-host call (the string argument is wrapped as a JS |
|
32228 object & pushed on the RegisterFile, then unwrapped back to a |
|
32229 UString). Changing this also means you only require a global |
|
32230 object, not an ExecState, to create an error. |
|
32231 |
|
32232 The methods to create error objects are also parameterized |
|
32233 requiring a switch on the type, which can be made cleaner and |
|
32234 faster by moving to a separate method per error type. Code to add |
|
32235 divot information to error had been duplicated, and is coalesced |
|
32236 back into a single function. |
|
32237 |
|
32238 Convenience methods added to create & throw type & syntax error |
|
32239 with a default error message, since this is a common case. |
|
32240 |
|
32241 Also, errors are currently thrown either using |
|
32242 "throwError(exec, error)" or "exec->setException(error)" - unify |
|
32243 on the former, since this is more commonly used. Add |
|
32244 "throwVMError(exec, error)" equivalents, as a convenience for |
|
32245 cases where the result was being wrapped in "JSValue::encode(...)". |
|
32246 |
|
32247 * WebCore.xcodeproj/project.pbxproj: |
|
32248 * bindings/js/JSArrayBufferConstructor.h: |
|
32249 (WebCore::construct): |
|
32250 * bindings/js/JSArrayBufferViewHelper.h: |
|
32251 (WebCore::setWebGLArrayHelper): |
|
32252 * bindings/js/JSAudioConstructor.cpp: |
|
32253 (WebCore::constructAudio): |
|
32254 * bindings/js/JSCanvasRenderingContext2DCustom.cpp: |
|
32255 (WebCore::JSCanvasRenderingContext2D::setFillColor): |
|
32256 (WebCore::JSCanvasRenderingContext2D::setStrokeColor): |
|
32257 (WebCore::JSCanvasRenderingContext2D::drawImage): |
|
32258 (WebCore::JSCanvasRenderingContext2D::drawImageFromRect): |
|
32259 (WebCore::JSCanvasRenderingContext2D::setShadow): |
|
32260 (WebCore::JSCanvasRenderingContext2D::createPattern): |
|
32261 (WebCore::JSCanvasRenderingContext2D::fillText): |
|
32262 (WebCore::JSCanvasRenderingContext2D::strokeText): |
|
32263 * bindings/js/JSClipboardCustom.cpp: |
|
32264 (WebCore::JSClipboard::clearData): |
|
32265 (WebCore::JSClipboard::getData): |
|
32266 (WebCore::JSClipboard::setDragImage): |
|
32267 * bindings/js/JSDOMBinding.cpp: |
|
32268 (WebCore::setDOMException): |
|
32269 (WebCore::toJSSequence): |
|
32270 * bindings/js/JSDOMWrapper.cpp: |
|
32271 (WebCore::DOMObject::defineOwnProperty): |
|
32272 * bindings/js/JSDesktopNotificationsCustom.cpp: |
|
32273 (WebCore::JSNotificationCenter::requestPermission): |
|
32274 * bindings/js/JSEventSourceConstructor.cpp: |
|
32275 (WebCore::constructEventSource): |
|
32276 * bindings/js/JSHTMLDocumentCustom.cpp: |
|
32277 (WebCore::JSHTMLDocument::open): |
|
32278 * bindings/js/JSHTMLInputElementCustom.cpp: |
|
32279 (WebCore::JSHTMLInputElement::selectionStart): |
|
32280 (WebCore::JSHTMLInputElement::setSelectionStart): |
|
32281 (WebCore::JSHTMLInputElement::selectionEnd): |
|
32282 (WebCore::JSHTMLInputElement::setSelectionEnd): |
|
32283 (WebCore::JSHTMLInputElement::setSelectionRange): |
|
32284 * bindings/js/JSImageConstructor.cpp: |
|
32285 (WebCore::constructImage): |
|
32286 * bindings/js/JSJavaScriptCallFrameCustom.cpp: |
|
32287 (WebCore::JSJavaScriptCallFrame::evaluate): |
|
32288 * bindings/js/JSMessageChannelConstructor.cpp: |
|
32289 (WebCore::JSMessageChannelConstructor::construct): |
|
32290 * bindings/js/JSMessagePortCustom.cpp: |
|
32291 (WebCore::fillMessagePortArray): |
|
32292 * bindings/js/JSOptionConstructor.cpp: |
|
32293 (WebCore::constructHTMLOptionElement): |
|
32294 * bindings/js/JSSVGMatrixCustom.cpp: |
|
32295 (WebCore::JSSVGMatrix::multiply): |
|
32296 * bindings/js/JSSharedWorkerConstructor.cpp: |
|
32297 (WebCore::constructSharedWorker): |
|
32298 * bindings/js/JSWebGLRenderingContextCustom.cpp: |
|
32299 (WebCore::JSWebGLRenderingContext::bufferData): |
|
32300 (WebCore::JSWebGLRenderingContext::bufferSubData): |
|
32301 (WebCore::getObjectParameter): |
|
32302 (WebCore::JSWebGLRenderingContext::getFramebufferAttachmentParameter): |
|
32303 (WebCore::JSWebGLRenderingContext::getParameter): |
|
32304 (WebCore::JSWebGLRenderingContext::getProgramParameter): |
|
32305 (WebCore::JSWebGLRenderingContext::getShaderParameter): |
|
32306 (WebCore::JSWebGLRenderingContext::getUniform): |
|
32307 (WebCore::JSWebGLRenderingContext::texImage2D): |
|
32308 (WebCore::JSWebGLRenderingContext::texSubImage2D): |
|
32309 (WebCore::dataFunctionf): |
|
32310 (WebCore::dataFunctioni): |
|
32311 (WebCore::dataFunctionMatrix): |
|
32312 * bindings/js/JSWebSocketConstructor.cpp: |
|
32313 (WebCore::constructWebSocket): |
|
32314 * bindings/js/JSWebSocketCustom.cpp: |
|
32315 (WebCore::JSWebSocket::send): |
|
32316 * bindings/js/JSWorkerConstructor.cpp: |
|
32317 (WebCore::constructWorker): |
|
32318 * bindings/js/JSXMLHttpRequestConstructor.cpp: |
|
32319 (WebCore::constructXMLHttpRequest): |
|
32320 * bindings/js/JSXMLHttpRequestCustom.cpp: |
|
32321 (WebCore::JSXMLHttpRequest::open): |
|
32322 * bindings/js/SerializedScriptValue.cpp: |
|
32323 (WebCore::BaseWalker::throwStackOverflow): |
|
32324 (WebCore::BaseWalker::throwInterruptedException): |
|
32325 (WebCore::SerializingTreeWalker::startArray): |
|
32326 (WebCore::SerializingTreeWalker::startObject): |
|
32327 * bindings/js/WorkerScriptController.cpp: |
|
32328 (WebCore::WorkerScriptController::setException): |
|
32329 * bindings/scripts/CodeGeneratorJS.pm: |
|
32330 * bridge/c/c_instance.cpp: |
|
32331 (JSC::Bindings::CInstance::moveGlobalExceptionToExecState): |
|
32332 (JSC::Bindings::CInstance::invokeMethod): |
|
32333 (JSC::Bindings::CInstance::invokeDefaultMethod): |
|
32334 (JSC::Bindings::CInstance::invokeConstruct): |
|
32335 * bridge/jni/jsc/JNIBridgeJSC.cpp: |
|
32336 (JavaField::dispatchValueFromInstance): |
|
32337 (JavaField::dispatchSetValueToInstance): |
|
32338 * bridge/jni/jsc/JavaInstanceJSC.cpp: |
|
32339 (JavaInstance::invokeMethod): |
|
32340 * bridge/objc/objc_instance.mm: |
|
32341 (ObjcInstance::moveGlobalExceptionToExecState): |
|
32342 (ObjcInstance::invokeMethod): |
|
32343 * bridge/objc/objc_runtime.mm: |
|
32344 (JSC::Bindings::ObjcField::valueFromInstance): |
|
32345 (JSC::Bindings::ObjcField::setValueToInstance): |
|
32346 (JSC::Bindings::ObjcArray::setValueAt): |
|
32347 (JSC::Bindings::ObjcArray::valueAt): |
|
32348 (JSC::Bindings::callObjCFallbackObject): |
|
32349 * bridge/objc/objc_utility.h: |
|
32350 * bridge/objc/objc_utility.mm: |
|
32351 (JSC::Bindings::throwError): |
|
32352 * bridge/runtime_array.cpp: |
|
32353 (JSC::RuntimeArray::put): |
|
32354 * bridge/runtime_method.cpp: |
|
32355 (JSC::callRuntimeMethod): |
|
32356 * bridge/runtime_object.cpp: |
|
32357 (JSC::Bindings::RuntimeObject::throwInvalidAccessError): |
|
32358 |
|
32359 2010-06-06 Dirk Schulze <krit@webkit.org> |
|
32360 |
|
32361 Reviewed by Nikolas Zimmermann. |
|
32362 |
|
32363 hit testing does not respect clip paths |
|
32364 https://bugs.webkit.org/show_bug.cgi?id=15162 |
|
32365 |
|
32366 Test: svg/dynamic-updates/SVGClipPath-influences-hitTesting.html |
|
32367 |
|
32368 Added a check, if a float point is not only in the shape/object boundaries |
|
32369 but also is not in the clipped away area of a clipPath. |
|
32370 |
|
32371 * rendering/HitTestRequest.h: |
|
32372 (WebCore::HitTestRequest::): |
|
32373 (WebCore::HitTestRequest::svgClipContent): |
|
32374 * rendering/RenderPath.cpp: |
|
32375 (WebCore::RenderPath::fillContains): |
|
32376 (WebCore::RenderPath::nodeAtFloatPoint): |
|
32377 * rendering/RenderPath.h: |
|
32378 * rendering/RenderSVGContainer.cpp: |
|
32379 (WebCore::RenderSVGContainer::nodeAtFloatPoint): |
|
32380 * rendering/RenderSVGImage.cpp: |
|
32381 (WebCore::RenderSVGImage::nodeAtFloatPoint): |
|
32382 * rendering/RenderSVGResourceClipper.cpp: |
|
32383 (WebCore::RenderSVGResourceClipper::hitTestClipContent): |
|
32384 * rendering/RenderSVGResourceClipper.h: |
|
32385 * rendering/RenderSVGText.cpp: |
|
32386 (WebCore::RenderSVGText::nodeAtFloatPoint): |
|
32387 * rendering/SVGRenderSupport.cpp: |
|
32388 (WebCore::pointInClippingArea): |
|
32389 * rendering/SVGRenderSupport.h: |
|
32390 |
|
32391 2010-06-06 Dirk Schulze <krit@webkit.org> |
|
32392 |
|
32393 Reviewed by Nikolas Zimmermann. |
|
32394 |
|
32395 SVG Pattern/Gradient clean-up |
|
32396 https://bugs.webkit.org/show_bug.cgi?id=40205 |
|
32397 |
|
32398 Transformations of SVG Patterns and Gradients can be bundeled. |
|
32399 This calculation also needs just to be calculated once. It's not a great speed-up for most platforms, |
|
32400 but a clean-up and preparation for new features like vectorEffects and others. |
|
32401 Now, that we don't recalucluate the gradient and its transformations, it was necessary to add a way |
|
32402 to transform alreday existing gradients on Cairo. This is done in the same way like Skia transforms |
|
32403 gradients after they were created. |
|
32404 |
|
32405 This patch doesn't change functionality, so no new tests added. |
|
32406 |
|
32407 * platform/graphics/Gradient.cpp: |
|
32408 * platform/graphics/cairo/GradientCairo.cpp: |
|
32409 (WebCore::Gradient::setPlatformGradientSpaceTransform): |
|
32410 * rendering/RenderSVGResourceGradient.cpp: |
|
32411 (WebCore::RenderSVGResourceGradient::applyResource): |
|
32412 * rendering/RenderSVGResourceGradient.h: |
|
32413 * rendering/RenderSVGResourcePattern.cpp: |
|
32414 (WebCore::RenderSVGResourcePattern::applyResource): |
|
32415 (WebCore::RenderSVGResourcePattern::createTileImage): |
|
32416 (WebCore::RenderSVGResourcePattern::buildPattern): |
|
32417 * rendering/RenderSVGResourcePattern.h: |
|
32418 |
|
32419 2010-06-05 Dumitru Daniliuc <dumi@chromium.org> |
|
32420 |
|
32421 Unreviewed, typo/build fix. |
|
32422 |
|
32423 * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp: |
|
32424 (WebCore::V8SQLStatementErrorCallback::handleEvent): |
|
32425 |
|
32426 2010-05-28 Dumitru Daniliuc <dumi@chromium.org> |
|
32427 |
|
32428 Reviewed by Adam Barth. |
|
32429 |
|
32430 Do not pass empty handles to v8. |
|
32431 https://bugs.webkit.org/show_bug.cgi?id=39896 |
|
32432 |
|
32433 Passing an empty handle to v8 results in a crash with a stack |
|
32434 trace that doesn't give us much information about the cause of the |
|
32435 crash. Instead, if we check the handles we pass to v8 and crash |
|
32436 when they are empty, we do not make things worse, and should get a |
|
32437 more informative stack trace. |
|
32438 |
|
32439 * bindings/scripts/CodeGeneratorV8.pm: |
|
32440 * bindings/scripts/test/V8/V8TestCallback.cpp: |
|
32441 (WebCore::V8TestCallback::callbackWithClass1Param): |
|
32442 (WebCore::V8TestCallback::callbackWithClass2Param): |
|
32443 * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp: |
|
32444 (WebCore::V8SQLStatementErrorCallback::handleEvent): |
|
32445 |
|
32446 2010-05-30 Antonio Gomes <tonikitoo@webkit.org> |
|
32447 |
|
32448 Reviewed by Darin Adler. |
|
32449 |
|
32450 Add a convenient helper getter for Frame* to RenderObject |
|
32451 https://bugs.webkit.org/show_bug.cgi?id=39928 |
|
32452 |
|
32453 document()->frame() is being called enough from RenderObject derivated classes |
|
32454 that it worth adding a helper Frame getter as a shortcut. |
|
32455 |
|
32456 No behavior change, so no new tests. |
|
32457 |
|
32458 * accessibility/AccessibilityRenderObject.cpp: |
|
32459 (WebCore::AccessibilityRenderObject::isOffScreen): |
|
32460 (WebCore::AccessibilityRenderObject::stringValue): |
|
32461 (WebCore::AccessibilityRenderObject::selection): |
|
32462 (WebCore::AccessibilityRenderObject::setSelectedVisiblePositionRange): |
|
32463 * page/EventHandler.cpp: |
|
32464 (WebCore::canAutoscroll): |
|
32465 * rendering/InlineTextBox.cpp: |
|
32466 (WebCore::InlineTextBox::paint): |
|
32467 (WebCore::InlineTextBox::paintCustomHighlight): |
|
32468 (WebCore::InlineTextBox::paintTextMatchMarker): |
|
32469 * rendering/RenderBlock.cpp: |
|
32470 (WebCore::RenderBlock::paintCaret): |
|
32471 * rendering/RenderBox.cpp: |
|
32472 (WebCore::RenderBox::paintCustomHighlight): |
|
32473 * rendering/RenderDataGrid.cpp: |
|
32474 (WebCore::RenderDataGrid::isActive): |
|
32475 * rendering/RenderFrameSet.cpp: |
|
32476 (WebCore::RenderFrameSet::flattenFrameSet): |
|
32477 * rendering/RenderImage.cpp: |
|
32478 (WebCore::RenderImage::paintFocusRings): |
|
32479 * rendering/RenderInline.cpp: |
|
32480 (WebCore::RenderInline::addDashboardRegions): |
|
32481 * rendering/RenderLayer.cpp: |
|
32482 (WebCore::RenderLayer::~RenderLayer): |
|
32483 (WebCore::RenderLayer::panScrollFromPoint): |
|
32484 (WebCore::RenderLayer::scrollByRecursively): |
|
32485 (WebCore::RenderLayer::scrollToOffset): |
|
32486 (WebCore::RenderLayer::autoscroll): |
|
32487 (WebCore::RenderLayer::isActive): |
|
32488 (showLayerTree): |
|
32489 * rendering/RenderLayerBacking.cpp: |
|
32490 (WebCore::inspectorTimelineAgent): |
|
32491 * rendering/RenderListBox.cpp: |
|
32492 (WebCore::RenderListBox::paintItemForeground): |
|
32493 (WebCore::RenderListBox::paintItemBackground): |
|
32494 (WebCore::RenderListBox::panScroll): |
|
32495 (WebCore::RenderListBox::autoscroll): |
|
32496 (WebCore::RenderListBox::isActive): |
|
32497 * rendering/RenderObject.cpp: |
|
32498 (WebCore::RenderObject::~RenderObject): |
|
32499 (WebCore::RenderObject::selectionBackgroundColor): |
|
32500 (WebCore::RenderObject::selectionForegroundColor): |
|
32501 (WebCore::RenderObject::destroy): |
|
32502 (WebCore::RenderObject::addDashboardRegions): |
|
32503 (WebCore::RenderObject::animation): |
|
32504 * rendering/RenderObject.h: |
|
32505 (WebCore::RenderObject::document): |
|
32506 (WebCore::RenderObject::frame): |
|
32507 |
|
32508 2010-06-05 Jonathan Kliegman <kliegs@chromium.org> |
|
32509 |
|
32510 Reviewed by Dirk Schulze. |
|
32511 |
|
32512 SVG doesn't support rgba colors |
|
32513 https://bugs.webkit.org/show_bug.cgi?id=16183 |
|
32514 |
|
32515 Enabled processing of rgba, hsl and hsla color specifications |
|
32516 for SVG files. SVG spec calls for CSS2 but common usage and |
|
32517 other browsers suppor CSS3 colors being used in SVG files |
|
32518 |
|
32519 Removed unused svg paramater from CSSParser::parseColorFromValue |
|
32520 |
|
32521 Tests: svg/custom/fill-opacity-hsl.svg |
|
32522 svg/custom/fill-opacity-rgba.svg |
|
32523 |
|
32524 * css/CSSParser.cpp: |
|
32525 (WebCore::CSSParser::parseColorFromValue): |
|
32526 * css/CSSParser.h: |
|
32527 * css/SVGCSSParser.cpp: |
|
32528 (WebCore::CSSParser::parseSVGValue): |
|
32529 (WebCore::CSSParser::parseSVGPaint): |
|
32530 (WebCore::CSSParser::parseSVGColor): |
|
32531 * svg/SVGColor.cpp: |
|
32532 (WebCore::SVGColor::colorFromRGBColorString): |
|
32533 |
|
32534 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32535 |
|
32536 Reviewed by Eric Seidel. |
|
32537 |
|
32538 [Qt] ContextMenuItemQt.cpp has coding-style errors |
|
32539 https://bugs.webkit.org/show_bug.cgi?id=39780 |
|
32540 |
|
32541 * platform/qt/ContextMenuItemQt.cpp: |
|
32542 |
|
32543 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32544 |
|
32545 Reviewed by Eric Seidel. |
|
32546 |
|
32547 [Qt] ContextMenuQt.cpp has coding-style errors |
|
32548 https://bugs.webkit.org/show_bug.cgi?id=39779 |
|
32549 |
|
32550 * platform/qt/ContextMenuQt.cpp: |
|
32551 |
|
32552 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32553 |
|
32554 Reviewed by Eric Seidel. |
|
32555 |
|
32556 [Qt] DragDataQt.cpp has coding-style errors |
|
32557 https://bugs.webkit.org/show_bug.cgi?id=39777 |
|
32558 |
|
32559 * platform/qt/DragDataQt.cpp: |
|
32560 |
|
32561 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32562 |
|
32563 Reviewed by Eric Seidel. |
|
32564 |
|
32565 [Qt] FileChooserQt.cpp has coding-style errors |
|
32566 https://bugs.webkit.org/show_bug.cgi?id=39776 |
|
32567 |
|
32568 * platform/qt/FileChooserQt.cpp: |
|
32569 |
|
32570 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32571 |
|
32572 Reviewed by Eric Seidel. |
|
32573 |
|
32574 [Qt] FileSystemQt.cpp has coding-style errors |
|
32575 https://bugs.webkit.org/show_bug.cgi?id=39775 |
|
32576 |
|
32577 * platform/qt/FileSystemQt.cpp: |
|
32578 |
|
32579 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32580 |
|
32581 Reviewed by Eric Seidel. |
|
32582 |
|
32583 [Qt] KURLQt.cpp has coding-style errors |
|
32584 https://bugs.webkit.org/show_bug.cgi?id=39774 |
|
32585 |
|
32586 * platform/qt/KURLQt.cpp: |
|
32587 |
|
32588 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32589 |
|
32590 Reviewed by Eric Seidel. |
|
32591 |
|
32592 [Qt] LoggingQt.cpp has coding-style errors |
|
32593 https://bugs.webkit.org/show_bug.cgi?id=39772 |
|
32594 |
|
32595 * platform/qt/LoggingQt.cpp: |
|
32596 |
|
32597 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32598 |
|
32599 Reviewed by Eric Seidel. |
|
32600 |
|
32601 [Qt] PlatformKeyboardEventQt.cpp has coding-style errors |
|
32602 https://bugs.webkit.org/show_bug.cgi?id=39770 |
|
32603 |
|
32604 * platform/qt/PlatformKeyboardEventQt.cpp: |
|
32605 (WebCore::keyIdentifierForQtKeyCode): |
|
32606 (WebCore::windowsKeyCodeForKeyEvent): |
|
32607 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): |
|
32608 |
|
32609 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32610 |
|
32611 Reviewed by Eric Seidel. |
|
32612 |
|
32613 [Qt] PlatformScreenQt.cpp has coding-style errors |
|
32614 https://bugs.webkit.org/show_bug.cgi?id=39768 |
|
32615 |
|
32616 * platform/qt/PlatformMouseEventQt.cpp: |
|
32617 (WebCore::PlatformMouseEvent::PlatformMouseEvent): |
|
32618 |
|
32619 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32620 |
|
32621 Reviewed by Eric Seidel. |
|
32622 |
|
32623 [Qt] RenderThemeQt.cpp has coding-style errors |
|
32624 https://bugs.webkit.org/show_bug.cgi?id=39767 |
|
32625 |
|
32626 * platform/qt/RenderThemeQt.cpp: |
|
32627 |
|
32628 2010-06-05 Anders Bakken <agbakken@gmail.com> |
|
32629 |
|
32630 Reviewed by Eric Seidel. |
|
32631 |
|
32632 [Qt] ScrollbarQt.cpp has coding-style errors |
|
32633 https://bugs.webkit.org/show_bug.cgi?id=39765 |
|
32634 |
|
32635 * platform/qt/ScrollbarQt.cpp: |
|
32636 |
|
32637 2010-06-04 Adam Barth <abarth@webkit.org> |
|
32638 |
|
32639 Reviewed by Eric Seidel. |
|
32640 |
|
32641 Make HTML5Lexer go fast |
|
32642 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
32643 |
|
32644 This patch changes us from using a jump table for each character to |
|
32645 using absolute jumps between parser states. This appears to be about a |
|
32646 1% improvement on the parser bench mark (which is 1/10th of what we |
|
32647 need to catch the old parser). |
|
32648 |
|
32649 I've kept the underlying logic as close to the old logic as possible. |
|
32650 This new form will make it easier to handle the input stream part of |
|
32651 the spec and to make further performance improvements. |
|
32652 |
|
32653 * html/HTML5Lexer.cpp: |
|
32654 (WebCore::HTML5Lexer::reset): |
|
32655 (WebCore::HTML5Lexer::nextToken): |
|
32656 (WebCore::HTML5Lexer::emitCurrentToken): |
|
32657 * html/HTML5Lexer.h: |
|
32658 |
|
32659 2010-06-04 Adam Barth <abarth@webkit.org> |
|
32660 |
|
32661 Reviewed by Darin Adler. |
|
32662 |
|
32663 HTML5 parser should be within 1% of old parser performance |
|
32664 https://bugs.webkit.org/show_bug.cgi?id=40172 |
|
32665 |
|
32666 Stop using adopt(). I think this function is cause us to do extra |
|
32667 mallocs that are hurting performance. Instead of caching AtomicString |
|
32668 on HTML5Token, just use the AtomicString on the old token. Also, |
|
32669 reserve inline capacity for 10 attributes. |
|
32670 |
|
32671 * html/HTML5Lexer.cpp: |
|
32672 (WebCore::HTML5Lexer::isAppropriateEndTag): |
|
32673 * html/HTML5Lexer.h: |
|
32674 * html/HTML5Token.h: |
|
32675 (WebCore::HTML5Token::beginStartTag): |
|
32676 (WebCore::HTML5Token::beginEndTag): |
|
32677 (WebCore::HTML5Token::beginCharacter): |
|
32678 (WebCore::HTML5Token::beginComment): |
|
32679 (WebCore::HTML5Token::beginDOCTYPE): |
|
32680 (WebCore::HTML5Token::name): |
|
32681 (WebCore::HTML5Token::characters): |
|
32682 (WebCore::HTML5Token::comment): |
|
32683 * html/HTML5TreeBuilder.cpp: |
|
32684 (WebCore::convertToOldStyle): |
|
32685 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
32686 |
|
32687 2010-06-04 Anders Bakken <agbakken@gmail.com> |
|
32688 |
|
32689 Reviewed by Eric Seidel. |
|
32690 |
|
32691 [Qt] ScrollbarThemeQt.cpp has coding-style errors |
|
32692 https://bugs.webkit.org/show_bug.cgi?id=39764 |
|
32693 |
|
32694 * platform/qt/ScrollbarThemeQt.cpp: |
|
32695 (WebCore::scPart): |
|
32696 (WebCore::scrollbarPart): |
|
32697 (WebCore::styleOptionSlider): |
|
32698 |
|
32699 2010-06-04 Anders Bakken <agbakken@gmail.com> |
|
32700 |
|
32701 Reviewed by Eric Seidel. |
|
32702 |
|
32703 [Qt] SharedTimerQt.cpp has coding-style errors |
|
32704 https://bugs.webkit.org/show_bug.cgi?id=39763 |
|
32705 |
|
32706 * platform/qt/SharedTimerQt.cpp: |
|
32707 |
|
32708 2010-06-04 Anders Bakken <agbakken@gmail.com> |
|
32709 |
|
32710 Reviewed by Eric Seidel. |
|
32711 |
|
32712 WidgetQt.cpp has coding-style errors |
|
32713 https://bugs.webkit.org/show_bug.cgi?id=39759 |
|
32714 |
|
32715 * platform/qt/WidgetQt.cpp: |
|
32716 |
|
32717 2010-06-04 Anders Bakken <agbakken@gmail.com> |
|
32718 |
|
32719 Reviewed by Eric Seidel. |
|
32720 |
|
32721 TemporaryLinkStubsQt.cpp has coding-style errors |
|
32722 https://bugs.webkit.org/show_bug.cgi?id=39761 |
|
32723 |
|
32724 * platform/qt/TemporaryLinkStubsQt.cpp: |
|
32725 |
|
32726 2010-06-04 Anders Bakken <agbakken@gmail.com> |
|
32727 |
|
32728 Reviewed by Eric Seidel. |
|
32729 |
|
32730 [Qt] SoundQt.cpp has coding-style errors |
|
32731 https://bugs.webkit.org/show_bug.cgi?id=39762 |
|
32732 |
|
32733 * platform/qt/SoundQt.cpp: |
|
32734 |
|
32735 2010-06-04 Andreas Kling <andreas.kling@nokia.com> |
|
32736 |
|
32737 Reviewed by Dirk Schulze. |
|
32738 |
|
32739 Canvas createPattern(img, repetition) shouldn't throw INVALID_STATE_ERR when !img.complete |
|
32740 https://bugs.webkit.org/show_bug.cgi?id=40166 |
|
32741 |
|
32742 Spec link: |
|
32743 http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-createpattern |
|
32744 |
|
32745 Test: http/tests/misc/canvas-pattern-from-incremental-image.html (updated) |
|
32746 |
|
32747 * html/canvas/CanvasRenderingContext2D.cpp: |
|
32748 (WebCore::CanvasRenderingContext2D::createPattern): |
|
32749 |
|
32750 2010-06-04 Anders Bakken <agbakken@gmail.com> |
|
32751 |
|
32752 Reviewed by David Levin. |
|
32753 |
|
32754 [Qt] Localizations.cpp has coding-style errors |
|
32755 https://bugs.webkit.org/show_bug.cgi?id=39773 |
|
32756 |
|
32757 * platform/qt/Localizations.cpp: |
|
32758 (WebCore::localizedMediaTimeDescription): |
|
32759 |
|
32760 2010-06-04 Lyon Chen <liachen@rim.com> |
|
32761 |
|
32762 Reviewed by Darin Adler. |
|
32763 |
|
32764 ApplicationCacheStorage::storeNewestCache() Crash WebKit when openDatabase(true) failed |
|
32765 https://bugs.webkit.org/show_bug.cgi?id=40074 |
|
32766 |
|
32767 Adding m_database.isOpen() check for every openDatabase(true) call, this is needed because |
|
32768 openDatabase(true) could still fail, for example when cacheStorage is full or no longer available. |
|
32769 |
|
32770 * loader/appcache/ApplicationCacheStorage.cpp: |
|
32771 (WebCore::ApplicationCacheStorage::store): |
|
32772 (WebCore::ApplicationCacheStorage::storeNewestCache): |
|
32773 |
|
32774 2010-06-04 Sheriff Bot <webkit.review.bot@gmail.com> |
|
32775 |
|
32776 Unreviewed, rolling out r60684. |
|
32777 http://trac.webkit.org/changeset/60684 |
|
32778 https://bugs.webkit.org/show_bug.cgi?id=40196 |
|
32779 |
|
32780 This patch broke chromium reliability tests (Requested by |
|
32781 tonyg-cr on #webkit). |
|
32782 |
|
32783 * bindings/v8/ScriptSourceCode.h: |
|
32784 (WebCore::ScriptSourceCode::ScriptSourceCode): |
|
32785 * bindings/v8/V8Proxy.cpp: |
|
32786 (WebCore::V8Proxy::compileScript): |
|
32787 (WebCore::V8Proxy::evaluate): |
|
32788 * bindings/v8/V8Proxy.h: |
|
32789 |
|
32790 2010-06-04 Chris Fleizach <cfleizach@apple.com> |
|
32791 |
|
32792 Reviewed by David Kilzer. |
|
32793 |
|
32794 AX: need an aria-help |
|
32795 https://bugs.webkit.org/show_bug.cgi?id=40010 |
|
32796 |
|
32797 Test: accessibility/aria-help.html |
|
32798 |
|
32799 * accessibility/AccessibilityRenderObject.cpp: |
|
32800 (WebCore::AccessibilityRenderObject::helpText): |
|
32801 * html/HTMLAttributeNames.in: |
|
32802 |
|
32803 2010-06-04 Andreas Kling <andreas.kling@nokia.com> |
|
32804 |
|
32805 Reviewed by Tor Arne Vestbø. |
|
32806 |
|
32807 [Qt] Canvas arc() with zero radius should draw a line to the start point |
|
32808 https://bugs.webkit.org/show_bug.cgi?id=40164 |
|
32809 |
|
32810 Spec link: |
|
32811 http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-arc |
|
32812 |
|
32813 * platform/graphics/qt/PathQt.cpp: |
|
32814 (WebCore::Path::addArc): |
|
32815 |
|
32816 2010-06-04 Martin Robinson <mrobinson@igalia.com> |
|
32817 |
|
32818 Reviewed by Xan Lopez. |
|
32819 |
|
32820 [GTK] RenderThemeGtk leaks memory |
|
32821 https://bugs.webkit.org/show_bug.cgi?id=40168 |
|
32822 |
|
32823 Call gtk_widget_destroy in the RenderThemeGtk destructor. This cleans |
|
32824 up all widget resources when a theme is destroyed. |
|
32825 |
|
32826 No new tests, because functionality has not changed. |
|
32827 |
|
32828 * platform/gtk/RenderThemeGtk.cpp: |
|
32829 (WebCore::RenderThemeGtk::~RenderThemeGtk): Call gtk_widget_destroy on m_gtkWindow. |
|
32830 |
|
32831 2010-06-04 Martin Robinson <mrobinson@igalia.com> |
|
32832 |
|
32833 Reviewed by Xan Lopez. |
|
32834 |
|
32835 [GTK] RenderThemeGtk leaks memory |
|
32836 https://bugs.webkit.org/show_bug.cgi?id=40168 |
|
32837 |
|
32838 Remove the use of releaseRef to assign a value to a RefPtr. This results in |
|
32839 the original pointer taking an extra reference. |
|
32840 |
|
32841 * platform/gtk/RenderThemeGtk.cpp: |
|
32842 (WebCore::RenderThemeGtk::initMediaStyling): Remove the use of releaseRef here. |
|
32843 |
|
32844 2010-06-04 Adam Barth <abarth@webkit.org> |
|
32845 |
|
32846 Reviewed by Gavin Barraclough. |
|
32847 |
|
32848 Try to fix the windows build |
|
32849 https://bugs.webkit.org/show_bug.cgi?id=40189 |
|
32850 |
|
32851 Suppress the "unreachable code" warning because we want to assert that |
|
32852 we don't reach certain code points. |
|
32853 |
|
32854 * html/HTML5Lexer.cpp: |
|
32855 |
|
32856 2010-06-04 Adam Barth <abarth@webkit.org> |
|
32857 |
|
32858 Reviewed by Eric Seidel. |
|
32859 |
|
32860 Make HTML5Lexer go fast |
|
32861 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
32862 |
|
32863 A couple more cases like the previous patch that I missed. |
|
32864 |
|
32865 * html/HTML5Lexer.cpp: |
|
32866 (WebCore::HTML5Lexer::nextToken): |
|
32867 |
|
32868 2010-06-04 Adam Barth <abarth@webkit.org> |
|
32869 |
|
32870 Reviewed by Eric Seidel. |
|
32871 |
|
32872 Make HTML5Lexer go fast |
|
32873 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
32874 |
|
32875 Make all the state transitions in the machine explicit. This allows us |
|
32876 to remove all the break statements, which won't work correctly after we |
|
32877 change the macro definitions. |
|
32878 |
|
32879 Also, while I was looking at every line of code, I fixed a bunch of the |
|
32880 one-line-if style errors introduces in my previous patches. |
|
32881 |
|
32882 * html/HTML5Lexer.cpp: |
|
32883 (WebCore::HTML5Lexer::nextToken): |
|
32884 |
|
32885 2010-06-04 Gavin Barraclough <barraclough@apple.com> |
|
32886 |
|
32887 Reviewed by Oliver Hunt. |
|
32888 |
|
32889 Bug 40187 - Change function signature of NativeConstructor to match NativeFunction |
|
32890 |
|
32891 Mostly for consistency, but constructor & args arguments are redundant, |
|
32892 and this will help if we wish to be able to JIT calls to more constructors. |
|
32893 |
|
32894 * bindings/js/JSArrayBufferConstructor.cpp: |
|
32895 (WebCore::constructCanvasArrayBuffer): |
|
32896 * bindings/js/JSAudioConstructor.cpp: |
|
32897 (WebCore::constructAudio): |
|
32898 * bindings/js/JSEventSourceConstructor.cpp: |
|
32899 (WebCore::constructEventSource): |
|
32900 * bindings/js/JSFloatArrayConstructor.cpp: |
|
32901 (WebCore::constructCanvasFloatArray): |
|
32902 * bindings/js/JSImageConstructor.cpp: |
|
32903 (WebCore::constructImage): |
|
32904 * bindings/js/JSInt16ArrayConstructor.cpp: |
|
32905 (WebCore::constructCanvasShortArray): |
|
32906 * bindings/js/JSInt32ArrayConstructor.cpp: |
|
32907 (WebCore::constructCanvasIntArray): |
|
32908 * bindings/js/JSInt8ArrayConstructor.cpp: |
|
32909 (WebCore::constructCanvasByteArray): |
|
32910 * bindings/js/JSMessageChannelConstructor.cpp: |
|
32911 (WebCore::JSMessageChannelConstructor::construct): |
|
32912 * bindings/js/JSMessageChannelConstructor.h: |
|
32913 * bindings/js/JSOptionConstructor.cpp: |
|
32914 (WebCore::constructHTMLOptionElement): |
|
32915 * bindings/js/JSSharedWorkerConstructor.cpp: |
|
32916 (WebCore::constructSharedWorker): |
|
32917 * bindings/js/JSUint16ArrayConstructor.cpp: |
|
32918 (WebCore::constructCanvasUnsignedShortArray): |
|
32919 * bindings/js/JSUint32ArrayConstructor.cpp: |
|
32920 (WebCore::constructCanvasUnsignedIntArray): |
|
32921 * bindings/js/JSUint8ArrayConstructor.cpp: |
|
32922 (WebCore::constructCanvasUnsignedByteArray): |
|
32923 * bindings/js/JSWebKitCSSMatrixConstructor.cpp: |
|
32924 (WebCore::constructWebKitCSSMatrix): |
|
32925 * bindings/js/JSWebKitPointConstructor.cpp: |
|
32926 (WebCore::constructWebKitPoint): |
|
32927 * bindings/js/JSWebSocketConstructor.cpp: |
|
32928 (WebCore::constructWebSocket): |
|
32929 * bindings/js/JSWorkerConstructor.cpp: |
|
32930 (WebCore::constructWorker): |
|
32931 * bindings/js/JSXMLHttpRequestConstructor.cpp: |
|
32932 (WebCore::constructXMLHttpRequest): |
|
32933 * bindings/js/JSXSLTProcessorConstructor.cpp: |
|
32934 (WebCore::constructXSLTProcessor): |
|
32935 * bindings/scripts/CodeGeneratorJS.pm: |
|
32936 * bridge/runtime_object.cpp: |
|
32937 (JSC::Bindings::callRuntimeConstructor): |
|
32938 |
|
32939 2010-06-04 Adam Barth <abarth@webkit.org> |
|
32940 |
|
32941 Reviewed by Eric Seidel. |
|
32942 |
|
32943 Make HTML5Lexer go fast |
|
32944 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
32945 |
|
32946 Change the intent of the loop to match what it's going to be once we |
|
32947 remove the loop. This is a whitespace only change that will make the |
|
32948 final diff much, much smaller. Sorry for the transient ugly style. |
|
32949 |
|
32950 * html/HTML5Lexer.cpp: |
|
32951 (WebCore::HTML5Lexer::nextToken): |
|
32952 |
|
32953 2010-06-04 Adam Barth <abarth@webkit.org> |
|
32954 |
|
32955 Reviewed by Eric Seidel. |
|
32956 |
|
32957 Make HTML5Lexer go fast |
|
32958 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
32959 |
|
32960 Introduce ADVANCE_TO macro. This is the last macro we need to |
|
32961 introduce. |
|
32962 |
|
32963 * html/HTML5Lexer.cpp: |
|
32964 (WebCore::HTML5Lexer::nextToken): |
|
32965 |
|
32966 2010-06-04 Adam Barth <abarth@webkit.org> |
|
32967 |
|
32968 Reviewed by Eric Seidel. |
|
32969 |
|
32970 Make HTML5Lexer go fast |
|
32971 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
32972 |
|
32973 Fix the rest of the RECONSUME_IN cases that were missed by our script. |
|
32974 Also, reorder some assigment to prepare for the ADVANCE_TO patch. |
|
32975 |
|
32976 * html/HTML5Lexer.cpp: |
|
32977 (WebCore::HTML5Lexer::nextToken): |
|
32978 |
|
32979 2010-06-04 Adam Barth <abarth@webkit.org> |
|
32980 |
|
32981 Reviewed by Eric Seidel. |
|
32982 |
|
32983 Make HTML5Lexer go fast |
|
32984 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
32985 |
|
32986 This patch handles the FLUSH_AND_ADVANCE_TO case. Again, this patch |
|
32987 introduces style errors that will be fixed shortly. |
|
32988 |
|
32989 * html/HTML5Lexer.cpp: |
|
32990 (WebCore::HTML5Lexer::nextToken): |
|
32991 |
|
32992 2010-06-04 Adam Barth <abarth@webkit.org> |
|
32993 |
|
32994 Reviewed by Eric Seidel. |
|
32995 |
|
32996 Make HTML5Lexer go fast |
|
32997 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
32998 |
|
32999 This patch handles the FLUSH_EMIT_AND_RESUME_IN case. This patch |
|
33000 introduces some bad style w.r.t. one-line if statements, but we'll fix |
|
33001 them all automatically in cleanup patch when we're done. |
|
33002 |
|
33003 * html/HTML5Lexer.cpp: |
|
33004 (WebCore::HTML5Lexer::nextToken): |
|
33005 |
|
33006 2010-06-04 Adam Barth <abarth@webkit.org> |
|
33007 |
|
33008 Reviewed by Eric Seidel. |
|
33009 |
|
33010 Make HTML5Lexer go fast |
|
33011 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
33012 |
|
33013 More small steps. This patch deals with emitting tokens. |
|
33014 |
|
33015 * html/HTML5Lexer.cpp: |
|
33016 (WebCore::HTML5Lexer::nextToken): |
|
33017 |
|
33018 2010-06-04 Adam Barth <abarth@webkit.org> |
|
33019 |
|
33020 Reviewed by Eric Seidel. |
|
33021 |
|
33022 Make HTML5Lexer go fast |
|
33023 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
33024 |
|
33025 The next step: using macros to delimit each state. Evetually, we're |
|
33026 going to change what these macros expand to. |
|
33027 |
|
33028 * html/HTML5Lexer.cpp: |
|
33029 (WebCore::HTML5Lexer::nextToken): |
|
33030 |
|
33031 2010-06-04 Adam Barth <abarth@webkit.org> |
|
33032 |
|
33033 Reviewed by Eric Seidel. |
|
33034 |
|
33035 Make HTML5Lexer go fast |
|
33036 https://bugs.webkit.org/show_bug.cgi?id=40048 |
|
33037 |
|
33038 We're going to do this patch in small steps to make it easier to verify correctness. |
|
33039 |
|
33040 * html/HTML5Lexer.cpp: |
|
33041 (WebCore::HTML5Lexer::nextToken): |
|
33042 |
|
33043 2010-06-04 Jay Civelli <jcivelli@chromium.org> |
|
33044 |
|
33045 Reviewed by David Levin. |
|
33046 |
|
33047 [chromium] Adding support for the left and right Windows keys to the |
|
33048 NativeWebKeyboardEvent. |
|
33049 https://bugs.webkit.org/show_bug.cgi?id=39752 |
|
33050 |
|
33051 * platform/chromium/KeyCodeConversionGtk.cpp: |
|
33052 (WebCore::windowsKeyCodeForKeyEvent): |
|
33053 |
|
33054 2010-06-04 Dirk Schulze <krit@webkit.org> |
|
33055 |
|
33056 Reviewed by Nikolas Zimmermann. |
|
33057 |
|
33058 SVG filter on filter don't work |
|
33059 https://bugs.webkit.org/show_bug.cgi?id=32708 |
|
33060 |
|
33061 Any child of <text> was not allowed to use the same filter as the text root. |
|
33062 I couldn't found any reason in the SVG specification that legimitate this. |
|
33063 Only batik also doesn't allow the same filter on the text root as on it's childs, |
|
33064 while any other effect is still allowed. |
|
33065 I removed this limitation so that the result looks like the result on Firefox. |
|
33066 |
|
33067 Test: svg/filters/filter-on-filter-for-text.svg |
|
33068 |
|
33069 * rendering/SVGRenderSupport.cpp: |
|
33070 (WebCore::SVGRenderBase::prepareToRenderSVGContent): |
|
33071 * rendering/SVGRenderSupport.h: |
|
33072 * rendering/SVGRootInlineBox.cpp: |
|
33073 (WebCore::SVGRootInlineBoxPaintWalker::SVGRootInlineBoxPaintWalker): |
|
33074 (WebCore::SVGRootInlineBoxPaintWalker::chunkStartCallback): |
|
33075 (WebCore::SVGRootInlineBox::paint): |
|
33076 |
|
33077 2010-06-04 Nate Chapin <japhet@chromium.org> |
|
33078 |
|
33079 Reviewed by Adam Barth. |
|
33080 |
|
33081 Factor PageCache functionality out of FrameLoader and into |
|
33082 PageCache itself. |
|
33083 |
|
33084 https://bugs.webkit.org/show_bug.cgi?id=39382 |
|
33085 |
|
33086 Refactor only, so no new tests. |
|
33087 |
|
33088 * history/PageCache.cpp: |
|
33089 (WebCore::pageCacheLogPrefix): |
|
33090 (WebCore::pageCacheLog): |
|
33091 (WebCore::logCanCacheFrameDecision): |
|
33092 (WebCore::logCanCachePageDecision): |
|
33093 (WebCore::PageCache::canCachePageContainingThisFrame): |
|
33094 (WebCore::PageCache::canCache): |
|
33095 (WebCore::PageCache::add): |
|
33096 (WebCore::PageCache::get): |
|
33097 * history/PageCache.h: |
|
33098 * loader/DocumentLoader.cpp: |
|
33099 (WebCore::DocumentLoader::commitIfReady): |
|
33100 * loader/FrameLoader.cpp: |
|
33101 (WebCore::FrameLoader::commitProvisionalLoad): |
|
33102 (WebCore::FrameLoader::prepareForCachedPageRestore): |
|
33103 (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): |
|
33104 (WebCore::FrameLoader::loadProvisionalItemFromCachedPage): |
|
33105 (WebCore::FrameLoader::navigateToDifferentDocument): |
|
33106 * loader/FrameLoader.h: |
|
33107 (WebCore::FrameLoader::quickRedirectComing): |
|
33108 * svg/graphics/SVGImage.cpp: |
|
33109 (WebCore::SVGImage::dataChanged): |
|
33110 |
|
33111 2010-06-04 Ilya Tikhonovsky <loislo@chromium.org> |
|
33112 |
|
33113 Reviewed by Pavel Feldman. |
|
33114 |
|
33115 WebInspector: Web Inspector: it would be better to push object properties to JSON string in order of insertion. |
|
33116 https://bugs.webkit.org/show_bug.cgi?id=40140 |
|
33117 |
|
33118 * inspector/InspectorValues.cpp: |
|
33119 (WebCore::InspectorObject::writeJSON): |
|
33120 * inspector/InspectorValues.h: |
|
33121 (WebCore::InspectorObject::setBool): |
|
33122 (WebCore::InspectorObject::setNumber): |
|
33123 (WebCore::InspectorObject::setString): |
|
33124 (WebCore::InspectorObject::set): |
|
33125 |
|
33126 2010-06-04 Tony Gentilcore <tonyg@chromium.org> |
|
33127 |
|
33128 Reviewed by Adam Barth. |
|
33129 |
|
33130 Persist V8's ScriptData to the memory cache. |
|
33131 https://bugs.webkit.org/show_bug.cgi?id=38661 |
|
33132 |
|
33133 This stores V8's ScriptData in the memory cache and also causes the |
|
33134 network platform layer to be notified of the available cacheable |
|
33135 metadata. |
|
33136 |
|
33137 Chromium's morejs benchmark shows a 3-4% improvement on fast hardware. |
|
33138 |
|
33139 No new tests because no new functionality. |
|
33140 |
|
33141 * bindings/v8/ScriptSourceCode.h: |
|
33142 (WebCore::ScriptSourceCode::ScriptSourceCode): |
|
33143 (WebCore::ScriptSourceCode::cachedScript): |
|
33144 * bindings/v8/V8Proxy.cpp: |
|
33145 (WebCore::V8Proxy::compileScript): |
|
33146 (WebCore::V8Proxy::precompileScript): |
|
33147 (WebCore::V8Proxy::evaluate): |
|
33148 * bindings/v8/V8Proxy.h: |
|
33149 |
|
33150 2010-06-04 Tony Gentilcore <tonyg@chromium.org> |
|
33151 |
|
33152 Reviewed by Adam Barth. |
|
33153 |
|
33154 Utilize new takeFirst() method where appropriate. |
|
33155 https://bugs.webkit.org/show_bug.cgi?id=40089 |
|
33156 |
|
33157 No new tests because no new functionality. |
|
33158 |
|
33159 * css/CSSStyleSheet.cpp: |
|
33160 (WebCore::CSSStyleSheet::addSubresourceStyleURLs): |
|
33161 * dom/XMLTokenizerLibxml2.cpp: |
|
33162 (WebCore::PendingCallbacks::callAndRemoveFirstCallback): |
|
33163 * html/HTMLTokenizer.cpp: |
|
33164 (WebCore::HTMLTokenizer::reset): |
|
33165 (WebCore::HTMLTokenizer::executeExternalScriptsIfReady): |
|
33166 * platform/text/SegmentedString.cpp: |
|
33167 (WebCore::SegmentedString::advanceSubstring): |
|
33168 * storage/Database.cpp: |
|
33169 (WebCore::Database::scheduleTransaction): |
|
33170 * storage/SQLTransaction.cpp: |
|
33171 (WebCore::SQLTransaction::getNextStatement): |
|
33172 * storage/SQLTransactionCoordinator.cpp: |
|
33173 (WebCore::SQLTransactionCoordinator::processPendingTransactions): |
|
33174 |
|
33175 2010-06-04 Nikita Vasilyev <me@elv1s.ru> |
|
33176 |
|
33177 Reviewed by Pavel Feldman. |
|
33178 |
|
33179 Web Inspector: better Function.prototype.bind for the internal code. |
|
33180 |
|
33181 In the "Event Listeners" pane show handler function instead of Function.prototype.bind. |
|
33182 |
|
33183 https://bugs.webkit.org/show_bug.cgi?id=40080 |
|
33184 |
|
33185 * inspector/front-end/utilities.js: |
|
33186 (Function.prototype.bind.bound): |
|
33187 (Function.prototype.bind.bound.toString): |
|
33188 (Function.prototype.bind): |
|
33189 |
|
33190 2010-06-04 Alexander Pavlov <apavlov@chromium.org> |
|
33191 |
|
33192 Unreviewed, fix Qt build. |
|
33193 |
|
33194 Add references to a new file. |
|
33195 |
|
33196 * WebCore.gypi: |
|
33197 * WebCore.vcproj/WebCore.vcproj: |
|
33198 * inspector/front-end/WebKit.qrc: |
|
33199 |
|
33200 2010-06-04 Alexander Pavlov <apavlov@chromium.org> |
|
33201 |
|
33202 Reviewed by Pavel Feldman. |
|
33203 |
|
33204 Web Inspector: Eliminate direct dependency of StylesSidebarPane on InspectorBackend |
|
33205 https://bugs.webkit.org/show_bug.cgi?id=40069 |
|
33206 |
|
33207 No new tests are needed, as this is a refactoring. |
|
33208 |
|
33209 * inspector/front-end/CSSStyleModel.js: Added. |
|
33210 (WebInspector.CSSStyleModel): |
|
33211 (WebInspector.CSSStyleModel.prototype.getStylesAsync): |
|
33212 (WebInspector.CSSStyleModel.prototype.getComputedStyleAsync): |
|
33213 (WebInspector.CSSStyleModel.prototype.setRuleSelector): |
|
33214 (WebInspector.CSSStyleModel.prototype.addRule): |
|
33215 (WebInspector.CSSStyleModel.prototype.toggleStyleEnabled): |
|
33216 (WebInspector.CSSStyleModel.prototype.setCSSText): |
|
33217 (WebInspector.CSSStyleModel.prototype.applyStyleText): |
|
33218 * inspector/front-end/StylesSidebarPane.js: |
|
33219 (WebInspector.StylesSidebarPane.prototype.update.stylesCallback): |
|
33220 (WebInspector.StylesSidebarPane.prototype.update.computedStyleCallback): |
|
33221 (WebInspector.StylesSidebarPane.prototype.update): |
|
33222 (WebInspector.StylesSidebarPane.prototype._arrayContainsInheritedProperty): |
|
33223 (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted.successCallback): |
|
33224 (WebInspector.StylePropertiesSection.prototype.editingSelectorCommitted): |
|
33225 (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted.successCallback): |
|
33226 (WebInspector.BlankStylePropertiesSection.prototype.editingSelectorCommitted): |
|
33227 (WebInspector.StylePropertyTreeElement.prototype.): |
|
33228 (WebInspector.StylePropertyTreeElement.prototype): |
|
33229 * inspector/front-end/inspector.html: |
|
33230 * inspector/front-end/inspector.js: |
|
33231 (WebInspector.loaded): |
|
33232 |
|
33233 2010-06-04 Simon Hausmann <simon.hausmann@nokia.com> |
|
33234 |
|
33235 Reviewed by Tor Arne Vestbø. |
|
33236 |
|
33237 [Qt] Compilation fails when compiling against Qt 4.7 and Qt Mobility is installed |
|
33238 https://bugs.webkit.org/show_bug.cgi?id=40116 |
|
33239 |
|
33240 CONFIG += mobility has the side-effect of pulling in mobility includes, which conflict |
|
33241 with Qt 4.7's bearer managenent includes and break the build. |
|
33242 |
|
33243 * WebCore.pro: |
|
33244 |
|
33245 2010-06-04 Vangelis Kokkevis <vangelis@chromium.org> |
|
33246 |
|
33247 Reviewed by Dimitri Glazkov. |
|
33248 |
|
33249 [chromium] Fix scrolling bug with pages using accelerated compositing. |
|
33250 https://bugs.webkit.org/show_bug.cgi?id=40037 |
|
33251 |
|
33252 * platform/graphics/chromium/LayerRendererChromium.cpp: |
|
33253 (WebCore::LayerRendererChromium::LayerRendererChromium): |
|
33254 (WebCore::LayerRendererChromium::drawLayers): |
|
33255 |
|
33256 2010-06-04 Matthew Delaney <mdelaney@apple.com> |
|
33257 |
|
33258 Reviewed by Darin Adler. |
|
33259 |
|
33260 CG implementation needed for compression quality in canvas.toDataURL |
|
33261 https://bugs.webkit.org/show_bug.cgi?id=38492 |
|
33262 |
|
33263 Took toDataURL.jpeg.quality.basic.html test off of Skipped list. Passes. |
|
33264 |
|
33265 Went the route of avoiding in-band signaling to flag the use of a quality |
|
33266 parameter or not. So, instead of simply passing the quality down as a |
|
33267 double, instead I pass a reference to the quality parameter from where |
|
33268 it comes in just after the JS bindings. Thus, no need for any global |
|
33269 constants to signify when the quality is not specified. Updated the other |
|
33270 platforms to support this (qt was on the only one currently with any |
|
33271 implementation). |
|
33272 |
|
33273 * bindings/js/JSHTMLCanvasElementCustom.cpp: Moved range check logic for quality parameter down lower. Updated |
|
33274 call to toDataURL to use double* instead of just passing the quality directly. |
|
33275 (WebCore::JSHTMLCanvasElement::toDataURL): |
|
33276 * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp: Updated toDataURL call to pass double* |
|
33277 (WebCore::V8HTMLCanvasElement::toDataURLCallback): |
|
33278 * dom/CanvasSurface.cpp: Updated method prototype. |
|
33279 (WebCore::CanvasSurface::toDataURL): |
|
33280 * dom/CanvasSurface.h: Updated method prototype. |
|
33281 (WebCore::CanvasSurface::toDataURL): |
|
33282 * platform/graphics/ImageBuffer.h: Updated method signature to use double* for quality param. |
|
33283 * platform/graphics/cairo/ImageBufferCairo.cpp: Updated prototype for consistency. |
|
33284 (WebCore::ImageBuffer::toDataURL): |
|
33285 * platform/graphics/cg/ImageBufferCG.cpp: Implemented support for quality parametejr when jpeg MIME type used. |
|
33286 (WebCore::jpegUTI): |
|
33287 (WebCore::utiFromMIMEType): |
|
33288 (WebCore::ImageBuffer::toDataURL): |
|
33289 * platform/graphics/haiku/ImageBufferHaiku.cpp: Updated prototype for consistency. |
|
33290 (WebCore::ImageBuffer::toDataURL): |
|
33291 * platform/graphics/qt/ImageBufferQt.cpp: Updated prototype for consistency. |
|
33292 (WebCore::ImageBuffer::toDataURL): |
|
33293 * platform/graphics/skia/ImageBufferSkia.cpp: Updated prototype for consistency. |
|
33294 (WebCore::ImageBuffer::toDataURL): |
|
33295 * platform/graphics/wince/ImageBufferWince.cpp: Updated prototype for consistency. |
|
33296 (WebCore::ImageBuffer::toDataURL): |
|
33297 * platform/graphics/wx/ImageBufferWx.cpp: Updated prototype for consistency. |
|
33298 (WebCore::ImageBuffer::toDataURL): |
|
33299 |
|
33300 2010-06-04 Alejandro G. Castro <alex@igalia.com> |
|
33301 |
|
33302 Reviewed by Xan Lopez. |
|
33303 |
|
33304 Leaks in listDirectory |
|
33305 https://bugs.webkit.org/show_bug.cgi?id=40008 |
|
33306 |
|
33307 Fixed both leaks. |
|
33308 |
|
33309 * platform/gtk/FileSystemGtk.cpp: |
|
33310 (WebCore::listDirectory): |
|
33311 |
|
33312 2010-06-04 Anton Muhin <antonm@chromium.org> |
|
33313 |
|
33314 Reviewed by Nate Chapin. |
|
33315 |
|
33316 [Chromium] get rid of named interceptor on HTMLDocument and introduce/remove accessors when named items get deleted/removed |
|
33317 https://bugs.webkit.org/show_bug.cgi?id=39877 |
|
33318 |
|
33319 This patch makes callbacks invoked on named items addition/removal |
|
33320 install API accessors and thus there is no more need in |
|
33321 named and indexed interceptors on HTMLDocument which |
|
33322 speeds up invocation of methods on document. |
|
33323 |
|
33324 * bindings/scripts/CodeGeneratorV8.pm: |
|
33325 * bindings/v8/ScriptController.cpp: |
|
33326 (WebCore::ScriptController::namedItemAdded): |
|
33327 (WebCore::ScriptController::namedItemRemoved): |
|
33328 * bindings/v8/V8DOMWindowShell.cpp: |
|
33329 (WebCore::checkDocumentWrapper): |
|
33330 (WebCore::V8DOMWindowShell::updateDocumentWrapperCache): |
|
33331 (WebCore::getter): |
|
33332 (WebCore::V8DOMWindowShell::namedItemAdded): |
|
33333 (WebCore::V8DOMWindowShell::namedItemRemoved): |
|
33334 * bindings/v8/V8DOMWindowShell.h: |
|
33335 * bindings/v8/V8DOMWrapper.cpp: |
|
33336 (WebCore::V8DOMWrapper::instantiateV8Object): |
|
33337 * bindings/v8/custom/V8HTMLDocumentCustom.cpp: |
|
33338 (WebCore::V8HTMLDocument::WrapInShadowObject): |
|
33339 (WebCore::V8HTMLDocument::GetNamedProperty): |
|
33340 (WebCore::V8HTMLDocument::allAccessorSetter): |
|
33341 (WebCore::toV8): |
|
33342 |
|
33343 2010-06-04 Kwang Yul Seo <skyul@company100.net> |
|
33344 |
|
33345 Reviewed by Kent Tamura. |
|
33346 |
|
33347 Change filenameFromString to return CString |
|
33348 https://bugs.webkit.org/show_bug.cgi?id=39494 |
|
33349 |
|
33350 filenameFromString returns a newly allocated string and the caller must |
|
33351 free the string. GTK and EFL ports use g_free while all others ports use |
|
33352 fastFree. This is confusing because the same function behaves |
|
33353 differently with respect to ports. Change filenameFromString to return |
|
33354 CString. |
|
33355 |
|
33356 * platform/FileSystem.cpp: |
|
33357 (WebCore::filenameFromString): |
|
33358 * platform/FileSystem.h: |
|
33359 * platform/efl/FileSystemEfl.cpp: |
|
33360 (WebCore::filenameFromString): |
|
33361 * platform/gtk/FileChooserGtk.cpp: |
|
33362 (WebCore::FileChooser::basenameForWidth): |
|
33363 * platform/gtk/FileSystemGtk.cpp: |
|
33364 (WebCore::filenameFromString): |
|
33365 (WebCore::filenameForDisplay): |
|
33366 (WebCore::fileExists): |
|
33367 (WebCore::deleteFile): |
|
33368 (WebCore::deleteEmptyDirectory): |
|
33369 (WebCore::getFileSize): |
|
33370 (WebCore::getFileModificationTime): |
|
33371 (WebCore::makeAllDirectories): |
|
33372 (WebCore::pathGetFileName): |
|
33373 (WebCore::directoryName): |
|
33374 (WebCore::listDirectory): |
|
33375 * platform/gtk/SharedBufferGtk.cpp: |
|
33376 (WebCore::SharedBuffer::createWithContentsOfFile): |
|
33377 * platform/network/soup/ResourceHandleSoup.cpp: |
|
33378 (WebCore::startHttp): |
|
33379 * platform/posix/SharedBufferPOSIX.cpp: |
|
33380 (WebCore::SharedBuffer::createWithContentsOfFile): |
|
33381 |
|
33382 2010-06-04 No'am Rosenthal <noam.rosenthal@nokia.com> |
|
33383 |
|
33384 Reviewed by Kenneth Rohde Christiansen. |
|
33385 |
|
33386 [Qt] Fix compilation with QT_NO_FEATURE |
|
33387 https://bugs.webkit.org/show_bug.cgi?id=38324 |
|
33388 |
|
33389 The #ifdef QT_NO_GRAPHICSEFFECT was in the wrong place, would have |
|
33390 made AC not work at all. |
|
33391 |
|
33392 No new tests. |
|
33393 |
|
33394 * platform/graphics/qt/GraphicsLayerQt.cpp: |
|
33395 (WebCore::GraphicsLayerQtImpl::flushChanges): |
|
33396 |
|
33397 2010-06-04 Qi Zhang <qi.2.zhang@nokia.com> |
|
33398 |
|
33399 Reviewed by Laszlo Gombos. |
|
33400 |
|
33401 [Qt] Failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arcTo.ensuresubpath.1.html |
|
33402 https://bugs.webkit.org/show_bug.cgi?id=38645 |
|
33403 |
|
33404 Path arcto function need to ensure there is subpath before it. |
|
33405 |
|
33406 * platform/graphics/qt/PathQt.cpp: |
|
33407 (WebCore::Path::addArcTo): |
|
33408 |
|
33409 2010-06-04 Qi Zhang <qi.2.zhang@nokia.com> |
|
33410 |
|
33411 Reviewed by Laszlo Gombos. |
|
33412 |
|
33413 [Qt] failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arc.angle.3.html |
|
33414 https://bugs.webkit.org/show_bug.cgi?id=38537 |
|
33415 |
|
33416 For path.arc function handle span > 2PI |
|
33417 |
|
33418 * platform/graphics/qt/PathQt.cpp: |
|
33419 (WebCore::Path::addArc): |
|
33420 |
|
33421 2010-06-04 Zhenyao Mo <zmo@google.com> |
|
33422 |
|
33423 Reviewed by Dimitri Glazkov. |
|
33424 |
|
33425 Set attributes.stencil to false by default at context creation |
|
33426 https://bugs.webkit.org/show_bug.cgi?id=40090 |
|
33427 |
|
33428 * platform/graphics/GraphicsContext3D.h: Set default attributes.stencil to false. |
|
33429 (WebCore::GraphicsContext3D::Attributes::Attributes): |
|
33430 |
|
33431 2010-06-03 Abhishek Arya <inferno@chromium.org> |
|
33432 |
|
33433 Reviewed by Eric Carlson. |
|
33434 |
|
33435 Fix a crash when trying to use an invalid media src url by |
|
33436 moving the isValid url checks to a central location in |
|
33437 isSafeToLoadURL function. Also added an empty string check |
|
33438 in DocumentLoader::didTellClientAboutLoad. |
|
33439 |
|
33440 Test: media/invalid-media-url-crash.html |
|
33441 |
|
33442 * html/HTMLMediaElement.cpp: |
|
33443 (WebCore::HTMLMediaElement::isSafeToLoadURL): |
|
33444 (WebCore::HTMLMediaElement::selectNextSourceChild): |
|
33445 (WebCore::HTMLMediaElement::getPluginProxyParams): |
|
33446 * loader/DocumentLoader.h: |
|
33447 (WebCore::DocumentLoader::didTellClientAboutLoad): |
|
33448 |
|
33449 2010-06-03 Sheriff Bot <webkit.review.bot@gmail.com> |
|
33450 |
|
33451 Unreviewed, rolling out r60642. |
|
33452 http://trac.webkit.org/changeset/60642 |
|
33453 https://bugs.webkit.org/show_bug.cgi?id=40151 |
|
33454 |
|
33455 Broke rendering of border images on rotated elements |
|
33456 (Requested by jamesr on #webkit). |
|
33457 |
|
33458 * platform/graphics/GraphicsContext.cpp: |
|
33459 (WebCore::GraphicsContext::drawImage): |
|
33460 (WebCore::GraphicsContext::drawTiledImage): |
|
33461 * platform/graphics/GraphicsContext.h: |
|
33462 * rendering/RenderBoxModelObject.cpp: |
|
33463 (WebCore::RenderBoxModelObject::paintNinePieceImage): |
|
33464 |
|
33465 2010-06-03 Damian Kaleta <dkaleta@apple.com> |
|
33466 |
|
33467 Reviewed by Beth Dakin. |
|
33468 |
|
33469 Pixel cracks in border images when drawing with a scale factor > 1 |
|
33470 <rdar://problem/7994266>pixel cracks in border images |
|
33471 https://bugs.webkit.org/show_bug.cgi?id=15720 |
|
33472 |
|
33473 * platform/graphics/GraphicsContext.cpp: |
|
33474 (WebCore::GraphicsContext::drawImage): |
|
33475 (WebCore::GraphicsContext::drawTiledImage): |
|
33476 * platform/graphics/GraphicsContext.h: Added two new methods to support drawing using FloatRect. |
|
33477 If the boolean flag roundToPixels is true, the pixels are adjusted with the pixel boundaries. |
|
33478 * rendering/RenderBoxModelObject.cpp: |
|
33479 (WebCore::RenderBoxModelObject::paintNinePieceImage): |
|
33480 |
|
33481 2010-06-03 James Robinson <jamesr@chromium.org> |
|
33482 |
|
33483 Reviewed by Dan Bernstein. |
|
33484 |
|
33485 Take container's scroll offset and clip into account when initializing LayoutState |
|
33486 https://bugs.webkit.org/show_bug.cgi?id=38506 |
|
33487 |
|
33488 When doing a subtree layout, the initial LayoutState creation needs to |
|
33489 take the layout root container's offset and its scroll offset into account |
|
33490 to create the initial offset. Otherwise if a subtree layout occurs |
|
33491 for a layout root whose container has a non-zero scroll offset |
|
33492 the LayoutState's offset and clip are wrong, resulting in a mispaint. |
|
33493 See the test cases for examples. |
|
33494 |
|
33495 Tests: fast/repaint/layout-state-scrolloffset.html |
|
33496 fast/repaint/layout-state-scrolloffset2.html |
|
33497 fast/repaint/layout-state-scrolloffset3.html |
|
33498 |
|
33499 * rendering/LayoutState.cpp: |
|
33500 (WebCore::LayoutState::LayoutState): |
|
33501 |
|
33502 2010-06-03 Gavin Barraclough <barraclough@apple.com> |
|
33503 |
|
33504 Reviewed by NOBODY (speculative Qt build fix II). |
|
33505 |
|
33506 * bridge/qt/qt_runtime.cpp: |
|
33507 (JSC::Bindings::QtRuntimeMetaMethod::call): |
|
33508 (JSC::Bindings::QtRuntimeConnectionMethod::call): |
|
33509 |
|
33510 2010-06-03 Gavin Barraclough <barraclough@apple.com> |
|
33511 |
|
33512 Reviewed by NOBODY (speculative Qt build fix). |
|
33513 |
|
33514 * bridge/qt/qt_runtime.cpp: |
|
33515 (JSC::Bindings::QtRuntimeMetaMethod::call): |
|
33516 (JSC::Bindings::QtRuntimeConnectionMethod::call): |
|
33517 |
|
33518 2010-06-02 Gavin Barraclough <barraclough@apple.com> |
|
33519 |
|
33520 Reviewed by Oliver Hunt. |
|
33521 |
|
33522 Bug 40094 - The return type of NativeFunction should be EncodedJSValue |
|
33523 On Windows & Linux, using JSVALUE32_64, EncodedJSValue is returned in registers, but JSValue is not. |
|
33524 |
|
33525 * bindings/js/JSCallbackData.cpp: |
|
33526 (WebCore::JSCallbackData::invokeCallback): |
|
33527 * bindings/js/JSCustomXPathNSResolver.cpp: |
|
33528 (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI): |
|
33529 * bindings/js/JSEventListener.cpp: |
|
33530 (WebCore::JSEventListener::handleEvent): |
|
33531 * bindings/js/JSHTMLAllCollectionCustom.cpp: |
|
33532 (WebCore::callHTMLAllCollection): |
|
33533 * bindings/js/JSHTMLCollectionCustom.cpp: |
|
33534 (WebCore::callHTMLCollection): |
|
33535 * bindings/js/JSHTMLDocumentCustom.cpp: |
|
33536 (WebCore::JSHTMLDocument::open): |
|
33537 * bindings/js/JSInjectedScriptHostCustom.cpp: |
|
33538 (WebCore::InjectedScriptHost::createInjectedScript): |
|
33539 * bindings/js/JSNodeFilterCondition.cpp: |
|
33540 (WebCore::JSNodeFilterCondition::acceptNode): |
|
33541 * bindings/js/JSNodeListCustom.cpp: |
|
33542 (WebCore::callNodeList): |
|
33543 * bindings/js/JSPluginElementFunctions.cpp: |
|
33544 (WebCore::callPlugin): |
|
33545 * bindings/js/ScheduledAction.cpp: |
|
33546 (WebCore::ScheduledAction::create): |
|
33547 (WebCore::ScheduledAction::executeFunctionInContext): |
|
33548 * bindings/js/ScriptFunctionCall.cpp: |
|
33549 (WebCore::ScriptFunctionCall::call): |
|
33550 * bindings/js/SerializedScriptValue.cpp: |
|
33551 (WebCore::SerializingTreeWalker::convertIfTerminal): |
|
33552 * bindings/objc/WebScriptObject.mm: |
|
33553 (-[WebScriptObject callWebScriptMethod:withArguments:]): |
|
33554 * bindings/scripts/CodeGeneratorJS.pm: |
|
33555 * bridge/NP_jsobject.cpp: |
|
33556 (_NPN_InvokeDefault): |
|
33557 (_NPN_Invoke): |
|
33558 (_NPN_Construct): |
|
33559 * bridge/jni/jni_jsobject.mm: |
|
33560 (JavaJSObject::call): |
|
33561 * bridge/objc/objc_runtime.mm: |
|
33562 (JSC::Bindings::callObjCFallbackObject): |
|
33563 * bridge/runtime_method.cpp: |
|
33564 (JSC::callRuntimeMethod): |
|
33565 * bridge/runtime_object.cpp: |
|
33566 (JSC::Bindings::callRuntimeObject): |
|
33567 |
|
33568 2010-06-03 Sheriff Bot <webkit.review.bot@gmail.com> |
|
33569 |
|
33570 Unreviewed, rolling out r60614. |
|
33571 http://trac.webkit.org/changeset/60614 |
|
33572 https://bugs.webkit.org/show_bug.cgi?id=40123 |
|
33573 |
|
33574 It made fast/dom/Window/window-postmessage-clone.html fail on |
|
33575 Mac bots (Requested by Ossy on #webkit). |
|
33576 |
|
33577 * Android.derived.jscbindings.mk: |
|
33578 * Android.derived.v8bindings.mk: |
|
33579 * Android.mk: |
|
33580 * CMakeLists.txt: |
|
33581 * DerivedSources.cpp: |
|
33582 * DerivedSources.make: |
|
33583 * GNUmakefile.am: |
|
33584 * WebCore.gypi: |
|
33585 * WebCore.pri: |
|
33586 * WebCore.pro: |
|
33587 * bindings/generic/RuntimeEnabledFeatures.cpp: |
|
33588 * bindings/generic/RuntimeEnabledFeatures.h: |
|
33589 * bindings/js/JSEventCustom.cpp: |
|
33590 (WebCore::toJS): |
|
33591 * bindings/v8/custom/V8EventCustom.cpp: |
|
33592 (WebCore::toV8): |
|
33593 * dom/Document.cpp: |
|
33594 (WebCore::Document::createEvent): |
|
33595 (WebCore::Document::addListenerTypeIfNeeded): |
|
33596 * dom/Document.h: |
|
33597 (WebCore::Document::): |
|
33598 * dom/Document.idl: |
|
33599 * dom/Element.h: |
|
33600 * dom/Element.idl: |
|
33601 * dom/Event.cpp: |
|
33602 (WebCore::Event::fromUserGesture): |
|
33603 * dom/Event.h: |
|
33604 * dom/EventNames.h: |
|
33605 * dom/TransformActionEvent.cpp: Removed. |
|
33606 * dom/TransformActionEvent.h: Removed. |
|
33607 * dom/TransformActionEvent.idl: Removed. |
|
33608 * html/HTMLAttributeNames.in: |
|
33609 * html/HTMLElement.cpp: |
|
33610 (WebCore::HTMLElement::parseMappedAttribute): |
|
33611 * page/DOMWindow.h: |
|
33612 * page/DOMWindow.idl: |
|
33613 |
|
33614 2010-06-03 Yury Semikhatsky <yurys@chromium.org> |
|
33615 |
|
33616 Reviewed by Pavel Feldman. |
|
33617 |
|
33618 [v8] Web Inspector: show "Object" as description for values with anonymous constructor |
|
33619 https://bugs.webkit.org/show_bug.cgi?id=40121 |
|
33620 |
|
33621 * inspector/front-end/InjectedScript.js: |
|
33622 (injectedScriptConstructor): |
|
33623 |
|
33624 2010-06-03 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> |
|
33625 |
|
33626 Reviewed by Simon Hausmann. |
|
33627 |
|
33628 [Qt] Fix NPAPI support on Mac OS X/Cocoa-32 |
|
33629 |
|
33630 qt_mac_window_for() returns a NSWindow on Cocoa, so we were |
|
33631 passing in a NSWindow instead of a WindowRef as part of the |
|
33632 NP_CGContext. |
|
33633 |
|
33634 https://bugs.webkit.org/show_bug.cgi?id=38762 |
|
33635 |
|
33636 * WebCore.gypi: Reflect rename |
|
33637 * WebCore.pro: Reflect rename |
|
33638 * plugins/mac/PluginViewMac.cpp: Renamed to PluginViewMac.mm |
|
33639 and fix bug by getting the Carbon windowRef from the NSWindow. |
|
33640 * wscript: Reflect rename |
|
33641 |
|
33642 2010-06-03 Kim Grönholm <kim.1.gronholm@nokia.com> |
|
33643 |
|
33644 Reviewed by Simon Hausmann. |
|
33645 |
|
33646 Add TransformActionEvent support |
|
33647 https://bugs.webkit.org/show_bug.cgi?id=39757 |
|
33648 |
|
33649 Added only the necessary TransformAction event interfaces and not e.g. |
|
33650 any eventhandler hooks that generate and dispatch them. |
|
33651 |
|
33652 Test: fast/events/transformaction/create-transformaction-event.html |
|
33653 More tests will be added with the machinery that generates and |
|
33654 dispatches these events. |
|
33655 |
|
33656 * Android.derived.jscbindings.mk: |
|
33657 * Android.derived.v8bindings.mk: |
|
33658 * Android.mk: |
|
33659 * CMakeLists.txt: |
|
33660 * DerivedSources.cpp: |
|
33661 * DerivedSources.make: |
|
33662 * GNUmakefile.am: |
|
33663 * WebCore.gypi: |
|
33664 * WebCore.pri: |
|
33665 * WebCore.pro: |
|
33666 * bindings/generic/RuntimeEnabledFeatures.cpp: |
|
33667 * bindings/generic/RuntimeEnabledFeatures.h: |
|
33668 (WebCore::RuntimeEnabledFeatures::transformactionEnabled): |
|
33669 (WebCore::RuntimeEnabledFeatures::setTransformActionEnabled): |
|
33670 (WebCore::RuntimeEnabledFeatures::ontransformactionstartEnabled): |
|
33671 (WebCore::RuntimeEnabledFeatures::ontransformactionupdateEnabled): |
|
33672 (WebCore::RuntimeEnabledFeatures::ontransformactionendEnabled): |
|
33673 * bindings/js/JSEventCustom.cpp: |
|
33674 (WebCore::toJS): |
|
33675 * bindings/v8/custom/V8EventCustom.cpp: |
|
33676 (WebCore::toV8): |
|
33677 * dom/Document.cpp: |
|
33678 (WebCore::Document::createEvent): |
|
33679 (WebCore::Document::addListenerTypeIfNeeded): |
|
33680 * dom/Document.h: |
|
33681 (WebCore::Document::): |
|
33682 * dom/Document.idl: |
|
33683 * dom/Element.h: |
|
33684 * dom/Element.idl: |
|
33685 * dom/Event.cpp: |
|
33686 (WebCore::Event::isTransformActionEvent): |
|
33687 (WebCore::Event::fromUserGesture): |
|
33688 * dom/Event.h: |
|
33689 * dom/EventNames.h: |
|
33690 * dom/TransformActionEvent.cpp: Added. |
|
33691 (WebCore::TransformActionEvent::TransformActionEvent): |
|
33692 (WebCore::TransformActionEvent::initTransformActionEvent): |
|
33693 * dom/TransformActionEvent.h: Added. |
|
33694 (WebCore::TransformActionEvent::create): |
|
33695 (WebCore::TransformActionEvent::translateX): |
|
33696 (WebCore::TransformActionEvent::translateY): |
|
33697 (WebCore::TransformActionEvent::translateSpeedX): |
|
33698 (WebCore::TransformActionEvent::translateSpeedY): |
|
33699 (WebCore::TransformActionEvent::scale): |
|
33700 (WebCore::TransformActionEvent::scaleSpeed): |
|
33701 (WebCore::TransformActionEvent::rotate): |
|
33702 (WebCore::TransformActionEvent::rotateSpeed): |
|
33703 (WebCore::TransformActionEvent::TransformActionEvent): |
|
33704 (WebCore::TransformActionEvent::isTransformActionEvent): |
|
33705 * dom/TransformActionEvent.idl: Added. |
|
33706 * html/HTMLAttributeNames.in: |
|
33707 * html/HTMLElement.cpp: |
|
33708 (WebCore::HTMLElement::parseMappedAttribute): |
|
33709 * page/DOMWindow.h: |
|
33710 * page/DOMWindow.idl: |
|
33711 |
|
33712 2010-06-03 Pavel Feldman <pfeldman@chromium.org> |
|
33713 |
|
33714 Reviewed by Yury Semikhatsky. |
|
33715 |
|
33716 Web Inspector: a number of fixes that make InspectorController |
|
33717 happy with null redirects. |
|
33718 |
|
33719 https://bugs.webkit.org/show_bug.cgi?id=40109 |
|
33720 |
|
33721 * inspector/InspectorController.cpp: |
|
33722 (WebCore::InspectorController::willSendRequest): |
|
33723 (WebCore::InspectorController::didReceiveResponse): |
|
33724 (WebCore::InspectorController::didReceiveContentLength): |
|
33725 (WebCore::InspectorController::didFinishLoading): |
|
33726 (WebCore::InspectorController::didFailLoading): |
|
33727 |
|
33728 2010-06-03 Pavel Feldman <pfeldman@chromium.org> |
|
33729 |
|
33730 Not reviewed. Rolling out aggressive cache part of the r60391 |
|
33731 described in the bug below. It was orthogonal to the rest of |
|
33732 the patch and caused regression. |
|
33733 |
|
33734 https://bugs.webkit.org/show_bug.cgi?id=37364 |
|
33735 |
|
33736 * platform/graphics/skia/ImageSkia.cpp: |
|
33737 (WebCore::drawResampledBitmap): |
|
33738 |
|
33739 2010-06-02 Darin Fisher <darin@chromium.org> |
|
33740 |
|
33741 Reviewed by Brady Eidson. |
|
33742 |
|
33743 location.href and outgoing referrer not updated properly by |
|
33744 pushState/replaceState |
|
33745 https://bugs.webkit.org/show_bug.cgi?id=40027 |
|
33746 |
|
33747 Tests: fast/loader/stateobjects/pushstate-updates-location.html |
|
33748 fast/loader/stateobjects/replacestate-updates-location.html |
|
33749 http/tests/navigation/pushstate-updates-referrer.html |
|
33750 http/tests/navigation/replacestate-updates-referrer.html |
|
33751 |
|
33752 * dom/Document.cpp: |
|
33753 (WebCore::Document::updateURLForPushOrReplaceState): |
|
33754 Update the FrameLoader's notion of the current URL as well! |
|
33755 |
|
33756 * loader/FrameLoader.cpp: |
|
33757 (WebCore::FrameLoader::loadInSameDocument): |
|
33758 Use the 'url' parameter instead of m_URL since m_URL might have |
|
33759 changed during the handling of the PopState event. Eventually, |
|
33760 this will become irrelevant since the PopState event should be |
|
33761 dispatched asynchronously, but just in case we patch HashChange |
|
33762 to be asynchronous before PopState, this change would be needed. |
|
33763 |
|
33764 2010-06-02 Eric Seidel <eric@webkit.org> |
|
33765 |
|
33766 Reviewed by Adam Barth. |
|
33767 |
|
33768 REGRESSION(60409): document.write is not synchronous when using the HTML5 parser |
|
33769 https://bugs.webkit.org/show_bug.cgi?id=40047 |
|
33770 |
|
33771 The HTML5 spec states that we should "spin the event loop" while |
|
33772 waiting for stylesheets to load. Currently we do that by yielding |
|
33773 out of the parser when stylesheets are loading. Because it was easy |
|
33774 we made inline <scripts> yield for stylesheet loads as well. However, |
|
33775 this caused document.write() to return after encountering the first |
|
33776 inline <script> tag in many cases which is incorrect. document.write |
|
33777 is supposed to block until the entire document is parsed (including) |
|
33778 executing inline script tags. To match the exiting parser, we'll just |
|
33779 make inline <script> tags not block on stylesheets for now. |
|
33780 |
|
33781 This is tested by WebCore/benchmarks/html-parser.html as well |
|
33782 as likely several other tests in LayoutTests which we haven't |
|
33783 triaged yet. |
|
33784 |
|
33785 * html/HTML5ScriptRunner.cpp: |
|
33786 (WebCore::HTML5ScriptRunner::executeScript): |
|
33787 - ASSERT that either stylesheets have loaded or we're executing an |
|
33788 inline <script> tag. |
|
33789 (WebCore::HTML5ScriptRunner::runScript): |
|
33790 - Remove the code to block inline <script> tags on stylesheet loads. |
|
33791 |
|
33792 2010-06-02 MORITA Hajime <morrita@google.com> |
|
33793 |
|
33794 Unreviewd, Chromium windows build fix. |
|
33795 |
|
33796 * rendering/RenderThemeChromiumWin.cpp: |
|
33797 (WebCore::RenderThemeChromiumWin::paintProgressBar): |
|
33798 |
|
33799 2010-06-02 MORITA Hajime <morrita@google.com> |
|
33800 |
|
33801 Reviewed by Kent Tamura. |
|
33802 |
|
33803 [Chromium] Linux: progress bar image pieces should be painted with same resampling mode |
|
33804 https://bugs.webkit.org/show_bug.cgi?id=40045 |
|
33805 |
|
33806 computeResamplingMode(), used by Image::drawPattern() and |
|
33807 BitmapImage::draw(), chooses an image resampling mode based on the |
|
33808 size of given image and the destination rectangle. But when |
|
33809 painting single component (i.e. a progress bar) from multiple |
|
33810 images, it can choose different resampling modes for images of |
|
33811 same component. That difference creates unexpected visual artifacts |
|
33812 like seams between images of single component. |
|
33813 |
|
33814 This change introduced "image resampling hint" to allow callers to |
|
33815 control the resampling mode. Using the hint, |
|
33816 RenderThemeChromiumSkia now able to hold same resampling mode |
|
33817 during draw a progress bar. |
|
33818 |
|
33819 No new tests. Expectations will come after ENABLE_PROGRESS_BAR get |
|
33820 enabled on chromium. |
|
33821 |
|
33822 * platform/graphics/skia/ImageSkia.cpp: |
|
33823 (WebCore::computeResamplingMode): |
|
33824 * platform/graphics/skia/PlatformContextSkia.cpp: |
|
33825 (PlatformContextSkia::save): |
|
33826 (PlatformContextSkia::setImageResamplingHint): Added |
|
33827 (PlatformContextSkia::clearImageResamplingHint): Added |
|
33828 (PlatformContextSkia::hasImageResamplingHint): Added |
|
33829 (PlatformContextSkia::imageResamplingHint): Added |
|
33830 * platform/graphics/skia/PlatformContextSkia.h: |
|
33831 * rendering/RenderThemeChromiumSkia.cpp: |
|
33832 (WebCore::RenderThemeChromiumSkia::paintProgressBar): |
|
33833 |
|
33834 2010-06-03 MORITA Hajime <morrita@google.com> |
|
33835 |
|
33836 Reviewed by Kent Tamura. |
|
33837 |
|
33838 [Chromium] Support HTML5 <progress> element on Linux. |
|
33839 https://bugs.webkit.org/show_bug.cgi?id=37310 |
|
33840 |
|
33841 Implemented RenderThemeChromiumSkia::paintProgressBar(), extracing |
|
33842 determinateProgressValueRectFor() from RenderThemeChromiumWin to |
|
33843 RenderThemeChromiumSkia |
|
33844 |
|
33845 No new tests. Expectations will come after ENABLE_PROGRESS_BAR get |
|
33846 enabled on chromium. |
|
33847 |
|
33848 * rendering/RenderThemeChromiumSkia.cpp: |
|
33849 (WebCore::RenderThemeChromiumSkia::determinateProgressValueRectFor): |
|
33850 (WebCore::RenderThemeChromiumSkia::indeterminateProgressValueRectFor): |
|
33851 (WebCore::RenderThemeChromiumSkia::animationRepeatIntervalForProgressBar): |
|
33852 (WebCore::RenderThemeChromiumSkia::animationDurationForProgressBar): |
|
33853 (WebCore::RenderThemeChromiumSkia::paintProgressBar): |
|
33854 (WebCore::RenderThemeChromiumSkia::progressValueRectFor): |
|
33855 * rendering/RenderThemeChromiumSkia.h: |
|
33856 * rendering/RenderThemeChromiumWin.cpp: |
|
33857 (WebCore::RenderThemeChromiumWin::paintProgressBar): |
|
33858 |
|
33859 2010-06-02 Nico Weber <thakis@chromium.org> |
|
33860 |
|
33861 Reviewed by Simon Fraser. |
|
33862 |
|
33863 Scroll events are sent twice per keypress for ports that don't have a platformWidget scrollbar |
|
33864 https://bugs.webkit.org/show_bug.cgi?id=39918 |
|
33865 |
|
33866 This was regressed by http://trac.webkit.org/changeset/58615 . Fix this by slightly tweaking |
|
33867 that patch. |
|
33868 |
|
33869 Test: editing/input/page-up-down-scrolls.html |
|
33870 |
|
33871 * page/FrameView.cpp: |
|
33872 (WebCore::FrameView::scrollPositionChanged): |
|
33873 * page/FrameView.h: |
|
33874 * platform/ScrollView.cpp: |
|
33875 (WebCore::ScrollView::valueChanged): |
|
33876 * platform/ScrollView.h: |
|
33877 (WebCore::ScrollView::repaintFixedElementsAfterScrolling): |
|
33878 |
|
33879 2010-06-02 Andrey Kosyakov <caseq@chromium.org> |
|
33880 |
|
33881 Reviewed by Pavel Feldman. |
|
33882 |
|
33883 Web Inspector: use platform-specific key designations in shortcuts help for mac |
|
33884 https://bugs.webkit.org/show_bug.cgi?id=39158 |
|
33885 |
|
33886 * inspector/front-end/KeyboardShortcut.js: |
|
33887 (WebInspector.KeyboardShortcut.shortcutToString): |
|
33888 (WebInspector.KeyboardShortcut._keyName): |
|
33889 (WebInspector.KeyboardShortcut._modifiersToString): |
|
33890 * inspector/front-end/inspector.js: |
|
33891 (WebInspector._registerShortcuts): |
|
33892 |
|
33893 2010-06-02 Kenneth Russell <kbr@google.com> |
|
33894 |
|
33895 Reviewed by Darin Fisher. |
|
33896 |
|
33897 Enable WebGL on more platforms even if accelerated compositing is disabled |
|
33898 https://bugs.webkit.org/show_bug.cgi?id=40085 |
|
33899 |
|
33900 Conditionalize the code which prevents a WebGL rendering context |
|
33901 from being created if accelerated compositing is disabled. |
|
33902 Currently Chromium is the only port which will create a context if |
|
33903 accelerated compositing is disabled; other ports may opt in to |
|
33904 this code path if desired. |
|
33905 |
|
33906 Tested with existing WebGL layout tests in Safari and Chromium on |
|
33907 Mac OS X. |
|
33908 |
|
33909 * html/HTMLCanvasElement.cpp: |
|
33910 (WebCore::HTMLCanvasElement::getContext): |
|
33911 |
|
33912 2010-06-02 Sheriff Bot <webkit.review.bot@gmail.com> |
|
33913 |
|
33914 Unreviewed, rolling out r60580. |
|
33915 http://trac.webkit.org/changeset/60580 |
|
33916 https://bugs.webkit.org/show_bug.cgi?id=40087 |
|
33917 |
|
33918 This broke dragging links if the selection was in a |
|
33919 contentEditable element. (Requested by arv on #webkit). |
|
33920 |
|
33921 * page/FocusController.cpp: |
|
33922 (WebCore::clearSelectionIfNeeded): |
|
33923 |
|
33924 2010-06-02 Erik Arvidsson <arv@chromium.org> |
|
33925 |
|
33926 Reviewed by Ojan Vafai. |
|
33927 |
|
33928 REGRESSION: Weird focus behavior affects quoting on University of Washington message board system |
|
33929 https://bugs.webkit.org/show_bug.cgi?id=38548 |
|
33930 |
|
33931 Test: editing/selection/click-in-focusable-link-should-not-clear-selection.html |
|
33932 |
|
33933 * page/FocusController.cpp: |
|
33934 (WebCore::clearSelectionIfNeeded): |
|
33935 |
|
33936 2010-06-02 David Hyatt <hyatt@apple.com> |
|
33937 |
|
33938 Reviewed by Anders Carlsson. |
|
33939 |
|
33940 Just disable the current version of multi-column layout completely when the new |
|
33941 pagination model is in effect. |
|
33942 |
|
33943 * rendering/RenderBlock.cpp: |
|
33944 (WebCore::RenderBlock::setDesiredColumnCountAndWidth): |
|
33945 |
|
33946 2010-06-02 David Hyatt <hyatt@apple.com> |
|
33947 |
|
33948 Reviewed by Anders Carlsson. |
|
33949 |
|
33950 Turn off unforced page breaking at paint time when the new page breaking model is being used. |
|
33951 |
|
33952 * rendering/RenderLineBoxList.cpp: |
|
33953 (WebCore::RenderLineBoxList::paint): |
|
33954 |
|
33955 2010-06-02 David Hyatt <hyatt@apple.com> |
|
33956 |
|
33957 Reviewed by Anders Carlsson. |
|
33958 |
|
33959 Don't check page break properties at paint time if we're using the new page breaking model. |
|
33960 |
|
33961 * rendering/RenderBlock.cpp: |
|
33962 (WebCore::RenderBlock::paintChildren): |
|
33963 |
|
33964 2010-06-02 Nate Chapin <japhet@chromium.org> |
|
33965 |
|
33966 Reviewed by Dimitri Glazkov. |
|
33967 |
|
33968 [V8] Fix an infinite recursion crash when trying to wrap |
|
33969 media elements without a media player. |
|
33970 |
|
33971 No test because there isn't a good way to ensure the media player |
|
33972 is off. |
|
33973 |
|
33974 * dom/make_names.pl: Call, e.g., V8HTMLElement::wrap(HTMLElement*) |
|
33975 instead of toV8(HTMLElement*). |
|
33976 |
|
33977 2010-06-02 Yael Aharon <yael.aharon@nokia.com> |
|
33978 |
|
33979 Reviewed by Darin Adler. |
|
33980 |
|
33981 Notification object ref counting is not correct. |
|
33982 https://bugs.webkit.org/show_bug.cgi?id=39998 |
|
33983 |
|
33984 Return PassRefPtr<Notification> instead of a raw pointer from the create methods |
|
33985 for Web Notifications. |
|
33986 |
|
33987 No new tests are needed, as existing tests show the problem when sending the |
|
33988 "display" event asynchronously. |
|
33989 |
|
33990 * notifications/Notification.h: |
|
33991 (WebCore::Notification::create): |
|
33992 * notifications/NotificationCenter.h: |
|
33993 (WebCore::NotificationCenter::createHTMLNotification): |
|
33994 (WebCore::NotificationCenter::createNotification): |
|
33995 |
|
33996 2010-06-02 Mikhail Naganov <mnaganov@chromium.org> |
|
33997 |
|
33998 Reviewed by Yury Semikhatsky. |
|
33999 |
|
34000 Web Inspector: add Console API for retrieving memory stats |
|
34001 |
|
34002 Add 'console.memory' property which returns an object. Currently |
|
34003 it has two fields: totalJSHeapSize and usedJSHeapSize. Later, it can be |
|
34004 extended for reporting total browser's memory consumption. |
|
34005 |
|
34006 https://bugs.webkit.org/show_bug.cgi?id=39646 |
|
34007 |
|
34008 * CMakeLists.txt: |
|
34009 * DerivedSources.cpp: |
|
34010 * DerivedSources.make: |
|
34011 * GNUmakefile.am: |
|
34012 * WebCore.gypi: |
|
34013 * WebCore.pri: |
|
34014 * WebCore.pro: |
|
34015 * WebCore.vcproj/WebCore.vcproj: |
|
34016 * WebCore.xcodeproj/project.pbxproj: |
|
34017 * bindings/js/JSBindingsAllInOne.cpp: |
|
34018 * bindings/js/JSConsoleCustom.cpp: |
|
34019 (WebCore::JSConsole::memory): |
|
34020 * bindings/v8/custom/V8ConsoleCustom.cpp: |
|
34021 (WebCore::V8Console::memoryAccessorGetter): |
|
34022 * page/Console.h: |
|
34023 * page/Console.idl: |
|
34024 * page/MemoryInfo.cpp: Added. |
|
34025 (WebCore::MemoryInfo::MemoryInfo): |
|
34026 * page/MemoryInfo.h: Added. |
|
34027 (WebCore::MemoryInfo::create): |
|
34028 (WebCore::MemoryInfo::totalJSHeapSize): |
|
34029 (WebCore::MemoryInfo::usedJSHeapSize): |
|
34030 * page/MemoryInfo.idl: Added. |
|
34031 |
|
34032 2010-06-02 Yury Semikhatsky <yurys@chromium.org> |
|
34033 |
|
34034 Reviewed by Pavel Feldman. |
|
34035 |
|
34036 Web Inspector: support "Continue to Here" in debugger |
|
34037 https://bugs.webkit.org/show_bug.cgi?id=39953 |
|
34038 |
|
34039 * English.lproj/localizedStrings.js: |
|
34040 * inspector/front-end/BreakpointManager.js: |
|
34041 (WebInspector.BreakpointManager.prototype.setOneTimeBreakpoint): |
|
34042 (WebInspector.BreakpointManager.prototype.removeOneTimeBreakpoint): |
|
34043 (WebInspector.BreakpointManager.prototype.addBreakpoint): |
|
34044 * inspector/front-end/ScriptView.js: |
|
34045 (WebInspector.ScriptView): |
|
34046 (WebInspector.ScriptView.prototype._continueToLine): |
|
34047 * inspector/front-end/ScriptsPanel.js: |
|
34048 (WebInspector.ScriptsPanel.prototype.continueToLine): |
|
34049 (WebInspector.ScriptsPanel.prototype.debuggerPaused): |
|
34050 * inspector/front-end/SourceFrame.js: |
|
34051 (WebInspector.SourceFrame): |
|
34052 * inspector/front-end/SourceView.js: |
|
34053 (WebInspector.SourceView): |
|
34054 (WebInspector.SourceView.prototype._continueToLine): |
|
34055 (WebInspector.SourceView.prototype.updateLocalContent): |
|
34056 |
|
34057 2010-06-02 Mikhail Naganov <mnaganov@chromium.org> |
|
34058 |
|
34059 Unreviewed, rolling out r60563. |
|
34060 http://trac.webkit.org/changeset/60563 |
|
34061 https://bugs.webkit.org/show_bug.cgi?id=39646 |
|
34062 |
|
34063 windows build failed |
|
34064 |
|
34065 * CMakeLists.txt: |
|
34066 * DerivedSources.cpp: |
|
34067 * DerivedSources.make: |
|
34068 * GNUmakefile.am: |
|
34069 * WebCore.gypi: |
|
34070 * WebCore.pri: |
|
34071 * WebCore.pro: |
|
34072 * WebCore.vcproj/WebCore.vcproj: |
|
34073 * WebCore.xcodeproj/project.pbxproj: |
|
34074 * bindings/js/JSConsoleCustom.cpp: |
|
34075 * bindings/v8/custom/V8ConsoleCustom.cpp: |
|
34076 * page/Console.h: |
|
34077 * page/Console.idl: |
|
34078 * page/MemoryInfo.cpp: Removed. |
|
34079 * page/MemoryInfo.h: Removed. |
|
34080 * page/MemoryInfo.idl: Removed. |
|
34081 |
|
34082 2010-06-02 Mikhail Naganov <mnaganov@chromium.org> |
|
34083 |
|
34084 Reviewed by Yury Semikhatsky. |
|
34085 |
|
34086 Web Inspector: add Console API for retrieving memory stats |
|
34087 |
|
34088 Add 'console.memory' property which returns an object. Currently |
|
34089 it has two fields: totalJSHeapSize and usedJSHeapSize. Later, it can be |
|
34090 extended for reporting total browser's memory consumption. |
|
34091 |
|
34092 https://bugs.webkit.org/show_bug.cgi?id=39646 |
|
34093 |
|
34094 * CMakeLists.txt: |
|
34095 * DerivedSources.cpp: |
|
34096 * DerivedSources.make: |
|
34097 * GNUmakefile.am: |
|
34098 * WebCore.gypi: |
|
34099 * WebCore.pri: |
|
34100 * WebCore.pro: |
|
34101 * WebCore.vcproj/WebCore.vcproj: |
|
34102 * WebCore.xcodeproj/project.pbxproj: |
|
34103 * bindings/js/JSConsoleCustom.cpp: |
|
34104 (WebCore::JSConsole::memory): |
|
34105 * bindings/v8/custom/V8ConsoleCustom.cpp: |
|
34106 (WebCore::V8Console::memoryAccessorGetter): |
|
34107 * page/Console.h: |
|
34108 * page/Console.idl: |
|
34109 * page/MemoryInfo.cpp: Added. |
|
34110 (WebCore::MemoryInfo::MemoryInfo): |
|
34111 * page/MemoryInfo.h: Added. |
|
34112 (WebCore::MemoryInfo::create): |
|
34113 (WebCore::MemoryInfo::totalJSHeapSize): |
|
34114 (WebCore::MemoryInfo::usedJSHeapSize): |
|
34115 * page/MemoryInfo.idl: Added. |
|
34116 |
|
34117 2010-06-02 Pavel Feldman <pfeldman@chromium.org> |
|
34118 |
|
34119 Reviewed by Yury Semikhatsky. |
|
34120 |
|
34121 Web Inspector: add test for resource parameters. |
|
34122 |
|
34123 https://bugs.webkit.org/show_bug.cgi?id=40026 |
|
34124 |
|
34125 Test: http/tests/inspector/resource-parameters.html |
|
34126 |
|
34127 * inspector/front-end/HAREntry.js: |
|
34128 (WebInspector.HAREntry.prototype._buildParameters): |
|
34129 * inspector/front-end/Resource.js: |
|
34130 (WebInspector.Resource.prototype._parseParameters): |
|
34131 * inspector/front-end/ResourceView.js: |
|
34132 (WebInspector.ResourceView.prototype._refreshParms): |
|
34133 |
|
34134 2010-06-02 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> |
|
34135 |
|
34136 Reviewed by Simon Hausmann. |
|
34137 |
|
34138 [Qt] Fix make install on Symbian for headers in package builds when INSTALL_HEADERS is not defined |
|
34139 |
|
34140 First we wrote inst_headers.output with $$[QT_INSTALL_HEADERS] and then |
|
34141 overwrote it with the $$INSTALL_HEADERS variant without checking if the |
|
34142 variable was set. |
|
34143 |
|
34144 Fixed and cleaned up the logic of falling back to $$[QT_INSTALL_HEADERS]. |
|
34145 |
|
34146 * WebCore.pro: |
|
34147 |
|
34148 2010-06-02 Xan Lopez <xlopez@igalia.com> |
|
34149 |
|
34150 Reviewed by Gustavo Noronha. |
|
34151 |
|
34152 [GTK] Style fixes for the generated code in DOM bindings |
|
34153 https://bugs.webkit.org/show_bug.cgi?id=39949 |
|
34154 |
|
34155 Get rid of extra spaces and wrong indentation in the generated |
|
34156 code. |
|
34157 |
|
34158 * bindings/scripts/CodeGeneratorGObject.pm: |
|
34159 * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp: |
|
34160 (webkit_dom_test_callback_callback_with_class1param): |
|
34161 (webkit_dom_test_callback_callback_with_class2param): |
|
34162 (webkit_dom_test_callback_callback_with_non_bool_return_type): |
|
34163 (webkit_dom_test_callback_set_property): |
|
34164 (webkit_dom_test_callback_get_property): |
|
34165 * bindings/scripts/test/GObject/WebKitDOMTestCallback.h: |
|
34166 * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: |
|
34167 (webkit_dom_test_interface_set_property): |
|
34168 (webkit_dom_test_interface_get_property): |
|
34169 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: |
|
34170 (webkit_dom_test_obj_void_method): |
|
34171 (webkit_dom_test_obj_void_method_with_args): |
|
34172 (webkit_dom_test_obj_int_method): |
|
34173 (webkit_dom_test_obj_int_method_with_args): |
|
34174 (webkit_dom_test_obj_obj_method): |
|
34175 (webkit_dom_test_obj_obj_method_with_args): |
|
34176 (webkit_dom_test_obj_method_that_requires_all_args): |
|
34177 (webkit_dom_test_obj_method_that_requires_all_args_and_throws): |
|
34178 (webkit_dom_test_obj_serialized_value): |
|
34179 (webkit_dom_test_obj_method_with_exception): |
|
34180 (webkit_dom_test_obj_with_dynamic_frame): |
|
34181 (webkit_dom_test_obj_with_dynamic_frame_and_arg): |
|
34182 (webkit_dom_test_obj_with_dynamic_frame_and_optional_arg): |
|
34183 (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture): |
|
34184 (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad): |
|
34185 (webkit_dom_test_obj_with_script_state_void): |
|
34186 (webkit_dom_test_obj_with_script_state_obj): |
|
34187 (webkit_dom_test_obj_with_script_state_void_exception): |
|
34188 (webkit_dom_test_obj_with_script_state_obj_exception): |
|
34189 (webkit_dom_test_obj_method_with_optional_arg): |
|
34190 (webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg): |
|
34191 (webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args): |
|
34192 (webkit_dom_test_obj_get_read_only_int_attr): |
|
34193 (webkit_dom_test_obj_get_read_only_string_attr): |
|
34194 (webkit_dom_test_obj_get_read_only_test_obj_attr): |
|
34195 (webkit_dom_test_obj_get_int_attr): |
|
34196 (webkit_dom_test_obj_set_int_attr): |
|
34197 (webkit_dom_test_obj_get_long_long_attr): |
|
34198 (webkit_dom_test_obj_set_long_long_attr): |
|
34199 (webkit_dom_test_obj_get_unsigned_long_long_attr): |
|
34200 (webkit_dom_test_obj_set_unsigned_long_long_attr): |
|
34201 (webkit_dom_test_obj_get_string_attr): |
|
34202 (webkit_dom_test_obj_set_string_attr): |
|
34203 (webkit_dom_test_obj_get_test_obj_attr): |
|
34204 (webkit_dom_test_obj_set_test_obj_attr): |
|
34205 (webkit_dom_test_obj_get_attr_with_exception): |
|
34206 (webkit_dom_test_obj_set_attr_with_exception): |
|
34207 (webkit_dom_test_obj_get_attr_with_setter_exception): |
|
34208 (webkit_dom_test_obj_set_attr_with_setter_exception): |
|
34209 (webkit_dom_test_obj_get_attr_with_getter_exception): |
|
34210 (webkit_dom_test_obj_set_attr_with_getter_exception): |
|
34211 (webkit_dom_test_obj_get_script_string_attr): |
|
34212 (webkit_dom_test_obj_set_property): |
|
34213 (webkit_dom_test_obj_get_property): |
|
34214 (webkit_dom_test_obj_class_init): |
|
34215 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: |
|
34216 |
|
34217 2010-06-02 Andrey Kosyakov <caseq@chromium.org> |
|
34218 |
|
34219 Reviewed by Pavel Feldman. |
|
34220 |
|
34221 WebInspector: Added conversion of inspector's resource representation into HAR. |
|
34222 Moved common resource accessors from ResourceView to Resource. |
|
34223 https://bugs.webkit.org/show_bug.cgi?id=30567 |
|
34224 |
|
34225 Test: http/tests/inspector/resource-har-conversion.html |
|
34226 |
|
34227 * WebCore.gypi: |
|
34228 * WebCore.vcproj/WebCore.vcproj: |
|
34229 * inspector/front-end/HAREntry.js: Added. |
|
34230 (WebInspector.HAREntry): |
|
34231 (WebInspector.HAREntry.prototype.build): |
|
34232 (WebInspector.HAREntry.prototype._buildRequest): |
|
34233 (WebInspector.HAREntry.prototype._buildResponse): |
|
34234 (WebInspector.HAREntry.prototype._buildContent): |
|
34235 (WebInspector.HAREntry.prototype._buildTimings): |
|
34236 (WebInspector.HAREntry.prototype._buildHeaders): |
|
34237 (WebInspector.HAREntry.prototype._buildPostData): |
|
34238 (WebInspector.HAREntry.prototype._buildParameters): |
|
34239 (WebInspector.HAREntry.prototype._buildParameter): |
|
34240 (WebInspector.HAREntry.prototype._toMilliseconds): |
|
34241 * inspector/front-end/Resource.js: |
|
34242 (WebInspector.Resource): |
|
34243 (WebInspector.Resource.prototype.set url): |
|
34244 (WebInspector.Resource.prototype.get receiveDuration): |
|
34245 (WebInspector.Resource.prototype.requestHeaderValue): |
|
34246 (WebInspector.Resource.prototype.get requestFormData): |
|
34247 (WebInspector.Resource.prototype.set requestFormData): |
|
34248 (WebInspector.Resource.prototype.responseHeaderValue): |
|
34249 (WebInspector.Resource.prototype.get queryParameters): |
|
34250 (WebInspector.Resource.prototype.get formParameters): |
|
34251 (WebInspector.Resource.prototype._parseParameters): |
|
34252 (WebInspector.Resource.prototype._headerValue): |
|
34253 * inspector/front-end/ResourceView.js: |
|
34254 (WebInspector.ResourceView.prototype._refreshQueryString): |
|
34255 (WebInspector.ResourceView.prototype._refreshFormData): |
|
34256 (WebInspector.ResourceView.prototype._refreshParms): |
|
34257 * inspector/front-end/WebKit.qrc: |
|
34258 * inspector/front-end/inspector.html: |
|
34259 |
|
34260 2010-06-02 Sheriff Bot <webkit.review.bot@gmail.com> |
|
34261 |
|
34262 Unreviewed, rolling out r60547. |
|
34263 http://trac.webkit.org/changeset/60547 |
|
34264 https://bugs.webkit.org/show_bug.cgi?id=40051 |
|
34265 |
|
34266 It made fast/overflow/overflow-with-local-background- |
|
34267 attachment.html crash (Requested by Ossy on #webkit). |
|
34268 |
|
34269 * notifications/Notification.h: |
|
34270 (WebCore::Notification::create): |
|
34271 * notifications/NotificationCenter.h: |
|
34272 (WebCore::NotificationCenter::createHTMLNotification): |
|
34273 (WebCore::NotificationCenter::createNotification): |
|
34274 |
|
34275 2010-06-02 Eric Seidel <eric@webkit.org> |
|
34276 |
|
34277 Reviewed by Adam Barth. |
|
34278 |
|
34279 HTML5 parser does not track line numbers |
|
34280 https://bugs.webkit.org/show_bug.cgi?id=39984 |
|
34281 |
|
34282 This adds rudimentary line-number tracking to the HTML5Lexer. |
|
34283 We'll still need to handle \r\n cases eventually, but this |
|
34284 fixes the vast majority of our line-number related failures. |
|
34285 |
|
34286 Fixes 268 layout tests. :) |
|
34287 |
|
34288 * html/HTML5Lexer.cpp: |
|
34289 (WebCore::HTML5Lexer::reset): |
|
34290 - Reset m_lineNumber to 0. |
|
34291 (WebCore::HTML5Lexer::consumeEntity): |
|
34292 - Pass m_lineNumber to advance(). |
|
34293 (WebCore::HTML5Lexer::nextToken): |
|
34294 - Pass m_lineNumber to advance(). |
|
34295 * html/HTML5Lexer.h: |
|
34296 (WebCore::HTML5Lexer::lineNumber): |
|
34297 - Expose m_lineNumber for HTML5Tokenizer. |
|
34298 (WebCore::HTML5Lexer::columnNumber): |
|
34299 - Mirrors the implementation in the old HTMLTokenizer. |
|
34300 we might some day support column number tracking in |
|
34301 the Lexer. It certainly would be possible. |
|
34302 * html/HTML5ScriptRunner.cpp: |
|
34303 (WebCore::HTML5ScriptRunner::HTML5ScriptRunner): |
|
34304 - ASSERT we're passed a host. |
|
34305 (WebCore::HTML5ScriptRunner::sourceFromPendingScript): |
|
34306 - Use PendingScript.startingLineNumber when PendingScript is an inline script. |
|
34307 (WebCore::HTML5ScriptRunner::execute): |
|
34308 - Now expects a start line number passed from the TreeBuilder. |
|
34309 (WebCore::HTML5ScriptRunner::runScript): |
|
34310 - Now expects a start line number. |
|
34311 * html/HTML5ScriptRunner.h: |
|
34312 (WebCore::HTML5ScriptRunner::PendingScript::PendingScript): |
|
34313 - Track startingLineNumber for any inline script. |
|
34314 * html/HTML5Tokenizer.cpp: |
|
34315 (WebCore::HTML5Tokenizer::begin): |
|
34316 - Add a FIXME. The old HTMLTokenizer resets its "lexer" state here. |
|
34317 (WebCore::HTML5Tokenizer::pumpLexer): |
|
34318 - Pass scriptStartLine to the HTML5ScriptRunner |
|
34319 (WebCore::HTML5Tokenizer::lineNumber): |
|
34320 - Implementation for Tokenizer.h |
|
34321 (WebCore::HTML5Tokenizer::columnNumber): |
|
34322 - Implementation for Tokenizer.h |
|
34323 * html/HTML5Tokenizer.h: |
|
34324 * html/HTML5TreeBuilder.cpp: |
|
34325 (WebCore::HTML5TreeBuilder::HTML5TreeBuilder): |
|
34326 - Initialize the new line number tracking variables. |
|
34327 (WebCore::HTML5TreeBuilder::handleScriptEndTag): |
|
34328 - Save off the line number from the start tag to pass to the ScriptRunner. |
|
34329 (WebCore::HTML5TreeBuilder::takeScriptToProcess): |
|
34330 - Return the line number from the start tag. |
|
34331 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
34332 - Save off the line number of ever script start tag we see. |
|
34333 * html/HTML5TreeBuilder.h: |
|
34334 - Keep both the line number of the last start tag, and the |
|
34335 line number of the script we know we're expecting our caller to |
|
34336 run before resuming parsing. These are separate to keep the code |
|
34337 clean, especially since the last script start tag line number is |
|
34338 a hack specific to using the old HTMLParser. |
|
34339 |
|
34340 2010-06-02 Joseph Pecoraro <joepeck@webkit.org> |
|
34341 |
|
34342 Reviewed by Pavel Feldman. |
|
34343 |
|
34344 Web Inspector: Timeline should nicely format the Timer timeout |
|
34345 https://bugs.webkit.org/show_bug.cgi?id=40040 |
|
34346 |
|
34347 * inspector/front-end/TimelinePanel.js: |
|
34348 (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent): Format the Timer's timeout time. |
|
34349 |
|
34350 2010-06-02 Vangelis Kokkevis <vangelis@chromium.org> |
|
34351 |
|
34352 Reviewed by Dimitri Glazkov. |
|
34353 |
|
34354 [Chromium] Clamp dirtyRect updates of composited layer contents to the size |
|
34355 of the layer to avoid writing outside texture bounds. |
|
34356 https://bugs.webkit.org/show_bug.cgi?id=40030 |
|
34357 |
|
34358 * platform/graphics/chromium/LayerChromium.cpp: |
|
34359 (WebCore::LayerChromium::updateTextureContents): |
|
34360 |
|
34361 2010-06-02 Yael Aharon <yael.aharon@nokia.com> |
|
34362 |
|
34363 Reviewed by Darin Adler. |
|
34364 |
|
34365 Notification object ref counting is not correct. |
|
34366 https://bugs.webkit.org/show_bug.cgi?id=39998 |
|
34367 |
|
34368 Return PassRefPtr<Notification> instead of a raw pointer from the create methods |
|
34369 for Web Notifications. |
|
34370 |
|
34371 No new tests are needed, as existing tests show the problem when sending the |
|
34372 "display" event asynchronously. |
|
34373 |
|
34374 * notifications/Notification.h: |
|
34375 (WebCore::Notification::create): |
|
34376 * notifications/NotificationCenter.h: |
|
34377 (WebCore::NotificationCenter::createHTMLNotification): |
|
34378 (WebCore::NotificationCenter::createNotification): |
|
34379 |
|
34380 2010-06-02 Qi Zhang <qi.2.zhang@nokia.com> |
|
34381 |
|
34382 Reviewed by Dirk Schulze. |
|
34383 |
|
34384 [Qt] Image shadow doesn't work |
|
34385 https://bugs.webkit.org/show_bug.cgi?id=37804 |
|
34386 |
|
34387 Implement the code for image shadow |
|
34388 |
|
34389 * platform/graphics/qt/ImageQt.cpp: |
|
34390 (WebCore::BitmapImage::draw): |
|
34391 |
|
34392 2010-06-02 Vangelis Kokkevis <vangelis@chromium.org> |
|
34393 |
|
34394 Reviewed by Darin Fisher. |
|
34395 |
|
34396 Adding the precision qualifier to fragment shaders used by the GL |
|
34397 compositor in chromium to turn them into valid GLSL ES. |
|
34398 https://bugs.webkit.org/show_bug.cgi?id=40022 |
|
34399 |
|
34400 * platform/graphics/chromium/LayerRendererChromium.cpp: |
|
34401 (WebCore::LayerRendererChromium::initializeSharedGLObjects): |
|
34402 |
|
34403 2010-06-02 Laszlo Gombos <laszlo.1.gombos@nokia.com> |
|
34404 |
|
34405 Reviewed by David Levin. |
|
34406 |
|
34407 Fix type qualifier is meaningless on cast type in SVGFEColorMatrixElement::build |
|
34408 https://bugs.webkit.org/show_bug.cgi?id=40015 |
|
34409 |
|
34410 No new tests as there is no new functionality. |
|
34411 |
|
34412 Remove const from the cast type. |
|
34413 |
|
34414 * svg/SVGFEColorMatrixElement.cpp: |
|
34415 (WebCore::SVGFEColorMatrixElement::build): |
|
34416 |
|
34417 2010-06-02 Sterling Swigart <sswigart@google.com> |
|
34418 |
|
34419 Reviewed by David Levin. |
|
34420 |
|
34421 Image Resizer Patch 0: Added compilation argument to conditionally compile pending patches. |
|
34422 https://bugs.webkit.org/show_bug.cgi?id=39906 |
|
34423 |
|
34424 * Configurations/FeatureDefines.xcconfig: |
|
34425 * GNUmakefile.am: |
|
34426 * WebCore.pri: |
|
34427 |
|
34428 2010-06-01 Dirk Schulze <krit@webkit.org> |
|
34429 |
|
34430 Reviewed by Nikolas Zimmermann. |
|
34431 |
|
34432 SVG repaintRect should be empty if content got clipped away |
|
34433 https://bugs.webkit.org/show_bug.cgi?id=39965 |
|
34434 |
|
34435 The SVG repaintRect of the renderer was not empty, if the content got clipped away. |
|
34436 The MaskerData/ClipperData <-> RenderObject mapping is set up during the layout phase now, to be able to |
|
34437 relayout a RenderObject, if it's repaintRect is empty. This has the following reason: |
|
34438 We apply the object to the resource on painting at the moment. |
|
34439 With an empty repaintRect, paint() quits earlier and therefore the object doesn't get applied to the resource. |
|
34440 This can cause problems, if the resource get changed by animations or scripts. |
|
34441 On a change, the resource tells all it's callers to relayout. |
|
34442 If the reference to the caller (our RenderObject) is missing, the object won't ever update |
|
34443 and therefore won't get drawn. |
|
34444 We already have LayoutTests that cover this problem. The complete repaintRect calculation |
|
34445 (including the smallest clipping area and shadow size calculation) moved from the renderers to SVGRenderSupport. |
|
34446 This eliminates redundant code. |
|
34447 |
|
34448 * rendering/RenderPath.cpp: |
|
34449 (WebCore::RenderPath::updateCachedBoundaries): |
|
34450 * rendering/RenderSVGContainer.cpp: |
|
34451 (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates): |
|
34452 * rendering/RenderSVGImage.cpp: |
|
34453 (WebCore::RenderSVGImage::repaintRectInLocalCoordinates): |
|
34454 * rendering/RenderSVGResource.h: |
|
34455 * rendering/RenderSVGResourceClipper.cpp: |
|
34456 (WebCore::RenderSVGResourceClipper::resourceBoundingBox): |
|
34457 * rendering/RenderSVGResourceClipper.h: |
|
34458 * rendering/RenderSVGResourceFilter.cpp: |
|
34459 (WebCore::RenderSVGResourceFilter::resourceBoundingBox): |
|
34460 * rendering/RenderSVGResourceFilter.h: |
|
34461 * rendering/RenderSVGResourceGradient.h: |
|
34462 (WebCore::RenderSVGResourceGradient::resourceBoundingBox): |
|
34463 * rendering/RenderSVGResourceMarker.h: |
|
34464 (WebCore::RenderSVGResourceMarker::resourceBoundingBox): |
|
34465 * rendering/RenderSVGResourceMasker.cpp: |
|
34466 (WebCore::RenderSVGResourceMasker::resourceBoundingBox): |
|
34467 * rendering/RenderSVGResourceMasker.h: |
|
34468 * rendering/RenderSVGResourcePattern.h: |
|
34469 (WebCore::RenderSVGResourcePattern::resourceBoundingBox): |
|
34470 * rendering/RenderSVGResourceSolidColor.h: |
|
34471 (WebCore::RenderSVGResourceSolidColor::resourceBoundingBox): |
|
34472 * rendering/RenderSVGText.cpp: |
|
34473 (WebCore::RenderSVGText::strokeBoundingBox): |
|
34474 (WebCore::RenderSVGText::repaintRectInLocalCoordinates): |
|
34475 * rendering/SVGRenderSupport.cpp: |
|
34476 (WebCore::SVGRenderBase::intersectRepaintRectWithResources): |
|
34477 * rendering/SVGRenderSupport.h: |
|
34478 * rendering/SVGRenderTreeAsText.cpp: |
|
34479 (WebCore::writeResources): |
|
34480 * rendering/style/SVGRenderStyle.h: |
|
34481 (WebCore::SVGRenderStyle::hasClipper): |
|
34482 (WebCore::SVGRenderStyle::hasMasker): |
|
34483 (WebCore::SVGRenderStyle::hasFilter): |
|
34484 |
|
34485 2010-06-01 Sheriff Bot <webkit.review.bot@gmail.com> |
|
34486 |
|
34487 Unreviewed, rolling out r60539. |
|
34488 http://trac.webkit.org/changeset/60539 |
|
34489 https://bugs.webkit.org/show_bug.cgi?id=40043 |
|
34490 |
|
34491 Accidentally added an unreviewed and invalid change to the |
|
34492 patch. (Requested by krit on #webkit). |
|
34493 |
|
34494 * rendering/RenderPath.cpp: |
|
34495 (WebCore::RenderPath::updateCachedBoundaries): |
|
34496 * rendering/RenderSVGContainer.cpp: |
|
34497 (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates): |
|
34498 * rendering/RenderSVGImage.cpp: |
|
34499 (WebCore::RenderSVGImage::repaintRectInLocalCoordinates): |
|
34500 * rendering/RenderSVGResource.h: |
|
34501 * rendering/RenderSVGResourceClipper.cpp: |
|
34502 (WebCore::RenderSVGResourceClipper::resourceBoundingBox): |
|
34503 * rendering/RenderSVGResourceClipper.h: |
|
34504 * rendering/RenderSVGResourceFilter.cpp: |
|
34505 (WebCore::RenderSVGResourceFilter::resourceBoundingBox): |
|
34506 * rendering/RenderSVGResourceFilter.h: |
|
34507 * rendering/RenderSVGResourceGradient.h: |
|
34508 (WebCore::RenderSVGResourceGradient::resourceBoundingBox): |
|
34509 * rendering/RenderSVGResourceMarker.h: |
|
34510 (WebCore::RenderSVGResourceMarker::resourceBoundingBox): |
|
34511 * rendering/RenderSVGResourceMasker.cpp: |
|
34512 (WebCore::RenderSVGResourceMasker::resourceBoundingBox): |
|
34513 * rendering/RenderSVGResourceMasker.h: |
|
34514 * rendering/RenderSVGResourcePattern.h: |
|
34515 (WebCore::RenderSVGResourcePattern::resourceBoundingBox): |
|
34516 * rendering/RenderSVGResourceSolidColor.h: |
|
34517 (WebCore::RenderSVGResourceSolidColor::resourceBoundingBox): |
|
34518 * rendering/RenderSVGText.cpp: |
|
34519 (WebCore::RenderSVGText::strokeBoundingBox): |
|
34520 (WebCore::RenderSVGText::repaintRectInLocalCoordinates): |
|
34521 * rendering/SVGRenderSupport.cpp: |
|
34522 (WebCore::SVGRenderBase::filterBoundingBoxForRenderer): |
|
34523 (WebCore::SVGRenderBase::clipperBoundingBoxForRenderer): |
|
34524 (WebCore::SVGRenderBase::maskerBoundingBoxForRenderer): |
|
34525 * rendering/SVGRenderSupport.h: |
|
34526 * rendering/SVGRenderTreeAsText.cpp: |
|
34527 (WebCore::writeResources): |
|
34528 * rendering/style/SVGRenderStyle.h: |
|
34529 * svg/SVGColor.cpp: |
|
34530 (WebCore::SVGColor::colorFromRGBColorString): |
|
34531 |
|
34532 2010-06-01 Dirk Schulze <krit@webkit.org> |
|
34533 |
|
34534 Reviewed by Nikolas Zimmermann. |
|
34535 |
|
34536 SVG repaintRect should be empty if content got clipped away |
|
34537 https://bugs.webkit.org/show_bug.cgi?id=39965 |
|
34538 |
|
34539 The SVG repaintRect of the renderer was not empty, if the content got clipped away. |
|
34540 The MaskerData/ClipperData <-> RenderObject mapping is set up during the layout phase now, to be able to |
|
34541 relayout a RenderObject, if it's repaintRect is empty. This has the following reason: |
|
34542 We apply the object to the resource on painting at the moment. |
|
34543 With an empty repaintRect, paint() quits earlier and therefore the object doesn't get applied to the resource. |
|
34544 This can cause problems, if the resource get changed by animations or scripts. |
|
34545 On a change, the resource tells all it's callers to relayout. |
|
34546 If the reference to the caller (our RenderObject) is missing, the object won't ever update |
|
34547 and therefore won't get drawn. |
|
34548 We already have LayoutTests that cover this problem. The complete repaintRect calculation |
|
34549 (including the smallest clipping area and shadow size calculation) moved from the renderers to SVGRenderSupport. |
|
34550 This eliminates redundant code. |
|
34551 |
|
34552 * rendering/RenderPath.cpp: |
|
34553 (WebCore::RenderPath::updateCachedBoundaries): |
|
34554 * rendering/RenderSVGContainer.cpp: |
|
34555 (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates): |
|
34556 * rendering/RenderSVGImage.cpp: |
|
34557 (WebCore::RenderSVGImage::repaintRectInLocalCoordinates): |
|
34558 * rendering/RenderSVGResource.h: |
|
34559 * rendering/RenderSVGResourceClipper.cpp: |
|
34560 (WebCore::RenderSVGResourceClipper::resourceBoundingBox): |
|
34561 * rendering/RenderSVGResourceClipper.h: |
|
34562 * rendering/RenderSVGResourceFilter.cpp: |
|
34563 (WebCore::RenderSVGResourceFilter::resourceBoundingBox): |
|
34564 * rendering/RenderSVGResourceFilter.h: |
|
34565 * rendering/RenderSVGResourceGradient.h: |
|
34566 (WebCore::RenderSVGResourceGradient::resourceBoundingBox): |
|
34567 * rendering/RenderSVGResourceMarker.h: |
|
34568 (WebCore::RenderSVGResourceMarker::resourceBoundingBox): |
|
34569 * rendering/RenderSVGResourceMasker.cpp: |
|
34570 (WebCore::RenderSVGResourceMasker::resourceBoundingBox): |
|
34571 * rendering/RenderSVGResourceMasker.h: |
|
34572 * rendering/RenderSVGResourcePattern.h: |
|
34573 (WebCore::RenderSVGResourcePattern::resourceBoundingBox): |
|
34574 * rendering/RenderSVGResourceSolidColor.h: |
|
34575 (WebCore::RenderSVGResourceSolidColor::resourceBoundingBox): |
|
34576 * rendering/RenderSVGText.cpp: |
|
34577 (WebCore::RenderSVGText::strokeBoundingBox): |
|
34578 (WebCore::RenderSVGText::repaintRectInLocalCoordinates): |
|
34579 * rendering/SVGRenderSupport.cpp: |
|
34580 (WebCore::SVGRenderBase::intersectRepaintRectWithResources): |
|
34581 * rendering/SVGRenderSupport.h: |
|
34582 * rendering/SVGRenderTreeAsText.cpp: |
|
34583 (WebCore::writeResources): |
|
34584 * rendering/style/SVGRenderStyle.h: |
|
34585 (WebCore::SVGRenderStyle::hasClipper): |
|
34586 (WebCore::SVGRenderStyle::hasMasker): |
|
34587 (WebCore::SVGRenderStyle::hasFilter): |
|
34588 |
|
34589 2010-06-01 Sheriff Bot <webkit.review.bot@gmail.com> |
|
34590 |
|
34591 Unreviewed, rolling out r60530. |
|
34592 http://trac.webkit.org/changeset/60530 |
|
34593 https://bugs.webkit.org/show_bug.cgi?id=40041 |
|
34594 |
|
34595 resource-har-conversion failed on GTK (Requested by abarth on |
|
34596 #webkit). |
|
34597 |
|
34598 * WebCore.gypi: |
|
34599 * WebCore.vcproj/WebCore.vcproj: |
|
34600 * inspector/front-end/HAREntry.js: Removed. |
|
34601 * inspector/front-end/Resource.js: |
|
34602 (WebInspector.Resource): |
|
34603 (WebInspector.Resource.prototype.set url): |
|
34604 * inspector/front-end/ResourceView.js: |
|
34605 (WebInspector.ResourceView.prototype._refreshQueryString): |
|
34606 (WebInspector.ResourceView.prototype._refreshFormData): |
|
34607 (WebInspector.ResourceView.prototype._refreshParms): |
|
34608 * inspector/front-end/WebKit.qrc: |
|
34609 * inspector/front-end/inspector.html: |
|
34610 |
|
34611 2010-06-01 No'am Rosenthal <noam.rosenthal@nokia.com> |
|
34612 |
|
34613 Reviewed by Kenneth Rohde Christiansen. |
|
34614 |
|
34615 [Qt] GraphicsLayer: warnings when reloading page |
|
34616 https://bugs.webkit.org/show_bug.cgi?id=39694 |
|
34617 |
|
34618 Made sure recaching and masks aren't attempted on zero-size layers. |
|
34619 |
|
34620 No new tests. Old tests (e.g. LayoutTests/compositing/masks) show the problem. |
|
34621 |
|
34622 * platform/graphics/qt/GraphicsLayerQt.cpp: |
|
34623 (WebCore::MaskEffectQt::draw): |
|
34624 (WebCore::GraphicsLayerQtImpl::recache): |
|
34625 |
|
34626 2010-06-01 anton muhin <antonm@google.com> |
|
34627 |
|
34628 Reviewed by Nate Chapin. |
|
34629 |
|
34630 [Chromium] enforce presence of named property query callback if named property enumerator is present |
|
34631 https://bugs.webkit.org/show_bug.cgi?id=40006 |
|
34632 We need to be able to distinguish between enumerable and not enumerable properties |
|
34633 in the presence of named interceptor. V8 is migrating to use query |
|
34634 callback to report enumerable properties and fallback check--- |
|
34635 using getter callback---would report properties as not enumerable. |
|
34636 Thus if there is an enumerator callback, there should be query callback as well. |
|
34637 (see V8's r4751). |
|
34638 |
|
34639 * bindings/scripts/CodeGeneratorV8.pm: |
|
34640 * bindings/v8/V8NPObject.cpp: |
|
34641 (WebCore::npObjectQueryProperty): |
|
34642 (WebCore::createV8ObjectForNPObject): |
|
34643 * bindings/v8/custom/V8StorageCustom.cpp: |
|
34644 (WebCore::V8Storage::namedPropertyQuery): |
|
34645 |
|
34646 2010-06-01 Andrey Kosyakov <caseq@chromium.org> |
|
34647 |
|
34648 Reviewed by Pavel Feldman. |
|
34649 |
|
34650 WebInspector: Added conversion of inspector's resource representation into HAR. |
|
34651 Moved common resource accessors from ResourceView to Resource. |
|
34652 https://bugs.webkit.org/show_bug.cgi?id=30567 |
|
34653 |
|
34654 Test: http/tests/inspector/resource-har-conversion.html |
|
34655 |
|
34656 * WebCore.gypi: |
|
34657 * WebCore.vcproj/WebCore.vcproj: |
|
34658 * inspector/front-end/HAREntry.js: Added. |
|
34659 (WebInspector.HAREntry): |
|
34660 (WebInspector.HAREntry.prototype.build): |
|
34661 (WebInspector.HAREntry.prototype._buildRequest): |
|
34662 (WebInspector.HAREntry.prototype._buildResponse): |
|
34663 (WebInspector.HAREntry.prototype._buildContent): |
|
34664 (WebInspector.HAREntry.prototype._buildTimings): |
|
34665 (WebInspector.HAREntry.prototype._buildHeaders): |
|
34666 (WebInspector.HAREntry.prototype._buildPostData): |
|
34667 (WebInspector.HAREntry.prototype._buildParameters): |
|
34668 (WebInspector.HAREntry.prototype._buildParameter): |
|
34669 (WebInspector.HAREntry.prototype._toMilliseconds): |
|
34670 * inspector/front-end/Resource.js: |
|
34671 (WebInspector.Resource): |
|
34672 (WebInspector.Resource.prototype.set url): |
|
34673 (WebInspector.Resource.prototype.get receiveDuration): |
|
34674 (WebInspector.Resource.prototype.requestHeaderValue): |
|
34675 (WebInspector.Resource.prototype.get requestFormData): |
|
34676 (WebInspector.Resource.prototype.set requestFormData): |
|
34677 (WebInspector.Resource.prototype.responseHeaderValue): |
|
34678 (WebInspector.Resource.prototype.get queryParameters): |
|
34679 (WebInspector.Resource.prototype.get formParameters): |
|
34680 (WebInspector.Resource.prototype._parseParameters): |
|
34681 (WebInspector.Resource.prototype._headerValue): |
|
34682 * inspector/front-end/ResourceView.js: |
|
34683 (WebInspector.ResourceView.prototype._refreshQueryString): |
|
34684 (WebInspector.ResourceView.prototype._refreshFormData): |
|
34685 (WebInspector.ResourceView.prototype._refreshParms): |
|
34686 * inspector/front-end/WebKit.qrc: |
|
34687 * inspector/front-end/inspector.html: |
|
34688 |
|
34689 2010-06-01 Laszlo Gombos <laszlo.1.gombos@nokia.com> |
|
34690 |
|
34691 Reviewed by Kenneth Rohde Christiansen. |
|
34692 |
|
34693 Fix "variable may be used before being set" warning in TextResourceDecoder::checkForHeadCharset |
|
34694 https://bugs.webkit.org/show_bug.cgi?id=40001 |
|
34695 |
|
34696 No new tests as there is no new functionality. |
|
34697 |
|
34698 Initialize len to 0 just to eliminate the compiler warning. |
|
34699 |
|
34700 * loader/TextResourceDecoder.cpp: |
|
34701 (WebCore::TextResourceDecoder::checkForHeadCharset): |
|
34702 |
|
34703 2010-06-01 Ilya Tikhonovsky <loislo@chromium.org> |
|
34704 |
|
34705 Reviewed by Pavel Feldman. |
|
34706 |
|
34707 WebInspector: Safari specific files InspectorFrontendClientLocal were removed from chromium project. |
|
34708 https://bugs.webkit.org/show_bug.cgi?id=39993 |
|
34709 |
|
34710 * WebCore.gypi: |
|
34711 |
|
34712 2010-06-01 Andreas Kling <andreas.kling@nokia.com> |
|
34713 |
|
34714 Reviewed by Darin Adler. |
|
34715 |
|
34716 Fix broken code generation in GenerateParametersCheckExpression. |
|
34717 https://bugs.webkit.org/show_bug.cgi?id=39960 |
|
34718 |
|
34719 * bindings/scripts/CodeGeneratorJS.pm: |
|
34720 * bindings/scripts/test/JS/JSTestObj.cpp: Updated baseline. |
|
34721 |
|
34722 2010-06-01 Mark Rowe <mrowe@apple.com> |
|
34723 |
|
34724 Rubber-stamped by Adam Roben. |
|
34725 |
|
34726 Remove Breakpoint.js. It was emptied in r60450 but for some reason it was not |
|
34727 deleted at that time. The presence of empty files within the inspector's resource |
|
34728 folder causes Mac OS X production builds to fail. |
|
34729 |
|
34730 * inspector/front-end/Breakpoint.js: Removed. |
|
34731 |
|
34732 2010-05-24 James Hawkins <jhawkins@chromium.org> |
|
34733 |
|
34734 Reviewed by Darin Fisher. |
|
34735 |
|
34736 Added ability for PopupMenuClient to signal when |
|
34737 * selection changed, and |
|
34738 * selection cleared. |
|
34739 |
|
34740 https://bugs.webkit.org/show_bug.cgi?id=39639 |
|
34741 |
|
34742 No new tests because this functionality is intentionally hidden from |
|
34743 everything other than renderer. |
|
34744 |
|
34745 * platform/PopupMenuClient.h: |
|
34746 * platform/chromium/PopupMenuChromium.cpp: |
|
34747 (WebCore::PopupListBox::selectIndex): |
|
34748 (WebCore::PopupListBox::clearSelection): |
|
34749 * rendering/RenderMenuList.h: |
|
34750 (WebCore::RenderMenuList::RenderMenuList::selectionChanged): |
|
34751 (WebCore::RenderMenuList::RenderMenuList::selectionCleared): |
|
34752 * rendering/RenderTextControlSingleLine.h: |
|
34753 (WebCore::RenderTextControlSingleLine::selectionChanged): |
|
34754 (WebCore::RenderTextControlSingleLine::selectionCleared): |
|
34755 |
|
34756 2010-06-01 Dumitru Daniliuc <dumi@chromium.org> |
|
34757 |
|
34758 Reviewed by Dimitri Glazkov. |
|
34759 |
|
34760 Check if a database needs to be auto-vacuumed only after transactions that have deleted something. |
|
34761 https://bugs.webkit.org/show_bug.cgi?id=39688 |
|
34762 |
|
34763 * storage/Database.cpp: |
|
34764 (WebCore::Database::resetDeletes): |
|
34765 (WebCore::Database::hadDeletes): |
|
34766 * storage/Database.h: |
|
34767 * storage/DatabaseAuthorizer.cpp: |
|
34768 (WebCore::DatabaseAuthorizer::resetDeletes): |
|
34769 (WebCore::DatabaseAuthorizer::dropTable): |
|
34770 (WebCore::DatabaseAuthorizer::dropTempTable): |
|
34771 (WebCore::DatabaseAuthorizer::dropIndex): |
|
34772 (WebCore::DatabaseAuthorizer::dropTempIndex): |
|
34773 (WebCore::DatabaseAuthorizer::dropTrigger): |
|
34774 (WebCore::DatabaseAuthorizer::dropTempTrigger): |
|
34775 (WebCore::DatabaseAuthorizer::dropView): |
|
34776 (WebCore::DatabaseAuthorizer::dropTempView): |
|
34777 (WebCore::DatabaseAuthorizer::dropVTable): |
|
34778 (WebCore::DatabaseAuthorizer::allowDelete): |
|
34779 (WebCore::DatabaseAuthorizer::updateDeletesBasedOnTableName): Added. |
|
34780 * storage/DatabaseAuthorizer.h: |
|
34781 (WebCore::DatabaseAuthorizer::hadDeletes): |
|
34782 * storage/SQLTransaction.cpp: |
|
34783 (WebCore::SQLTransaction::openTransactionAndPreflight): |
|
34784 (WebCore::SQLTransaction::postflightAndCommit): |
|
34785 |
|
34786 2010-06-01 David Hyatt <hyatt@apple.com> |
|
34787 |
|
34788 Reviewed by Anders Carlsson. |
|
34789 |
|
34790 Add a preference for paginating during layout (the new model for computing page breaks). |
|
34791 |
|
34792 * page/Settings.cpp: |
|
34793 (WebCore::Settings::Settings): |
|
34794 * page/Settings.h: |
|
34795 (WebCore::Settings::setPaginateDuringLayoutEnabled): |
|
34796 (WebCore::Settings::paginateDuringLayoutEnabled): |
|
34797 |
|
34798 2010-06-01 Dumitru Daniliuc <dumi@chromium.org> |
|
34799 |
|
34800 Reviewed by Adam Barth. |
|
34801 |
|
34802 Clean up the DB classes in preparation for a bigger refactoring. |
|
34803 https://bugs.webkit.org/show_bug.cgi?id=39041 |
|
34804 |
|
34805 * storage/ChangeVersionWrapper.cpp: |
|
34806 * storage/ChangeVersionWrapper.h: |
|
34807 * storage/Database.cpp: |
|
34808 (WebCore::Database::Database): |
|
34809 (WebCore::Database::lastActionChangedDatabase): |
|
34810 (WebCore::Database::lastActionWasInsert): |
|
34811 (WebCore::Database::inProgressTransactionCompleted): |
|
34812 (WebCore::Database::securityOrigin): |
|
34813 * storage/Database.h: |
|
34814 (WebCore::Database::sqliteDatabase): |
|
34815 (WebCore::Database::databaseDebugName): |
|
34816 * storage/DatabaseTask.cpp: |
|
34817 (WebCore::DatabaseTransactionTask::doPerformTask): |
|
34818 * storage/DatabaseTask.h: |
|
34819 * storage/SQLStatement.cpp: |
|
34820 (WebCore::SQLStatement::execute): |
|
34821 * storage/SQLStatement.h: |
|
34822 * storage/SQLTransaction.cpp: |
|
34823 (WebCore::SQLTransaction::SQLTransaction): |
|
34824 (WebCore::SQLTransaction::openTransactionAndPreflight): |
|
34825 (WebCore::SQLTransaction::runStatements): |
|
34826 (WebCore::SQLTransaction::runCurrentStatement): |
|
34827 (WebCore::SQLTransaction::postflightAndCommit): |
|
34828 (WebCore::SQLTransaction::cleanupAfterSuccessCallback): |
|
34829 (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): |
|
34830 * storage/SQLTransaction.h: |
|
34831 |
|
34832 2010-06-01 Rob Buis <rwlbuis@gmail.com> |
|
34833 |
|
34834 Reviewed by Nikolas Zimmermann. |
|
34835 |
|
34836 Large SVG rect with shadow fails to render |
|
34837 https://bugs.webkit.org/show_bug.cgi?id=38851 |
|
34838 |
|
34839 Store intermediate shadow calculation in floats to prevent integer overflow. |
|
34840 |
|
34841 Test: svg/filters/shadow-on-rect-large.svg |
|
34842 |
|
34843 * rendering/style/SVGRenderStyle.cpp: |
|
34844 (WebCore::getSVGShadowExtent): |
|
34845 (WebCore::SVGRenderStyle::inflateForShadow): |
|
34846 |
|
34847 2010-06-01 Jer Noble <jer.noble@apple.com> |
|
34848 |
|
34849 Reviewed by Sam Weinig. |
|
34850 |
|
34851 QuickTime 7.6.4 + Safari Nightly = Crash |
|
34852 https://bugs.webkit.org/show_bug.cgi?id=40019 |
|
34853 rdar://problem/8035443 |
|
34854 |
|
34855 Check the return value of QTCFPropertyListCreateXMLData before calling CFDataGetLength(). |
|
34856 |
|
34857 * platform/graphics/win/QTCFDictionary.cpp: |
|
34858 (QTCFDictionaryCreateCopyWithDataCallback): |
|
34859 |
|
34860 2010-06-01 Rob Buis <rwlbuis@gmail.com> |
|
34861 |
|
34862 Reviewed by Dirk Schulze. |
|
34863 |
|
34864 Manipulating SVG element attributes in Javascript does not work as expected |
|
34865 https://bugs.webkit.org/show_bug.cgi?id=34328 |
|
34866 |
|
34867 Reset the viewBox to be empty when removing the viewBox attribute. |
|
34868 |
|
34869 Test: svg/custom/svg-viewBox-dynamic.html |
|
34870 |
|
34871 * svg/SVGFitToViewBox.cpp: |
|
34872 (WebCore::SVGFitToViewBox::parseViewBox): |
|
34873 (WebCore::SVGFitToViewBox::parseMappedAttribute): |
|
34874 * svg/SVGFitToViewBox.h: |
|
34875 * svg/SVGViewSpec.cpp: |
|
34876 (WebCore::SVGViewSpec::setViewBoxString): |
|
34877 (WebCore::SVGViewSpec::parseViewSpec): |
|
34878 |
|
34879 2010-06-01 Chris Fleizach <cfleizach@apple.com> |
|
34880 |
|
34881 Reviewed by Beth Dakin. |
|
34882 |
|
34883 AX: WebKit doesn't call [super -accessibilityAttributeValue:attribute forParameter:] when it encounters a parameterized attribute that it doesn't handle. |
|
34884 https://bugs.webkit.org/show_bug.cgi?id=39324 |
|
34885 |
|
34886 There are some parameters that super handles that are not explicitly returned by the list of the element's attributes. |
|
34887 In those cases, super should handle. |
|
34888 |
|
34889 * accessibility/mac/AccessibilityObjectWrapper.mm: |
|
34890 (-[AccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]): |
|
34891 |
|
34892 2010-05-28 David Hyatt <hyatt@apple.com> |
|
34893 |
|
34894 Reviewed by Beth Dakin. |
|
34895 |
|
34896 https://bugs.webkit.org/show_bug.cgi?id=15550, complete implementation of column-span. Add support for nested column |
|
34897 spans. When a column span is nested inside multiple enclosing blocks, the blocks have to be split around the column-span. |
|
34898 We do this using block element continuations, the same kind of solution we employed for blocks inside inlines. |
|
34899 |
|
34900 The code for block continuations is very similar to the code for inline continuations. It may be possible to refactor the |
|
34901 code into RenderBoxModelObject so that more of it can be shared, but this first pass avoids that so as not to risk |
|
34902 causing any regressions in core rendering. |
|
34903 |
|
34904 Note also that - just as with inline continuations - you can't unsplit block continuations yet. There is no technical limitation |
|
34905 here... the functions just need to be written to handle it. |
|
34906 |
|
34907 Added new tests in fast/multicol/span. |
|
34908 |
|
34909 * rendering/RenderBlock.cpp: |
|
34910 (WebCore::RenderBlock::styleDidChange): |
|
34911 (WebCore::RenderBlock::continuationBefore): |
|
34912 (WebCore::RenderBlock::addChildToContinuation): |
|
34913 (WebCore::RenderBlock::containingColumnsBlock): |
|
34914 (WebCore::RenderBlock::clone): |
|
34915 (WebCore::RenderBlock::splitBlocks): |
|
34916 (WebCore::RenderBlock::splitFlow): |
|
34917 (WebCore::RenderBlock::splitAnonymousBlocksAroundChild): |
|
34918 (WebCore::RenderBlock::makeChildrenAnonymousColumnBlocks): |
|
34919 (WebCore::RenderBlock::columnsBlockForSpanningElement): |
|
34920 (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks): |
|
34921 (WebCore::RenderBlock::addChild): |
|
34922 (WebCore::RenderBlock::addChildIgnoringContinuation): |
|
34923 (WebCore::RenderBlock::blockElementContinuation): |
|
34924 (WebCore::RenderBlock::layoutColumns): |
|
34925 * rendering/RenderBlock.h: |
|
34926 |
|
34927 2010-06-01 Alexey Proskuryakov <ap@apple.com> |
|
34928 |
|
34929 Build fix. |
|
34930 |
|
34931 Hopefully, touching WebCore.base.exp will actually rebuild the export file. |
|
34932 |
|
34933 * WebCore.Geolocation.exp: |
|
34934 * WebCore.base.exp: |
|
34935 |
|
34936 2010-06-01 Dumitru Daniliuc <dumi@chromium.org> |
|
34937 |
|
34938 Reviewed by Adam Barth. |
|
34939 |
|
34940 Execute void callbacks in the context they were created in. |
|
34941 https://bugs.webkit.org/show_bug.cgi?id=39145 |
|
34942 |
|
34943 * bindings/v8/custom/V8CustomVoidCallback.cpp: |
|
34944 (WebCore::V8CustomVoidCallback::V8CustomVoidCallback): |
|
34945 (WebCore::V8CustomVoidCallback::handleEvent): |
|
34946 * bindings/v8/custom/V8CustomVoidCallback.h: |
|
34947 |
|
34948 2010-06-01 Alexey Proskuryakov <ap@apple.com> |
|
34949 |
|
34950 Reviewed by Sam Weinig. |
|
34951 |
|
34952 https://bugs.webkit.org/show_bug.cgi?id=39434 |
|
34953 REGRESSION (r59811): Geolocation callbacks cannot be created |
|
34954 |
|
34955 * DerivedSources.make: Don't append both WebCore.Geolocation.exp and WebCore.ClientBasedGeolocation.exp, |
|
34956 they are mutually exclusive. |
|
34957 |
|
34958 * WebCore.Geolocation.exp: Touched to force .exp file rebuild. |
|
34959 |
|
34960 * WebCore.xcodeproj/project.pbxproj: Removed GeolocationService related files. |
|
34961 |
|
34962 * bindings/js/JSGeolocationCustom.cpp: |
|
34963 (WebCore::createPositionCallback): Functions defined in JavaScript code no longer inherit |
|
34964 from InternalFunction, they inherit from JSFunction. This check is still imperfect, because |
|
34965 it's not clear what definition of "function" should really be used, if any - other bindings |
|
34966 code never checks callback type. |
|
34967 (WebCore::createPositionErrorCallback): Ditto. |
|
34968 |
|
34969 * page/Geolocation.h: Don't include GeolocationService.h unless it's going to be used. |
|
34970 |
|
34971 2010-06-01 Jeremy Orlow <jorlow@chromium.org> |
|
34972 |
|
34973 Reviewed by Darin Fisher. |
|
34974 |
|
34975 IndexedDB cleanup |
|
34976 https://bugs.webkit.org/show_bug.cgi?id=40007 |
|
34977 |
|
34978 Remove the exception code parameter since this function can no longer |
|
34979 cause an exception. |
|
34980 |
|
34981 * storage/IDBObjectStoreRequest.idl: |
|
34982 * storage/IndexedDatabase.h: |
|
34983 * storage/IndexedDatabaseImpl.cpp: |
|
34984 (WebCore::IndexedDatabaseImpl::open): |
|
34985 * storage/IndexedDatabaseImpl.h: |
|
34986 * storage/IndexedDatabaseRequest.cpp: |
|
34987 (WebCore::IndexedDatabaseRequest::open): |
|
34988 * storage/IndexedDatabaseRequest.h: |
|
34989 * storage/IndexedDatabaseRequest.idl: |
|
34990 |
|
34991 2010-06-01 Martin Robinson <mrobinson@igalia.com> |
|
34992 |
|
34993 Reviewed by Xan Lopez. |
|
34994 |
|
34995 [GTK] Double clicks cause three button press events |
|
34996 https://bugs.webkit.org/show_bug.cgi?id=38853 |
|
34997 |
|
34998 Add GOwnPtr wrapper for GdkEvent and expose a setter for |
|
34999 PlatformMouseEvent::m_clickCount. |
|
35000 |
|
35001 * GNUmakefile.am: Add GOwnPtrGtk.{cpp,h} to the sources list. |
|
35002 * platform/PlatformMouseEvent.h: |
|
35003 (WebCore::PlatformMouseEvent::setClickCount): Added. |
|
35004 * platform/gtk/GOwnPtrGtk.cpp: Added. |
|
35005 (WTF::GdkEvent): |
|
35006 * platform/gtk/GOwnPtrGtk.h: Added. |
|
35007 |
|
35008 2010-06-01 Adam Langley <agl@chromium.org> |
|
35009 |
|
35010 Reviewed by Eric Seidel. |
|
35011 |
|
35012 [chromium] respect the user's embedded bitmap settings on Linux. |
|
35013 |
|
35014 We plumbed everything through Skia and Chrome, but forgot to connect |
|
35015 the two wires inside WebCore. |
|
35016 |
|
35017 (Note: no layout test because test_shell forces this option off. Also, |
|
35018 the test font which triggers this behaviour is 32MB.) |
|
35019 |
|
35020 https://bugs.webkit.org/show_bug.cgi?id=39894 |
|
35021 http://code.google.com/p/chromium/issues/detail?id=21149 |
|
35022 |
|
35023 * platform/graphics/chromium/FontPlatformDataLinux.cpp: |
|
35024 (WebCore::FontPlatformData::setupPaint): |
|
35025 |
|
35026 2010-06-01 Simon Hausmann <simon.hausmann@nokia.com> |
|
35027 |
|
35028 Reviewed by Laszlo Gombos. |
|
35029 |
|
35030 [Qt] Fix installation of the QtWebKit module .pri file when building inside of Qt |
|
35031 |
|
35032 * WebCore.pro: |
|
35033 |
|
35034 2010-06-01 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> |
|
35035 |
|
35036 Reviewed by Simon Hausmann. |
|
35037 |
|
35038 [Qt] Fix a QtWebKit.pc corruption problem. |
|
35039 https://bugs.webkit.org/show_bug.cgi?id=36826 |
|
35040 |
|
35041 The problem occurs while installing QtWebKit from trunk |
|
35042 or a source package. |
|
35043 |
|
35044 * WebCore.pro: |
|
35045 |
|
35046 2010-06-01 Simon Hausmann <simon.hausmann@nokia.com> |
|
35047 |
|
35048 Reviewed by Laszlo Gombos. |
|
35049 |
|
35050 [Qt] Fix Symbian package dependencies of apps against QtWebKit when installing into Qt |
|
35051 |
|
35052 Install the versioning qt_webkit_version.pri into $$[QMAKE_MKSPECS]/modules, which is |
|
35053 where mkspecs/features/qt.prf expects it. |
|
35054 |
|
35055 * WebCore.pro: |
|
35056 |
|
35057 2010-06-01 Sheriff Bot <webkit.review.bot@gmail.com> |
|
35058 |
|
35059 Unreviewed, rolling out r60470. |
|
35060 http://trac.webkit.org/changeset/60470 |
|
35061 https://bugs.webkit.org/show_bug.cgi?id=39990 |
|
35062 |
|
35063 Need to rollout until bot can be updated (Requested by jorlow |
|
35064 on #webkit). |
|
35065 |
|
35066 * bindings/scripts/CodeGeneratorV8.pm: |
|
35067 * bindings/v8/ScriptController.cpp: |
|
35068 (WebCore::ScriptController::namedItemAdded): |
|
35069 (WebCore::ScriptController::namedItemRemoved): |
|
35070 * bindings/v8/V8DOMWindowShell.cpp: |
|
35071 (WebCore::V8DOMWindowShell::updateDocumentWrapperCache): |
|
35072 * bindings/v8/V8DOMWindowShell.h: |
|
35073 * bindings/v8/V8DOMWrapper.cpp: |
|
35074 (WebCore::V8DOMWrapper::instantiateV8Object): |
|
35075 * bindings/v8/custom/V8HTMLDocumentCustom.cpp: |
|
35076 (WebCore::V8HTMLDocument::namedPropertyDeleter): |
|
35077 (WebCore::V8HTMLDocument::namedPropertyGetter): |
|
35078 (WebCore::V8HTMLDocument::indexedPropertyGetter): |
|
35079 (WebCore::V8HTMLDocument::allAccessorSetter): |
|
35080 (WebCore::toV8): |
|
35081 |
|
35082 2010-06-01 Anton Muhin <antonm@chromium.org> |
|
35083 |
|
35084 Reviewed by Nate Chapin. |
|
35085 |
|
35086 [Chromium] get rid of named interceptor on HTMLDocument and introduce/remove accessors when named items get deleted/removed |
|
35087 https://bugs.webkit.org/show_bug.cgi?id=39877 |
|
35088 |
|
35089 This patch makes callbacks invoked on named items addition/removal |
|
35090 install API accessors and thus there is no more need in |
|
35091 named and indexed interceptors on HTMLDocument which |
|
35092 speeds up invocation of methods on document. |
|
35093 |
|
35094 * bindings/scripts/CodeGeneratorV8.pm: |
|
35095 * bindings/v8/ScriptController.cpp: |
|
35096 (WebCore::ScriptController::namedItemAdded): |
|
35097 (WebCore::ScriptController::namedItemRemoved): |
|
35098 * bindings/v8/V8DOMWindowShell.cpp: |
|
35099 (WebCore::checkDocumentWrapper): |
|
35100 (WebCore::V8DOMWindowShell::updateDocumentWrapperCache): |
|
35101 (WebCore::getter): |
|
35102 (WebCore::V8DOMWindowShell::namedItemAdded): |
|
35103 (WebCore::V8DOMWindowShell::namedItemRemoved): |
|
35104 * bindings/v8/V8DOMWindowShell.h: |
|
35105 * bindings/v8/V8DOMWrapper.cpp: |
|
35106 (WebCore::V8DOMWrapper::instantiateV8Object): |
|
35107 * bindings/v8/custom/V8HTMLDocumentCustom.cpp: |
|
35108 (WebCore::V8HTMLDocument::WrapInShadowObject): |
|
35109 (WebCore::V8HTMLDocument::GetNamedProperty): |
|
35110 (WebCore::V8HTMLDocument::allAccessorSetter): |
|
35111 (WebCore::toV8): |
|
35112 |
|
35113 2010-06-01 Zoltan Herczeg <zherczeg@webkit.org> |
|
35114 |
|
35115 Reviewed by Dirk Schulze. |
|
35116 |
|
35117 Make the spot light anti-alias effect look similar to SVG expected values. |
|
35118 https://bugs.webkit.org/show_bug.cgi?id=39477 |
|
35119 |
|
35120 The W3 standard only mention, that the edge of the spotlight should be |
|
35121 anti-aliased but it does not specify how. The provided expected values |
|
35122 gives some hint about their intentions. The algorithm uses a fixed |
|
35123 range, which computed as follows: let a = cos(spot light cutoff range) |
|
35124 the light fades off in the [a-0.016, a] range. |
|
35125 |
|
35126 Test: svg/W3C-SVG-1.1/filters-light-04-f.svg |
|
35127 Updated pixel test: svg/W3C-SVG-1.1/filters-light-01-f.svg |
|
35128 |
|
35129 * svg/graphics/filters/SVGLightSource.cpp: |
|
35130 (WebCore::SpotLightSource::initPaintingData): |
|
35131 |
|
35132 2010-05-31 Adam Barth <abarth@webkit.org> |
|
35133 |
|
35134 Reviewed by Eric Seidel. |
|
35135 |
|
35136 Fix default action for EndTagOpenState |
|
35137 https://bugs.webkit.org/show_bug.cgi?id=39982 |
|
35138 |
|
35139 Add a test for a bogus end tag to webkit01.dat and update expected |
|
35140 results now that we pass some more tests. |
|
35141 |
|
35142 Adding this test revealed a bug in resuming the bogus comment state. |
|
35143 I've left these broken expectations, but I'll fix the bug in a future |
|
35144 patch. (The bug existed prior to this patch, just not the test.) |
|
35145 |
|
35146 * html5lib/resources/webkit01.dat: |
|
35147 * html5lib/runner-expected-html5.txt: |
|
35148 * html5lib/webkit-resumer-expected-html5.txt: |
|
35149 |
|
35150 2010-05-31 Lyon Chen <liachen@rim.com> |
|
35151 |
|
35152 Reviewed by Kent Tamura. |
|
35153 |
|
35154 Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts. |
|
35155 https://bugs.webkit.org/show_bug.cgi?id=35530 |
|
35156 |
|
35157 Change enum EAlteration from { MOVE, EXTEND } to { AlterationMove, AlterationExtend } and enum EDirection { FORWARD, BACKWARD, RIGHT, LEFT} to { DirectionForward, DirectionBackward, DirectionRight, DirectionLeft } to avoid macro conflict, and also better coding style conformance. |
|
35158 |
|
35159 * accessibility/AccessibilityRenderObject.cpp: |
|
35160 (WebCore::AccessibilityRenderObject::visiblePositionRangeForLine): |
|
35161 (WebCore::AccessibilityRenderObject::doAXRangeForLine): |
|
35162 * editing/Editor.cpp: |
|
35163 (WebCore::Editor::deleteWithDirection): |
|
35164 (WebCore::Editor::markMisspellingsAfterTypingToPosition): |
|
35165 (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): |
|
35166 * editing/EditorCommand.cpp: |
|
35167 (WebCore::executeDeleteBackward): |
|
35168 (WebCore::executeDeleteBackwardByDecomposingPreviousCharacter): |
|
35169 (WebCore::executeDeleteForward): |
|
35170 (WebCore::executeDeleteToBeginningOfLine): |
|
35171 (WebCore::executeDeleteToBeginningOfParagraph): |
|
35172 (WebCore::executeDeleteToEndOfLine): |
|
35173 (WebCore::executeDeleteToEndOfParagraph): |
|
35174 (WebCore::executeDeleteWordBackward): |
|
35175 (WebCore::executeDeleteWordForward): |
|
35176 (WebCore::executeForwardDelete): |
|
35177 (WebCore::executeMoveBackward): |
|
35178 (WebCore::executeMoveBackwardAndModifySelection): |
|
35179 (WebCore::executeMoveDown): |
|
35180 (WebCore::executeMoveDownAndModifySelection): |
|
35181 (WebCore::executeMoveForward): |
|
35182 (WebCore::executeMoveForwardAndModifySelection): |
|
35183 (WebCore::executeMoveLeft): |
|
35184 (WebCore::executeMoveLeftAndModifySelection): |
|
35185 (WebCore::executeMovePageDown): |
|
35186 (WebCore::executeMovePageDownAndModifySelection): |
|
35187 (WebCore::executeMovePageUp): |
|
35188 (WebCore::executeMovePageUpAndModifySelection): |
|
35189 (WebCore::executeMoveRight): |
|
35190 (WebCore::executeMoveRightAndModifySelection): |
|
35191 (WebCore::executeMoveToBeginningOfDocument): |
|
35192 (WebCore::executeMoveToBeginningOfDocumentAndModifySelection): |
|
35193 (WebCore::executeMoveToBeginningOfLine): |
|
35194 (WebCore::executeMoveToBeginningOfLineAndModifySelection): |
|
35195 (WebCore::executeMoveToBeginningOfParagraph): |
|
35196 (WebCore::executeMoveToBeginningOfParagraphAndModifySelection): |
|
35197 (WebCore::executeMoveToBeginningOfSentence): |
|
35198 (WebCore::executeMoveToBeginningOfSentenceAndModifySelection): |
|
35199 (WebCore::executeMoveToEndOfDocument): |
|
35200 (WebCore::executeMoveToEndOfDocumentAndModifySelection): |
|
35201 (WebCore::executeMoveToEndOfSentence): |
|
35202 (WebCore::executeMoveToEndOfSentenceAndModifySelection): |
|
35203 (WebCore::executeMoveToEndOfLine): |
|
35204 (WebCore::executeMoveToEndOfLineAndModifySelection): |
|
35205 (WebCore::executeMoveToEndOfParagraph): |
|
35206 (WebCore::executeMoveToEndOfParagraphAndModifySelection): |
|
35207 (WebCore::executeMoveParagraphBackwardAndModifySelection): |
|
35208 (WebCore::executeMoveParagraphForwardAndModifySelection): |
|
35209 (WebCore::executeMoveUp): |
|
35210 (WebCore::executeMoveUpAndModifySelection): |
|
35211 (WebCore::executeMoveWordBackward): |
|
35212 (WebCore::executeMoveWordBackwardAndModifySelection): |
|
35213 (WebCore::executeMoveWordForward): |
|
35214 (WebCore::executeMoveWordForwardAndModifySelection): |
|
35215 (WebCore::executeMoveWordLeft): |
|
35216 (WebCore::executeMoveWordLeftAndModifySelection): |
|
35217 (WebCore::executeMoveWordRight): |
|
35218 (WebCore::executeMoveWordRightAndModifySelection): |
|
35219 (WebCore::executeMoveToLeftEndOfLine): |
|
35220 (WebCore::executeMoveToLeftEndOfLineAndModifySelection): |
|
35221 (WebCore::executeMoveToRightEndOfLine): |
|
35222 (WebCore::executeMoveToRightEndOfLineAndModifySelection): |
|
35223 * editing/SelectionController.cpp: |
|
35224 (WebCore::SelectionController::willBeModified): |
|
35225 (WebCore::SelectionController::modify): |
|
35226 * editing/SelectionController.h: |
|
35227 (WebCore::SelectionController::): |
|
35228 * editing/TypingCommand.cpp: |
|
35229 (WebCore::TypingCommand::deleteKeyPressed): |
|
35230 (WebCore::TypingCommand::forwardDeleteKeyPressed): |
|
35231 * page/DOMSelection.cpp: |
|
35232 (WebCore::DOMSelection::modify): |
|
35233 (WebCore::DOMSelection::deleteFromDocument): |
|
35234 * page/EventHandler.cpp: |
|
35235 (WebCore::EventHandler::handleKeyboardSelectionMovement): |
|
35236 |
|
35237 2010-05-31 Eric Seidel <eric@webkit.org> |
|
35238 |
|
35239 Reviewed by Adam Barth. |
|
35240 |
|
35241 REGRESSION(60409): window.onload never fires when using HTML5 parser |
|
35242 https://bugs.webkit.org/show_bug.cgi?id=39981 |
|
35243 |
|
35244 * html/HTML5Tokenizer.cpp: |
|
35245 (WebCore::HTML5Tokenizer::finish): |
|
35246 - The logic was just wrong here. We should only be setting |
|
35247 m_wasWaitingOnScriptsDuringFinish if isWaitingForScripts() |
|
35248 is true, and we should be calling end() when it is not. |
|
35249 (WebCore::HTML5Tokenizer::resumeParsingAfterScriptExecution): |
|
35250 - Add another ASSERT to catch cases like this. |
|
35251 * html/HTML5TreeBuilder.cpp: |
|
35252 (WebCore::HTML5TreeBuilder::finished): |
|
35253 - Add a comment about why we don't need to call m_document->finishedParsing() |
|
35254 |
|
35255 2010-05-31 Tony Chang <tony@chromium.org> |
|
35256 |
|
35257 Reviewed by Dan Bernstein. |
|
35258 |
|
35259 REGRESSION (r58665): Infinite recursion in Position::getInlineBoxAndOffset() |
|
35260 https://bugs.webkit.org/show_bug.cgi?id=39946 |
|
35261 |
|
35262 r58665 added an infinite recursion check, but didn't take into consideration recursion between two |
|
35263 Positions. This adds a check for when |
|
35264 downstreamIgnoringEditingBoundaries(p1) == p2 and upstreamIgnoringEditingBoundaries(p2) == p1 |
|
35265 |
|
35266 Test: editing/selection/mixed-editability-12.html |
|
35267 |
|
35268 * dom/Position.cpp: |
|
35269 (WebCore::Position::getInlineBoxAndOffset): |
|
35270 |
|
35271 2010-05-31 Leo Yang <leo.yang@torchmobile.com.cn> |
|
35272 |
|
35273 Reviewed by George Staikos. |
|
35274 |
|
35275 Fix canvas.toDataURL(type, quality, ...) to let it support quality parameter. |
|
35276 And implement it in Qt port. |
|
35277 https://bugs.webkit.org/show_bug.cgi?id=37304 |
|
35278 |
|
35279 Tests: platform/qt/fast/canvas/toDataURL-jpeg-alpha.html |
|
35280 platform/qt/fast/canvas/toDataURL-jpeg-primarycolors.html |
|
35281 platform/qt/fast/canvas/toDataURL-jpeg-quality-basic.html |
|
35282 platform/qt/fast/canvas/toDataURL-jpeg-quality-notnumber.html |
|
35283 platform/qt/fast/canvas/toDataURL-jpeg-quality-outsiderange.html |
|
35284 |
|
35285 * bindings/js/JSHTMLCanvasElementCustom.cpp: |
|
35286 (WebCore::JSHTMLCanvasElement::toDataURL): |
|
35287 * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp: |
|
35288 (WebCore::V8HTMLCanvasElement::toDataURLCallback): |
|
35289 * dom/CanvasSurface.cpp: |
|
35290 (WebCore::CanvasSurface::toDataURL): |
|
35291 * dom/CanvasSurface.h: |
|
35292 (WebCore::CanvasSurface::toDataURL): |
|
35293 * html/HTMLCanvasElement.idl: |
|
35294 * platform/graphics/ImageBuffer.h: |
|
35295 * platform/graphics/cairo/ImageBufferCairo.cpp: |
|
35296 (WebCore::ImageBuffer::toDataURL): |
|
35297 * platform/graphics/cg/ImageBufferCG.cpp: |
|
35298 (WebCore::ImageBuffer::toDataURL): |
|
35299 * platform/graphics/haiku/ImageBufferHaiku.cpp: |
|
35300 (WebCore::ImageBuffer::toDataURL): |
|
35301 * platform/graphics/qt/ImageBufferQt.cpp: |
|
35302 (WebCore::ImageBuffer::toDataURL): |
|
35303 * platform/graphics/skia/ImageBufferSkia.cpp: |
|
35304 (WebCore::ImageBuffer::toDataURL): |
|
35305 * platform/graphics/wince/ImageBufferWince.cpp: |
|
35306 (WebCore::ImageBuffer::toDataURL): |
|
35307 * platform/graphics/wx/ImageBufferWx.cpp: |
|
35308 (WebCore::ImageBuffer::toDataURL): |
|
35309 |
|
35310 2010-05-31 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
35311 |
|
35312 Reviewed by Kenneth Rohde Christiansen. |
|
35313 |
|
35314 [EFL] Add Context Menu implementation |
|
35315 https://bugs.webkit.org/show_bug.cgi?id=39821 |
|
35316 |
|
35317 * platform/ContextMenu.h: add port-specific attributes. |
|
35318 * platform/ContextMenuItem.h: create PlatformMenuItemDescription as in |
|
35319 other ports |
|
35320 (WebCore::PlatformMenuItemDescription::PlatformMenuItemDescription): |
|
35321 * platform/efl/ContextMenuEfl.cpp:implement needed methods for this |
|
35322 port. |
|
35323 (WebCore::ContextMenu::ContextMenu): |
|
35324 (WebCore::ContextMenu::~ContextMenu): |
|
35325 (WebCore::ContextMenu::appendItem): |
|
35326 (WebCore::ContextMenu::setPlatformDescription): |
|
35327 (WebCore::ContextMenu::releasePlatformDescription): |
|
35328 * platform/efl/ContextMenuItemEfl.cpp: implement needed methods for |
|
35329 this port. |
|
35330 (WebCore::ContextMenuItem::ContextMenuItem): |
|
35331 (WebCore::ContextMenuItem::~ContextMenuItem): |
|
35332 (WebCore::ContextMenuItem::releasePlatformDescription): |
|
35333 (WebCore::ContextMenuItem::type): |
|
35334 (WebCore::ContextMenuItem::setType): |
|
35335 (WebCore::ContextMenuItem::action): |
|
35336 (WebCore::ContextMenuItem::setAction): |
|
35337 (WebCore::ContextMenuItem::title): |
|
35338 (WebCore::ContextMenuItem::setTitle): |
|
35339 (WebCore::ContextMenuItem::platformSubMenu): |
|
35340 (WebCore::ContextMenuItem::setSubMenu): |
|
35341 (WebCore::ContextMenuItem::checked): |
|
35342 (WebCore::ContextMenuItem::setChecked): |
|
35343 (WebCore::ContextMenuItem::enabled): |
|
35344 (WebCore::ContextMenuItem::setEnabled): |
|
35345 |
|
35346 2010-05-31 Ilya Tikhonovsky <loislo@chromium.org> |
|
35347 |
|
35348 Reviewed by Pavel Feldman. |
|
35349 |
|
35350 WebInspector: Classes for native serialization to JSON were implemented. |
|
35351 https://bugs.webkit.org/show_bug.cgi?id=34204 |
|
35352 |
|
35353 * GNUmakefile.am: |
|
35354 * WebCore.Inspector.exp: |
|
35355 * WebCore.gypi: |
|
35356 * WebCore.pro: |
|
35357 * WebCore.vcproj/WebCore.vcproj: |
|
35358 * WebCore.xcodeproj/project.pbxproj: |
|
35359 * inspector/InspectorValues.cpp: Added. |
|
35360 (WebCore::escapeChar): |
|
35361 (WebCore::doubleQuoteString): |
|
35362 (WebCore::InspectorBaseValue::toJSONString): |
|
35363 (WebCore::InspectorBaseValue::writeJSON): |
|
35364 (WebCore::InspectorValue::writeJSON): |
|
35365 (WebCore::InspectorString::writeJSON): |
|
35366 (WebCore::InspectorObject::writeJSON): |
|
35367 (WebCore::InspectorArray::writeJSON): |
|
35368 * inspector/InspectorValues.h: Added. |
|
35369 (WebCore::InspectorBaseValue::InspectorBaseValue): |
|
35370 (WebCore::InspectorBaseValue::~InspectorBaseValue): |
|
35371 (WebCore::InspectorBaseValue::null): |
|
35372 (WebCore::InspectorBaseValue::): |
|
35373 (WebCore::InspectorBaseValue::type): |
|
35374 (WebCore::InspectorValue::create): |
|
35375 (WebCore::InspectorValue::InspectorValue): |
|
35376 (WebCore::InspectorValue::): |
|
35377 (WebCore::InspectorString::create): |
|
35378 (WebCore::InspectorString::InspectorString): |
|
35379 (WebCore::InspectorObject::create): |
|
35380 (WebCore::InspectorObject::~InspectorObject): |
|
35381 (WebCore::InspectorObject::InspectorObject): |
|
35382 (WebCore::InspectorArray::create): |
|
35383 (WebCore::InspectorArray::~InspectorArray): |
|
35384 (WebCore::InspectorArray::length): |
|
35385 (WebCore::InspectorArray::InspectorArray): |
|
35386 (WebCore::InspectorObject::setBool): |
|
35387 (WebCore::InspectorObject::setNumber): |
|
35388 (WebCore::InspectorObject::setString): |
|
35389 (WebCore::InspectorObject::set): |
|
35390 (WebCore::InspectorArray::pushBool): |
|
35391 (WebCore::InspectorArray::pushNumber): |
|
35392 (WebCore::InspectorArray::pushString): |
|
35393 (WebCore::InspectorArray::push): |
|
35394 |
|
35395 2010-05-31 Olivier Goffart <olivier.goffart@nokia.com> |
|
35396 |
|
35397 Reviewed by Oliver Hunt. |
|
35398 |
|
35399 [PATCH] compilation error with clang in JSDOMBinding.h |
|
35400 https://bugs.webkit.org/show_bug.cgi?id=39945 |
|
35401 |
|
35402 JSNode is only forward declared at this point. And since neither |
|
35403 "wrapper" nor JSValue are type-dependent. Compilers should report errors |
|
35404 at the first compilation pass. |
|
35405 |
|
35406 The fix is to move the conversion the line above, as the call to the |
|
35407 function getCachedDOMNodeWrapper is type-dependent, the conversion will |
|
35408 happen at template-instantiation time. |
|
35409 |
|
35410 See also http://llvm.org/bugs/show_bug.cgi?id=7244 |
|
35411 |
|
35412 * bindings/js/JSDOMBinding.h: |
|
35413 (WebCore::getDOMNodeWrapper): |
|
35414 |
|
35415 2010-05-31 Pavel Podivilov <podivilov@chromium.org> |
|
35416 |
|
35417 Reviewed by Pavel Feldman. |
|
35418 |
|
35419 Web Inspector: Moved breakpoints add/remove logic to the BreakpointManager. |
|
35420 |
|
35421 https://bugs.webkit.org/show_bug.cgi?id=14190 |
|
35422 |
|
35423 * WebCore.gypi: |
|
35424 * WebCore.vcproj/WebCore.vcproj: |
|
35425 * inspector/front-end/Breakpoint.js: |
|
35426 * inspector/front-end/BreakpointManager.js: Added. |
|
35427 (WebInspector.BreakpointManager): |
|
35428 (WebInspector.BreakpointManager.prototype.addBreakpoint): |
|
35429 (WebInspector.BreakpointManager.prototype.removeBreakpoint): |
|
35430 (WebInspector.BreakpointManager.prototype.breakpointsForSourceID): |
|
35431 (WebInspector.BreakpointManager.prototype.breakpointsForURL): |
|
35432 (WebInspector.BreakpointManager.prototype.reset): |
|
35433 (WebInspector.BreakpointManager.prototype._saveBreakpointOnBackend): |
|
35434 (WebInspector.BreakpointManager.prototype._removeBreakpointFromBackend): |
|
35435 (WebInspector.Breakpoint): |
|
35436 (WebInspector.Breakpoint.prototype.get enabled): |
|
35437 (WebInspector.Breakpoint.prototype.set enabled): |
|
35438 (WebInspector.Breakpoint.prototype.get sourceText): |
|
35439 (WebInspector.Breakpoint.prototype.set sourceText): |
|
35440 (WebInspector.Breakpoint.prototype.get label): |
|
35441 (WebInspector.Breakpoint.prototype.get id): |
|
35442 (WebInspector.Breakpoint.prototype.get condition): |
|
35443 (WebInspector.Breakpoint.prototype.set condition): |
|
35444 * inspector/front-end/BreakpointsSidebarPane.js: |
|
35445 (WebInspector.BreakpointsSidebarPane): |
|
35446 (WebInspector.BreakpointsSidebarPane.prototype.reset): |
|
35447 (WebInspector.BreakpointsSidebarPane.prototype._breakpointAdded): |
|
35448 (WebInspector.BreakpointsSidebarPane.prototype._breakpointRemoved): |
|
35449 (WebInspector.BreakpointsSidebarPane.prototype._breakpointEnableChanged): |
|
35450 * inspector/front-end/Object.js: |
|
35451 (WebInspector.Object.prototype.dispatchEventToListeners): |
|
35452 * inspector/front-end/ScriptView.js: |
|
35453 (WebInspector.ScriptView.prototype._addBreakpoint): |
|
35454 * inspector/front-end/ScriptsPanel.js: |
|
35455 (WebInspector.ScriptsPanel): |
|
35456 (WebInspector.ScriptsPanel.prototype._breakpointAdded): |
|
35457 (WebInspector.ScriptsPanel.prototype._breakpointRemoved): |
|
35458 (WebInspector.ScriptsPanel.prototype.editScriptSource.mycallback): |
|
35459 (WebInspector.ScriptsPanel.prototype.editScriptSource): |
|
35460 (WebInspector.ScriptsPanel.prototype._showScriptOrResource): |
|
35461 * inspector/front-end/SourceFrame.js: |
|
35462 (WebInspector.SourceFrame.prototype._contextMenu): |
|
35463 * inspector/front-end/SourceView.js: |
|
35464 (WebInspector.SourceView.prototype._addBreakpoint): |
|
35465 (WebInspector.SourceView.prototype._removeBreakpoint): |
|
35466 * inspector/front-end/WebKit.qrc: |
|
35467 * inspector/front-end/inspector.html: |
|
35468 * inspector/front-end/inspector.js: |
|
35469 (WebInspector.loaded): |
|
35470 (WebInspector.restoredBreakpoint): |
|
35471 (WebInspector.reset): |
|
35472 |
|
35473 2010-05-31 Alexander Pavlov <apavlov@chromium.org> |
|
35474 |
|
35475 Unreviewed, build fix. |
|
35476 |
|
35477 Add references to inspector/front-end/TabbedPane.js wherever applicable. |
|
35478 |
|
35479 * WebCore.gypi: |
|
35480 * WebCore.vcproj/WebCore.vcproj: |
|
35481 * inspector/front-end/WebKit.qrc: |
|
35482 |
|
35483 2010-05-31 Alexander Pavlov <apavlov@chromium.org> |
|
35484 |
|
35485 Unreviewed, add a file not added in r60445. |
|
35486 |
|
35487 * inspector/front-end/TabbedPane.js: Added |
|
35488 |
|
35489 2010-05-31 Martin Robinson <mrobinson@igalia.com> |
|
35490 |
|
35491 Reviewed by Gustavo Noronha Silva. |
|
35492 |
|
35493 [GTK] Text copied from a WebView cannot be pasted into gnome-terminal |
|
35494 https://bugs.webkit.org/show_bug.cgi?id=39827 |
|
35495 |
|
35496 Switch all methods in Pasteboard to use the PasteboardHelper + DataObjectGtk |
|
35497 approach used in other parts of WebKit GTK+. |
|
35498 |
|
35499 * platform/gtk/PasteboardGtk.cpp: |
|
35500 (WebCore::Pasteboard::writeSelection): Switch to using PasteboardHelper. |
|
35501 (WebCore::Pasteboard::writePlainText): Ditto. |
|
35502 (WebCore::Pasteboard::writeURL): Ditto. |
|
35503 (WebCore::Pasteboard::writeImage): Ditto. |
|
35504 (WebCore::Pasteboard::clear): Small cleanup. |
|
35505 (WebCore::Pasteboard::documentFragment): Switch to using PasteboardHelper. |
|
35506 (WebCore::Pasteboard::plainText): Ditto. |
|
35507 |
|
35508 2010-05-31 Darin Adler <darin@apple.com> |
|
35509 |
|
35510 Updated bindings test results for change in JavaScript host calling convention change |
|
35511 from 2 days ago. |
|
35512 |
|
35513 * bindings/scripts/test/JS/JSTestObj.cpp: Regenerated and inspected to see that the new |
|
35514 result is correct. |
|
35515 * bindings/scripts/test/JS/JSTestObj.h: Ditto. |
|
35516 |
|
35517 2010-05-31 Alexander Pavlov <apavlov@chromium.org> |
|
35518 |
|
35519 Reviewed by Pavel Feldman. |
|
35520 |
|
35521 Web Inspector: Implement additional tabs support in ResourceView |
|
35522 https://bugs.webkit.org/show_bug.cgi?id=39822 |
|
35523 |
|
35524 * inspector/front-end/ResourceView.js: |
|
35525 (WebInspector.ResourceView): |
|
35526 (WebInspector.ResourceView.prototype._selectHeadersTab): |
|
35527 (WebInspector.ResourceView.prototype._innerSelectContentTab): |
|
35528 * inspector/front-end/SourceView.js: |
|
35529 (WebInspector.SourceView.prototype.show): |
|
35530 (WebInspector.SourceView.prototype.hide): |
|
35531 (WebInspector.SourceView.prototype.resize): |
|
35532 (WebInspector.SourceView.prototype.updateLocalContent): |
|
35533 (WebInspector.SourceView.prototype.selectLocalContentTab): |
|
35534 * inspector/front-end/TabbedPane.js: Added. |
|
35535 (WebInspector.TabbedPane): |
|
35536 (WebInspector.TabbedPane.prototype.appendTab): |
|
35537 (WebInspector.TabbedPane.prototype.tabObjectForId): |
|
35538 (WebInspector.TabbedPane.prototype.hideTab): |
|
35539 (WebInspector.TabbedPane.prototype.selectTabById): |
|
35540 * inspector/front-end/TextViewer.js: |
|
35541 (WebInspector.TextViewer.prototype._getSelection): |
|
35542 * inspector/front-end/inspector.html: |
|
35543 |
|
35544 2010-05-31 Alexander Pavlov <apavlov@chromium.org> |
|
35545 |
|
35546 Reviewed by Pavel Feldman. |
|
35547 |
|
35548 Web Inspector: Implement retrieval of CSS stylesheets for source editing |
|
35549 https://bugs.webkit.org/show_bug.cgi?id=39833 |
|
35550 |
|
35551 Test: inspector/styles-source-offsets.html |
|
35552 |
|
35553 * css/CSSParser.cpp: |
|
35554 (WebCore::CSSParser::CSSParser): |
|
35555 (WebCore::CSSParser::parseSheet): |
|
35556 (WebCore::CSSParser::createStyleRule): |
|
35557 * css/CSSParser.h: |
|
35558 * inspector/InspectorBackend.cpp: |
|
35559 (WebCore::InspectorBackend::getStyleSheet): |
|
35560 (WebCore::InspectorBackend::getRuleRangesForStyleSheetId): |
|
35561 * inspector/InspectorBackend.h: |
|
35562 * inspector/InspectorBackend.idl: |
|
35563 * inspector/InspectorCSSStore.cpp: |
|
35564 (WebCore::InspectorCSSStore::getRuleRangesForStyleSheet): |
|
35565 (WebCore::InspectorCSSStore::asCSSStyleRule): |
|
35566 (WebCore::InspectorCSSStore::styleSheetForId): |
|
35567 * inspector/InspectorCSSStore.h: |
|
35568 * inspector/InspectorDOMAgent.cpp: |
|
35569 (WebCore::InspectorDOMAgent::getStyleSheet): |
|
35570 (WebCore::InspectorDOMAgent::getRuleRangesForStyleSheetId): |
|
35571 (WebCore::InspectorDOMAgent::buildObjectForStyle): |
|
35572 (WebCore::InspectorDOMAgent::populateObjectWithStyleProperties): |
|
35573 (WebCore::InspectorDOMAgent::buildObjectForStyleSheet): |
|
35574 (WebCore::InspectorDOMAgent::buildObjectForRule): |
|
35575 (WebCore::InspectorDOMAgent::getParentStyleSheet): |
|
35576 * inspector/InspectorDOMAgent.h: |
|
35577 * inspector/InspectorFrontend.cpp: |
|
35578 (WebCore::InspectorFrontend::didGetStyleSheet): |
|
35579 * inspector/InspectorFrontend.h: |
|
35580 * inspector/front-end/DOMAgent.js: |
|
35581 (WebInspector.CSSStyleDeclaration): |
|
35582 |
|
35583 2010-05-31 Philippe Normand <pnormand@igalia.com> |
|
35584 |
|
35585 Reviewed by Xan Lopez. |
|
35586 |
|
35587 [GStreamer] float variables misused |
|
35588 https://bugs.webkit.org/show_bug.cgi?id=38842 |
|
35589 |
|
35590 Use 0.0f for float variables instead of 0.0. Also added some |
|
35591 missing casts around GST_SECOND. |
|
35592 |
|
35593 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: |
|
35594 (WebCore::playbackPosition): |
|
35595 (WebCore::MediaPlayerPrivateGStreamer::duration): |
|
35596 (WebCore::MediaPlayerPrivateGStreamer::currentTime): |
|
35597 (WebCore::MediaPlayerPrivateGStreamer::seek): |
|
35598 (WebCore::MediaPlayerPrivateGStreamer::naturalSize): |
|
35599 (WebCore::MediaPlayerPrivateGStreamer::setRate): |
|
35600 (WebCore::MediaPlayerPrivateGStreamer::maxTimeSeekable): |
|
35601 (WebCore::MediaPlayerPrivateGStreamer::maxTimeLoaded): |
|
35602 (WebCore::MediaPlayerPrivateGStreamer::totalBytes): |
|
35603 |
|
35604 2010-05-31 Steve Block <steveblock@google.com> |
|
35605 |
|
35606 Unreviewed, rolling out r60069. |
|
35607 http://trac.webkit.org/changeset/60069 |
|
35608 https://bugs.webkit.org/show_bug.cgi?id=39288 |
|
35609 |
|
35610 Roll out r60069 while the need for Geolocation::stop() is |
|
35611 investigated. |
|
35612 |
|
35613 * loader/FrameLoader.cpp: |
|
35614 (WebCore::FrameLoader::stopLoading): |
|
35615 * page/Geolocation.cpp: |
|
35616 (WebCore::Geolocation::disconnectFrame): |
|
35617 * page/Geolocation.h: |
|
35618 |
|
35619 2010-05-31 Olivier Tilloy <olivier@tilloy.net> |
|
35620 |
|
35621 Reviewed by Gustavo Noronha Silva. |
|
35622 |
|
35623 [Gtk] Implement RenderThemeGtk::systemColor to apply the correct colors |
|
35624 from the current GTK theme. |
|
35625 https://bugs.webkit.org/show_bug.cgi?id=37779 |
|
35626 |
|
35627 * platform/gtk/RenderThemeGtk.cpp: |
|
35628 (WebCore::RenderThemeGtk::RenderThemeGtk): |
|
35629 (WebCore::RenderThemeGtk::systemColor): |
|
35630 (WebCore::RenderThemeGtk::gtkButton): |
|
35631 * platform/gtk/RenderThemeGtk.h: |
|
35632 |
|
35633 2010-05-31 Dirk Schulze <krit@webkit.org> |
|
35634 |
|
35635 Reviewed by Nikolas Zimmermann. |
|
35636 |
|
35637 SVG Filter: Crash if parent and child elements use the same filter |
|
35638 https://bugs.webkit.org/show_bug.cgi?id=39536 |
|
35639 |
|
35640 If a parent and a child used the same filter, the temporary saved |
|
35641 context reference got overwritten by the child. The reference is |
|
35642 stored in FilterData now. FilterData depends to the target object |
|
35643 and avoids overwriting any reference. |
|
35644 |
|
35645 Test: svg/filters/parent-children-with-same-filter.svg |
|
35646 |
|
35647 * rendering/RenderSVGResourceFilter.cpp: |
|
35648 (WebCore::RenderSVGResourceFilter::RenderSVGResourceFilter): |
|
35649 (WebCore::RenderSVGResourceFilter::applyResource): |
|
35650 (WebCore::RenderSVGResourceFilter::postApplyResource): |
|
35651 * rendering/RenderSVGResourceFilter.h: |
|
35652 |
|
35653 2010-05-31 Xan Lopez <xlopez@igalia.com> |
|
35654 |
|
35655 Reviewed by Gustavo Noronha. |
|
35656 |
|
35657 Fix all compiler warnings. |
|
35658 |
|
35659 * plugins/gtk/gtk2xtbin.c: |
|
35660 (xt_event_dispatch): |
|
35661 (gtk_xtbin_get_type): |
|
35662 (gtk_xtbin_set_position): |
|
35663 (xt_add_focus_listener): |
|
35664 (xt_remove_focus_listener): |
|
35665 |
|
35666 2010-05-31 Oswald Buddenhagen <oswald.buddenhagen@nokia.com> |
|
35667 |
|
35668 Reviewed by Simon Hausmann. |
|
35669 |
|
35670 [Qt] Escape backslashes in the .pro files |
|
35671 |
|
35672 qmake in Qt 4.7 warns about unescaped backspaces and deprecates them. |
|
35673 |
|
35674 * WebCore.pro: |
|
35675 |
|
35676 2010-05-31 Anton Muhin <antonm@chromium.org> |
|
35677 |
|
35678 Reviewed by Darin Adler. |
|
35679 |
|
35680 Make NodeList getters take AtomicString instead of plain String |
|
35681 https://bugs.webkit.org/show_bug.cgi?id=39892 |
|
35682 |
|
35683 Those methods turn String into AtomicString later. And this conversion |
|
35684 is faster if underlying string is already atomic. |
|
35685 That buys small (~2-3%) speed up for Chromium on Dromaeo DOM Core. |
|
35686 I don't know if Safari benefits from it. |
|
35687 |
|
35688 * dom/Node.cpp: |
|
35689 (WebCore::Node::getElementsByTagName): |
|
35690 (WebCore::Node::getElementsByTagNameNS): |
|
35691 * dom/Node.h: |
|
35692 |
|
35693 2010-05-30 Adam Barth <abarth@webkit.org> |
|
35694 |
|
35695 Reviewed by Darin Adler. |
|
35696 |
|
35697 Fix LayoutTests/fast/parser/xml-declaration-missing-ending-mark.html in HTML5 parser |
|
35698 https://bugs.webkit.org/show_bug.cgi?id=39939 |
|
35699 |
|
35700 Turns out we need to implement the bogus comment state. :) |
|
35701 |
|
35702 * html/HTML5Lexer.cpp: |
|
35703 (WebCore::HTML5Lexer::nextToken): |
|
35704 |
|
35705 2010-05-30 Eric Seidel <eric@webkit.org> |
|
35706 |
|
35707 Reviewed by Adam Barth. |
|
35708 |
|
35709 fast/tokenizer/write-partial-entity.html hits ASSERT SegmentedString in the HTML5 Parser |
|
35710 https://bugs.webkit.org/show_bug.cgi?id=39935 |
|
35711 |
|
35712 Test: fast/tokenizer/write-partial-entity.html |
|
35713 |
|
35714 * html/HTML5Tokenizer.cpp: |
|
35715 (WebCore::HTML5Tokenizer::executeScript): |
|
35716 - Use m_source.append(oldInsertionPoint) instead of |
|
35717 oldInsertionPoint.prepend(m_source) because m_source may have had |
|
35718 characters pushed onto it and prepend() does not handle that case. |
|
35719 |
|
35720 2010-05-30 Lyon Chen <liachen@rim.com> |
|
35721 |
|
35722 Reviewed by Kent Tamura. |
|
35723 |
|
35724 This is a coding style cleanup before fixing to bug 35530. |
|
35725 |
|
35726 Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts. |
|
35727 https://bugs.webkit.org/show_bug.cgi?id=35530 |
|
35728 |
|
35729 * editing/Editor.cpp: |
|
35730 (WebCore::Editor::deleteWithDirection): |
|
35731 (WebCore::Editor::fontForSelection): |
|
35732 (WebCore::Editor::applyStyle): |
|
35733 (WebCore::Editor::applyParagraphStyle): |
|
35734 (WebCore::Editor::applyStyleToSelection): |
|
35735 (WebCore::Editor::applyParagraphStyleToSelection): |
|
35736 (WebCore::triStateOfStyleInComputedStyle): |
|
35737 (WebCore::Editor::selectionStartHasStyle): |
|
35738 (WebCore::Editor::selectionHasStyle): |
|
35739 (WebCore::Editor::paste): |
|
35740 (WebCore::Editor::ignoreSpelling): |
|
35741 (WebCore::Editor::learnSpelling): |
|
35742 (WebCore::findFirstMisspellingInRange): |
|
35743 (WebCore::findFirstGrammarDetailInRange): |
|
35744 (WebCore::findFirstBadGrammarInRange): |
|
35745 (WebCore::findFirstMisspellingOrBadGrammarInRange): |
|
35746 (WebCore::Editor::advanceToNextMisspelling): |
|
35747 (WebCore::Editor::isSelectionMisspelled): |
|
35748 (WebCore::isRangeUngrammatical): |
|
35749 (WebCore::Editor::guessesForMisspelledSelection): |
|
35750 (WebCore::guessesForMisspelledOrUngrammaticalRange): |
|
35751 (WebCore::Editor::markMisspellingsAfterTypingToPosition): |
|
35752 (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): |
|
35753 * editing/EditorCommand.cpp: |
|
35754 (WebCore::applyCommandToFrame): |
|
35755 (WebCore::executeToggleStyleInList): |
|
35756 (WebCore::executeApplyParagraphStyle): |
|
35757 (WebCore::executeDelete): |
|
35758 (WebCore::executeForwardDelete): |
|
35759 (WebCore::executeInsertLineBreak): |
|
35760 (WebCore::supportedCopyCut): |
|
35761 (WebCore::supportedPaste): |
|
35762 (WebCore::enabledDelete): |
|
35763 * editing/SelectionController.cpp: |
|
35764 (WebCore::SelectionController::modifyExtendingRight): |
|
35765 (WebCore::SelectionController::modifyExtendingForward): |
|
35766 (WebCore::SelectionController::modifyMovingRight): |
|
35767 (WebCore::SelectionController::modifyMovingForward): |
|
35768 (WebCore::SelectionController::modifyExtendingLeft): |
|
35769 (WebCore::SelectionController::modifyExtendingBackward): |
|
35770 (WebCore::SelectionController::modifyMovingLeft): |
|
35771 (WebCore::SelectionController::modifyMovingBackward): |
|
35772 (WebCore::SelectionController::modify): |
|
35773 (WebCore::SelectionController::xPosForVerticalArrowNavigation): |
|
35774 (WebCore::SelectionController::debugRenderer): |
|
35775 * editing/TypingCommand.cpp: |
|
35776 (WebCore::TypingCommand::deleteKeyPressed): |
|
35777 (WebCore::TypingCommand::forwardDeleteKeyPressed): |
|
35778 (WebCore::TypingCommand::insertLineBreak): |
|
35779 (WebCore::TypingCommand::insertParagraphSeparatorInQuotedContent): |
|
35780 (WebCore::TypingCommand::insertParagraphSeparator): |
|
35781 (WebCore::TypingCommand::doApply): |
|
35782 (WebCore::TypingCommand::insertText): |
|
35783 (WebCore::TypingCommand::updatePreservesTypingStyle): |
|
35784 * page/EventHandler.cpp: |
|
35785 (WebCore::EventHandler::handleMousePressEvent): |
|
35786 (WebCore::EventHandler::handleMouseReleaseEvent): |
|
35787 (WebCore::EventHandler::selectCursor): |
|
35788 (WebCore::EventHandler::canHandleDragAndDropForTarget): |
|
35789 (WebCore::EventHandler::dispatchMouseEvent): |
|
35790 (WebCore::EventHandler::sendContextMenuEvent): |
|
35791 (WebCore::EventHandler::handleKeyboardSelectionMovement): |
|
35792 (WebCore::EventHandler::handleDrag): |
|
35793 |
|
35794 2010-05-30 Daniel Bates <dbates@rim.com> |
|
35795 |
|
35796 Unreviewed, attempt to fix the build after http://trac.webkit.org/changeset/60418. |
|
35797 |
|
35798 * html/HTMLFormControlElement.h: |
|
35799 (WebCore::HTMLFormControlElement::isEnabledFormControl): |
|
35800 (WebCore::HTMLFormControlElement::isReadOnlyFormControl): |
|
35801 (WebCore::HTMLFormControlElement::isFormControlElement): |
|
35802 * html/HTMLInputElement.h: |
|
35803 (WebCore::HTMLInputElement::isPasswordField): |
|
35804 |
|
35805 2010-05-30 Darin Adler <darin@apple.com> |
|
35806 |
|
35807 Reviewed by Sam Weinig. |
|
35808 |
|
35809 Make more HTML DOM members private, especially constructors, third and final batch |
|
35810 https://bugs.webkit.org/show_bug.cgi?id=39916 |
|
35811 |
|
35812 * dom/Document.cpp: |
|
35813 (WebCore::Document::implicitClose): |
|
35814 * editing/DeleteButtonController.cpp: |
|
35815 (WebCore::DeleteButtonController::createDeletionUI): |
|
35816 * editing/EditorCommand.cpp: |
|
35817 (WebCore::executeInsertHorizontalRule): |
|
35818 (WebCore::executeInsertImage): |
|
35819 * editing/htmlediting.cpp: |
|
35820 (WebCore::createDefaultParagraphElement): |
|
35821 (WebCore::createListItemElement): |
|
35822 * html/HTMLParser.cpp: |
|
35823 (WebCore::HTMLParser::handleError): |
|
35824 (WebCore::HTMLParser::headCreateErrorCheck): |
|
35825 (WebCore::HTMLParser::formCreateErrorCheck): |
|
35826 (WebCore::HTMLParser::createHead): |
|
35827 (WebCore::HTMLParser::handleIsindex): |
|
35828 (WebCore::HTMLParser::finished): |
|
35829 * html/HTMLViewSourceDocument.cpp: |
|
35830 (WebCore::HTMLViewSourceDocument::createContainingTable): |
|
35831 * rendering/RenderTextControl.cpp: |
|
35832 (WebCore::RenderTextControl::createSubtreeIfNeeded): |
|
35833 * rendering/RenderTextControlSingleLine.cpp: |
|
35834 (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded): |
|
35835 Use create instead of new to create HTML elements. |
|
35836 |
|
35837 * html/HTMLFormCollection.cpp: |
|
35838 (WebCore::HTMLFormCollection::formCollectionInfo): |
|
35839 (WebCore::HTMLFormCollection::item): |
|
35840 (WebCore::HTMLFormCollection::getNamedFormItem): |
|
35841 (WebCore::HTMLFormCollection::updateNameCache): |
|
35842 * html/HTMLFormControlElement.h: |
|
35843 Updated for name and privacy changes in HTMLFormElement. |
|
35844 |
|
35845 * html/HTMLFormElement.cpp: |
|
35846 (WebCore::HTMLFormElement::HTMLFormElement): |
|
35847 (WebCore::HTMLFormElement::create): |
|
35848 (WebCore::HTMLFormElement::~HTMLFormElement): |
|
35849 (WebCore::HTMLFormElement::length): |
|
35850 (WebCore::HTMLFormElement::submitImplicitly): |
|
35851 (WebCore::HTMLFormElement::createFormData): |
|
35852 (WebCore::HTMLFormElement::submit): |
|
35853 (WebCore::HTMLFormElement::reset): |
|
35854 (WebCore::HTMLFormElement::formElementIndex): |
|
35855 (WebCore::HTMLFormElement::registerFormElement): |
|
35856 (WebCore::HTMLFormElement::removeFormElement): |
|
35857 (WebCore::HTMLFormElement::registerImgElement): |
|
35858 (WebCore::HTMLFormElement::removeImgElement): |
|
35859 (WebCore::HTMLFormElement::defaultButton): |
|
35860 (WebCore::HTMLFormElement::collectUnhandledInvalidControls): |
|
35861 (WebCore::HTMLFormElement::addElementAlias): |
|
35862 (WebCore::HTMLFormElement::documentDidBecomeActive): |
|
35863 * html/HTMLFormElement.h: |
|
35864 Added create functions. Made constructors and other members private. |
|
35865 Used an OwnPtr for m_elementAliases. Renamed collectionInfo to |
|
35866 m_collectionCache and used an OwnPtr for it. Renamed formElements to |
|
35867 m_associatedElements (since its contents are what HTML5 calls |
|
35868 "form-associated element", not form elements). Renamed imgElements to |
|
35869 m_imageElements. |
|
35870 |
|
35871 * html/HTMLFrameSetElement.cpp: |
|
35872 (WebCore::HTMLFrameSetElement::HTMLFrameSetElement): |
|
35873 (WebCore::HTMLFrameSetElement::create): |
|
35874 (WebCore::HTMLFrameSetElement::parseMappedAttribute): |
|
35875 * html/HTMLFrameSetElement.h: |
|
35876 Added create functions. Made constructors and other members private. |
|
35877 Renamed m_rows and m_cols to m_rowLengths and m_colLengths and used |
|
35878 OwnArrayPtr for both. |
|
35879 |
|
35880 * html/HTMLLabelElement.cpp: |
|
35881 (WebCore::nodeAsLabelableFormControl): Made this cast to Element instead |
|
35882 of HTMLElement, since isFormControlElement is available on Element. |
|
35883 (WebCore::HTMLLabelElement::HTMLLabelElement): |
|
35884 (WebCore::HTMLLabelElement::create): |
|
35885 * html/HTMLLabelElement.h: |
|
35886 Added create functions. Made constructors and other members private. |
|
35887 |
|
35888 * html/HTMLLegendElement.cpp: |
|
35889 (WebCore::HTMLLegendElement::HTMLLegendElement): |
|
35890 (WebCore::HTMLLegendElement::create): |
|
35891 (WebCore::HTMLLegendElement::associatedControl): |
|
35892 (WebCore::HTMLLegendElement::focus): |
|
35893 (WebCore::HTMLLegendElement::accessKeyAction): |
|
35894 * html/HTMLLegendElement.h: |
|
35895 Added create functions. Made constructors and other members private. |
|
35896 Renamed formElement to associatedControl since hte control associated |
|
35897 with this legend is not a "form element". |
|
35898 |
|
35899 * editing/DeleteButton.cpp: |
|
35900 (WebCore::DeleteButton::DeleteButton): |
|
35901 (WebCore::DeleteButton::create): |
|
35902 * editing/DeleteButton.h: |
|
35903 * html/HTMLDivElement.cpp: |
|
35904 (WebCore::HTMLDivElement::HTMLDivElement): |
|
35905 (WebCore::HTMLDivElement::create): |
|
35906 * html/HTMLDivElement.h: |
|
35907 * html/HTMLFontElement.cpp: |
|
35908 (WebCore::HTMLFontElement::create): |
|
35909 * html/HTMLFontElement.h: |
|
35910 * html/HTMLHRElement.cpp: |
|
35911 (WebCore::HTMLHRElement::HTMLHRElement): |
|
35912 (WebCore::HTMLHRElement::create): |
|
35913 * html/HTMLHRElement.h: |
|
35914 * html/HTMLHeadElement.cpp: |
|
35915 (WebCore::HTMLHeadElement::HTMLHeadElement): |
|
35916 (WebCore::HTMLHeadElement::create): |
|
35917 * html/HTMLHeadElement.h: |
|
35918 * html/HTMLHeadingElement.cpp: |
|
35919 (WebCore::HTMLHeadingElement::HTMLHeadingElement): |
|
35920 (WebCore::HTMLHeadingElement::create): |
|
35921 * html/HTMLHeadingElement.h: |
|
35922 * html/HTMLHtmlElement.cpp: |
|
35923 (WebCore::HTMLHtmlElement::HTMLHtmlElement): |
|
35924 (WebCore::HTMLHtmlElement::create): |
|
35925 * html/HTMLHtmlElement.h: |
|
35926 * html/HTMLImageElement.cpp: |
|
35927 (WebCore::HTMLImageElement::HTMLImageElement): |
|
35928 (WebCore::HTMLImageElement::create): |
|
35929 * html/HTMLImageElement.h: |
|
35930 * html/HTMLInputElement.cpp: |
|
35931 (WebCore::HTMLInputElement::HTMLInputElement): |
|
35932 (WebCore::HTMLInputElement::create): |
|
35933 (WebCore::HTMLInputElement::createTemporaryFormForIsIndex): |
|
35934 * html/HTMLInputElement.h: |
|
35935 * html/HTMLIsIndexElement.cpp: |
|
35936 (WebCore::HTMLIsIndexElement::HTMLIsIndexElement): |
|
35937 (WebCore::HTMLIsIndexElement::create): |
|
35938 * html/HTMLIsIndexElement.h: |
|
35939 * html/HTMLLIElement.cpp: |
|
35940 (WebCore::HTMLLIElement::HTMLLIElement): |
|
35941 (WebCore::HTMLLIElement::create): |
|
35942 * html/HTMLLIElement.h: |
|
35943 * html/HTMLLinkElement.cpp: |
|
35944 (WebCore::HTMLLinkElement::HTMLLinkElement): |
|
35945 (WebCore::HTMLLinkElement::create): |
|
35946 * html/HTMLLinkElement.h: |
|
35947 Added create functions. Made constructors and other members private. |
|
35948 |
|
35949 * html/HTMLTagNames.in: Removed the createWithNew flag from all the |
|
35950 tags that were still using it: div, font, form, frameset, h1, h2, h3, |
|
35951 h4, h5, h6, head, hr, html, image, img, input, ins, isindex, label, |
|
35952 legend, li, and link. |
|
35953 |
|
35954 * html/HTMLTextAreaElement.h: Removed unneeded definition of the readOnly |
|
35955 function, since the one in HTMLFormElement does the same thing. |
|
35956 |
|
35957 * loader/ImageDocument.cpp: |
|
35958 (WebCore::ImageDocumentElement::ImageDocumentElement): |
|
35959 (WebCore::ImageDocumentElement::create): |
|
35960 (WebCore::ImageDocument::createDocumentStructure): |
|
35961 Added create functions. Made constructors and other members private. |
|
35962 |
|
35963 * page/DragController.cpp: |
|
35964 (WebCore::DragController::concludeEditDrag): Use the non-virtual disabled |
|
35965 function instead of the virtual isEnabledFormControl function, which just |
|
35966 turns around and calls the disabled function. |
|
35967 |
|
35968 * rendering/MediaControlElements.cpp: |
|
35969 (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement): |
|
35970 (WebCore::MediaControlShadowRootElement::create): |
|
35971 (WebCore::MediaControlElement::MediaControlElement): |
|
35972 (WebCore::MediaControlElement::create): |
|
35973 (WebCore::MediaControlTimelineContainerElement::MediaControlTimelineContainerElement): |
|
35974 (WebCore::MediaControlTimelineContainerElement::create): |
|
35975 (WebCore::MediaControlTimelineContainerElement::rendererIsNeeded): |
|
35976 (WebCore::MediaControlVolumeSliderContainerElement::MediaControlVolumeSliderContainerElement): |
|
35977 (WebCore::MediaControlVolumeSliderContainerElement::create): |
|
35978 (WebCore::MediaControlStatusDisplayElement::MediaControlStatusDisplayElement): |
|
35979 (WebCore::MediaControlStatusDisplayElement::create): |
|
35980 (WebCore::MediaControlStatusDisplayElement::update): |
|
35981 (WebCore::MediaControlStatusDisplayElement::rendererIsNeeded): |
|
35982 (WebCore::MediaControlInputElement::MediaControlInputElement): |
|
35983 (WebCore::MediaControlInputElement::styleForElement): |
|
35984 (WebCore::MediaControlInputElement::rendererIsNeeded): |
|
35985 (WebCore::MediaControlInputElement::attach): |
|
35986 (WebCore::MediaControlInputElement::updateStyle): |
|
35987 (WebCore::MediaControlMuteButtonElement::MediaControlMuteButtonElement): |
|
35988 (WebCore::MediaControlMuteButtonElement::create): |
|
35989 (WebCore::MediaControlMuteButtonElement::defaultEventHandler): |
|
35990 (WebCore::MediaControlMuteButtonElement::updateDisplayType): |
|
35991 (WebCore::MediaControlPlayButtonElement::MediaControlPlayButtonElement): |
|
35992 (WebCore::MediaControlPlayButtonElement::create): |
|
35993 (WebCore::MediaControlPlayButtonElement::defaultEventHandler): |
|
35994 (WebCore::MediaControlPlayButtonElement::updateDisplayType): |
|
35995 (WebCore::MediaControlSeekButtonElement::MediaControlSeekButtonElement): |
|
35996 (WebCore::MediaControlSeekButtonElement::create): |
|
35997 (WebCore::MediaControlSeekButtonElement::isForwardButton): |
|
35998 (WebCore::MediaControlSeekButtonElement::defaultEventHandler): |
|
35999 (WebCore::MediaControlSeekButtonElement::seekTimerFired): |
|
36000 (WebCore::MediaControlRewindButtonElement::MediaControlRewindButtonElement): |
|
36001 (WebCore::MediaControlRewindButtonElement::create): |
|
36002 (WebCore::MediaControlRewindButtonElement::defaultEventHandler): |
|
36003 (WebCore::MediaControlReturnToRealtimeButtonElement::MediaControlReturnToRealtimeButtonElement): |
|
36004 (WebCore::MediaControlReturnToRealtimeButtonElement::create): |
|
36005 (WebCore::MediaControlReturnToRealtimeButtonElement::defaultEventHandler): |
|
36006 (WebCore::MediaControlToggleClosedCaptionsButtonElement::MediaControlToggleClosedCaptionsButtonElement): |
|
36007 (WebCore::MediaControlToggleClosedCaptionsButtonElement::create): |
|
36008 (WebCore::MediaControlToggleClosedCaptionsButtonElement::defaultEventHandler): |
|
36009 (WebCore::MediaControlToggleClosedCaptionsButtonElement::updateDisplayType): |
|
36010 (WebCore::MediaControlTimelineElement::MediaControlTimelineElement): |
|
36011 (WebCore::MediaControlTimelineElement::create): |
|
36012 (WebCore::MediaControlTimelineElement::defaultEventHandler): |
|
36013 (WebCore::MediaControlTimelineElement::update): |
|
36014 (WebCore::MediaControlVolumeSliderElement::MediaControlVolumeSliderElement): |
|
36015 (WebCore::MediaControlVolumeSliderElement::create): |
|
36016 (WebCore::MediaControlVolumeSliderElement::defaultEventHandler): |
|
36017 (WebCore::MediaControlVolumeSliderElement::update): |
|
36018 (WebCore::MediaControlFullscreenButtonElement::MediaControlFullscreenButtonElement): |
|
36019 (WebCore::MediaControlFullscreenButtonElement::create): |
|
36020 (WebCore::MediaControlFullscreenButtonElement::defaultEventHandler): |
|
36021 (WebCore::MediaControlTimeDisplayElement::MediaControlTimeDisplayElement): |
|
36022 (WebCore::MediaControlTimeDisplayElement::create): |
|
36023 * rendering/MediaControlElements.h: |
|
36024 Added create functions. Made constructors and other members private. |
|
36025 |
|
36026 * rendering/RenderFileUploadControl.cpp: |
|
36027 (WebCore::ShadowInputElement::ShadowInputElement): |
|
36028 (WebCore::ShadowInputElement::create): |
|
36029 (WebCore::RenderFileUploadControl::updateFromElement): |
|
36030 Added create functions. Made constructors and other members private. |
|
36031 |
|
36032 * rendering/RenderMedia.cpp: |
|
36033 (WebCore::RenderMedia::createControlsShadowRoot): |
|
36034 (WebCore::RenderMedia::createPanel): |
|
36035 (WebCore::RenderMedia::createMuteButton): |
|
36036 (WebCore::RenderMedia::createPlayButton): |
|
36037 (WebCore::RenderMedia::createSeekBackButton): |
|
36038 (WebCore::RenderMedia::createSeekForwardButton): |
|
36039 (WebCore::RenderMedia::createRewindButton): |
|
36040 (WebCore::RenderMedia::createReturnToRealtimeButton): |
|
36041 (WebCore::RenderMedia::createToggleClosedCaptionsButton): |
|
36042 (WebCore::RenderMedia::createStatusDisplay): |
|
36043 (WebCore::RenderMedia::createTimelineContainer): |
|
36044 (WebCore::RenderMedia::createTimeline): |
|
36045 (WebCore::RenderMedia::createVolumeSliderContainer): |
|
36046 (WebCore::RenderMedia::createVolumeSlider): |
|
36047 (WebCore::RenderMedia::createCurrentTimeDisplay): |
|
36048 (WebCore::RenderMedia::createTimeRemainingDisplay): |
|
36049 (WebCore::RenderMedia::createFullscreenButton): |
|
36050 Use create instead of new. |
|
36051 |
|
36052 * rendering/RenderProgress.cpp: |
|
36053 (WebCore::ProgressValueElement::ProgressValueElement): |
|
36054 (WebCore::ProgressValueElement::create): |
|
36055 (WebCore::RenderProgress::updateValuePartState): |
|
36056 * rendering/RenderSlider.cpp: |
|
36057 (WebCore::SliderThumbElement::SliderThumbElement): |
|
36058 (WebCore::SliderThumbElement::create): |
|
36059 (WebCore::RenderSlider::updateFromElement): |
|
36060 Added create functions. Made constructors and other members private. |
|
36061 |
|
36062 * rendering/TextControlInnerElements.cpp: |
|
36063 (WebCore::TextControlInnerElement::TextControlInnerElement): |
|
36064 (WebCore::TextControlInnerElement::create): |
|
36065 (WebCore::TextControlInnerTextElement::TextControlInnerTextElement): |
|
36066 (WebCore::TextControlInnerTextElement::create): |
|
36067 (WebCore::TextControlInnerTextElement::defaultEventHandler): |
|
36068 (WebCore::SearchFieldResultsButtonElement::SearchFieldResultsButtonElement): |
|
36069 (WebCore::SearchFieldResultsButtonElement::create): |
|
36070 (WebCore::SearchFieldResultsButtonElement::defaultEventHandler): |
|
36071 (WebCore::SearchFieldCancelButtonElement::SearchFieldCancelButtonElement): |
|
36072 (WebCore::SearchFieldCancelButtonElement::create): |
|
36073 (WebCore::SearchFieldCancelButtonElement::defaultEventHandler): |
|
36074 (WebCore::SpinButtonElement::SpinButtonElement): |
|
36075 (WebCore::SpinButtonElement::create): |
|
36076 (WebCore::SpinButtonElement::defaultEventHandler): |
|
36077 * rendering/TextControlInnerElements.h: |
|
36078 Added create functions. Made constructors and other members private. |
|
36079 |
|
36080 2010-05-30 Xan Lopez <xlopez@igalia.com> |
|
36081 |
|
36082 Reviewed by Darin Adler. |
|
36083 |
|
36084 Incorrect build dependencies for GObject DOM Bindings |
|
36085 https://bugs.webkit.org/show_bug.cgi?id=39932 |
|
36086 |
|
36087 -include does not execute the implicit % expansion, we have to do |
|
36088 it manually. |
|
36089 |
|
36090 * GNUmakefile.am: |
|
36091 |
|
36092 2010-05-30 Robert Hogan <robert@webkit.org> |
|
36093 |
|
36094 Reviewed by Kenneth Rohde Christiansen. |
|
36095 |
|
36096 [Qt] Enhance Qt DRT implementation to support platform scroll wheel events. |
|
36097 |
|
36098 https://bugs.webkit.org/show_bug.cgi?id=36004 |
|
36099 |
|
36100 Fix the bug in webkit.org/b/29601 for Qt. A delta not divisible by 120 |
|
36101 indicates a device that is sending fine-resolution scroll events, so |
|
36102 use the delta as the number of pixels to scroll. |
|
36103 |
|
36104 * platform/qt/WheelEventQt.cpp: |
|
36105 (WebCore::PlatformWheelEvent::applyDelta): |
|
36106 |
|
36107 2010-05-30 Jessie Berlin <jberlin@webkit.org> |
|
36108 |
|
36109 Reviewed by Pavel Feldman. |
|
36110 |
|
36111 https://bugs.webkit.org/show_bug.cgi?id=39224 |
|
36112 Bug 39224 - Web Inspector: There should be a way to clean up profiles |
|
36113 |
|
36114 Adds a button to clear the profiles from the profiles panel like that |
|
36115 used for the console, the audits panel, and the timeline panel. |
|
36116 Consolidates the css rules, since they all use the same image. |
|
36117 Also allows for individual profiles to be deleted via the keyboard |
|
36118 (U+0008 or U+007F) and uses this new schema for the Elements Tree. |
|
36119 |
|
36120 * English.lproj/localizedStrings.js: |
|
36121 Add tooltip text for the button to clear the profiles pane. |
|
36122 |
|
36123 * inspector/InspectorBackend.idl: |
|
36124 Add ability to remove the profiles from the backend when they are |
|
36125 deleted or cleared in the frontend. |
|
36126 * inspector/InspectorBackend.cpp: |
|
36127 (WebCore::InspectorBackend::removeProfile): |
|
36128 (WebCore::InspectorBackend::clearProfiles): |
|
36129 * inspector/InspectorBackend.h: |
|
36130 * inspector/InspectorController.cpp: |
|
36131 (WebCore::InspectorController::removeProfile): |
|
36132 (WebCore::InspectorController::clearProfiles): |
|
36133 * inspector/InspectorController.h: |
|
36134 |
|
36135 * inspector/front-end/AuditsPanel.js: |
|
36136 (WebInspector.AuditsPanel): |
|
36137 Use the 'clear-status-bar-item' class. |
|
36138 * inspector/front-end/ChangesView.js: |
|
36139 (WebInspector.ChangesView): |
|
36140 * inspector/front-end/TimelinePanel.js: |
|
36141 (WebInspector.TimelinePanel.prototype._createStatusbarButtons): |
|
36142 * inspector/front-end/audits.css: |
|
36143 * inspector/front-end/inspector.css: |
|
36144 (.clear-status-bar-item .glyph): |
|
36145 * inspector/front-end/inspector.html: |
|
36146 |
|
36147 * inspector/front-end/ElementsTreeOutline.js: |
|
36148 Replace the keyDown handler on the Outline with specific methods to |
|
36149 handle delete and enter on the TreeElements. |
|
36150 (WebInspector.ElementsTreeOutline): |
|
36151 (WebInspector.ElementsTreeOutline.prototype.get editing): |
|
36152 Return whether or not an element in the tree is currently being edited. |
|
36153 (WebInspector.ElementsTreeElement.prototype.ondelete): |
|
36154 (WebInspector.ElementsTreeElement.prototype.onenter): |
|
36155 |
|
36156 * inspector/front-end/Panel.js: |
|
36157 (WebInspector.Panel.prototype.createSidebar): |
|
36158 Make the TreeOutline for a Panel's sidebar aware of its enclosing Panel. |
|
36159 |
|
36160 * inspector/front-end/ProfilesPanel.js: |
|
36161 (WebInspector.ProfilesPanel): |
|
36162 Add the clear button. |
|
36163 (WebInspector.ProfilesPanel.prototype.get statusBarItems): |
|
36164 (WebInspector.ProfilesPanel.prototype._clearProfiles): |
|
36165 Remove the profiles from the backend, the reset the frontend interface. |
|
36166 (WebInspector.ProfilesPanel.prototype.removeProfileHeader): |
|
36167 Remove the profile from both the frontend and the backend, and clear the |
|
36168 view when the last profile is removed. |
|
36169 (WebInspector.ProfilesPanel.prototype._updateInterface): |
|
36170 Hide the clear button when profiling is disabled. |
|
36171 (WebInspector.ProfileSidebarTreeElement.prototype.onselect): |
|
36172 Replace access to global variable with reference to the Panel held by the |
|
36173 TreeOutline. |
|
36174 (WebInspector.ProfileSidebarTreeElement.prototype.ondelete): |
|
36175 Remove the profile corresponding the tree element when the user deletes |
|
36176 that tree element. |
|
36177 |
|
36178 * inspector/front-end/treeoutline.js: |
|
36179 (TreeOutline.prototype._treeKeyDown): |
|
36180 Allow the selected tree element to handle the user pressing a delete |
|
36181 key or enter key. |
|
36182 |
|
36183 2010-05-29 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
36184 |
|
36185 Reviewed by Darin Adler. |
|
36186 |
|
36187 Check if a CC environment variable is defined before hard-coding gcc's |
|
36188 path. Simply hard-coding it breaks cross-compilation and Linux |
|
36189 distributions with more than one gcc installed (or not in the default |
|
36190 path). |
|
36191 https://bugs.webkit.org/show_bug.cgi?id=35551 |
|
36192 |
|
36193 No new functionality, so no new tests. |
|
36194 |
|
36195 * bindings/scripts/CodeGeneratorObjC.pm: |
|
36196 * bindings/scripts/IDLParser.pm: |
|
36197 * dom/make_names.pl: |
|
36198 |
|
36199 2010-05-29 Pavel Feldman <pfeldman@chromium.org> |
|
36200 |
|
36201 Reviewed by Timothy Hatcher. |
|
36202 |
|
36203 Web Inspector: [REGRESSION] caller locations are not shown on Timeline Panel. |
|
36204 |
|
36205 https://bugs.webkit.org/show_bug.cgi?id=39923 |
|
36206 |
|
36207 * inspector/front-end/TimelinePanel.js: |
|
36208 (WebInspector.TimelinePanel.FormattedRecord): |
|
36209 (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent): |
|
36210 (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails): |
|
36211 |
|
36212 2010-05-29 Eric Seidel <eric@webkit.org> |
|
36213 |
|
36214 Reviewed by Adam Barth. |
|
36215 |
|
36216 HTML5 parser should block script execution until stylesheets load |
|
36217 https://bugs.webkit.org/show_bug.cgi?id=39903 |
|
36218 |
|
36219 All <script> tag execution now blocks on stylesheet load, including |
|
36220 inline <script> content which the old parser doesn't support blocking. |
|
36221 |
|
36222 Hyatt says we could now get rid of updateLayoutIgnorePendingStylesheets |
|
36223 once our primary parser knows how to wait for stylesheets |
|
36224 before executing inline <script> content. |
|
36225 |
|
36226 All of http/tests/local passes in --html5-parser mode now. |
|
36227 Also fixed fast/parser/tokenizer-close-during-document-write.html. |
|
36228 |
|
36229 * html/HTML5ScriptRunner.cpp: |
|
36230 (WebCore::HTML5ScriptRunner::HTML5ScriptRunner): |
|
36231 - Added a m_hasScriptsWaitingForStylesheets bool so that we can |
|
36232 detect when we're actually waiting on stylesheets or not. |
|
36233 If we're not waiting on stylesheets then we're still parsing and |
|
36234 executing scripts would cause parser/script reentrancy and bad news bears. |
|
36235 (WebCore::HTML5ScriptRunner::isPendingScriptReady): |
|
36236 - Re-enable the check that the stylesheets have loaded. |
|
36237 (WebCore::HTML5ScriptRunner::executePendingScript): |
|
36238 - ASSERT that stylesheets have loaded. |
|
36239 (WebCore::HTML5ScriptRunner::executeScriptsWaitingForLoad): |
|
36240 - ASSERT that this is never called reentrantly. |
|
36241 (WebCore::HTML5ScriptRunner::executeScriptsWaitingForStylesheets): |
|
36242 - Execute any scripts which were blocked on stylesheet loads. |
|
36243 - ASSERT (in two ways) that this is never called reentrantly. |
|
36244 * html/HTML5ScriptRunner.h: |
|
36245 (WebCore::HTML5ScriptRunner::hasScriptsWaitingForStylesheets): |
|
36246 - Callers need to check this before calling executeScriptsWaitingForLoad. |
|
36247 (WebCore::HTML5ScriptRunner::inScriptExecution): |
|
36248 - Used by callers to ASSERT that we're not called re-entrantly. |
|
36249 * html/HTML5Tokenizer.cpp: |
|
36250 (WebCore::HTML5Tokenizer::HTML5Tokenizer): |
|
36251 - Add m_hasScriptsWaitingForStylesheets for tracking if we've paused |
|
36252 due to stylesheets or not. Callers need to know this to know if they |
|
36253 should ignore executeScriptsWaitingForStylesheets calls from |
|
36254 Document (which may be generated when parsing </script> tags). |
|
36255 We only care about executeScriptsWaitingForStylesheets calls when |
|
36256 we've actually blocked the parser due to waiting on a stylesheet load. |
|
36257 (WebCore::HTML5Tokenizer::end): |
|
36258 - Move m_source.close() back to this method now that I understand more |
|
36259 about when finish() is called. This should fix several layout test ASSERTS. |
|
36260 (WebCore::HTML5Tokenizer::finish): |
|
36261 - This should not close m_source since scripts may still write to |
|
36262 the document. Set m_wasWaitingOnScriptsDuringFinish to indicate |
|
36263 that we were not able to end parsing during finish. |
|
36264 (WebCore::HTML5Tokenizer::resumeParsingAfterScriptExecution): |
|
36265 - ASSERT that this is never caller re-entrantly. |
|
36266 (WebCore::HTML5Tokenizer::executeScript): |
|
36267 - ASSERT that the ScriptRunner always thinks we're running scripts when this is called. |
|
36268 (WebCore::HTML5Tokenizer::executingScript): |
|
36269 - Added implementation to fix fast/parser/tokenizer-close-during-document-write.html |
|
36270 (WebCore::HTML5Tokenizer::notifyFinished): |
|
36271 - ASSERT that this is never called re-entrantly. |
|
36272 (WebCore::HTML5Tokenizer::executeScriptsWaitingForStylesheets): |
|
36273 - Call the ScriptRunner to tell it that stylesheets have loaded if |
|
36274 it is blocked on stylesheet loads. |
|
36275 - ASSERT(m_hasScriptsWaitingForStylesheets). We can't just assert |
|
36276 isPaused() since we may be paused for script loads. |
|
36277 * html/HTML5Tokenizer.h: |
|
36278 |
|
36279 2010-05-29 Laszlo Gombos <laszlo.1.gombos@nokia.com> |
|
36280 |
|
36281 Reviewed by Darin Adler. |
|
36282 |
|
36283 Remove set but never used variables |
|
36284 https://bugs.webkit.org/show_bug.cgi?id=35252 |
|
36285 |
|
36286 No new tests as there is no new functionality. |
|
36287 |
|
36288 * accessibility/AccessibilityRenderObject.cpp: |
|
36289 (WebCore::lastChildConsideringContinuation): |
|
36290 * css/CSSFontSelector.cpp: |
|
36291 (WebCore::CSSFontSelector::addFontFaceRule): |
|
36292 * css/CSSParser.cpp: |
|
36293 (WebCore::CSSParser::parseFontFaceUnicodeRange): |
|
36294 * editing/InsertParagraphSeparatorCommand.cpp: |
|
36295 (WebCore::InsertParagraphSeparatorCommand::doApply): |
|
36296 * loader/appcache/ApplicationCacheStorage.cpp: |
|
36297 (WebCore::ApplicationCacheStorage::loadManifestHostHashes): |
|
36298 * page/EventHandler.cpp: |
|
36299 (WebCore::EventHandler::handleWheelEvent): |
|
36300 * page/animation/AnimationBase.cpp: |
|
36301 (WebCore::AnimationBase::getTimeToNextEvent): |
|
36302 * rendering/AutoTableLayout.cpp: |
|
36303 (WebCore::AutoTableLayout::recalcColumn): |
|
36304 (WebCore::AutoTableLayout::layout): |
|
36305 * rendering/RenderBlock.cpp: |
|
36306 (WebCore::RenderBlock::calcInlinePrefWidths): |
|
36307 * rendering/RenderSVGResourceClipper.cpp: |
|
36308 (WebCore::RenderSVGResourceClipper::createClipData): |
|
36309 * storage/DatabaseTracker.cpp: |
|
36310 (WebCore::DatabaseTracker::canEstablishDatabase): |
|
36311 |
|
36312 2010-05-29 Sheriff Bot <webkit.review.bot@gmail.com> |
|
36313 |
|
36314 Unreviewed, rolling out r60405. |
|
36315 http://trac.webkit.org/changeset/60405 |
|
36316 https://bugs.webkit.org/show_bug.cgi?id=39921 |
|
36317 |
|
36318 It broke GTK build. (Requested by Ossy on #webkit). |
|
36319 |
|
36320 * dom/Node.cpp: |
|
36321 (WebCore::Node::getElementsByTagName): |
|
36322 (WebCore::Node::getElementsByTagNameNS): |
|
36323 * dom/Node.h: |
|
36324 |
|
36325 2010-05-29 Anton Muhin <antonm@chromium.org> |
|
36326 |
|
36327 Reviewed by Darin Adler. |
|
36328 |
|
36329 Make NodeList getters take AtomicString instead of plain String |
|
36330 https://bugs.webkit.org/show_bug.cgi?id=39892 |
|
36331 |
|
36332 Those methods turn String into AtomicString later. And this conversion |
|
36333 is faster if underlying string is already atomic. |
|
36334 That buys small (~2-3%) speed up for Chromium on Dromaeo DOM Core. |
|
36335 I don't know if Safari benefits from it. |
|
36336 |
|
36337 * dom/Node.cpp: |
|
36338 (WebCore::Node::getElementsByTagName): |
|
36339 (WebCore::Node::getElementsByTagNameNS): |
|
36340 * dom/Node.h: |
|
36341 |
|
36342 2010-05-29 Justin Schuh <jschuh@chromium.org> |
|
36343 |
|
36344 Reviewed by Adam Barth. |
|
36345 |
|
36346 Allow descendant frame navigation for file URLs when allowFileAccessFromFileURLs is false |
|
36347 https://bugs.webkit.org/show_bug.cgi?id=39750 |
|
36348 |
|
36349 Fix for local HTML package breakage when each file is its own origin. |
|
36350 In this case we should allow descendant file: frames to navigate each |
|
36351 other when they share the same top frame. |
|
36352 |
|
36353 Test: fast/frames/location-change-no-file-access.html |
|
36354 |
|
36355 * loader/FrameLoader.cpp: |
|
36356 (WebCore::FrameLoader::shouldAllowNavigation): |
|
36357 |
|
36358 2010-05-29 Geoffrey Garen <ggaren@apple.com> |
|
36359 |
|
36360 Qt build fix: Updated for ArgList changes. |
|
36361 |
|
36362 * bridge/qt/qt_runtime.cpp: |
|
36363 (JSC::Bindings::QtRuntimeConnectionMethod::call): |
|
36364 |
|
36365 2010-05-29 Geoffrey Garen <ggaren@apple.com> |
|
36366 |
|
36367 Qt build fix: Updated for ArgList changes. |
|
36368 |
|
36369 * bridge/qt/qt_runtime.cpp: |
|
36370 (JSC::Bindings::QtRuntimeMetaMethod::call): |
|
36371 (JSC::Bindings::QtRuntimeConnectionMethod::call): |
|
36372 |
|
36373 2010-05-29 Geoffrey Garen <ggaren@apple.com> |
|
36374 |
|
36375 Qt build fix: Updated for ArgList changes. |
|
36376 |
|
36377 * bridge/qt/qt_pixmapruntime.cpp: |
|
36378 (JSC::Bindings::QtPixmapInstance::invokeMethod): |
|
36379 * bridge/qt/qt_runtime.cpp: |
|
36380 (JSC::Bindings::findMethodIndex): |
|
36381 (JSC::Bindings::QtRuntimeMetaMethod::call): |
|
36382 (JSC::Bindings::QtRuntimeConnectionMethod::call): |
|
36383 * bridge/qt/qt_runtime.h: |
|
36384 |
|
36385 2010-05-29 Geoffrey Garen <ggaren@apple.com> |
|
36386 |
|
36387 Qt build fix: Updated for ArgList changes. |
|
36388 |
|
36389 * bridge/qt/qt_pixmapruntime.cpp: |
|
36390 (JSC::Bindings::QtPixmapAssignToElementMethod::invoke): |
|
36391 (JSC::Bindings::QtPixmapToDataUrlMethod::invoke): |
|
36392 (JSC::Bindings::QtPixmapToStringMethod::invoke): |
|
36393 (JSC::Bindings::QtPixmapInstance::invokeMethod): |
|
36394 * bridge/qt/qt_pixmapruntime.h: |
|
36395 |
|
36396 2010-05-29 Geoffrey Garen <ggaren@apple.com> |
|
36397 |
|
36398 Qt build fix: Keep this borken class limping along. |
|
36399 |
|
36400 * bridge/qt/qt_instance.cpp: |
|
36401 (JSC::Bindings::QtInstance::invokeMethod): |
|
36402 * bridge/qt/qt_instance.h: |
|
36403 |
|
36404 2010-05-28 Geoffrey Garen <ggaren@apple.com> |
|
36405 |
|
36406 Reviewed by Sam Weinig, Gavin Barraclough, Oliver Hunt. |
|
36407 |
|
36408 Simplified the host calling convention. |
|
36409 |
|
36410 PART ONE: Functional code changes. |
|
36411 |
|
36412 [ None in WebCore ] |
|
36413 |
|
36414 PART TWO: Global search and replace. |
|
36415 |
|
36416 In the areas below, I used global search-and-replace to change |
|
36417 (ExecState*, JSObject*, JSValue, const ArgList&) => (ExecState*) |
|
36418 args.size() => exec->argumentCount() |
|
36419 args.at(i) => exec->argument(i) |
|
36420 |
|
36421 * bindings/js/JSArrayBufferViewCustom.cpp: |
|
36422 (WebCore::JSArrayBufferView::slice): |
|
36423 * bindings/js/JSArrayBufferViewHelper.h: |
|
36424 (WebCore::setWebGLArrayHelper): |
|
36425 * bindings/js/JSCanvasRenderingContext2DCustom.cpp: |
|
36426 (WebCore::JSCanvasRenderingContext2D::setFillColor): |
|
36427 (WebCore::JSCanvasRenderingContext2D::setStrokeColor): |
|
36428 (WebCore::JSCanvasRenderingContext2D::strokeRect): |
|
36429 (WebCore::JSCanvasRenderingContext2D::drawImage): |
|
36430 (WebCore::JSCanvasRenderingContext2D::drawImageFromRect): |
|
36431 (WebCore::JSCanvasRenderingContext2D::setShadow): |
|
36432 (WebCore::JSCanvasRenderingContext2D::createPattern): |
|
36433 (WebCore::JSCanvasRenderingContext2D::createImageData): |
|
36434 (WebCore::JSCanvasRenderingContext2D::putImageData): |
|
36435 (WebCore::JSCanvasRenderingContext2D::fillText): |
|
36436 (WebCore::JSCanvasRenderingContext2D::strokeText): |
|
36437 * bindings/js/JSClipboardCustom.cpp: |
|
36438 (WebCore::JSClipboard::clearData): |
|
36439 (WebCore::JSClipboard::getData): |
|
36440 (WebCore::JSClipboard::setDragImage): |
|
36441 * bindings/js/JSDOMApplicationCacheCustom.cpp: |
|
36442 (WebCore::JSDOMApplicationCache::hasItem): |
|
36443 (WebCore::JSDOMApplicationCache::add): |
|
36444 (WebCore::JSDOMApplicationCache::remove): |
|
36445 * bindings/js/JSDOMFormDataCustom.cpp: |
|
36446 (WebCore::JSDOMFormData::append): |
|
36447 * bindings/js/JSDOMWindowCustom.cpp: |
|
36448 (WebCore::JSDOMWindow::open): |
|
36449 (WebCore::JSDOMWindow::showModalDialog): |
|
36450 (WebCore::JSDOMWindow::postMessage): |
|
36451 (WebCore::JSDOMWindow::setTimeout): |
|
36452 (WebCore::JSDOMWindow::setInterval): |
|
36453 (WebCore::JSDOMWindow::addEventListener): |
|
36454 (WebCore::JSDOMWindow::removeEventListener): |
|
36455 (WebCore::JSDOMWindow::openDatabase): |
|
36456 * bindings/js/JSDatabaseCustom.cpp: |
|
36457 (WebCore::JSDatabase::changeVersion): |
|
36458 (WebCore::createTransaction): |
|
36459 (WebCore::JSDatabase::transaction): |
|
36460 (WebCore::JSDatabase::readTransaction): |
|
36461 * bindings/js/JSDatabaseSyncCustom.cpp: |
|
36462 (WebCore::JSDatabaseSync::changeVersion): |
|
36463 (WebCore::createTransaction): |
|
36464 (WebCore::JSDatabaseSync::transaction): |
|
36465 (WebCore::JSDatabaseSync::readTransaction): |
|
36466 * bindings/js/JSDedicatedWorkerContextCustom.cpp: |
|
36467 (WebCore::JSDedicatedWorkerContext::postMessage): |
|
36468 * bindings/js/JSDesktopNotificationsCustom.cpp: |
|
36469 (WebCore::JSNotificationCenter::requestPermission): |
|
36470 * bindings/js/JSFloatArrayCustom.cpp: |
|
36471 (WebCore::JSFloatArray::set): |
|
36472 * bindings/js/JSGeolocationCustom.cpp: |
|
36473 (WebCore::JSGeolocation::getCurrentPosition): |
|
36474 (WebCore::JSGeolocation::watchPosition): |
|
36475 * bindings/js/JSHTMLAllCollectionCustom.cpp: |
|
36476 (WebCore::callHTMLAllCollection): |
|
36477 (WebCore::JSHTMLAllCollection::item): |
|
36478 (WebCore::JSHTMLAllCollection::namedItem): |
|
36479 * bindings/js/JSHTMLCanvasElementCustom.cpp: |
|
36480 (WebCore::JSHTMLCanvasElement::getContext): |
|
36481 * bindings/js/JSHTMLCollectionCustom.cpp: |
|
36482 (WebCore::callHTMLCollection): |
|
36483 (WebCore::JSHTMLCollection::item): |
|
36484 (WebCore::JSHTMLCollection::namedItem): |
|
36485 * bindings/js/JSHTMLDocumentCustom.cpp: |
|
36486 (WebCore::JSHTMLDocument::open): |
|
36487 (WebCore::documentWrite): |
|
36488 (WebCore::JSHTMLDocument::write): |
|
36489 (WebCore::JSHTMLDocument::writeln): |
|
36490 * bindings/js/JSHTMLInputElementCustom.cpp: |
|
36491 (WebCore::JSHTMLInputElement::setSelectionRange): |
|
36492 * bindings/js/JSHTMLOptionsCollectionCustom.cpp: |
|
36493 (WebCore::JSHTMLOptionsCollection::add): |
|
36494 (WebCore::JSHTMLOptionsCollection::remove): |
|
36495 * bindings/js/JSHTMLSelectElementCustom.cpp: |
|
36496 (WebCore::JSHTMLSelectElement::remove): |
|
36497 * bindings/js/JSHistoryCustom.cpp: |
|
36498 (WebCore::JSHistory::pushState): |
|
36499 (WebCore::JSHistory::replaceState): |
|
36500 * bindings/js/JSInjectedScriptHostCustom.cpp: |
|
36501 (WebCore::JSInjectedScriptHost::databaseForId): |
|
36502 (WebCore::JSInjectedScriptHost::currentCallFrame): |
|
36503 (WebCore::JSInjectedScriptHost::nodeForId): |
|
36504 (WebCore::JSInjectedScriptHost::pushNodePathToFrontend): |
|
36505 (WebCore::JSInjectedScriptHost::selectDatabase): |
|
36506 (WebCore::JSInjectedScriptHost::selectDOMStorage): |
|
36507 (WebCore::JSInjectedScriptHost::reportDidDispatchOnInjectedScript): |
|
36508 * bindings/js/JSInspectorFrontendHostCustom.cpp: |
|
36509 (WebCore::JSInspectorFrontendHost::platform): |
|
36510 (WebCore::JSInspectorFrontendHost::port): |
|
36511 (WebCore::JSInspectorFrontendHost::showContextMenu): |
|
36512 * bindings/js/JSInt16ArrayCustom.cpp: |
|
36513 (WebCore::JSInt16Array::set): |
|
36514 * bindings/js/JSInt32ArrayCustom.cpp: |
|
36515 (WebCore::JSInt32Array::set): |
|
36516 * bindings/js/JSInt8ArrayCustom.cpp: |
|
36517 (WebCore::JSInt8Array::set): |
|
36518 * bindings/js/JSJavaScriptCallFrameCustom.cpp: |
|
36519 (WebCore::JSJavaScriptCallFrame::evaluate): |
|
36520 (WebCore::JSJavaScriptCallFrame::scopeType): |
|
36521 * bindings/js/JSLocationCustom.cpp: |
|
36522 (WebCore::JSLocation::replace): |
|
36523 (WebCore::JSLocation::reload): |
|
36524 (WebCore::JSLocation::assign): |
|
36525 (WebCore::JSLocation::toString): |
|
36526 * bindings/js/JSMessageEventCustom.cpp: |
|
36527 (WebCore::JSMessageEvent::initMessageEvent): |
|
36528 * bindings/js/JSMessagePortCustom.cpp: |
|
36529 (WebCore::JSMessagePort::postMessage): |
|
36530 * bindings/js/JSMessagePortCustom.h: |
|
36531 (WebCore::handlePostMessage): |
|
36532 * bindings/js/JSNodeCustom.cpp: |
|
36533 (WebCore::JSNode::insertBefore): |
|
36534 (WebCore::JSNode::replaceChild): |
|
36535 (WebCore::JSNode::removeChild): |
|
36536 (WebCore::JSNode::appendChild): |
|
36537 * bindings/js/JSNodeListCustom.cpp: |
|
36538 (WebCore::callNodeList): |
|
36539 * bindings/js/JSPluginElementFunctions.cpp: |
|
36540 (WebCore::callPlugin): |
|
36541 * bindings/js/JSSQLResultSetRowListCustom.cpp: |
|
36542 (WebCore::JSSQLResultSetRowList::item): |
|
36543 * bindings/js/JSSQLTransactionCustom.cpp: |
|
36544 (WebCore::JSSQLTransaction::executeSql): |
|
36545 * bindings/js/JSSQLTransactionSyncCustom.cpp: |
|
36546 (WebCore::JSSQLTransactionSync::executeSql): |
|
36547 * bindings/js/JSSVGLengthCustom.cpp: |
|
36548 (WebCore::JSSVGLength::convertToSpecifiedUnits): |
|
36549 * bindings/js/JSSVGMatrixCustom.cpp: |
|
36550 (WebCore::JSSVGMatrix::multiply): |
|
36551 (WebCore::JSSVGMatrix::inverse): |
|
36552 (WebCore::JSSVGMatrix::rotateFromVector): |
|
36553 * bindings/js/JSSVGPODListCustom.h: |
|
36554 (WebCore::JSSVGPODListCustom::clear): |
|
36555 (WebCore::JSSVGPODListCustom::initialize): |
|
36556 (WebCore::JSSVGPODListCustom::getItem): |
|
36557 (WebCore::JSSVGPODListCustom::insertItemBefore): |
|
36558 (WebCore::JSSVGPODListCustom::replaceItem): |
|
36559 (WebCore::JSSVGPODListCustom::removeItem): |
|
36560 (WebCore::JSSVGPODListCustom::appendItem): |
|
36561 * bindings/js/JSSVGPathSegListCustom.cpp: |
|
36562 (WebCore::JSSVGPathSegList::clear): |
|
36563 (WebCore::JSSVGPathSegList::initialize): |
|
36564 (WebCore::JSSVGPathSegList::getItem): |
|
36565 (WebCore::JSSVGPathSegList::insertItemBefore): |
|
36566 (WebCore::JSSVGPathSegList::replaceItem): |
|
36567 (WebCore::JSSVGPathSegList::removeItem): |
|
36568 (WebCore::JSSVGPathSegList::appendItem): |
|
36569 * bindings/js/JSUint16ArrayCustom.cpp: |
|
36570 (WebCore::JSUint16Array::set): |
|
36571 * bindings/js/JSUint32ArrayCustom.cpp: |
|
36572 (WebCore::JSUint32Array::set): |
|
36573 * bindings/js/JSUint8ArrayCustom.cpp: |
|
36574 (WebCore::JSUint8Array::set): |
|
36575 * bindings/js/JSWebGLRenderingContextCustom.cpp: |
|
36576 (WebCore::JSWebGLRenderingContext::bufferData): |
|
36577 (WebCore::JSWebGLRenderingContext::bufferSubData): |
|
36578 (WebCore::getObjectParameter): |
|
36579 (WebCore::JSWebGLRenderingContext::getBufferParameter): |
|
36580 (WebCore::JSWebGLRenderingContext::getFramebufferAttachmentParameter): |
|
36581 (WebCore::JSWebGLRenderingContext::getParameter): |
|
36582 (WebCore::JSWebGLRenderingContext::getProgramParameter): |
|
36583 (WebCore::JSWebGLRenderingContext::getRenderbufferParameter): |
|
36584 (WebCore::JSWebGLRenderingContext::getShaderParameter): |
|
36585 (WebCore::JSWebGLRenderingContext::getTexParameter): |
|
36586 (WebCore::JSWebGLRenderingContext::getUniform): |
|
36587 (WebCore::JSWebGLRenderingContext::getVertexAttrib): |
|
36588 (WebCore::JSWebGLRenderingContext::texImage2D): |
|
36589 (WebCore::JSWebGLRenderingContext::texSubImage2D): |
|
36590 (WebCore::dataFunctionf): |
|
36591 (WebCore::dataFunctioni): |
|
36592 (WebCore::dataFunctionMatrix): |
|
36593 (WebCore::JSWebGLRenderingContext::uniform1fv): |
|
36594 (WebCore::JSWebGLRenderingContext::uniform1iv): |
|
36595 (WebCore::JSWebGLRenderingContext::uniform2fv): |
|
36596 (WebCore::JSWebGLRenderingContext::uniform2iv): |
|
36597 (WebCore::JSWebGLRenderingContext::uniform3fv): |
|
36598 (WebCore::JSWebGLRenderingContext::uniform3iv): |
|
36599 (WebCore::JSWebGLRenderingContext::uniform4fv): |
|
36600 (WebCore::JSWebGLRenderingContext::uniform4iv): |
|
36601 (WebCore::JSWebGLRenderingContext::uniformMatrix2fv): |
|
36602 (WebCore::JSWebGLRenderingContext::uniformMatrix3fv): |
|
36603 (WebCore::JSWebGLRenderingContext::uniformMatrix4fv): |
|
36604 (WebCore::JSWebGLRenderingContext::vertexAttrib1fv): |
|
36605 (WebCore::JSWebGLRenderingContext::vertexAttrib2fv): |
|
36606 (WebCore::JSWebGLRenderingContext::vertexAttrib3fv): |
|
36607 (WebCore::JSWebGLRenderingContext::vertexAttrib4fv): |
|
36608 * bindings/js/JSWebSocketCustom.cpp: |
|
36609 (WebCore::JSWebSocket::send): |
|
36610 * bindings/js/JSWorkerContextCustom.cpp: |
|
36611 (WebCore::JSWorkerContext::importScripts): |
|
36612 (WebCore::JSWorkerContext::setTimeout): |
|
36613 (WebCore::JSWorkerContext::setInterval): |
|
36614 (WebCore::JSWorkerContext::openDatabase): |
|
36615 (WebCore::JSWorkerContext::openDatabaseSync): |
|
36616 * bindings/js/JSWorkerCustom.cpp: |
|
36617 (WebCore::JSWorker::postMessage): |
|
36618 * bindings/js/JSXMLHttpRequestCustom.cpp: |
|
36619 (WebCore::JSXMLHttpRequest::open): |
|
36620 (WebCore::JSXMLHttpRequest::send): |
|
36621 * bindings/js/JSXSLTProcessorCustom.cpp: |
|
36622 (WebCore::JSXSLTProcessor::importStylesheet): |
|
36623 (WebCore::JSXSLTProcessor::transformToFragment): |
|
36624 (WebCore::JSXSLTProcessor::transformToDocument): |
|
36625 (WebCore::JSXSLTProcessor::setParameter): |
|
36626 (WebCore::JSXSLTProcessor::getParameter): |
|
36627 (WebCore::JSXSLTProcessor::removeParameter): |
|
36628 * bindings/js/ScheduledAction.cpp: |
|
36629 (WebCore::ScheduledAction::create): |
|
36630 (WebCore::ScheduledAction::ScheduledAction): |
|
36631 * bindings/js/ScheduledAction.h: |
|
36632 * bindings/js/ScriptCallFrame.cpp: |
|
36633 (WebCore::ScriptCallFrame::ScriptCallFrame): |
|
36634 * bindings/js/ScriptCallFrame.h: |
|
36635 * bindings/js/ScriptCallStack.cpp: |
|
36636 (WebCore::ScriptCallStack::ScriptCallStack): |
|
36637 (WebCore::ScriptCallStack::initialize): |
|
36638 * bindings/js/ScriptCallStack.h: |
|
36639 * bindings/scripts/CodeGeneratorJS.pm: |
|
36640 * bridge/c/c_instance.cpp: |
|
36641 (JSC::Bindings::CInstance::invokeMethod): |
|
36642 (JSC::Bindings::CInstance::invokeDefaultMethod): |
|
36643 * bridge/c/c_instance.h: |
|
36644 * bridge/jni/jsc/JavaInstanceJSC.cpp: |
|
36645 (JavaInstance::invokeMethod): |
|
36646 * bridge/jni/jsc/JavaInstanceJSC.h: |
|
36647 * bridge/jsc/BridgeJSC.h: |
|
36648 (JSC::Bindings::Instance::invokeDefaultMethod): |
|
36649 * bridge/objc/objc_instance.h: |
|
36650 * bridge/objc/objc_instance.mm: |
|
36651 (ObjcInstance::invokeMethod): |
|
36652 (ObjcInstance::invokeObjcMethod): |
|
36653 (ObjcInstance::invokeDefaultMethod): |
|
36654 * bridge/objc/objc_runtime.mm: |
|
36655 (JSC::Bindings::callObjCFallbackObject): |
|
36656 * bridge/runtime_method.cpp: |
|
36657 (JSC::callRuntimeMethod): |
|
36658 * bridge/runtime_object.cpp: |
|
36659 (JSC::Bindings::callRuntimeObject): |
|
36660 |
|
36661 2010-05-28 Stephen White <senorblanco@chromium.org> |
|
36662 |
|
36663 Reviewed by Darin Fisher. |
|
36664 |
|
36665 Implement GraphicsContext::setImageInterpolation() for the Chromium |
|
36666 port. This is preparatory work for bug 38233. A number of |
|
36667 background-resize tests will need a rebaseline, since the images are |
|
36668 taken during the initial "low quality" phase (<800ms). |
|
36669 |
|
36670 [CHROMIUM] Chromium port should support image interpolation quality |
|
36671 https://bugs.webkit.org/show_bug.cgi?id=38686 |
|
36672 |
|
36673 Covered by fast/backgrounds/size/backgroundSize15.html, and others. |
|
36674 |
|
36675 * platform/graphics/skia/GraphicsContextSkia.cpp: |
|
36676 Implement WebCore::GraphicsContext::setImageInterpolationQuality. |
|
36677 * platform/graphics/skia/ImageSkia.cpp: |
|
36678 (WebCore::computeResamplingMode): Only enable high quality |
|
36679 interpolation if it has been requested in the GraphicsContext. |
|
36680 (WebCore::drawResampledBitmap): Enable cacheing of resampled images |
|
36681 even if the size is not full (fix from Brett Wilson). |
|
36682 (WebCore::paintSkBitmap): Pass in the PlatformContextSkia to |
|
36683 computeResamplingMode, so it can query it for interpolation quality. |
|
36684 (WebCore::Image::drawPattern): Ibid. |
|
36685 * platform/graphics/skia/PlatformContextSkia.cpp: |
|
36686 (PlatformContextSkia::State::State): |
|
36687 (PlatformContextSkia::interpolationQuality): |
|
36688 (PlatformContextSkia::setInterpolationQuality): |
|
36689 * platform/graphics/skia/PlatformContextSkia.h: |
|
36690 Add a member fn and accessors to retain the image interpolation quality |
|
36691 in the platform context, and to save/restore it with the state. |
|
36692 |
|
36693 2010-05-28 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
36694 |
|
36695 Reviewed by Kenneth Rohde Christiansen. |
|
36696 |
|
36697 [EFL] Remove compiler warnings about uninitialized variable. |
|
36698 https://bugs.webkit.org/show_bug.cgi?id=39871 |
|
36699 |
|
36700 No new tests, just cosmetic changes. |
|
36701 |
|
36702 * platform/efl/WidgetEfl.cpp: |
|
36703 (WebCore::Widget::applyCursor): |
|
36704 |
|
36705 2010-05-28 Vangelis Kokkevis <vangelis@chromium.org> |
|
36706 |
|
36707 Reviewed by Dimitri Glazkov. |
|
36708 |
|
36709 Prevent chromium composited layers from rendering on top of the scrollbars. |
|
36710 https://bugs.webkit.org/show_bug.cgi?id=39851 |
|
36711 |
|
36712 * platform/graphics/chromium/LayerRendererChromium.cpp: |
|
36713 (WebCore::LayerRendererChromium::drawLayers): |
|
36714 |
|
36715 2010-05-28 Aaron Boodman <aa@chromium.org> |
|
36716 |
|
36717 Reviewed by Darin Fisher. |
|
36718 |
|
36719 Added isXHTMLDocument() to WebCore::Document. |
|
36720 |
|
36721 https://bugs.webkit.org/show_bug.cgi?id=39887 |
|
36722 |
|
36723 * dom/Document.h: Add isXHTMLDocument(). |
|
36724 (WebCore::Document::isXHTMLDocument): Ditto. |
|
36725 |
|
36726 2010-05-28 Peter Kasting <pkasting@google.com> |
|
36727 |
|
36728 Reviewed by Darin Adler. |
|
36729 |
|
36730 https://bugs.webkit.org/show_bug.cgi?id=39857 |
|
36731 Make GIFs loop the correct number of times. Previously, everyone looped |
|
36732 one time too few for non-infinitely-looping GIFs. |
|
36733 |
|
36734 Modified a Qt manual test to be correct and moved it to the general |
|
36735 manual test directory. |
|
36736 |
|
36737 * manual-tests/animated-gif-looping.html: Copied from WebCore/manual-tests/qt/qt-gif-test.html. |
|
36738 * manual-tests/qt/qt-10loop-anim.gif: Removed. |
|
36739 * manual-tests/qt/qt-anim.gif: Removed. |
|
36740 * manual-tests/qt/qt-gif-test.html: Removed. |
|
36741 * manual-tests/qt/qt-noanim.gif: Removed. |
|
36742 * manual-tests/resources/animated-10x.gif: Copied from WebCore/manual-tests/qt/qt-10loop-anim.gif and modified. |
|
36743 * manual-tests/resources/animated-infinite.gif: Copied from WebCore/manual-tests/qt/qt-anim.gif. |
|
36744 * manual-tests/resources/non-animated.gif: Copied from WebCore/manual-tests/qt/qt-noanim.gif. |
|
36745 * platform/graphics/BitmapImage.cpp: |
|
36746 (WebCore::BitmapImage::internalAdvanceAnimation): For a loop count of n, show a total of n + 1 animation cycles. |
|
36747 * platform/graphics/ImageSource.h: |
|
36748 * platform/graphics/cg/ImageSourceCG.cpp: |
|
36749 (WebCore::ImageSource::repetitionCount): |
|
36750 * platform/graphics/qt/ImageDecoderQt.cpp: |
|
36751 (WebCore::ImageDecoderQt::repetitionCount): Remove translation code now that WebCore matches Qt's internal handling of the loop count. Qt itself may still have a bug here. |
|
36752 * platform/image-decoders/gif/GIFImageDecoder.cpp: |
|
36753 (WebCore::GIFImageDecoder::repetitionCount): |
|
36754 * platform/image-decoders/gif/GIFImageReader.cpp: |
|
36755 (GIFImageReader::read): Translate loop count 0 to "loop infinitely" (by restoring one piece of the Mozilla code we'd removed). |
|
36756 |
|
36757 2010-05-28 Ben Murdoch <benm@google.com> |
|
36758 |
|
36759 Reviewed by Darin Adler. |
|
36760 |
|
36761 openFile(...) in FIleSystemPOSIX does not call fileSystemRepresentation |
|
36762 https://bugs.webkit.org/show_bug.cgi?id=39882 |
|
36763 |
|
36764 No new tests. Existing tests in fast/files should suffice. |
|
36765 |
|
36766 * platform/posix/FileSystemPOSIX.cpp: |
|
36767 (WebCore::openFile): pass the path parameter through fileSystemRepresentation before using it. |
|
36768 |
|
36769 2010-05-28 Adam Barth <abarth@webkit.org> |
|
36770 |
|
36771 Reviewed by Eric Seidel. |
|
36772 |
|
36773 Named entities in attributes aren't parsed correctly by HTML5 parser |
|
36774 https://bugs.webkit.org/show_bug.cgi?id=39873 |
|
36775 |
|
36776 I misplaced this if statement when writing this code originally. Now |
|
36777 that we have test coverage for this paragraph in the spec, we can see |
|
36778 and fix the bug. |
|
36779 |
|
36780 * html/HTML5Lexer.cpp: |
|
36781 (WebCore::HTML5Lexer::consumeEntity): |
|
36782 |
|
36783 2010-05-28 Adam Barth <abarth@webkit.org> |
|
36784 |
|
36785 Reviewed by Eric Seidel. |
|
36786 |
|
36787 Handle edge cases in HTML5 entity parsing |
|
36788 https://bugs.webkit.org/show_bug.cgi?id=39823 |
|
36789 |
|
36790 The HTML5 specification tells us to handle HTML entities in a somewhat |
|
36791 complicated way. This patch attempts to correctly handle numeric |
|
36792 entities. Some of this code is duplicated from HTMLTokenizer. |
|
36793 |
|
36794 * html/HTML5Lexer.cpp: |
|
36795 (WebCore::HTMLNames::): |
|
36796 (WebCore::HTMLNames::adjustEntity): |
|
36797 (WebCore::HTMLNames::legalEntityFor): |
|
36798 (WebCore::HTML5Lexer::consumeEntity): |
|
36799 (WebCore::HTML5Lexer::processEntity): |
|
36800 (WebCore::HTML5Lexer::nextToken): |
|
36801 (WebCore::HTML5Lexer::emitCodePoint): |
|
36802 * html/HTML5Lexer.h: |
|
36803 |
|
36804 2010-05-28 Chris Fleizach <cfleizach@apple.com> |
|
36805 |
|
36806 Reviewed by Beth Dakin. |
|
36807 |
|
36808 AX: stop prepping value conversion in accessibilityAttributeValueForParameter |
|
36809 https://bugs.webkit.org/show_bug.cgi?id=39880 |
|
36810 |
|
36811 Cleaning up a FIXME so that all values are not converted before they're needed in accessibilityAttributeValue:forParameter: |
|
36812 |
|
36813 * accessibility/mac/AccessibilityObjectWrapper.mm: |
|
36814 (visiblePositionForTextMarker): |
|
36815 (-[AccessibilityObjectWrapper visiblePositionRangeForTextMarkerRange:]): |
|
36816 (-[AccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]): |
|
36817 |
|
36818 2010-05-28 Adam Treat <atreat@rim.com> |
|
36819 |
|
36820 Reviewed by Daniel Bates. |
|
36821 |
|
36822 RIM Bug #293 and https://bugs.webkit.org/show_bug.cgi?id=39859 |
|
36823 |
|
36824 Layout is not dependent upon ScrollView::frameRect when useFixedLayout |
|
36825 is true. No reason to set the needs layout flag in this case. |
|
36826 |
|
36827 * platform/ScrollView.cpp: |
|
36828 (WebCore::ScrollView::setFrameRect): |
|
36829 |
|
36830 2010-05-28 Mikhail Naganov <mnaganov@chromium.org> |
|
36831 |
|
36832 Unreviewed. Revert 60353 -- immature. |
|
36833 |
|
36834 https://bugs.webkit.org/show_bug.cgi?id=39646 |
|
36835 |
|
36836 * bindings/js/JSConsoleCustom.cpp: |
|
36837 * bindings/v8/custom/V8ConsoleCustom.cpp: |
|
36838 * page/Console.cpp: |
|
36839 * page/Console.h: |
|
36840 * page/Console.idl: |
|
36841 |
|
36842 2010-05-27 Darin Adler <darin@apple.com> |
|
36843 |
|
36844 Reviewed by David Levin. |
|
36845 |
|
36846 Make more HTML DOM members private, especially constructors, batch 2 |
|
36847 https://bugs.webkit.org/show_bug.cgi?id=39706 |
|
36848 |
|
36849 Refactoring so no new tests. |
|
36850 |
|
36851 Worked my way up from the bottom of HTMLTagNames.in. |
|
36852 |
|
36853 * html/HTMLTagNames.in: Removed createWithNew from keygen, listing, |
|
36854 map, marquee, menu, meta, ol, optgroup, option, p, param, pre, |
|
36855 script, select, source, style, table, tbody, td, textarea, tfoot, |
|
36856 th, thead, title, tr, ul, video, xmp, and noscript. |
|
36857 |
|
36858 * editing/htmlediting.cpp: |
|
36859 (WebCore::createOrderedListElement): Use create function instead of new. |
|
36860 (WebCore::createUnorderedListElement): Ditto. |
|
36861 * html/HTMLParser.cpp: |
|
36862 (WebCore::HTMLParser::handleError): Ditto. |
|
36863 (WebCore::HTMLParser::mapCreateErrorCheck): Ditto. |
|
36864 * html/HTMLViewSourceDocument.cpp: |
|
36865 (WebCore::HTMLViewSourceDocument::createContainingTable): Ditto. |
|
36866 (WebCore::HTMLViewSourceDocument::addLine): Ditto. |
|
36867 |
|
36868 * html/HTMLKeygenElement.cpp: |
|
36869 (WebCore::HTMLKeygenElement::HTMLKeygenElement): Use create function |
|
36870 instead of new. |
|
36871 (WebCore::HTMLKeygenElement::create): Added. |
|
36872 * html/HTMLKeygenElement.h: Made constructor and virtual function |
|
36873 overrides private, added create function. |
|
36874 |
|
36875 * html/HTMLMapElement.cpp: |
|
36876 (WebCore::HTMLMapElement::HTMLMapElement): |
|
36877 (WebCore::HTMLMapElement::create): |
|
36878 * html/HTMLMapElement.h: |
|
36879 * html/HTMLMarqueeElement.cpp: |
|
36880 (WebCore::HTMLMarqueeElement::HTMLMarqueeElement): |
|
36881 (WebCore::HTMLMarqueeElement::create): |
|
36882 * html/HTMLMarqueeElement.h: |
|
36883 * html/HTMLMenuElement.cpp: |
|
36884 (WebCore::HTMLMenuElement::HTMLMenuElement): |
|
36885 (WebCore::HTMLMenuElement::create): |
|
36886 * html/HTMLMenuElement.h: |
|
36887 * html/HTMLMetaElement.cpp: |
|
36888 (WebCore::HTMLMetaElement::HTMLMetaElement): |
|
36889 (WebCore::HTMLMetaElement::create): |
|
36890 * html/HTMLMetaElement.h: |
|
36891 * html/HTMLNoScriptElement.cpp: |
|
36892 (WebCore::HTMLNoScriptElement::HTMLNoScriptElement): |
|
36893 (WebCore::HTMLNoScriptElement::create): |
|
36894 (WebCore::HTMLNoScriptElement::childShouldCreateRenderer): |
|
36895 * html/HTMLNoScriptElement.h: |
|
36896 * html/HTMLOListElement.cpp: |
|
36897 (WebCore::HTMLOListElement::HTMLOListElement): |
|
36898 (WebCore::HTMLOListElement::create): |
|
36899 * html/HTMLOListElement.h: |
|
36900 * html/HTMLOptGroupElement.cpp: |
|
36901 (WebCore::HTMLOptGroupElement::HTMLOptGroupElement): |
|
36902 (WebCore::HTMLOptGroupElement::create): |
|
36903 * html/HTMLOptGroupElement.h: |
|
36904 * html/HTMLOptionElement.cpp: |
|
36905 (WebCore::HTMLOptionElement::HTMLOptionElement): |
|
36906 (WebCore::HTMLOptionElement::create): |
|
36907 * html/HTMLOptionElement.h: |
|
36908 * html/HTMLParagraphElement.cpp: |
|
36909 (WebCore::HTMLParagraphElement::HTMLParagraphElement): |
|
36910 (WebCore::HTMLParagraphElement::create): |
|
36911 * html/HTMLParagraphElement.h: |
|
36912 * html/HTMLParamElement.cpp: |
|
36913 (WebCore::HTMLParamElement::HTMLParamElement): |
|
36914 (WebCore::HTMLParamElement::create): |
|
36915 * html/HTMLParamElement.h: |
|
36916 * html/HTMLPreElement.cpp: |
|
36917 (WebCore::HTMLPreElement::HTMLPreElement): |
|
36918 (WebCore::HTMLPreElement::create): |
|
36919 * html/HTMLPreElement.h: |
|
36920 * html/HTMLQuoteElement.cpp: |
|
36921 (WebCore::HTMLQuoteElement::HTMLQuoteElement): |
|
36922 (WebCore::HTMLQuoteElement::create): |
|
36923 * html/HTMLQuoteElement.h: |
|
36924 * html/HTMLScriptElement.cpp: |
|
36925 (WebCore::HTMLScriptElement::HTMLScriptElement): |
|
36926 (WebCore::HTMLScriptElement::create): |
|
36927 * html/HTMLScriptElement.h: |
|
36928 * html/HTMLSelectElement.cpp: |
|
36929 (WebCore::HTMLSelectElement::create): |
|
36930 * html/HTMLSelectElement.h: |
|
36931 * html/HTMLSourceElement.cpp: |
|
36932 (WebCore::HTMLSourceElement::HTMLSourceElement): |
|
36933 (WebCore::HTMLSourceElement::create): |
|
36934 * html/HTMLSourceElement.h: |
|
36935 * html/HTMLStyleElement.cpp: |
|
36936 (WebCore::HTMLStyleElement::HTMLStyleElement): |
|
36937 (WebCore::HTMLStyleElement::create): |
|
36938 * html/HTMLStyleElement.h: |
|
36939 * html/HTMLTableRowElement.cpp: |
|
36940 (WebCore::HTMLTableRowElement::HTMLTableRowElement): |
|
36941 (WebCore::HTMLTableRowElement::create): |
|
36942 (WebCore::HTMLTableRowElement::insertCell): |
|
36943 * html/HTMLTableRowElement.h: |
|
36944 * html/HTMLTableSectionElement.cpp: |
|
36945 (WebCore::HTMLTableSectionElement::HTMLTableSectionElement): |
|
36946 (WebCore::HTMLTableSectionElement::create): |
|
36947 (WebCore::HTMLTableSectionElement::insertRow): |
|
36948 * html/HTMLTableSectionElement.h: |
|
36949 * html/HTMLTextAreaElement.cpp: |
|
36950 (WebCore::HTMLTextAreaElement::create): |
|
36951 * html/HTMLTextAreaElement.h: |
|
36952 * html/HTMLTitleElement.cpp: |
|
36953 (WebCore::HTMLTitleElement::HTMLTitleElement): |
|
36954 (WebCore::HTMLTitleElement::create): |
|
36955 * html/HTMLTitleElement.h: |
|
36956 * html/HTMLUListElement.cpp: |
|
36957 (WebCore::HTMLUListElement::HTMLUListElement): |
|
36958 (WebCore::HTMLUListElement::create): |
|
36959 * html/HTMLUListElement.h: |
|
36960 * html/HTMLVideoElement.cpp: |
|
36961 (WebCore::HTMLVideoElement::HTMLVideoElement): |
|
36962 (WebCore::HTMLVideoElement::create): |
|
36963 * html/HTMLVideoElement.h: |
|
36964 Made constructors and virtual function overrides private, added |
|
36965 create function. |
|
36966 |
|
36967 * html/HTMLTableCellElement.cpp: |
|
36968 (WebCore::HTMLTableCellElement::HTMLTableCellElement): Updated |
|
36969 names of data members. Renamed _row to m_row, _col to m_col, |
|
36970 rSpan to m_rowSpan, cSpan to m_colSpan, and removed unused |
|
36971 rowHeight and m_solid. |
|
36972 (WebCore::HTMLTableCellElement::create): Added. |
|
36973 (WebCore::HTMLTableCellElement::parseMappedAttribute): Updated names. |
|
36974 * html/HTMLTableCellElement.h: Ditto. |
|
36975 |
|
36976 * html/HTMLTableElement.cpp: |
|
36977 (WebCore::HTMLTableElement::create): Added. |
|
36978 (WebCore::HTMLTableElement::createTHead): Used create instead of new. |
|
36979 (WebCore::HTMLTableElement::createTFoot): Ditto. |
|
36980 (WebCore::HTMLTableElement::insertRow): Ditto. |
|
36981 * html/HTMLTableElement.h: |
|
36982 |
|
36983 * html/HTMLTablePartElement.h: Made members protected instead of |
|
36984 public. |
|
36985 |
|
36986 2010-05-28 Andreas Kling <andreas.kling@nokia.com> |
|
36987 |
|
36988 Reviewed by Kenneth Rohde Christiansen. |
|
36989 |
|
36990 [Qt] REGRESSION(r59837): Incorrect clipping of TransparencyLayers |
|
36991 https://bugs.webkit.org/show_bug.cgi?id=39784 |
|
36992 |
|
36993 Move coordinate transformation from TransparencyLayer to clipToImageBuffer() |
|
36994 |
|
36995 * platform/graphics/qt/GraphicsContextQt.cpp: |
|
36996 (WebCore::TransparencyLayer::TransparencyLayer): |
|
36997 (WebCore::GraphicsContext::clipToImageBuffer): |
|
36998 |
|
36999 2010-05-28 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
37000 |
|
37001 Reviewed by Kenneth Rohde Christiansen. |
|
37002 |
|
37003 [EF] Implement methods for supporting PopupMenu |
|
37004 https://bugs.webkit.org/show_bug.cgi?id=39629 |
|
37005 |
|
37006 * platform/PopupMenu.h: add needed attribute |
|
37007 * platform/efl/PopupMenuEfl.cpp: implement methods to show/hide popup |
|
37008 menu |
|
37009 (WebCore::PopupMenu::PopupMenu): initialize new attribute |
|
37010 (WebCore::PopupMenu::show): ditto. |
|
37011 (WebCore::PopupMenu::hide): ditto. |
|
37012 |
|
37013 2010-05-28 Lucas De Marchi <lucas.demarchi@profusion.mobi> |
|
37014 |
|
37015 Reviewed by Kenneth Rohde Christiansen. |
|
37016 |
|
37017 Reorder class initializers to remove compiler warnings. |
|
37018 https://bugs.webkit.org/show_bug.cgi?id=39596 |
|
37019 |
|
37020 * platform/efl/PlatformKeyboardEventEfl.cpp: ditto. |
|
37021 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): ditto. |
|
37022 * platform/efl/PlatformMouseEventEfl.cpp: ditto. |
|
37023 (WebCore::PlatformMouseEvent::PlatformMouseEvent): ditto. |
|
37024 * platform/efl/PlatformWheelEventEfl.cpp: ditto |
|
37025 (WebCore::PlatformWheelEvent::PlatformWheelEvent): ditto. |
|
37026 |
|
37027 2010-05-27 Jeremy Orlow <jorlow@chromium.org> |
|
37028 |
|
37029 Reviewed by Steve Block. |
|
37030 |
|
37031 Add IndexedDB's IDBIndex |
|
37032 https://bugs.webkit.org/show_bug.cgi?id=39850 |
|
37033 |
|
37034 Flesh out IDBIndex as much as possible until Andrei finishes |
|
37035 his patch to get around passing Frame*'s all around. I also |
|
37036 cleaned up a bunch of existing files as I noticed style |
|
37037 violations (while basing my new files off of the old). |
|
37038 |
|
37039 Not hooked up enough to test. Will add tests soon. |
|
37040 |
|
37041 * Android.derived.jscbindings.mk |
|
37042 * Android.derived.v8bindings.mk |
|
37043 * Android.mk |
|
37044 * CMakeLists.txt |
|
37045 * DerivedSources.cpp |
|
37046 * DerivedSources.make |
|
37047 * GNUmakefile.am |
|
37048 * WebCore.pri |
|
37049 * WebCore.pro |
|
37050 * WebCore.gypi: |
|
37051 * WebCore.vcproj/WebCore.vcproj |
|
37052 * WebCore.xcodeproj/project.pbxproj |
|
37053 * bindings/js/JSIDBAnyCustom.cpp: |
|
37054 (WebCore::toJS): |
|
37055 * bindings/v8/custom/V8IDBAnyCustom.cpp: |
|
37056 (WebCore::toV8): |
|
37057 * storage/IDBAny.cpp: |
|
37058 (WebCore::IDBAny::idbIndexRequest): |
|
37059 (WebCore::IDBAny::set): |
|
37060 * storage/IDBAny.h: |
|
37061 (WebCore::IDBAny::): |
|
37062 * storage/IDBCallbacks.h: |
|
37063 * storage/IDBDatabase.h: |
|
37064 * storage/IDBDatabaseError.h: |
|
37065 (WebCore::IDBDatabaseError::): |
|
37066 * storage/IDBDatabaseError.idl: |
|
37067 * storage/IDBDatabaseException.h: |
|
37068 * storage/IDBDatabaseException.idl: |
|
37069 * storage/IDBDatabaseImpl.cpp: |
|
37070 * storage/IDBDatabaseImpl.h: |
|
37071 * storage/IDBDatabaseRequest.cpp: |
|
37072 * storage/IDBDatabaseRequest.h: |
|
37073 * storage/IDBDatabaseRequest.idl: |
|
37074 * storage/IDBIndex.h: Added. |
|
37075 (WebCore::IDBIndex::~IDBIndex): |
|
37076 * storage/IDBIndexImpl.cpp: Added. |
|
37077 (WebCore::IDBIndexImpl::IDBIndexImpl): |
|
37078 (WebCore::IDBIndexImpl::~IDBIndexImpl): |
|
37079 * storage/IDBIndexImpl.h: Added. |
|
37080 (WebCore::IDBIndexImpl::create): |
|
37081 (WebCore::IDBIndexImpl::name): |
|
37082 (WebCore::IDBIndexImpl::keyPath): |
|
37083 (WebCore::IDBIndexImpl::unique): |
|
37084 * storage/IDBIndexRequest.cpp: Added. |
|
37085 (WebCore::IDBIndexRequest::IDBIndexRequest): |
|
37086 (WebCore::IDBIndexRequest::~IDBIndexRequest): |
|
37087 * storage/IDBIndexRequest.h: Added. |
|
37088 (WebCore::IDBIndexRequest::create): |
|
37089 (WebCore::IDBIndexRequest::name): |
|
37090 (WebCore::IDBIndexRequest::keyPath): |
|
37091 (WebCore::IDBIndexRequest::unique): |
|
37092 * storage/IDBIndexRequest.idl: Added. |
|
37093 * storage/IDBObjectStore.cpp: |
|
37094 (WebCore::IDBObjectStore::IDBObjectStore): |
|
37095 (WebCore::IDBObjectStore::~IDBObjectStore): |
|
37096 (WebCore::IDBObjectStore::indexNames): |
|
37097 (WebCore::IDBObjectStore::createIndex): |
|
37098 (WebCore::IDBObjectStore::index): |
|
37099 (WebCore::IDBObjectStore::removeIndex): |
|
37100 * storage/IDBObjectStore.h: |
|
37101 * storage/IDBObjectStoreRequest.cpp: |
|
37102 (WebCore::IDBObjectStoreRequest::IDBObjectStoreRequest): |
|
37103 (WebCore::IDBObjectStoreRequest::name): |
|
37104 (WebCore::IDBObjectStoreRequest::keyPath): |
|
37105 (WebCore::IDBObjectStoreRequest::indexNames): |
|
37106 (WebCore::IDBObjectStoreRequest::createIndex): |
|
37107 (WebCore::IDBObjectStoreRequest::index): |
|
37108 (WebCore::IDBObjectStoreRequest::removeIndex): |
|
37109 * storage/IDBObjectStoreRequest.h: |
|
37110 * storage/IDBObjectStoreRequest.idl: |
|
37111 * storage/IDBRequest.cpp: |
|
37112 (WebCore::IDBRequest::onSuccess): |
|
37113 * storage/IDBRequest.h: |
|
37114 * storage/IndexedDatabaseRequest.idl: |
|
37115 |
|
37116 2010-05-28 Yury Semikhatsky <yurys@chromium.org> |
|
37117 |
|
37118 Reviewed by Pavel Feldman. |
|
37119 |
|
37120 Web Inspector: hide node highlight when inspected page closes. |
|
37121 https://bugs.webkit.org/show_bug.cgi?id=39872 |
|
37122 |
|
37123 * inspector/InspectorController.cpp: |
|
37124 (WebCore::InspectorController::~InspectorController): |
|
37125 (WebCore::InspectorController::inspectedPageDestroyed): |
|
37126 |
|
37127 2010-05-28 Mikhail Naganov <mnaganov@chromium.org> |
|
37128 |
|
37129 Reviewed by Yury Semikhatsky. |
|
37130 |
|
37131 Web Inspector: add Console API for retrieving memory stats |
|
37132 |
|
37133 Add 'console.memory' property which returns an object. Currently |
|
37134 it has two fields: totalHeapSize and usedHeapSize. Later, it can be |
|
37135 extended for reporting total browser's memory consumption. |
|
37136 |
|
37137 https://bugs.webkit.org/show_bug.cgi?id=39840 |
|
37138 |
|
37139 * bindings/js/JSConsoleCustom.cpp: |
|
37140 (WebCore::JSConsole::memory): |
|
37141 * bindings/v8/custom/V8ConsoleCustom.cpp: |
|
37142 (WebCore::V8Console::memoryAccessorGetter): |
|
37143 * page/Console.cpp: |
|
37144 (WebCore::Console::memory): |
|
37145 * page/Console.h: |
|
37146 * page/Console.idl: |
|
37147 |
|
37148 2010-05-28 Xan Lopez <xlopez@igalia.com> |
|
37149 |
|
37150 Add new file to the build system. |
|
37151 |
|
37152 * GNUmakefile.am: |
|
37153 |
|
37154 2010-05-28 Antti Koivisto <koivisto@iki.fi> |
|
37155 |
|
37156 Reviewed by Kenneth Rohde Christiansen. |
|
37157 |
|
37158 https://bugs.webkit.org/show_bug.cgi?id=39874 |
|
37159 [Qt] Make tiled backing store more configurable |
|
37160 |
|
37161 Make tile size, tile creation delay and tiling area dynamically configurable. |
|
37162 |
|
37163 * platform/graphics/TiledBackingStore.cpp: |
|
37164 (WebCore::TiledBackingStore::TiledBackingStore): |
|
37165 (WebCore::TiledBackingStore::setTileSize): |
|
37166 (WebCore::TiledBackingStore::setTileCreationDelay): |
|
37167 (WebCore::TiledBackingStore::setKeepAndCoverAreaMultipliers): |
|
37168 (WebCore::TiledBackingStore::createTiles): |
|
37169 * platform/graphics/TiledBackingStore.h: |
|
37170 (WebCore::TiledBackingStore::tileSize): |
|
37171 (WebCore::TiledBackingStore::tileCreationDelay): |
|
37172 (WebCore::TiledBackingStore::getKeepAndCoverAreaMultipliers): |
|
37173 |
|
37174 2010-05-28 Eric Seidel <eric@webkit.org> |
|
37175 |
|
37176 Reviewed by Adam Barth. |
|
37177 |
|
37178 document.write does not work correctly in the HTML5 parser |
|
37179 https://bugs.webkit.org/show_bug.cgi?id=39828 |
|
37180 |
|
37181 Added a new HTML5ScriptRunnerHost interface which |
|
37182 HTML5Tokenizer implements. This allows HTML5ScriptController |
|
37183 to delegate the actual ScriptController::executeScript back to |
|
37184 HTML5Tokenizer. HTML5Tokenizer saves off the current m_source |
|
37185 before calling ScriptController::executeScript to allow safe |
|
37186 reentrancy through document.write(). |
|
37187 |
|
37188 * WebCore.xcodeproj/project.pbxproj: |
|
37189 - Added HTML5ScriptRunnerHost.h |
|
37190 * html/HTML5ScriptRunner.cpp: |
|
37191 (WebCore::HTML5ScriptRunner::HTML5ScriptRunner): |
|
37192 (WebCore::HTML5ScriptRunner::~HTML5ScriptRunner): |
|
37193 - Unregister m_parsingBlockingScript if stopped before |
|
37194 load completion. This was probably causing some of the |
|
37195 crashes on page navigation we saw during LayoutTest runs. |
|
37196 (WebCore::documentURLForScriptExecution): |
|
37197 - Unify our documentURL handling so all callsites get it right. |
|
37198 (WebCore::HTML5ScriptRunner::sourceFromPendingScript): |
|
37199 - Use documentURLForScriptExecution |
|
37200 (WebCore::HTML5ScriptRunner::executePendingScript): |
|
37201 - Call stopWatchingForLoad instead of removeClient() |
|
37202 - Call executeScript instead of ScriptController directly. |
|
37203 (WebCore::HTML5ScriptRunner::executeScript): |
|
37204 - Wraps calls to HTML5ScriptRunnerHost::executeScript |
|
37205 (WebCore::HTML5ScriptRunner::watchForLoad): |
|
37206 - Wraps calls to HTML5ScriptRunnerHost::watchForLoad |
|
37207 (WebCore::HTML5ScriptRunner::stopWatchingForLoad): |
|
37208 - Wraps calls to HTML5ScriptRunnerHost::stopWatchingForLoad |
|
37209 (WebCore::HTML5ScriptRunner::requestScript): |
|
37210 - Only watch for load if the CachedScript isn't already loaded. |
|
37211 This gets rid of rentrancy due to addClient calls, and as a result |
|
37212 also stops us from hitting ASSERT(m_scriptNestingLevel) |
|
37213 in executePendingScript. |
|
37214 (WebCore::HTML5ScriptRunner::runScript): |
|
37215 - Use the new fancy documentURLForScriptExecution and executeScript. |
|
37216 * html/HTML5ScriptRunner.h: |
|
37217 (WebCore::HTML5ScriptRunner::PendingScript::PendingScript): |
|
37218 - Add a watchingForLoad bool so we know if we ever called watchForLoad |
|
37219 with this CachedScript*. |
|
37220 * html/HTML5ScriptRunnerHost.h: Added. |
|
37221 (WebCore::HTML5ScriptRunnerHost::~HTML5ScriptRunnerHost): |
|
37222 * html/HTML5Tokenizer.cpp: |
|
37223 (WebCore::HTML5Tokenizer::HTML5Tokenizer): |
|
37224 - Store an m_document pointer since we need to access |
|
37225 m_document->frame()->script() for script execution. |
|
37226 (WebCore::HTML5Tokenizer::pumpLexer): |
|
37227 - Always pause or unpause the TreeBuilder after script execution. |
|
37228 Previously nested script execution would leave the TreeBuilder |
|
37229 paused even though the top-level loop wanted to resume parsing. |
|
37230 Now whenever m_scriptRunner->execute returns "continue parsing" |
|
37231 parsing will actually continue. This fixed cases where we would |
|
37232 ignore the rest of the document after document.write() of a script tag. |
|
37233 (WebCore::HTML5Tokenizer::write): |
|
37234 - Explain how document.write() reentrancy is safe in the new world. |
|
37235 (WebCore::HTML5Tokenizer::watchForLoad): |
|
37236 - HTML5ScriptRunnerHost implementation. We assert that this call will |
|
37237 never cause script execution since that's our current design. |
|
37238 (WebCore::HTML5Tokenizer::stopWatchingForLoad): |
|
37239 - HTML5ScriptRunnerHost implementation. |
|
37240 (WebCore::HTML5Tokenizer::executeScript): |
|
37241 - HTML5ScriptRunnerHost implementation. Save off the current source |
|
37242 before executing scripts in case document.write is called during |
|
37243 script execution. |
|
37244 * html/HTML5Tokenizer.h: |
|
37245 - Implement HTML5ScriptRunnerHost. |
|
37246 |
|
37247 2010-05-28 Nathan Lawrence <nlawrence@apple.com> |
|
37248 |
|
37249 Reviewed by Geoffrey Garen. |
|
37250 |
|
37251 https://bugs.webkit.org/show_bug.cgi?id=39460 |
|
37252 |
|
37253 Because not just <img> and <image> elements can preload images, we |
|
37254 dont want to restrict the element associated with the loader. |
|
37255 |
|
37256 No new tests. Should share the same tests as the last patch. |
|
37257 |
|
37258 * html/HTMLImageLoader.cpp: |
|
37259 (WebCore::HTMLImageLoader::notifyFinished): |
|
37260 |
|
37261 2010-05-27 MORITA Hajime <morrita@google.com> |
|
37262 |
|
37263 Reviewed by Ojan Vafai. |
|
37264 |
|
37265 Cursor movement and text selection does not work well if a block is followed by an inline. |
|
37266 https://bugs.webkit.org/show_bug.cgi?id=32123 |
|
37267 |
|
37268 RenderInline::setSelectionState() missed selection state |
|
37269 propagation for ancestors. This fix pulled |
|
37270 RenderBlock::setSelectionState() up to RenderBoxModelObject, to |
|
37271 share it with RenderInline. |
|
37272 |
|
37273 Test: editing/selection/range-between-block-and-inline.html: Added. |
|
37274 |
|
37275 * rendering/RenderBlock.cpp: |
|
37276 * rendering/RenderBlock.h: |
|
37277 * rendering/RenderBoxModelObject.cpp: |
|
37278 (WebCore::RenderBoxModelObject::setSelectionState): |
|
37279 * rendering/RenderBoxModelObject.h: |
|
37280 Moved setSelectionState() from RenderBlock to RenderBoxModelObject. |
|
37281 |
|
37282 2010-05-27 MORITA Hajime <morrita@google.com> |
|
37283 |
|
37284 Not reviewed. Fixed typo |
|
37285 |
|
37286 * rendering/RenderTheme.cpp: |
|
37287 (WebCore::RenderTheme::adjustStyle): |
|
37288 |
|
37289 2010-05-27 Darin Adler <darin@apple.com> |
|
37290 |
|
37291 Reviewed by David Levin. |
|
37292 |
|
37293 Make more HTML DOM members private, especially constructors |
|
37294 https://bugs.webkit.org/show_bug.cgi?id=39697 |
|
37295 |
|
37296 Refactoring, so no new tests needed. |
|
37297 |
|
37298 Working my way through HTMLTagNames.in from top to bottom, skipping any |
|
37299 that are non-trivial for some reason. |
|
37300 |
|
37301 * html/HTMLTagNames.in: Removed createWithNew from audio, base, basefont, |
|
37302 blockquote, body, br, button, canvas, caption, col, colgroup, datagrid, |
|
37303 datalist, dcell, dcol, drow, del, dir, dl, and fieldset. |
|
37304 |
|
37305 * mathml/mathtags.in: Removed createWithNew from msub, and msup. |
|
37306 |
|
37307 * dom/Document.cpp: |
|
37308 (WebCore::Document::implicitClose): Use create function instead of new. |
|
37309 (WebCore::Document::getCSSCanvasElement): Ditto. |
|
37310 * editing/IndentOutdentCommand.cpp: |
|
37311 (WebCore::createIndentBlockquoteElement): Ditto. |
|
37312 * editing/htmlediting.cpp: |
|
37313 (WebCore::createBreakElement): Ditto. |
|
37314 * html/HTMLTableElement.cpp: |
|
37315 (WebCore::HTMLTableElement::createCaption): Ditto. |
|
37316 * html/HTMLViewSourceDocument.cpp: |
|
37317 (WebCore::HTMLViewSourceDocument::createContainingTable): Ditto. |
|
37318 * rendering/RenderTextControl.cpp: |
|
37319 (WebCore::RenderTextControl::setInnerTextValue): Ditto. |
|
37320 |
|
37321 * html/HTMLParser.cpp: |
|
37322 (WebCore::HTMLParser::handleError): Use create function instead of new. |
|
37323 Required reordering the code slightly, but the new order works fine. |
|
37324 |
|
37325 * html/HTMLAudioElement.cpp: |
|
37326 (WebCore::HTMLAudioElement::create): |
|
37327 * html/HTMLAudioElement.h: |
|
37328 * html/HTMLBRElement.cpp: |
|
37329 (WebCore::HTMLBRElement::create): |
|
37330 * html/HTMLBRElement.h: |
|
37331 * html/HTMLBaseElement.cpp: |
|
37332 (WebCore::HTMLBaseElement::create): |
|
37333 * html/HTMLBaseElement.h: |
|
37334 * html/HTMLBaseFontElement.cpp: |
|
37335 (WebCore::HTMLBaseFontElement::create): |
|
37336 * html/HTMLBaseFontElement.h: |
|
37337 * html/HTMLBlockquoteElement.cpp: |
|
37338 (WebCore::HTMLBlockquoteElement::create): |
|
37339 * html/HTMLBlockquoteElement.h: |
|
37340 * html/HTMLBodyElement.cpp: |
|
37341 (WebCore::HTMLBodyElement::create): |
|
37342 * html/HTMLBodyElement.h: |
|
37343 * html/HTMLButtonElement.cpp: |
|
37344 (WebCore::HTMLButtonElement::create): |
|
37345 * html/HTMLButtonElement.h: |
|
37346 * html/HTMLCanvasElement.cpp: |
|
37347 (WebCore::HTMLCanvasElement::create): |
|
37348 * html/HTMLCanvasElement.h: |
|
37349 * html/HTMLDListElement.cpp: |
|
37350 (WebCore::HTMLDListElement::create): |
|
37351 * html/HTMLDListElement.h: |
|
37352 * html/HTMLDataGridCellElement.cpp: |
|
37353 (WebCore::HTMLDataGridCellElement::create): |
|
37354 * html/HTMLDataGridCellElement.h: |
|
37355 * html/HTMLDataGridColElement.cpp: |
|
37356 (WebCore::HTMLDataGridColElement::create): |
|
37357 * html/HTMLDataGridColElement.h: |
|
37358 * html/HTMLDataGridElement.cpp: |
|
37359 (WebCore::HTMLDataGridElement::create): |
|
37360 * html/HTMLDataGridElement.h: |
|
37361 * html/HTMLDataGridRowElement.cpp: |
|
37362 (WebCore::HTMLDataGridRowElement::create): |
|
37363 * html/HTMLDataGridRowElement.h: |
|
37364 * html/HTMLDataListElement.cpp: |
|
37365 (WebCore::HTMLDataListElement::create): |
|
37366 * html/HTMLDataListElement.h: |
|
37367 * html/HTMLElement.cpp: |
|
37368 (WebCore::HTMLElement::setInnerText): |
|
37369 * html/HTMLFieldSetElement.cpp: |
|
37370 (WebCore::HTMLFieldSetElement::create): |
|
37371 * html/HTMLFieldSetElement.h: |
|
37372 * html/HTMLModElement.cpp: |
|
37373 (WebCore::HTMLModElement::HTMLModElement): |
|
37374 (WebCore::HTMLModElement::create): |
|
37375 * html/HTMLModElement.h: |
|
37376 * html/HTMLTableCaptionElement.cpp: |
|
37377 (WebCore::HTMLTableCaptionElement::create): |
|
37378 * html/HTMLTableCaptionElement.h: |
|
37379 Made constructors and virtual function overrides private, added create functions. |
|
37380 Made constructors inline in cases where they were called in only one place. |
|
37381 |
|
37382 * html/HTMLTableColElement.cpp: |
|
37383 (WebCore::HTMLTableColElement::HTMLTableColElement): Changed data member name |
|
37384 from _span to m_span. |
|
37385 (WebCore::HTMLTableColElement::create): Added. |
|
37386 (WebCore::HTMLTableColElement::parseMappedAttribute): Updated to use m_span. |
|
37387 * html/HTMLTableColElement.h: |
|
37388 Made constructor and virtual function overrides private, added create function. |
|
37389 Renamed _span to m_span. |
|
37390 |
|
37391 2010-05-27 Kwang Yul Seo <skyul@company100.net> |
|
37392 |
|
37393 Reviewed by Darin Adler. |
|
37394 |
|
37395 wx port: build fix for Linux |
|
37396 https://bugs.webkit.org/show_bug.cgi?id=39860 |
|
37397 |
|
37398 Use uint16_t instead of uint16. |
|
37399 |
|
37400 * plugins/PluginPackageNone.cpp: |
|
37401 (WebCore::PluginPackage::NPVersion): |
|
37402 |
|
37403 2010-05-27 Nathan Lawrence <nlawrence@apple.com> |
|
37404 |
|
37405 Reviewed by Geoffrey Garen. |
|
37406 |
|
37407 https://bugs.webkit.org/show_bug.cgi?id=39460 |
|
37408 |
|
37409 Fixes the issue where images prefetched by JavaScript do not report |
|
37410 their memory usage to the GC. |
|
37411 |
|
37412 There is a new test manual-tests/image-prefetch-stress.html that loads |
|
37413 a new 4MB image every half a second. |
|
37414 |
|
37415 * html/HTMLImageLoader.cpp: |
|
37416 (WebCore::HTMLImageLoader::notifyFinished): |
|
37417 * manual-tests/image-prefetch-stress.html: Added. |
|
37418 |
|
37419 2010-05-27 Eric Uhrhane <ericu@chromium.org> |
|
37420 |
|
37421 Reviewed by Adam Barth. |
|
37422 |
|
37423 Add v8 bindings for async DB API in workers |
|
37424 https://bugs.webkit.org/show_bug.cgi?id=39145 |
|
37425 |
|
37426 No new tests. This should share layout tests with JSC. |
|
37427 |
|
37428 Tweak the callback generation to switch lots of Frame* to ScriptExecutionContext*, and use the context passed in to handleEvent where possible. |
|
37429 * bindings/scripts/CodeGeneratorV8.pm: |
|
37430 |
|
37431 As with CodeGeneratorV8; these are pretty much all tiny tweaks. |
|
37432 We do have to use a slightly different patch for callback invocation in invokeCallback, as V8Proxy::retrieve() doesn't work in the worker context. |
|
37433 * bindings/v8/custom/V8CustomPositionCallback.cpp: |
|
37434 (WebCore::V8CustomPositionCallback::handleEvent): |
|
37435 * bindings/v8/custom/V8CustomPositionErrorCallback.cpp: |
|
37436 (WebCore::V8CustomPositionErrorCallback::handleEvent): |
|
37437 * bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp: |
|
37438 (WebCore::V8SQLStatementErrorCallback::handleEvent): |
|
37439 * bindings/v8/custom/V8CustomVoidCallback.cpp: |
|
37440 (WebCore::V8CustomVoidCallback::V8CustomVoidCallback): |
|
37441 (WebCore::V8CustomVoidCallback::handleEvent): |
|
37442 (WebCore::invokeCallback): |
|
37443 * bindings/v8/custom/V8CustomVoidCallback.h: |
|
37444 (WebCore::V8CustomVoidCallback::create): |
|
37445 * bindings/v8/custom/V8DOMWindowCustom.cpp: |
|
37446 (WebCore::V8DOMWindow::openDatabaseCallback): |
|
37447 * bindings/v8/custom/V8DatabaseCustom.cpp: |
|
37448 (WebCore::V8Database::changeVersionCallback): |
|
37449 (WebCore::createTransaction): |
|
37450 * bindings/v8/custom/V8DatabaseSyncCustom.cpp: |
|
37451 (WebCore::V8DatabaseSync::changeVersionCallback): |
|
37452 (WebCore::createTransaction): |
|
37453 * bindings/v8/custom/V8NotificationCenterCustom.cpp: |
|
37454 (WebCore::V8NotificationCenter::requestPermissionCallback): |
|
37455 * bindings/v8/custom/V8SQLTransactionCustom.cpp: |
|
37456 (WebCore::V8SQLTransaction::executeSqlCallback): |
|
37457 |
|
37458 Add openDatabaseCallback. |
|
37459 * bindings/v8/custom/V8WorkerContextCustom.cpp: |
|
37460 (WebCore::V8WorkerContext::openDatabaseCallback): |
|
37461 Remove an obsolete parameter. |
|
37462 (WebCore::V8WorkerContext::openDatabaseSyncCallback): |
|
37463 |
|
37464 2010-05-27 Pavel Feldman <pfeldman@chromium.org> |
|
37465 |
|
37466 Reviewed by Yury Semikhatsky. |
|
37467 |
|
37468 Web Inspector: [REGRESSION] Query parameters are not displayed in the resources headers section. |
|
37469 |
|
37470 https://bugs.webkit.org/show_bug.cgi?id=39848 |
|
37471 |
|
37472 * inspector/front-end/ResourceView.js: |
|
37473 (WebInspector.ResourceView): |
|
37474 (WebInspector.ResourceView.prototype._refreshRequestPayload): |
|
37475 |
|
37476 2010-05-27 Nico Weber <thakis@chromium.org> |
|
37477 |
|
37478 Reviewed by Eric Seidel |
|
37479 |
|
37480 https://bugs.webkit.org/show_bug.cgi?id=39092 |
|
37481 |
|
37482 Add Yank support to chromium mac. Do this by moving WebKit Mac's |
|
37483 implementation of Editor::yankFromKillRing() into its own class and |
|
37484 then using that. |
|
37485 |
|
37486 * editing/Editor.cpp: |
|
37487 Use new KillRing class. |
|
37488 * editing/Editor.h: |
|
37489 (WebCore::Editor::killRing): |
|
37490 Use new KillRing class. |
|
37491 * editing/EditorCommand.cpp: |
|
37492 (WebCore::executeYankAndSelect): |
|
37493 Use new KillRing class. |
|
37494 * platform/KillRing.h: |
|
37495 Add new KillRing class, which acts as null object. |
|
37496 (WebCore::KillRing::~KillRing): |
|
37497 * platform/mac/KillRingMac.h: |
|
37498 Add new KillRingMac class, which writes to the mac's kill ring. |
|
37499 * platform/mac/KillRingMac.mm: |
|
37500 Add new KillRingMac class, which writes to the mac's kill ring. |
|
37501 |
|
37502 2010-05-27 Ben Murdoch <benm@google.com> |
|
37503 |
|
37504 Reviewed by Jian Li. |
|
37505 |
|
37506 Build break in FileStream.cpp |
|
37507 https://bugs.webkit.org/show_bug.cgi?id=39841 |
|
37508 |
|
37509 When ENABLE_BLOB_SLICE is not defined, an undefined variable is used |
|
37510 in FileStream.cpp:114. Fix by using the correct variable. |
|
37511 |
|
37512 Build fix so no new tests. |
|
37513 |
|
37514 * html/FileStream.cpp: |
|
37515 (WebCore::FileStream::openForRead): Replace undefined variable with a defined one. |
|
37516 |
|
37517 2010-05-27 Hans Wennborg <hans@chromium.org> |
|
37518 |
|
37519 Reviewed by Jeremy Orlow. |
|
37520 |
|
37521 [Chromium] Default popup window size should not depend on zoom level |
|
37522 https://bugs.webkit.org/show_bug.cgi?id=39835 |
|
37523 |
|
37524 V8DOMWindow::openCallback should not set width and height of new |
|
37525 window unless specified in the function's arguments. |
|
37526 |
|
37527 There is already code to reset the new window's origin coordinates, |
|
37528 but the same thing should be done to its dimensions as well. Otherwise, |
|
37529 a new popup with unspecified size will have its size depending on the |
|
37530 parent's zoom level, which is not desirable. |
|
37531 |
|
37532 This is the same as what is done in |
|
37533 bindings/js/JSDOMWindowCustom.cpp:826. |
|
37534 |
|
37535 * bindings/v8/custom/V8DOMWindowCustom.cpp: |
|
37536 (WebCore::V8DOMWindow::openCallback): |
|
37537 |
|
37538 2010-05-27 Anders Bakken <agbakken@gmail.com> |
|
37539 |
|
37540 Reviewed by David Levin. |
|
37541 |
|
37542 qt_instance.cpp has coding-style errors |
|
37543 https://bugs.webkit.org/show_bug.cgi?id=39744 |
|
37544 |
|
37545 Fix webkit coding style issues in qt_instance.cpp |
|
37546 |
|
37547 * bridge/qt/qt_instance.cpp: |
|
37548 (JSC::Bindings::QtInstance::getQtInstance): |
|
37549 (JSC::Bindings::QtInstance::removeCachedMethod): |
|
37550 (JSC::Bindings::QtInstance::markAggregate): |
|
37551 (JSC::Bindings::QtInstance::getPropertyNames): |
|
37552 (JSC::Bindings::QtInstance::stringValue): |
|
37553 (JSC::Bindings::QtField::name): |
|
37554 (JSC::Bindings::QtField::valueFromInstance): |
|
37555 |
|
37556 2010-05-27 Anders Bakken <agbakken@gmail.com> |
|
37557 |
|
37558 Reviewed by David Levin. |
|
37559 |
|
37560 qt_instance.h has coding-style errors |
|
37561 https://bugs.webkit.org/show_bug.cgi?id=39743 |
|
37562 |
|
37563 Fix webkit coding style issues in qt_instance.h |
|
37564 |
|
37565 * bridge/qt/qt_instance.h: |
|
37566 |
|
37567 2010-05-27 Anders Bakken <agbakken@gmail.com> |
|
37568 |
|
37569 Reviewed by David Levin. |
|
37570 |
|
37571 qt_class.h has coding-style errors |
|
37572 https://bugs.webkit.org/show_bug.cgi?id=39742 |
|
37573 |
|
37574 Fix webkit coding style issues in qt_class.h |
|
37575 |
|
37576 * bridge/qt/qt_class.h: |
|
37577 |
|
37578 2010-05-27 Eric Carlson <eric.carlson@apple.com> |
|
37579 |
|
37580 Reviewed by Darin Adler. |
|
37581 |
|
37582 <rdar://problem/8016158> Crash in CVPixelBufferCreateResolvedAttributesDictionary with RLE |
|
37583 compressed movie. |
|
37584 |
|
37585 Configure the visual context to generate Direct3D compatible pixel buffers when we are able to |
|
37586 use a CAImageQueue so there will be less conversion required before display. This change also |
|
37587 works around the issue that causes the RLE compressed movie to crash. |
|
37588 |
|
37589 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: |
|
37590 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::load): Pass enum to QTMovieVisualContext |
|
37591 constructor instead of CFDictionary. |
|
37592 * platform/graphics/win/QTMovieVisualContext.cpp: |
|
37593 (SetNumberValue): |
|
37594 (getPixelBufferCreationOptions): New, create options dictionary appropriate for the visual |
|
37595 context type. |
|
37596 (pixelBufferCreationOptions): New, return options dictionary appropriate for the visual |
|
37597 context type. |
|
37598 (QTMovieVisualContextPriv::QTMovieVisualContextPriv): Get the options dictionary from |
|
37599 getPixelBufferCreationOptions insteaad of taking it as a parameter. |
|
37600 (QTMovieVisualContext::QTMovieVisualContext): Take enum instead of CFDictionary for |
|
37601 visual context configuration type. |
|
37602 * platform/graphics/win/QTMovieVisualContext.h: |
|
37603 |
|
37604 2010-05-27 Anders Carlsson <andersca@apple.com> |
|
37605 |
|
37606 Reviewed by Adam Roben. |
|
37607 |
|
37608 [Qt] REGRESSION(r60258): It broke 10 tests. |
|
37609 https://bugs.webkit.org/show_bug.cgi?id=39819 |
|
37610 |
|
37611 * plugins/qt/PluginDataQt.cpp: |
|
37612 (WebCore::PluginData::initPlugins): |
|
37613 Append the MimeClassInfo object after it's been initialized. |
|
37614 |
|
37615 2010-05-27 Kevin Ollivier <kevino@theolliviers.com> |
|
37616 |
|
37617 [wx] Build fixes for Windows after recent changes. |
|
37618 |
|
37619 * platform/graphics/wx/FontWx.cpp: |
|
37620 * wscript: |
|
37621 |
|
37622 2010-05-27 Chris Fleizach <cfleizach@apple.com> |
|
37623 |
|
37624 No review, build fixage. |
|
37625 |
|
37626 Bug 39324 - AX: WebKit doesn't call [super -accessibilityAttributeValue:attribute forParameter:] when it encounters a parameterized attribute that it doesn't handle. |
|
37627 https://bugs.webkit.org/show_bug.cgi?id=39324 |
|
37628 |
|
37629 Rolling out change from r60307 until a better fix is ready. |
|
37630 |
|
37631 * accessibility/mac/AccessibilityObjectWrapper.mm: |
|
37632 (-[AccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]): |
|
37633 |
|
37634 2010-05-27 Yury Semikhatsky <yurys@chromium.org> |
|
37635 |
|
37636 Reviewed by Pavel Feldman. |
|
37637 |
|
37638 [v8] Web Inspector: check that ScriptDebugListener was not removed |
|
37639 while messages were dispatched in the nested loop. |
|
37640 https://bugs.webkit.org/show_bug.cgi?id=39838 |
|
37641 |
|
37642 * bindings/v8/ScriptDebugServer.cpp: |
|
37643 (WebCore::ScriptDebugServer::handleV8DebugEvent): |
|
37644 |
|
37645 2010-05-27 Yury Semikhatsky <yurys@chromium.org> |
|
37646 |
|
37647 Reviewed by Pavel Feldman. |
|
37648 |
|
37649 [v8] Web Inspector: undefined script URL value should be converted to an emtpy |
|
37650 WebCore::String instead of "undefined" string. Otherwise it's shown |
|
37651 in the Scripts panel with "undefined:<line no>" URL. |
|
37652 https://bugs.webkit.org/show_bug.cgi?id=39845 |
|
37653 |
|
37654 * bindings/v8/ScriptDebugServer.cpp: |
|
37655 (WebCore::ScriptDebugServer::dispatchDidParseSource): |
|
37656 |
|
37657 2010-05-27 Chris Fleizach <cfleizach@apple.com> |
|
37658 |
|
37659 Reviewed by Darin Adler. |
|
37660 |
|
37661 AX: WebKit doesn't call [super -accessibilityAttributeValue:attribute forParameter:] when it encounters a parameterized attribute that it doesn't handle. |
|
37662 https://bugs.webkit.org/show_bug.cgi?id=39324 |
|
37663 |
|
37664 Make sure that accessibilityAttributeValue:forParameter: will default to its super's implementation. This is how AppKit expects objects to behave. |
|
37665 |
|
37666 * accessibility/mac/AccessibilityObjectWrapper.mm: |
|
37667 (-[AccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]): |
|
37668 |
|
37669 2010-05-27 Xan Lopez <xlopez@igalia.com> |
|
37670 |
|
37671 More GTK+ distcheck fixes. |
|
37672 |
|
37673 * GNUmakefile.am: |
|
37674 |
|
37675 2010-05-27 Yury Semikhatsky <yurys@chromium.org> |
|
37676 |
|
37677 Reviewed by Pavel Feldman. |
|
37678 |
|
37679 [v8] Web Inspector: notify ScriptDebugListener when execution is resumed |
|
37680 https://bugs.webkit.org/show_bug.cgi?id=39838 |
|
37681 |
|
37682 * bindings/v8/ScriptDebugServer.cpp: |
|
37683 (WebCore::ScriptDebugServer::handleV8DebugEvent): |
|
37684 |
|
37685 2010-05-27 Anders Bakken <agbakken@gmail.com> |
|
37686 |
|
37687 Reviewed by David Levin. |
|
37688 |
|
37689 qt_pixmapruntime.cpp has coding-style errors |
|
37690 https://bugs.webkit.org/show_bug.cgi?id=39745 |
|
37691 |
|
37692 Fix webkit coding style issues in qt_pixmapruntime.cpp |
|
37693 |
|
37694 * bridge/qt/qt_pixmapruntime.cpp: |
|
37695 |
|
37696 2010-05-26 Jeremy Orlow <jorlow@chromium.org> |
|
37697 |
|
37698 Reviewed by Steve Block. |
|
37699 |
|
37700 Clean up IndexedDB layout tests |
|
37701 https://bugs.webkit.org/show_bug.cgi?id=39748 |
|
37702 |
|
37703 Remove an assert that always fires. |
|
37704 |
|
37705 Tests: storage/indexeddb/idb-database-request.html |
|
37706 storage/indexeddb/indexed-database-request.html |
|
37707 |
|
37708 * storage/IDBDatabaseImpl.cpp: |
|
37709 (WebCore::IDBDatabaseImpl::objectStores): |
|
37710 |
|
37711 2010-05-27 Pavel Feldman <pfeldman@chromium.org> |
|
37712 |
|
37713 Reviewed by Yury Semikhatsky. |
|
37714 |
|
37715 Web Inspector: Get CSS rule offsets lazily. |
|
37716 |
|
37717 https://bugs.webkit.org/show_bug.cgi?id=39832 |
|
37718 |
|
37719 * inspector/InspectorCSSStore.cpp: |
|
37720 (WebCore::InspectorCSSStore::getStartEndOffsets): |
|
37721 * inspector/InspectorDOMAgent.cpp: |
|
37722 (WebCore::InspectorDOMAgent::buildObjectForRule): |
|
37723 |
|
37724 2010-05-27 Anders Bakken <agbakken@gmail.com> |
|
37725 |
|
37726 Reviewed by David Levin. |
|
37727 |
|
37728 qt_class.cpp has coding-style errors |
|
37729 https://bugs.webkit.org/show_bug.cgi?id=39741 |
|
37730 |
|
37731 Fix webkit coding style issues in qt_class.cpp |
|
37732 |
|
37733 * bridge/qt/qt_class.cpp: |
|
37734 (JSC::Bindings::QtClass::fieldNamed): |
|
37735 |
|
37736 2010-05-27 Eric Seidel <eric@webkit.org> |
|
37737 |
|
37738 Reviewed by Darin Adler. |
|
37739 |
|
37740 Remove bit-rotten INSTRUMENT_LAYOUT_SCHEDULING code from HTMLTokenizer |
|
37741 https://bugs.webkit.org/show_bug.cgi?id=39714 |
|
37742 |
|
37743 This came from a discussion on #webkit with Hyatt about this code |
|
37744 being old and no longer used to either of our knowledge. |
|
37745 |
|
37746 No functional changes, thus no tests. |
|
37747 |
|
37748 I also removed a bogus FIXME I had added in an earlier patch |
|
37749 before I understood what the HTMLTokenizer was trying to do. |
|
37750 |
|
37751 * html/HTMLTokenizer.cpp: |
|
37752 (WebCore::HTMLTokenizer::scriptHandler): |
|
37753 (WebCore::HTMLTokenizer::scriptExecution): |
|
37754 (WebCore::HTMLTokenizer::continueProcessing): |
|
37755 (WebCore::HTMLTokenizer::willWriteHTML): |
|
37756 (WebCore::HTMLTokenizer::didWriteHTML): |
|
37757 (WebCore::HTMLTokenizer::timerFired): |
|
37758 (WebCore::HTMLTokenizer::executeExternalScriptsIfReady): |
|
37759 |
|
37760 2010-05-27 Anton Muhin <antonm@chromium.org> |
|
37761 |
|
37762 Reviewed by Adam Barth. |
|
37763 |
|
37764 Add callbacks to ScriptController to allow notifications on named items additions and removals |
|
37765 https://bugs.webkit.org/show_bug.cgi?id=39679 |
|
37766 |
|
37767 * bindings/js/ScriptController.h: Callbacks with empty implementation added. |
|
37768 (WebCore::ScriptController::namedItemAdded): |
|
37769 (WebCore::ScriptController::namedItemRemoved): |
|
37770 * bindings/v8/ScriptController.cpp: Empty implementation of callbacks. |
|
37771 (WebCore::ScriptController::namedItemAdded): |
|
37772 (WebCore::ScriptController::namedItemRemoved): |
|
37773 * bindings/v8/ScriptController.h: Callbacks added. |
|
37774 * html/HTMLDocument.cpp: Hooking in callbacks. |
|
37775 (WebCore::HTMLDocument::addItemToMap): |
|
37776 (WebCore::HTMLDocument::removeItemFromMap): |
|
37777 * html/HTMLDocument.h: |
|
37778 |
|
37779 2010-05-27 Zhenyao Mo <zmo@google.com> |
|
37780 |
|
37781 Reviewed by Dimitri Glazkov. |
|
37782 |
|
37783 Implement lazy clearing of renderbuffers |
|
37784 https://bugs.webkit.org/show_bug.cgi?id=36248 |
|
37785 |
|
37786 Test: fast/canvas/webgl/renderbuffer-initialization.html |
|
37787 |
|
37788 * html/canvas/WebGLFramebuffer.cpp: |
|
37789 (WebCore::WebGLFramebuffer::WebGLFramebuffer): Init added members. |
|
37790 (WebCore::WebGLFramebuffer::setAttachment): Set attachment object. |
|
37791 (WebCore::WebGLFramebuffer::onBind): Perform buffer clearing if needed. |
|
37792 (WebCore::WebGLFramebuffer::onAttachedObjectChange): Ditto. |
|
37793 (WebCore::WebGLFramebuffer::isUninitialized): Check whether an attached object is uninitialized renderbuffer. |
|
37794 (WebCore::WebGLFramebuffer::setInitialized): After initialize a renderbuffer, set the flag. |
|
37795 (WebCore::WebGLFramebuffer::initializeRenderbuffers): Clear un-initialized renderbuffers if framebuffer is complete. |
|
37796 * html/canvas/WebGLFramebuffer.h: |
|
37797 (WebCore::WebGLFramebuffer::isDepthAttached): Changed to check object. |
|
37798 (WebCore::WebGLFramebuffer::isStencilAttached): Ditto. |
|
37799 (WebCore::WebGLFramebuffer::isDepthStencilAttached): Ditto. |
|
37800 * html/canvas/WebGLRenderbuffer.cpp: |
|
37801 (WebCore::WebGLRenderbuffer::WebGLRenderbuffer): Init added members. |
|
37802 * html/canvas/WebGLRenderbuffer.h: |
|
37803 (WebCore::WebGLRenderbuffer::isInitialized): As the function name. |
|
37804 (WebCore::WebGLRenderbuffer::setInitialized): Ditto. |
|
37805 * html/canvas/WebGLRenderingContext.cpp: |
|
37806 (WebCore::WebGLRenderingContext::bindFramebuffer): Call onBind(). |
|
37807 (WebCore::WebGLRenderingContext::copyTexImage2D): Call onAttachedObjectChange(). |
|
37808 (WebCore::WebGLRenderingContext::deleteRenderbuffer): Ditto. |
|
37809 (WebCore::WebGLRenderingContext::deleteTexture): Ditto. |
|
37810 (WebCore::WebGLRenderingContext::framebufferRenderbuffer): Call setAttachment. |
|
37811 (WebCore::WebGLRenderingContext::framebufferTexture2D): Call onAttachedObjectChange(). |
|
37812 (WebCore::WebGLRenderingContext::renderbufferStorage): Ditto. |
|
37813 (WebCore::WebGLRenderingContext::texImage2DBase): Ditto. |
|
37814 * platform/graphics/mac/GraphicsContext3DMac.cpp: |
|
37815 (WebCore::GraphicsContext3D::reshape): Initialize internal buffers. |
|
37816 |
|
37817 2010-05-27 Kristian Monsen <kristianm@google.com> |
|
37818 |
|
37819 Reviewed by Darin Adler. |
|
37820 |
|
37821 Compile fix for Android, added include for Refcounted.h, this did not get |
|
37822 included through Threading.h in Android. |
|
37823 https://bugs.webkit.org/show_bug.cgi?id=39678 |
|
37824 |
|
37825 Build fix only, no new tests. |
|
37826 |
|
37827 * storage/SQLTransactionSyncCallback.h: |
|
37828 |
|
37829 2010-05-27 Joone Hur <joone@kldp.org> |
|
37830 |
|
37831 Reviewed by Xan Lopez. |
|
37832 |
|
37833 Add GtkVersioning.h in ScrollbackGtk.cpp for maintaining compatibility with the previous GTK+ |
|
37834 |
|
37835 https://bugs.webkit.org/show_bug.cgi?id=39567 |
|
37836 |
|
37837 * platform/gtk/ScrollbarGtk.cpp: |
|
37838 |
|
37839 2010-05-27 Hans Wennborg <hans@chromium.org> |
|
37840 |
|
37841 Reviewed by Alexey Proskuryakov. |
|
37842 |
|
37843 Increase limit on number of (i)frames from 200 to 1000. |
|
37844 https://bugs.webkit.org/show_bug.cgi?id=39427 |
|
37845 |
|
37846 The limit on number of iframes was introduced in r3707 back in 2003. |
|
37847 An example of a page that is broken because of this is: |
|
37848 http://vimcolorschemetest.googlecode.com/svn/html/index-c.html |
|
37849 Neither Firefox nor IE has such a limit. |
|
37850 |
|
37851 It seems that WebKit can handle a significantly higher number of frames, and |
|
37852 the original reasons for imposing the limit are believed to be gone. |
|
37853 |
|
37854 Tests: compositing/iframes/lots-of-iframes.html |
|
37855 compositing/iframes/lots-of-objects.html |
|
37856 |
|
37857 * html/HTMLFrameElementBase.cpp: |
|
37858 (WebCore::HTMLFrameElementBase::isURLAllowed): |
|
37859 * page/FrameTree.cpp: |
|
37860 (WebCore::FrameTree::uniqueChildName): |
|
37861 * page/Page.h: |
|
37862 * rendering/RenderEmbeddedObject.cpp: |
|
37863 (WebCore::isURLAllowed): |
|
37864 |
|
37865 2010-05-27 Kwang Yul Seo <skyul@company100.net> |
|
37866 |
|
37867 Reviewed by Xan Lopez. |
|
37868 |
|
37869 [GTK] writeToFile fails when length is large |
|
37870 https://bugs.webkit.org/show_bug.cgi?id=39666 |
|
37871 |
|
37872 writeToFile forgot to increment data pointer. |
|
37873 |
|
37874 * platform/gtk/FileSystemGtk.cpp: |
|
37875 (WebCore::writeToFile): |
|
37876 |
|
37877 2010-05-26 David Hyatt <hyatt@apple.com> |
|
37878 |
|
37879 Reviewed by Sam Weinig. |
|
37880 |
|
37881 https://bugs.webkit.org/show_bug.cgi?id=39783, clean up the moveChild functions on RenderBlock. |
|
37882 |
|
37883 Eliminate the need to pass the toChildrenList to the moveChild functions by tightening up the type of the |
|
37884 |to| argument to be a RenderBlock. |
|
37885 |
|
37886 Add a moveChildrenTo function that can move a range of children, and patch places that were doing this |
|
37887 by hand. |
|
37888 |
|
37889 Make the append forms of the functions just use the insert forms with a beforeChild of 0. |
|
37890 |
|
37891 Patch insertChildNode in RenderObjectChildList so that it passes the fullInsert parameter through in the |
|
37892 case where it does an append. |
|
37893 |
|
37894 Add an assert to RenderLayer that catches bad structure built when the fullInsert/Remove parameters are |
|
37895 messed up when using append/insertChildNode. |
|
37896 |
|
37897 * rendering/RenderBlock.cpp: |
|
37898 (WebCore::RenderBlock::splitAnonymousBlocksAroundChild): |
|
37899 (WebCore::RenderBlock::makeChildrenAnonymousColumnBlocks): |
|
37900 (WebCore::RenderBlock::createAndAppendRootInlineBox): |
|
37901 (WebCore::RenderBlock::moveChildTo): |
|
37902 (WebCore::RenderBlock::moveChildrenTo): |
|
37903 (WebCore::RenderBlock::makeChildrenNonInline): |
|
37904 (WebCore::RenderBlock::removeChild): |
|
37905 * rendering/RenderBlock.h: |
|
37906 (WebCore::RenderBlock::moveChildTo): |
|
37907 (WebCore::RenderBlock::moveAllChildrenTo): |
|
37908 (WebCore::RenderBlock::moveChildrenTo): |
|
37909 * rendering/RenderLayer.cpp: |
|
37910 (WebCore::RenderLayer::addChild): |
|
37911 * rendering/RenderObjectChildList.cpp: |
|
37912 (WebCore::RenderObjectChildList::insertChildNode): |
|
37913 * rendering/RenderRubyBase.cpp: |
|
37914 (WebCore::RenderRubyBase::moveInlineChildren): |
|
37915 |
|
37916 2010-05-27 Eric Seidel <eric@webkit.org> |
|
37917 |
|
37918 Reviewed by Adam Barth. |
|
37919 |
|
37920 Add <pre>/<listing> hack to HTML5Lexer to fix the last remaining HTML5 test suite regressions |
|
37921 https://bugs.webkit.org/show_bug.cgi?id=39818 |
|
37922 |
|
37923 HTML parsers are supposed to ignore the first \n after a <pre> or <listing> tag |
|
37924 for authoring convenience. Our new HTML5Lexer didn't have this hack yet |
|
37925 so there were 4 HTML5 tests failing. Fixing this fixed the last of the HTML5 |
|
37926 test suite regressions using the HTML5Lexer vs the old lexer. |
|
37927 |
|
37928 * html/HTML5Lexer.cpp: |
|
37929 (WebCore::HTML5Lexer::reset): |
|
37930 (WebCore::HTML5Lexer::nextToken): |
|
37931 * html/HTML5Lexer.h: |
|
37932 (WebCore::HTML5Lexer::skipLeadingNewLineForListing): |
|
37933 * html/HTML5TreeBuilder.cpp: |
|
37934 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
37935 |
|
37936 2010-05-26 Eric Seidel <eric@webkit.org> |
|
37937 |
|
37938 Reviewed by Adam Barth. |
|
37939 |
|
37940 Teach the HTML5 parser how to handle external scripts |
|
37941 https://bugs.webkit.org/show_bug.cgi?id=39716 |
|
37942 |
|
37943 Make it possible for the HTML5Tokenizer to run external scripts. |
|
37944 I created a new class HTML5ScriptRunner to hold all of the |
|
37945 script-logic which is scattered throughout the old HTMLTokenizer. |
|
37946 |
|
37947 The design is for the HTML5Tokenizer (the "controller") to hold |
|
37948 the Lexer, TreeBuilder and ScriptRunner. The Lexer returns back |
|
37949 to the controller, which passes tokens to the TreeBuilder. When the |
|
37950 treebuilder encounters a </script> tag it pauses itself and returns |
|
37951 back to the controller which calls the ScriptRunner. The TreeBuilder |
|
37952 is un-paused when the HTML5Tokenizer calls takeScriptToProcess(). |
|
37953 |
|
37954 The ScriptRunner attempts to process the passed script, and additionally |
|
37955 any blocked scripts it can. It returns to the controller indicating if |
|
37956 parsing should continue. If not, callbacks when external scripts load |
|
37957 or when stylesheets are finished parsing will cause the controller to |
|
37958 kick off script execution and parsing again at a later point. |
|
37959 |
|
37960 * WebCore.xcodeproj/project.pbxproj: |
|
37961 - Add HTML5ScriptRunner.* |
|
37962 * bindings/js/CachedScriptSourceProvider.h: |
|
37963 - Add missing include discovered while building. |
|
37964 * dom/ScriptElement.cpp: |
|
37965 (WebCore::ScriptElement::finishParsingChildren): |
|
37966 - Remove previous hack for inline <script> execution. |
|
37967 * dom/ScriptElement.h: |
|
37968 - Explain the HTML5 spec names for m_evaluated and m_createdByParser. |
|
37969 * html/HTML5ScriptRunner.cpp: Added. |
|
37970 (WebCore::HTML5ScriptRunner::HTML5ScriptRunner): |
|
37971 - The HTML5Tokenizer is passed to the HTML5ScriptRunner as a |
|
37972 CachedResourceClient. The HTML5ScriptRunner will register the |
|
37973 HTML5Tokenizer for notifyFinished callbacks when the scripts load. |
|
37974 The HTML5Tokenizer is expected to call the HTML5ScriptRunner to |
|
37975 execute any loaded scripts at that point. |
|
37976 (WebCore::HTML5ScriptRunner::~HTML5ScriptRunner): |
|
37977 (WebCore::HTML5ScriptRunner::frame): Helper method. |
|
37978 (WebCore::createScriptLoadEvent): Helper method. |
|
37979 (WebCore::createScriptErrorEvent): Helper method. |
|
37980 (WebCore::HTML5ScriptRunner::sourceFromPendingScript): |
|
37981 - Helper method for dealing with both inline and external script types. |
|
37982 (WebCore::HTML5ScriptRunner::isPendingScriptReady): |
|
37983 - Helper for dealing with both inline and external scripts. |
|
37984 (WebCore::HTML5ScriptRunner::executePendingScript): |
|
37985 - Execute one script. Both external and inline scripts |
|
37986 can become m_parsingBlockingScript if they can't be executed |
|
37987 immediately after parsing. |
|
37988 (WebCore::HTML5ScriptRunner::execute): |
|
37989 - Takes a script element from the tree builder and tries |
|
37990 to process it. |
|
37991 (WebCore::HTML5ScriptRunner::executeParsingBlockingScripts): |
|
37992 - Runs the current parsing blocking script if ready. |
|
37993 - Running a script could add another parsing blocking script |
|
37994 so we loop until there is no ready-to-run parsing blocking script. |
|
37995 (WebCore::HTML5ScriptRunner::executeScriptsWaitingForLoad): |
|
37996 - Called by HTML5Tokenizer when a script loads. |
|
37997 (WebCore::HTML5ScriptRunner::executeScriptsWaitingForStylesheets): |
|
37998 - Called by HTML5Tokenizer when stylesheets complete. |
|
37999 (WebCore::HTML5ScriptRunner::requestScript): |
|
38000 - Transcription of the HTML5 spec. |
|
38001 (WebCore::HTML5ScriptRunner::runScript): |
|
38002 - Transcription of the HTML5 spec. |
|
38003 * html/HTML5ScriptRunner.h: Added. |
|
38004 - New class to handle script loading and execution for the HTML5 parser. |
|
38005 * html/HTML5Tokenizer.cpp: |
|
38006 (WebCore::HTML5Tokenizer::HTML5Tokenizer): |
|
38007 - Create a HTML5ScriptRunner and pass it "this" as the CachedResourceClient. |
|
38008 (WebCore::HTML5Tokenizer::pumpLexer): |
|
38009 - When the parser is paused, try to run scripts. |
|
38010 (WebCore::HTML5Tokenizer::write): |
|
38011 - Only pump the lexer when the parser is not paused. |
|
38012 (WebCore::HTML5Tokenizer::end): |
|
38013 - finish() tells us that we've reached EOF, not end() |
|
38014 - Only pump the lexer when the parser is not paused. |
|
38015 (WebCore::HTML5Tokenizer::finish): |
|
38016 - Mark EOF, and end() if we're not waiting on scripts. |
|
38017 (WebCore::HTML5Tokenizer::isWaitingForScripts): |
|
38018 - isPaused() seems to mean isPausedForExternalScripts(). |
|
38019 (WebCore::HTML5Tokenizer::resumeParsingAfterScriptExecution): |
|
38020 (WebCore::HTML5Tokenizer::notifyFinished): |
|
38021 (WebCore::HTML5Tokenizer::executeScriptsWaitingForStylesheets): |
|
38022 * html/HTML5Tokenizer.h: |
|
38023 * html/HTML5TreeBuilder.cpp: |
|
38024 (WebCore::HTML5TreeBuilder::HTML5TreeBuilder): |
|
38025 - Add an m_isPaused flag. |
|
38026 (WebCore::HTML5TreeBuilder::handleScriptStartTag): |
|
38027 (WebCore::HTML5TreeBuilder::handleScriptEndTag): |
|
38028 (WebCore::HTML5TreeBuilder::takeScriptToProcess): |
|
38029 - Acknowledge that the caller has received the script element. |
|
38030 It is the caller's responsibility to execute the script if necessary |
|
38031 and re-pause the tree builder if necessary. |
|
38032 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
38033 - Save off the current script tag so that it can be passed to |
|
38034 the HTML5ScriptRunner when we're paused. |
|
38035 * html/HTML5TreeBuilder.h: |
|
38036 (WebCore::HTML5TreeBuilder::setPaused): |
|
38037 (WebCore::HTML5TreeBuilder::isPaused): |
|
38038 |
|
38039 2010-05-26 Adam Barth <abarth@webkit.org> |
|
38040 |
|
38041 Reviewed by Darin Adler. |
|
38042 |
|
38043 Implement SegmentedString::lookAheadSlowCase |
|
38044 https://bugs.webkit.org/show_bug.cgi?id=39802 |
|
38045 |
|
38046 The slow case is need by the resumer test suite. Sadly, the resumer |
|
38047 test suite is really slow and produces infinite errors (many of which |
|
38048 are false positives). I'll land more of the resumer test suite in a |
|
38049 future patch. |
|
38050 |
|
38051 * platform/text/SegmentedString.cpp: |
|
38052 (WebCore::SegmentedString::advance): |
|
38053 * platform/text/SegmentedString.h: |
|
38054 (WebCore::SegmentedString::lookAhead): |
|
38055 (WebCore::SegmentedString::lookAheadIgnoringCase): |
|
38056 (WebCore::SegmentedString::equalsLiterally): |
|
38057 (WebCore::SegmentedString::equalsIgnoringCase): |
|
38058 (WebCore::SegmentedString::lookAheadInline): |
|
38059 (WebCore::SegmentedString::lookAheadSlowCase): |
|
38060 |
|
38061 2010-05-26 Jer Noble <jer.noble@apple.com> |
|
38062 |
|
38063 Patch edited by Adele Peterson and Mark Rowe. |
|
38064 Reviewed by Eric Carlson |
|
38065 |
|
38066 Video elements show no video on Windows machines that do not support accelerated compositing |
|
38067 https://bugs.webkit.org/show_bug.cgi?id=39446 |
|
38068 rdar://problem/7999794 |
|
38069 |
|
38070 Create the visual context in setUpVideoRendering (as opposed to in load), and destroy it in |
|
38071 tearDownVideoRendering (as opposed to in the destructor.) |
|
38072 |
|
38073 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: |
|
38074 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::~MediaPlayerPrivateQuickTimeVisualContext): |
|
38075 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::load): Moved creation of the visual context to setUpVideoRendering. |
|
38076 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::paint): Return early if the visual context isn't set up. |
|
38077 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::currentRenderingMode): If the visual context isn't set up, |
|
38078 return MediaRenderingNone. |
|
38079 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setUpVideoRendering): Create the visual context. |
|
38080 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::tearDownVideoRendering): Destroy the visual context. |
|
38081 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::hasSetUpVideoRendering): For software rendering mode, |
|
38082 make sure the visual context has been set up when saying the setup has been done. |
|
38083 * platform/graphics/win/QTMovieVisualContext.cpp: |
|
38084 (QTMovieVisualContextPriv::~QTMovieVisualContextPriv): Destruction moved to tearDownVideoRendering. |
|
38085 Also, make sure to cancel the visual context's newImageAvailable callback in the visual context's destructor. |
|
38086 (QTMovieVisualContext::create): Added. |
|
38087 * platform/graphics/win/QTMovieVisualContext.h: |
|
38088 |
|
38089 2010-05-26 Gustavo Noronha Silva <gns@gnome.org> |
|
38090 |
|
38091 Build fixes for make distcheck. |
|
38092 |
|
38093 * GNUmakefile.am: |
|
38094 |
|
38095 2010-05-26 Zelidrag Hornung <zelidrag@chromium.org> |
|
38096 |
|
38097 Reviewed by Ojan Vafai. |
|
38098 |
|
38099 Fixed frame page up/down scrolling calculation. Made sure that the |
|
38100 cursor moves with page up/down event. Please note that now for mac |
|
38101 editing behavior we will scroll the content to center the cursor on |
|
38102 page up/down while other platforms will align the cursor with the top of |
|
38103 displayed frame. |
|
38104 https://bugs.webkit.org/show_bug.cgi?id=38213 |
|
38105 |
|
38106 Tests: editing/input/option-page-up-down.html (fixed) |
|
38107 editing/input/scroll-viewport-page-up-down.html |
|
38108 |
|
38109 * WebCore.base.exp: |
|
38110 * editing/EditorCommand.cpp: |
|
38111 (WebCore::verticalScrollDistance): Fixed page scroll calculation. Now scroll height is calculated only from the visible portion not the entire frame height. |
|
38112 (WebCore::executeMovePageDown): Now it can tell SelectionController to move the cursor with the page scroll up/down events. |
|
38113 (WebCore::executeMovePageDownAndModifySelection): Ditto. |
|
38114 (WebCore::executeMovePageUp): Ditto. |
|
38115 (WebCore::executeMovePageUpAndModifySelection): Ditto. |
|
38116 * editing/SelectionController.cpp: |
|
38117 * editing/SelectionController.cpp: Exposed an enum param that lets EditorCommand.cpp control how cursor position will be aligned when page moves. |
|
38118 (WebCore::SelectionController::setSelection): Ditto. |
|
38119 (WebCore::SelectionController::modify): Ditto. |
|
38120 * editing/SelectionController.h: Ditto. |
|
38121 (WebCore::SelectionController::): Ditto. |
|
38122 (WebCore::SelectionController::setSelection): Ditto. |
|
38123 |
|
38124 2010-05-26 Jaime Yap <jaimeyap@google.com> |
|
38125 |
|
38126 Reviewed by Pavel Feldman. |
|
38127 |
|
38128 ScriptCallStack::callLocation() sometimes passed an empty handle to |
|
38129 toWebCoreString() causing a null pointer deref. |
|
38130 https://bugs.webkit.org/show_bug.cgi?id=39681 |
|
38131 |
|
38132 * bindings/v8/ScriptCallStack.cpp: |
|
38133 (WebCore::ScriptCallStack::callLocation): |
|
38134 |
|
38135 2010-05-26 Brian Weinstein <bweinstein@apple.com> |
|
38136 |
|
38137 Reviewed by Mark Rowe. |
|
38138 |
|
38139 Web Inspector: Tooltip on Pause on Exceptions doesn't show up until it is clicked. |
|
38140 https://bugs.webkit.org/show_bug.cgi?id=39804 |
|
38141 |
|
38142 Initialize the title attribute of the Pause on Exceptions button when we initialize other information |
|
38143 about it. |
|
38144 |
|
38145 * inspector/front-end/ScriptsPanel.js: |
|
38146 (WebInspector.ScriptsPanel): |
|
38147 |
|
38148 2010-05-26 Adam Barth <abarth@webkit.org> |
|
38149 |
|
38150 Unreviewed, rolling out r60262. |
|
38151 http://trac.webkit.org/changeset/60262 |
|
38152 https://bugs.webkit.org/show_bug.cgi?id=39783 |
|
38153 |
|
38154 Broke every build and is blocking me from working. :( |
|
38155 |
|
38156 * rendering/RenderBlock.cpp: |
|
38157 (WebCore::RenderBlock::splitAnonymousBlocksAroundChild): |
|
38158 (WebCore::RenderBlock::makeChildrenAnonymousColumnBlocks): |
|
38159 (WebCore::RenderBlock::moveChildTo): |
|
38160 (WebCore::RenderBlock::moveAllChildrenTo): |
|
38161 (WebCore::RenderBlock::makeChildrenNonInline): |
|
38162 (WebCore::RenderBlock::removeChild): |
|
38163 * rendering/RenderBlock.h: |
|
38164 * rendering/RenderLayer.cpp: |
|
38165 (WebCore::RenderLayer::addChild): |
|
38166 * rendering/RenderObjectChildList.cpp: |
|
38167 (WebCore::RenderObjectChildList::insertChildNode): |
|
38168 * rendering/RenderRubyBase.cpp: |
|
38169 (WebCore::RenderRubyBase::moveInlineChildren): |
|
38170 (WebCore::RenderRubyBase::moveBlockChildren): |
|
38171 (WebCore::RenderRubyBase::mergeBlockChildren): |
|
38172 |
|
38173 2010-05-26 Anders Carlsson <andersca@apple.com> |
|
38174 |
|
38175 Unreviewed, rolling out r60256. |
|
38176 http://trac.webkit.org/changeset/60256 |
|
38177 https://bugs.webkit.org/show_bug.cgi?id=39382 |
|
38178 |
|
38179 Causes fast/dom/prototype-inheritance-2.html to start |
|
38180 crashing. |
|
38181 |
|
38182 * history/PageCache.cpp: |
|
38183 (WebCore::PageCache::PageCache): |
|
38184 (WebCore::PageCache::add): |
|
38185 * history/PageCache.h: |
|
38186 (WebCore::PageCache::get): |
|
38187 * loader/DocumentLoader.cpp: |
|
38188 (WebCore::DocumentLoader::commitIfReady): |
|
38189 * loader/FrameLoader.cpp: |
|
38190 (WebCore::FrameLoader::canCachePageContainingThisFrame): |
|
38191 (WebCore::FrameLoader::canCachePage): |
|
38192 (WebCore::pageCacheLogPrefix): |
|
38193 (WebCore::pageCacheLog): |
|
38194 (WebCore::FrameLoader::logCanCachePageDecision): |
|
38195 (WebCore::FrameLoader::logCanCacheFrameDecision): |
|
38196 (WebCore::FrameLoader::commitProvisionalLoad): |
|
38197 (WebCore::FrameLoader::open): |
|
38198 (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): |
|
38199 (WebCore::FrameLoader::loadProvisionalItemFromCachedPage): |
|
38200 (WebCore::FrameLoader::cachePageForHistoryItem): |
|
38201 (WebCore::FrameLoader::navigateToDifferentDocument): |
|
38202 * loader/FrameLoader.h: |
|
38203 * svg/graphics/SVGImage.cpp: |
|
38204 (WebCore::SVGImage::dataChanged): |
|
38205 |
|
38206 2010-05-26 David Hyatt <hyatt@apple.com> |
|
38207 |
|
38208 Reviewed by Sam Weinig. |
|
38209 |
|
38210 https://bugs.webkit.org/show_bug.cgi?id=39783, clean up the moveChild functions on RenderBlock. |
|
38211 |
|
38212 Eliminate the need to pass the toChildrenList to the moveChild functions by tightening up the type of the |
|
38213 |to| argument to be a RenderBlock. |
|
38214 |
|
38215 Add a moveChildrenTo function that can move a range of children, and patch places that were doing this |
|
38216 by hand. |
|
38217 |
|
38218 Make the append forms of the functions just use the insert forms with a beforeChild of 0. |
|
38219 |
|
38220 Patch insertChildNode in RenderObjectChildList so that it passes the fullInsert parameter through in the |
|
38221 case where it does an append. |
|
38222 |
|
38223 Add an assert to RenderLayer that catches bad structure built when the fullInsert/Remove parameters are |
|
38224 messed up when using append/insertChildNode. |
|
38225 |
|
38226 * rendering/RenderBlock.cpp: |
|
38227 (WebCore::RenderBlock::splitAnonymousBlocksAroundChild): |
|
38228 (WebCore::RenderBlock::makeChildrenAnonymousColumnBlocks): |
|
38229 (WebCore::RenderBlock::createAndAppendRootInlineBox): |
|
38230 (WebCore::RenderBlock::moveChildTo): |
|
38231 (WebCore::RenderBlock::moveChildrenTo): |
|
38232 (WebCore::RenderBlock::makeChildrenNonInline): |
|
38233 (WebCore::RenderBlock::removeChild): |
|
38234 * rendering/RenderBlock.h: |
|
38235 (WebCore::RenderBlock::moveChildTo): |
|
38236 (WebCore::RenderBlock::moveAllChildrenTo): |
|
38237 (WebCore::RenderBlock::moveChildrenTo): |
|
38238 * rendering/RenderLayer.cpp: |
|
38239 (WebCore::RenderLayer::addChild): |
|
38240 * rendering/RenderObjectChildList.cpp: |
|
38241 (WebCore::RenderObjectChildList::insertChildNode): |
|
38242 * rendering/RenderRubyBase.cpp: |
|
38243 (WebCore::RenderRubyBase::moveInlineChildren): |
|
38244 |
|
38245 2010-05-26 Anders Carlsson <andersca@apple.com> |
|
38246 |
|
38247 Fix GTK+ test failures. |
|
38248 |
|
38249 * plugins/gtk/PluginDataGtk.cpp: |
|
38250 (WebCore::PluginData::initPlugins): |
|
38251 * plugins/win/PluginDataWin.cpp: |
|
38252 (WebCore::PluginData::initPlugins): |
|
38253 |
|
38254 2010-05-25 Anders Carlsson <andersca@apple.com> |
|
38255 |
|
38256 Reviewed by Darin Adler. |
|
38257 |
|
38258 Clean up MimeClassInfo and PluginInfo |
|
38259 https://bugs.webkit.org/show_bug.cgi?id=39700 |
|
38260 |
|
38261 This gets rid of all the heap allocation from MimeClassInfo and PluginInfo. |
|
38262 |
|
38263 It also changes the m_plugins and m_mimes vectors in PluginData to not hold heap allocated MimeClassInfo |
|
38264 and PluginClassInfo objects. |
|
38265 |
|
38266 * page/Page.cpp: |
|
38267 (WebCore::Page::refreshPlugins): |
|
38268 * plugins/MimeType.cpp: |
|
38269 (WebCore::MimeType::type): |
|
38270 (WebCore::MimeType::suffixes): |
|
38271 (WebCore::MimeType::description): |
|
38272 (WebCore::MimeType::enabledPlugin): |
|
38273 * plugins/MimeType.h: |
|
38274 (WebCore::MimeType::mimeClassInfo): |
|
38275 * plugins/MimeTypeArray.cpp: |
|
38276 (WebCore::MimeTypeArray::item): |
|
38277 (WebCore::MimeTypeArray::canGetItemsForName): |
|
38278 (WebCore::MimeTypeArray::namedItem): |
|
38279 * plugins/Plugin.cpp: |
|
38280 (WebCore::Plugin::name): |
|
38281 (WebCore::Plugin::filename): |
|
38282 (WebCore::Plugin::description): |
|
38283 (WebCore::Plugin::length): |
|
38284 (WebCore::Plugin::item): |
|
38285 (WebCore::Plugin::canGetItemsForName): |
|
38286 (WebCore::Plugin::namedItem): |
|
38287 * plugins/Plugin.h: |
|
38288 (WebCore::Plugin::pluginInfo): |
|
38289 * plugins/PluginArray.cpp: |
|
38290 (WebCore::PluginArray::length): |
|
38291 (WebCore::PluginArray::item): |
|
38292 (WebCore::PluginArray::canGetItemsForName): |
|
38293 (WebCore::PluginArray::namedItem): |
|
38294 (WebCore::PluginArray::pluginData): |
|
38295 * plugins/PluginArray.h: |
|
38296 * plugins/PluginData.cpp: |
|
38297 (WebCore::PluginData::PluginData): |
|
38298 (WebCore::PluginData::~PluginData): |
|
38299 (WebCore::PluginData::supportsMimeType): |
|
38300 (WebCore::PluginData::pluginNameForMimeType): |
|
38301 * plugins/PluginData.h: |
|
38302 (WebCore::operator==): |
|
38303 (WebCore::PluginData::create): |
|
38304 (WebCore::PluginData::disconnectPage): |
|
38305 (WebCore::PluginData::page): |
|
38306 (WebCore::PluginData::plugins): |
|
38307 (WebCore::PluginData::mimes): |
|
38308 * plugins/chromium/PluginDataChromium.cpp: |
|
38309 (WebCore::PluginCache::reset): |
|
38310 (WebCore::PluginCache::plugins): |
|
38311 (WebCore::PluginData::initPlugins): |
|
38312 (WebCore::getPluginMimeTypeFromExtension): |
|
38313 * plugins/gtk/PluginDataGtk.cpp: |
|
38314 (WebCore::PluginData::initPlugins): |
|
38315 * plugins/mac/PluginDataMac.mm: |
|
38316 (WebCore::PluginData::initPlugins): |
|
38317 * plugins/qt/PluginDataQt.cpp: |
|
38318 (WebCore::PluginData::initPlugins): |
|
38319 * plugins/win/PluginDataWin.cpp: |
|
38320 (WebCore::PluginData::initPlugins): |
|
38321 * plugins/wx/PluginDataWx.cpp: |
|
38322 (WebCore::PluginData::initPlugins): |
|
38323 |
|
38324 2010-05-26 Nate Chapin <japhet@chromium.org> |
|
38325 |
|
38326 Reviewed by Adam Barth. |
|
38327 |
|
38328 Factor PageCache functionality out of FrameLoader and into |
|
38329 PageCache. |
|
38330 |
|
38331 https://bugs.webkit.org/show_bug.cgi?id=39382 |
|
38332 |
|
38333 Refactor only, so no new tests. |
|
38334 |
|
38335 * history/PageCache.cpp: |
|
38336 (WebCore::pageCacheLogPrefix): |
|
38337 (WebCore::pageCacheLog): |
|
38338 (WebCore::logCanCacheFrameDecision): |
|
38339 (WebCore::logCanCachePageDecision): |
|
38340 (WebCore::PageCache::canCachePageContainingThisFrame): |
|
38341 (WebCore::PageCache::canCache): |
|
38342 (WebCore::PageCache::add): |
|
38343 (WebCore::PageCache::get): |
|
38344 * history/PageCache.h: |
|
38345 * loader/DocumentLoader.cpp: |
|
38346 * loader/FrameLoader.cpp: |
|
38347 (WebCore::FrameLoader::commitProvisionalLoad): |
|
38348 (WebCore::FrameLoader::prepareForCachedPageRestore): |
|
38349 (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): |
|
38350 (WebCore::FrameLoader::loadProvisionalItemFromCachedPage): |
|
38351 (WebCore::FrameLoader::navigateToDifferentDocument): |
|
38352 * loader/FrameLoader.h: |
|
38353 (WebCore::FrameLoader::quickRedirectComing): |
|
38354 * svg/graphics/SVGImage.cpp: |
|
38355 |
|
38356 2010-05-26 Peter Kasting <pkasting@google.com> |
|
38357 |
|
38358 Reviewed by Adam Barth. |
|
38359 |
|
38360 https://bugs.webkit.org/show_bug.cgi?id=39786 |
|
38361 Properly reset |bytes_to_consume| when reaching the "gif_done" state in |
|
38362 the open-source GIF decoder. |
|
38363 |
|
38364 No tests, since there's no test harness support for checking the |
|
38365 internal ImageDecoder state values. |
|
38366 |
|
38367 * platform/image-decoders/gif/GIFImageReader.cpp: |
|
38368 (GIFImageReader::read): Use a macro to perform the state change, like we do everywhere else in the file. Also correctly return "failure" for certain corrupt GIFs, since that doesn't prevent their display (due to WebKit's different use of this code compared to Mozilla). |
|
38369 |
|
38370 2010-05-26 Sheriff Bot <webkit.review.bot@gmail.com> |
|
38371 |
|
38372 Unreviewed, rolling out r60251. |
|
38373 http://trac.webkit.org/changeset/60251 |
|
38374 https://bugs.webkit.org/show_bug.cgi?id=39788 |
|
38375 |
|
38376 broke tests (Requested by dhyatt on #webkit). |
|
38377 |
|
38378 * rendering/RenderBlock.cpp: |
|
38379 (WebCore::RenderBlock::moveChildTo): |
|
38380 (WebCore::RenderBlock::moveAllChildrenTo): |
|
38381 (WebCore::RenderBlock::makeChildrenNonInline): |
|
38382 (WebCore::RenderBlock::removeChild): |
|
38383 * rendering/RenderBlock.h: |
|
38384 * rendering/RenderRubyBase.cpp: |
|
38385 (WebCore::RenderRubyBase::moveInlineChildren): |
|
38386 (WebCore::RenderRubyBase::moveBlockChildren): |
|
38387 (WebCore::RenderRubyBase::mergeBlockChildren): |
|
38388 * rendering/RenderRubyRun.cpp: |
|
38389 (WebCore::RenderRubyRun::removeChild): |
|
38390 |
|
38391 2010-05-26 Adam Barth <abarth@webkit.org> |
|
38392 |
|
38393 Reviewed by Eric Seidel. |
|
38394 |
|
38395 Fix webkit01.dat resumer tests in HTML5 parser |
|
38396 https://bugs.webkit.org/show_bug.cgi?id=39796 |
|
38397 |
|
38398 To match the old tokenizer, we should only flush character tokens when |
|
38399 we reach EOF. Added a notion of a "closed" segmented string that |
|
38400 cannot be appended to, which models EOF. |
|
38401 |
|
38402 * html/HTML5Lexer.cpp: |
|
38403 (WebCore::HTML5Lexer::nextToken): |
|
38404 (WebCore::HTML5Lexer::shouldEmitBufferedCharacterToken): |
|
38405 * html/HTML5Lexer.h: |
|
38406 * html/HTML5Tokenizer.cpp: |
|
38407 (WebCore::HTML5Tokenizer::pumpLexer): |
|
38408 (WebCore::HTML5Tokenizer::write): |
|
38409 (WebCore::HTML5Tokenizer::end): |
|
38410 * html/HTML5Tokenizer.h: |
|
38411 * platform/text/SegmentedString.cpp: |
|
38412 (WebCore::SegmentedString::SegmentedString): |
|
38413 (WebCore::SegmentedString::clear): |
|
38414 (WebCore::SegmentedString::append): |
|
38415 * platform/text/SegmentedString.h: |
|
38416 (WebCore::SegmentedString::SegmentedString): |
|
38417 (WebCore::SegmentedString::close): |
|
38418 (WebCore::SegmentedString::isClosed): |
|
38419 |
|
38420 2010-05-26 Adam Barth <abarth@webkit.org> |
|
38421 |
|
38422 Reviewed by Eric Seidel. |
|
38423 |
|
38424 Make HTML5 lexer not ASSERT when resuming partial parses |
|
38425 https://bugs.webkit.org/show_bug.cgi?id=39755 |
|
38426 |
|
38427 I'm working through a variation of the webkit-runner.html test suite |
|
38428 that stops the parser at every character to make sure we can resume |
|
38429 parsing correctly. This patch fixes some errors caught by ASSERTs, |
|
38430 which prevent the basic tests from running to completion. There's a |
|
38431 bunch more work to do, however. |
|
38432 |
|
38433 Test: html5lib/webkit-resumer.html |
|
38434 |
|
38435 * html/HTML5Lexer.cpp: |
|
38436 (WebCore::HTMLNames::isEndTagBufferingState): |
|
38437 (WebCore::HTML5Lexer::nextToken): |
|
38438 (WebCore::HTML5Lexer::addToPossibleEndTag): |
|
38439 * html/HTML5Lexer.h: |
|
38440 * html/HTML5Tokenizer.cpp: |
|
38441 (WebCore::HTML5Tokenizer::write): |
|
38442 * html/HTML5Tokenizer.h: |
|
38443 |
|
38444 2010-05-26 Alexey Proskuryakov <ap@apple.com> |
|
38445 |
|
38446 Mac 32 bit build fix. |
|
38447 |
|
38448 * platform/graphics/mac/SimpleFontDataMac.mm: (WebCore::SimpleFontData::platformInit): |
|
38449 Use static_cast instead of narrowPrecisionToFloat - the latter can't convert from float to float. |
|
38450 |
|
38451 2010-05-26 David Hyatt <hyatt@apple.com> |
|
38452 |
|
38453 Reviewed by Ojan. |
|
38454 |
|
38455 https://bugs.webkit.org/show_bug.cgi?id=39783, clean up moveChild functions in RenderBlock. |
|
38456 |
|
38457 Cut out the need to pass the to block's child list by tightening up the type of the to object |
|
38458 from RenderObject to RenderBlock. |
|
38459 |
|
38460 Implement the "append" versions of the move functions using their "insert" counterparts, since |
|
38461 insertChildNode just calls appendChildNode when beforeChild is 0 anyway. |
|
38462 |
|
38463 Add comments explaining why the default for fullRemoveInsert is false, and make sure all forms |
|
38464 of the move functions have the optional parameter for consistency. |
|
38465 |
|
38466 * rendering/RenderBlock.cpp: |
|
38467 (WebCore::RenderBlock::createAndAppendRootInlineBox): |
|
38468 (WebCore::RenderBlock::moveChildTo): |
|
38469 (WebCore::RenderBlock::moveAllChildrenTo): |
|
38470 (WebCore::RenderBlock::makeChildrenNonInline): |
|
38471 (WebCore::RenderBlock::removeChild): |
|
38472 * rendering/RenderBlock.h: |
|
38473 (WebCore::RenderBlock::moveChildTo): |
|
38474 (WebCore::RenderBlock::moveAllChildrenTo): |
|
38475 * rendering/RenderRubyBase.cpp: |
|
38476 (WebCore::RenderRubyBase::moveInlineChildren): |
|
38477 (WebCore::RenderRubyBase::moveBlockChildren): |
|
38478 (WebCore::RenderRubyBase::mergeBlockChildren): |
|
38479 * rendering/RenderRubyRun.cpp: |
|
38480 (WebCore::RenderRubyRun::removeChild): |
|
38481 |
|
38482 2010-05-26 Dan Bernstein <mitz@apple.com> |
|
38483 |
|
38484 Typed and reviewed by Alexey Proskuryakov. |
|
38485 |
|
38486 https://bugs.webkit.org/show_bug.cgi?id=39682 |
|
38487 <rdar://problem/8026774> REGRESSION: WebKit nightly adding insane height to div at random |
|
38488 |
|
38489 Test: fast/css/custom-font-xheight.html |
|
38490 |
|
38491 * platform/graphics/mac/SimpleFontDataMac.mm: (WebCore::SimpleFontData::platformInit): |
|
38492 Calling an Objective C method that returns a structure with a null object can leave garbage in |
|
38493 returned value. Custom fonts don't have an NSFont, they only have a CGFont. Call |
|
38494 platformBoundsForGlyph() function instead, which works with CGFont. |
|
38495 (WebCore::SimpleFontData::platformBoundsForGlyph): Fixed to work on Tiger (for fonts that |
|
38496 have an NSFont), since this is now used in more cases. |
|
38497 |
|
38498 2010-05-26 Beth Dakin <bdakin@apple.com> |
|
38499 |
|
38500 Build fix for Mac clean builds. |
|
38501 |
|
38502 * storage/IDBDatabaseRequest.idl: |
|
38503 |
|
38504 2010-05-26 Eric Carlson <eric.carlson@apple.com> |
|
38505 |
|
38506 Reviewed by Dan Bernstein. |
|
38507 |
|
38508 Must not cast between CFNumberRef and CFBooleanRef. |
|
38509 <rdar://problem/8030739> |
|
38510 https://bugs.webkit.org/show_bug.cgi?id=39756 |
|
38511 |
|
38512 * platform/graphics/win/QTMovieVisualContext.cpp: |
|
38513 (QTMovieVisualContext::getCGImageOptions): QuickTime assumes the value associated |
|
38514 with kCVPixelBufferCGImageCompatibilityKey is a CFBoolean, so add one. |
|
38515 |
|
38516 2010-05-26 Xan Lopez <xlopez@igalia.com> |
|
38517 |
|
38518 GTK+ build fix, strike two. |
|
38519 |
|
38520 * bindings/gobject/WebKitDOMEventTarget.cpp: |
|
38521 (webkit_dom_event_target_get_type): |
|
38522 (webkit_dom_event_target_default_init): |
|
38523 |
|
38524 2010-05-26 Jeremy Orlow <jorlow@chromium.org> |
|
38525 |
|
38526 Unreviewed build fix for Windows + clean up the Visual Studio project. |
|
38527 |
|
38528 * WebCore.gypi: |
|
38529 * WebCore.vcproj/WebCore.vcproj: |
|
38530 |
|
38531 2010-05-26 Andrei Popescu <andreip@google.com> |
|
38532 |
|
38533 Reviewed by Jeremy Orlow. |
|
38534 |
|
38535 Indexed Database component is missing IDBObjectStoreRequest interface |
|
38536 https://bugs.webkit.org/show_bug.cgi?id=39490 |
|
38537 |
|
38538 Adding IDL and stub implementation for IDBObjectStoreRequest. |
|
38539 |
|
38540 No new tests, indexed database isn't yet testable. |
|
38541 |
|
38542 * DerivedSources.cpp: |
|
38543 * DerivedSources.make: |
|
38544 * GNUmakefile.am: |
|
38545 * WebCore.gypi: |
|
38546 * WebCore.pri: |
|
38547 * WebCore.pro: |
|
38548 * WebCore.xcodeproj/project.pbxproj: |
|
38549 * bindings/js/JSIDBObjectStoreRequestCustom.cpp: Added. |
|
38550 (WebCore::JSIDBObjectStoreRequest::remove): |
|
38551 (WebCore::JSIDBObjectStoreRequest::addOrModify): |
|
38552 (WebCore::JSIDBObjectStoreRequest::modify): |
|
38553 (WebCore::JSIDBObjectStoreRequest::add): |
|
38554 (WebCore::JSIDBObjectStoreRequest::get): |
|
38555 * bindings/v8/custom/V8IDBObjectStoreRequestCustom.cpp: Added. |
|
38556 (WebCore::V8IDBObjectStoreRequest::removeCallback): |
|
38557 (WebCore::V8IDBObjectStoreRequest::addOrModifyCallback): |
|
38558 (WebCore::V8IDBObjectStoreRequest::modifyCallback): |
|
38559 (WebCore::V8IDBObjectStoreRequest::addCallback): |
|
38560 (WebCore::V8IDBObjectStoreRequest::getCallback): |
|
38561 * storage/IDBObjectStore.cpp: Added. |
|
38562 * storage/IDBObjectStore.h: Added. |
|
38563 (WebCore::IDBObjectStore::~IDBObjectStore): |
|
38564 * storage/IDBObjectStoreRequest.cpp: Added. |
|
38565 (WebCore::IDBObjectStoreRequest::name): |
|
38566 (WebCore::IDBObjectStoreRequest::keyPath): |
|
38567 (WebCore::IDBObjectStoreRequest::IDBObjectStoreRequest): |
|
38568 * storage/IDBObjectStoreRequest.h: Added. |
|
38569 (WebCore::IDBObjectStoreRequest::create): |
|
38570 (WebCore::IDBObjectStoreRequest::~IDBObjectStoreRequest): |
|
38571 * storage/IDBObjectStoreRequest.idl: Added. |
|
38572 |
|
38573 2010-05-26 Xan Lopez <xlopez@igalia.com> |
|
38574 |
|
38575 Unreviewed GTK+ build fix. |
|
38576 |
|
38577 Use G_DEFINE_INTERFACE only if it's available. |
|
38578 |
|
38579 * bindings/gobject/WebKitDOMEventTarget.cpp: |
|
38580 (webkit_dom_event_target_get_type): |
|
38581 (webkit_dom_event_target_default_init): |
|
38582 |
|
38583 2010-05-26 Jeremy Orlow <jorlow@chromium.org> |
|
38584 |
|
38585 Reviewed by Darin Fisher. |
|
38586 |
|
38587 Implement WebDOMStorageList and make WebIDBDatabase use it |
|
38588 https://bugs.webkit.org/show_bug.cgi?id=39731 |
|
38589 |
|
38590 Remove unused function. |
|
38591 |
|
38592 * dom/DOMStringList.h: |
|
38593 |
|
38594 2010-05-26 Jessie Berlin <jberlin@webkit.org> |
|
38595 |
|
38596 Reviewed by Pavel Feldman |
|
38597 |
|
38598 Bug 31296 - Web Inspector: Should support console.groupCollapsed |
|
38599 https://bugs.webkit.org/show_bug.cgi?id=31296 |
|
38600 |
|
38601 * inspector/InspectorController.cpp: |
|
38602 (WebCore::InspectorController::startGroup): |
|
38603 Set the message type based on whether or not it should be initially collapsed. |
|
38604 * inspector/InspectorController.h: |
|
38605 |
|
38606 * inspector/front-end/ConsoleView.js: |
|
38607 Treat a StartGroupCollapsed message the same way as a StartGroup message, but display the tree for the group as collapsed. |
|
38608 (WebInspector.ConsoleView.prototype.addMessage): |
|
38609 (WebInspector.ConsoleMessage.prototype.toMessageElement): |
|
38610 (WebInspector.ConsoleMessage.prototype.toString): |
|
38611 (WebInspector.ConsoleGroup.prototype.addMessage): |
|
38612 |
|
38613 * page/Console.cpp: |
|
38614 (WebCore::Console::groupCollapsed): |
|
38615 Create a group and indicate that it should be collapsed. |
|
38616 * page/Console.h: |
|
38617 Add the StartGroupCollapsed message type. |
|
38618 |
|
38619 (WebCore::): |
|
38620 * page/Console.idl: |
|
38621 Create the JS bindings for groupCollapsed. |
|
38622 |
|
38623 2010-05-26 yael aharon <yael.aharon@nokia.com> |
|
38624 |
|
38625 Reviewed by Kent Tamura. |
|
38626 |
|
38627 Support the labels attribute in labelable form controls |
|
38628 https://bugs.webkit.org/show_bug.cgi?id=38713 |
|
38629 |
|
38630 Added a new cache type in NodeRareData to store the new cache type. |
|
38631 This cache is created on demand. |
|
38632 |
|
38633 Added the "labels" attribute to all form controls that support this attribute. |
|
38634 |
|
38635 Tests: fast/forms/labels-add-htmlFor-label.html |
|
38636 fast/forms/labels-add-parent-label.html |
|
38637 fast/forms/labels-change-htmlFor-attribute.html |
|
38638 fast/forms/labels-item-index.html |
|
38639 fast/forms/labels-remove-htmlFor-attribute.html |
|
38640 fast/forms/labels-remove-htmlFor-label.html |
|
38641 fast/forms/labels-remove-parent-label.html |
|
38642 fast/forms/labels-set-htmlFor-attribute.html |
|
38643 |
|
38644 * CMakeLists.txt: |
|
38645 * GNUmakefile.am: |
|
38646 * WebCore.gypi: |
|
38647 * WebCore.pro: |
|
38648 * WebCore.vcproj/WebCore.vcproj: |
|
38649 * WebCore.xcodeproj/project.pbxproj: |
|
38650 * dom/Node.cpp: |
|
38651 (WebCore::Node::notifyLocalNodeListsLabelChanged): |
|
38652 (WebCore::Node::removeCachedLabelsNodeList): |
|
38653 (WebCore::NodeListsNodeData::invalidateCaches): |
|
38654 (WebCore::NodeListsNodeData::invalidateCachesThatDependOnAttributes): |
|
38655 (WebCore::NodeListsNodeData::isEmpty): |
|
38656 * dom/Node.h: |
|
38657 * dom/NodeRareData.h: |
|
38658 (WebCore::NodeListsNodeData::NodeListsNodeData): |
|
38659 * html/HTMLButtonElement.idl: |
|
38660 * html/HTMLFormControlElement.cpp: |
|
38661 (WebCore::HTMLFormControlElement::isLabelable): |
|
38662 (WebCore::HTMLFormControlElement::labels): |
|
38663 * html/HTMLFormControlElement.h: |
|
38664 * html/HTMLInputElement.idl: |
|
38665 * html/HTMLLabelElement.cpp: |
|
38666 (WebCore::HTMLLabelElement::parseMappedAttribute): |
|
38667 * html/HTMLLabelElement.h: |
|
38668 * html/HTMLMeterElement.idl: |
|
38669 * html/HTMLProgressElement.idl: |
|
38670 * html/HTMLSelectElement.idl: |
|
38671 * html/HTMLTextAreaElement.idl: |
|
38672 * html/LabelsNodeList.cpp: Added. |
|
38673 (WebCore::LabelsNodeList::LabelsNodeList): |
|
38674 (WebCore::LabelsNodeList::~LabelsNodeList): |
|
38675 (WebCore::LabelsNodeList::nodeMatches): |
|
38676 * html/LabelsNodeList.h: Added. |
|
38677 (WebCore::LabelsNodeList::create): |
|
38678 |
|
38679 2010-05-26 Xan Lopez <xlopez@igalia.com> |
|
38680 |
|
38681 Reviewed by Jeremy Orlow. |
|
38682 |
|
38683 Style fix in JSEventCustom.cpp |
|
38684 https://bugs.webkit.org/show_bug.cgi?id=39727 |
|
38685 |
|
38686 Conditional includes should be all together after the |
|
38687 unconditional includes. |
|
38688 |
|
38689 * bindings/js/JSEventCustom.cpp: |
|
38690 |
|
38691 2010-05-24 Jeremy Orlow <jorlow@chromium.org> |
|
38692 |
|
38693 Reviewed by Steve Block. |
|
38694 |
|
38695 Add IDBDatabase's attributes |
|
38696 https://bugs.webkit.org/show_bug.cgi?id=39602 |
|
38697 |
|
38698 Add the attributes (like name, description, etc) for |
|
38699 IDBDatabaseRequest. Plumb that back to the IDBDatabase |
|
38700 object which stores the data. |
|
38701 |
|
38702 CMake and Android build changes in another CL (that |
|
38703 fixes other stuff too). |
|
38704 |
|
38705 Updated the layout test, but there's some further testing |
|
38706 that needs to be added once the Chromium side of this lands. |
|
38707 |
|
38708 * GNUmakefile.am |
|
38709 * WebCore.gypi: |
|
38710 * WebCore.pro |
|
38711 * WebCore.vcproj/WebCore.vcproj |
|
38712 * WebCore.xcodeproj/project.pbxproj |
|
38713 * dom/DOMStringList.h: |
|
38714 (WebCore::DOMStringList::strings): |
|
38715 * storage/IDBDatabase.cpp: Removed. |
|
38716 * storage/IDBDatabase.h: |
|
38717 * storage/IDBDatabaseImpl.cpp: Added. |
|
38718 (WebCore::IDBDatabaseImpl::IDBDatabaseImpl): |
|
38719 (WebCore::IDBDatabaseImpl::~IDBDatabaseImpl): |
|
38720 (WebCore::IDBDatabaseImpl::objectStores): |
|
38721 * storage/IDBDatabaseImpl.h: Added. |
|
38722 (WebCore::IDBDatabaseImpl::create): |
|
38723 (WebCore::IDBDatabaseImpl::name): |
|
38724 (WebCore::IDBDatabaseImpl::description): |
|
38725 (WebCore::IDBDatabaseImpl::version): |
|
38726 * storage/IDBDatabaseRequest.h: |
|
38727 (WebCore::IDBDatabaseRequest::name): |
|
38728 (WebCore::IDBDatabaseRequest::description): |
|
38729 (WebCore::IDBDatabaseRequest::version): |
|
38730 (WebCore::IDBDatabaseRequest::objectStores): |
|
38731 * storage/IDBDatabaseRequest.idl: |
|
38732 * storage/IDBSuccessEvent.cpp: |
|
38733 (WebCore::IDBSuccessEvent::IDBSuccessEvent): |
|
38734 * storage/IndexedDatabaseImpl.cpp: |
|
38735 (WebCore::IndexedDatabaseImpl::open): |
|
38736 * storage/IndexedDatabaseImpl.h: |
|
38737 |
|
38738 2010-05-26 Xan Lopez <xlopez@igalia.com> |
|
38739 |
|
38740 Reviewed by NOBODY Gustavo Noronha. |
|
38741 |
|
38742 [GTK] Add support for DOM events in the GObject DOM bindings |
|
38743 https://bugs.webkit.org/show_bug.cgi?id=38844 |
|
38744 |
|
38745 Add actual GObject event objects to the DOM event signals. |
|
38746 |
|
38747 * GNUmakefile.am: |
|
38748 * bindings/gobject/GObjectEventListener.cpp: |
|
38749 (WebCore::GObjectEventListener::handleEvent): |
|
38750 * bindings/gobject/WebKitDOMBinding.cpp: |
|
38751 (WebKit::wrapEventTarget): |
|
38752 (WebKit::kit): |
|
38753 * bindings/gobject/WebKitDOMBinding.h: |
|
38754 * bindings/gobject/WebKitDOMEventTarget.cpp: Added. |
|
38755 (webkit_dom_event_target_default_init): |
|
38756 (webkit_dom_event_target_dispatch_event): |
|
38757 * bindings/gobject/WebKitDOMEventTarget.h: Added. |
|
38758 * bindings/scripts/CodeGeneratorGObject.pm: |
|
38759 |
|
38760 2010-05-24 Jeremy Orlow <jorlow@chromium.org> |
|
38761 |
|
38762 Reviewed by Steve Block. |
|
38763 |
|
38764 [Android] Add IndexedDB to the build |
|
38765 https://bugs.webkit.org/show_bug.cgi?id=39593 |
|
38766 |
|
38767 Add the current list of build files to Android's make files. From now on, |
|
38768 I'll try to be sure to update these along with the rest. |
|
38769 Also, fix a nit in the gypi file. |
|
38770 |
|
38771 No tests..just changing build files. |
|
38772 |
|
38773 * Android.derived.jscbindings.mk: |
|
38774 * Android.derived.v8bindings.mk: |
|
38775 * Android.mk: |
|
38776 * WebCore.gypi: |
|
38777 |
|
38778 2010-05-26 Alexander Pavlov <apavlov@chromium.org> |
|
38779 |
|
38780 Reviewed by Pavel Feldman. |
|
38781 |
|
38782 Expose CSS rule body start/end offsets in the parent stylesheet |
|
38783 https://bugs.webkit.org/show_bug.cgi?id=38906 |
|
38784 |
|
38785 CSSParser::parseSheet() accepts an optional external Vector where the start/end offsets |
|
38786 of the CSSStyleRule bodies, relative to the beginning of the stylesheet, will be stored. |
|
38787 This Vector is only used when the Web Inspector needs the body ranges, thus there is no |
|
38788 memory overhead until the user starts editing styles via the Web Inspector. |
|
38789 Additionally, fixed an issue with a single inspectorStyleSheet for all frames in the page. |
|
38790 |
|
38791 Test: inspector/styles-source-offsets.html |
|
38792 |
|
38793 * css/CSSGrammar.y: |
|
38794 * css/CSSParser.cpp: |
|
38795 (WebCore::CSSParser::CSSParser): |
|
38796 (WebCore::CSSParser::setupParser): |
|
38797 (WebCore::CSSParser::parseSheet): |
|
38798 (WebCore::CSSParser::createStyleRule): |
|
38799 (WebCore::CSSParser::updateLastSelectorLineAndPosition): |
|
38800 (WebCore::CSSParser::markRuleBodyStart): |
|
38801 (WebCore::CSSParser::markRuleBodyEnd): |
|
38802 * css/CSSParser.h: |
|
38803 (WebCore::CSSParser::resetRuleBodyMarks): |
|
38804 * inspector/InspectorCSSStore.cpp: |
|
38805 (WebCore::InspectorCSSStore::InspectorCSSStore): |
|
38806 (WebCore::InspectorCSSStore::reset): |
|
38807 (WebCore::InspectorCSSStore::removeDocument): |
|
38808 (WebCore::InspectorCSSStore::inspectorStyleSheet): |
|
38809 (WebCore::InspectorCSSStore::getStartEndOffsets): |
|
38810 (WebCore::InspectorCSSStore::getIndexInStyleRules): |
|
38811 (WebCore::InspectorCSSStore::disabledStyleForId): |
|
38812 (WebCore::InspectorCSSStore::styleForId): |
|
38813 (WebCore::InspectorCSSStore::ruleForId): |
|
38814 (WebCore::InspectorCSSStore::bindStyle): |
|
38815 (WebCore::InspectorCSSStore::bindStyleSheet): |
|
38816 (WebCore::InspectorCSSStore::bindRule): |
|
38817 * inspector/InspectorCSSStore.h: |
|
38818 * inspector/InspectorController.cpp: |
|
38819 (WebCore::InspectorController::InspectorController): |
|
38820 (WebCore::InspectorController::resourceForURL): |
|
38821 * inspector/InspectorController.h: |
|
38822 (WebCore::InspectorController::inspectorFrontend): |
|
38823 * inspector/InspectorDOMAgent.cpp: |
|
38824 (WebCore::InspectorDOMAgent::InspectorDOMAgent): |
|
38825 (WebCore::InspectorDOMAgent::unbind): |
|
38826 (WebCore::InspectorDOMAgent::getStyles): |
|
38827 (WebCore::InspectorDOMAgent::getAllStyles): |
|
38828 (WebCore::InspectorDOMAgent::buildArrayForCSSRules): |
|
38829 (WebCore::InspectorDOMAgent::buildArrayForPseudoElements): |
|
38830 (WebCore::InspectorDOMAgent::applyStyleText): |
|
38831 (WebCore::InspectorDOMAgent::setStyleText): |
|
38832 (WebCore::InspectorDOMAgent::setStyleProperty): |
|
38833 (WebCore::InspectorDOMAgent::toggleStyleEnabled): |
|
38834 (WebCore::InspectorDOMAgent::setRuleSelector): |
|
38835 (WebCore::InspectorDOMAgent::addRule): |
|
38836 (WebCore::InspectorDOMAgent::buildObjectForStyle): |
|
38837 (WebCore::InspectorDOMAgent::buildArrayForDisabledStyleProperties): |
|
38838 (WebCore::InspectorDOMAgent::buildObjectForStyleSheet): |
|
38839 (WebCore::InspectorDOMAgent::buildObjectForRule): |
|
38840 * inspector/InspectorDOMAgent.h: |
|
38841 * inspector/front-end/DOMAgent.js: |
|
38842 (WebInspector.CSSStyleDeclaration): |
|
38843 |
|
38844 2010-05-26 Xan Lopez <xlopez@igalia.com> |
|
38845 |
|
38846 Reviewed by Gustavo Noronha. |
|
38847 |
|
38848 [GTK] Add support for DOM events in the GObject DOM bindings |
|
38849 https://bugs.webkit.org/show_bug.cgi?id=38844 |
|
38850 |
|
38851 Use GObject-like names for the DOM event signals. Basically go |
|
38852 from 'mousewheel' to 'mouse-wheel-event'. |
|
38853 |
|
38854 * bindings/scripts/CodeGeneratorGObject.pm: |
|
38855 |
|
38856 2010-05-26 Nikolas Zimmermann <nzimmermann@rim.com> |
|
38857 |
|
38858 Not reviewed. Sort Xcode project file. |
|
38859 |
|
38860 * WebCore.xcodeproj/project.pbxproj: |
|
38861 |
|
38862 2010-05-26 Xan Lopez <xlopez@igalia.com> |
|
38863 |
|
38864 Reviewed by Gustavo Noronha. |
|
38865 |
|
38866 [GTK] Add support for DOM events in the GObject DOM bindings |
|
38867 https://bugs.webkit.org/show_bug.cgi?id=38844 |
|
38868 |
|
38869 First step towards DOM events support. We create one signal per |
|
38870 event supported in the DOM classes, and create a custom |
|
38871 GObjectEventListener that will emit a GObject signal when an event |
|
38872 is dispatched to the object. There is no event object at the |
|
38873 moment (we just pass NULL), and no support for hooking into the |
|
38874 capture phase. |
|
38875 |
|
38876 * GNUmakefile.am: |
|
38877 * bindings/gobject/GObjectEventListener.cpp: Added. |
|
38878 (WebCore::GObjectEventListener::handleEvent): |
|
38879 (WebCore::GObjectEventListener::operator==): |
|
38880 * bindings/gobject/GObjectEventListener.h: Added. |
|
38881 (WebCore::GObjectEventListener::create): |
|
38882 (WebCore::GObjectEventListener::cast): |
|
38883 (WebCore::GObjectEventListener::GObjectEventListener): |
|
38884 * bindings/scripts/CodeGeneratorGObject.pm: |
|
38885 * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp: |
|
38886 (WebKit::core): |
|
38887 (webkit_dom_test_callback_finalize): |
|
38888 (webkit_dom_test_callback_class_init): |
|
38889 (WebKit::wrapTestCallback): |
|
38890 * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: |
|
38891 (WebKit::core): |
|
38892 (webkit_dom_test_interface_finalize): |
|
38893 (webkit_dom_test_interface_class_init): |
|
38894 (WebKit::wrapTestInterface): |
|
38895 * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: |
|
38896 (WebKit::core): |
|
38897 (webkit_dom_test_obj_finalize): |
|
38898 (webkit_dom_test_obj_class_init): |
|
38899 (WebKit::wrapTestObj): |
|
38900 * dom/EventListener.h: |
|
38901 (WebCore::EventListener::): |
|
38902 |
|
38903 2010-05-26 Xan Lopez <xlopez@igalia.com> |
|
38904 |
|
38905 Reviewed by Gustavo Noronha. |
|
38906 |
|
38907 [GTK] GObject DOM bindings |
|
38908 https://bugs.webkit.org/show_bug.cgi?id=33590 |
|
38909 |
|
38910 We need to protect the body of some methods with #ifdefs, since |
|
38911 the availability of the code they call into is decided at compile |
|
38912 time. |
|
38913 |
|
38914 * bindings/scripts/CodeGeneratorGObject.pm: |
|
38915 |
|
38916 2010-05-26 Kent Tamura <tkent@chromium.org> |
|
38917 |
|
38918 Reviewed by Shinichiro Hamaji. |
|
38919 |
|
38920 Move date/time limit values to DateComponents.h from HTMLInputElement.cpp |
|
38921 https://bugs.webkit.org/show_bug.cgi?id=39423 |
|
38922 |
|
38923 The minimum and maximum values for date, datetime, datetime-local, |
|
38924 month, time, and week types depend on the implementation of |
|
38925 DateComponents. So move them to DateComponents. |
|
38926 |
|
38927 * html/DateComponents.h: |
|
38928 * html/HTMLInputElement.cpp: |
|
38929 (WebCore::HTMLInputElement::minimum): |
|
38930 (WebCore::HTMLInputElement::maximum): |
|
38931 |
|
38932 2010-05-26 Csaba Osztrogonác <ossy@webkit.org> |
|
38933 |
|
38934 Reviewed by Simon Hausmann. |
|
38935 |
|
38936 Buildfix for build without ENABLE(RUBY) after r60201. |
|
38937 |
|
38938 * rendering/RenderBlock.cpp: |
|
38939 (WebCore::canMergeContiguousAnonymousBlocks): Missing #if ENABLE(RUBY) guard added. |
|
38940 |
|
38941 2010-05-26 Nikolas Zimmermann <nzimmermann@rim.com> |
|
38942 |
|
38943 Not reviewed. Update test expectations for JS generator, when using run-webkit-tests. This has been forgotten. |
|
38944 |
|
38945 * bindings/scripts/test/JS/JSTestInterface.cpp: |
|
38946 (WebCore::JSTestInterfaceConstructor::JSTestInterfaceConstructor): |
|
38947 (WebCore::JSTestInterface::createPrototype): |
|
38948 * bindings/scripts/test/JS/JSTestInterface.h: |
|
38949 (WebCore::JSTestInterfacePrototype::JSTestInterfacePrototype): |
|
38950 * bindings/scripts/test/JS/JSTestObj.cpp: |
|
38951 (WebCore::JSTestObjConstructor::JSTestObjConstructor): |
|
38952 (WebCore::JSTestObj::createPrototype): |
|
38953 * bindings/scripts/test/JS/JSTestObj.h: |
|
38954 (WebCore::JSTestObjPrototype::JSTestObjPrototype): |
|
38955 |
|
38956 2010-05-25 Philippe Normand <pnormand@igalia.com> |
|
38957 |
|
38958 Reviewed by Gustavo Noronha Silva. |
|
38959 |
|
38960 [GStreamer] Apple trailers not playing |
|
38961 https://bugs.webkit.org/show_bug.cgi?id=37390 |
|
38962 |
|
38963 Set the AppleTrailer User-Agent workaround after |
|
38964 FrameLoader::addExtraFieldsToSubresourceRequest has been called |
|
38965 because that method sets the global User-Agent. |
|
38966 |
|
38967 * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: |
|
38968 (webKitWebSrcStart): |
|
38969 |
|
38970 2010-05-25 Dumitru Daniliuc <dumi@chromium.org> |
|
38971 |
|
38972 Unreviewed, changing "fts2" to "fts3" in one location I missed in r60188. |
|
38973 |
|
38974 * storage/DatabaseAuthorizer.cpp: |
|
38975 (WebCore::DatabaseAuthorizer::dropVTable): |
|
38976 |
|
38977 2010-05-25 Mark Rowe <mrowe@apple.com> |
|
38978 |
|
38979 Build fix. |
|
38980 |
|
38981 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp: |
|
38982 |
|
38983 2010-05-25 Yuta Kitamura <yutak@chromium.org> |
|
38984 |
|
38985 Reviewed by Pavel Feldman. |
|
38986 |
|
38987 Web Inspector: Show HTTP status message sent from server in Resources tab. |
|
38988 |
|
38989 This patch obtains an HTTP status message of each resource and pass it to |
|
38990 the front end of Web Inspector. The status message is shown in "Headers" tab in |
|
38991 the detail view of that resource, along with the HTTP status code. |
|
38992 |
|
38993 Web Inspector does not respect HTTP status message |
|
38994 https://bugs.webkit.org/show_bug.cgi?id=39595 |
|
38995 |
|
38996 * inspector/InspectorResource.cpp: |
|
38997 (WebCore::InspectorResource::updateResponse): |
|
38998 (WebCore::InspectorResource::updateScriptObject): |
|
38999 * inspector/InspectorResource.h: |
|
39000 * inspector/front-end/Resource.js: |
|
39001 (WebInspector.Resource.CompareByTransferSize): |
|
39002 * inspector/front-end/ResourceView.js: |
|
39003 (WebInspector.ResourceView.prototype._refreshHTTPInformation): |
|
39004 * inspector/front-end/inspector.js: |
|
39005 (WebInspector.updateResource): |
|
39006 * inspector/front-end/utilities.js: |
|
39007 (String.prototype.escapeHTML): Escape '"' so that we can escape messages |
|
39008 that may occur inside HTML attributes. |
|
39009 |
|
39010 2010-05-24 David Hyatt <hyatt@apple.com> |
|
39011 |
|
39012 Reviewed by Dan Bernstein. |
|
39013 |
|
39014 https://bugs.webkit.org/show_bug.cgi?id=39615, implement basic support for -webkit-column-span. |
|
39015 |
|
39016 This patch adds support for -webkit-column-span elements that can span across all of the columns |
|
39017 in a multi-column block. In this first stage, column span support is limited to only immediate |
|
39018 children of the multi-column block, so no elements actually have to split across a span yet. |
|
39019 |
|
39020 Two new kinds of anonymous blocks have been added: anonymous columns blocks and anonymous column |
|
39021 span blocks. When a span gets inserted into a multicol block, the block is split, with the |
|
39022 column portions of the multicol getting wrapped in anonymous columns blocks and the spans getting |
|
39023 wrapped in anonymous column span blocks. The multicol block then stops being multicol and lets |
|
39024 the anonymous multicol blocks take over column layout. |
|
39025 |
|
39026 Many new tests added in fast/multicol/span. |
|
39027 |
|
39028 * dom/Node.cpp: |
|
39029 (WebCore::Node::diff): |
|
39030 Changes to column span result in a detach/attach, since spanning elements don't typically have |
|
39031 much content. |
|
39032 |
|
39033 * rendering/RenderBlock.cpp: |
|
39034 (WebCore::RenderBlock::styleDidChange): |
|
39035 Make sure to inherit the appropriate new styles into the anonymous column and column span blocks. |
|
39036 |
|
39037 (WebCore::RenderBlock::addChildToAnonymousColumnBlocks): |
|
39038 This method handles the insertion of new children into the block after it has had to wrap its |
|
39039 children in anonymous column/column-span blocks. |
|
39040 |
|
39041 (WebCore::RenderBlock::splitAnonymousBlocksAroundChild): |
|
39042 A helper method for splitting all anonymous blocks between beforeChild and this block so that |
|
39043 a new element with an incompatible type can be inserted between them. |
|
39044 |
|
39045 (WebCore::RenderBlock::makeChildrenAnonymousColumnBlocks): |
|
39046 This method does the initial split of a block into anonymous components. This happens the first |
|
39047 time a column-span element gets inserted into the block. |
|
39048 |
|
39049 (WebCore::columnsBlockForSpanningElement): |
|
39050 This function checks whether or not the column-span element is actually being inserted into a viable |
|
39051 columns block. |
|
39052 |
|
39053 (WebCore::RenderBlock::addChildIgnoringAnonymousColumnBlocks): |
|
39054 This is the original RenderBlock::addChild. It handles everything else just like it used to. |
|
39055 |
|
39056 (WebCore::RenderBlock::addChild): |
|
39057 Patched to now call addChildToAnonymousColumnBlocks if the block has wrapped its current children |
|
39058 in anonymous column/column-span blocks already. |
|
39059 |
|
39060 (WebCore::RenderBlock::moveAllChildrenTo): |
|
39061 moveAllChildrenTo has been enhanced to support doing a full remove/append in the case where elements |
|
39062 are shifting across layers. (This should arguably be the default behavior, but that can happen in |
|
39063 a future patch.) |
|
39064 |
|
39065 (WebCore::RenderBlock::removeLeftoverAnonymousBlock): |
|
39066 Patched to fix a bug when the leftover block is empty and to prevent anonymous column/column-span |
|
39067 block from being coalesced with a parent if they are non-empty. |
|
39068 |
|
39069 (WebCore::canMergeContiguousAnonymousBlocks): |
|
39070 Whether or not two contiguous anonymous blocks can merge after the removal of a child. |
|
39071 |
|
39072 (WebCore::RenderBlock::removeChild): |
|
39073 removeChild has been patched to handle more cases of merging/deletion than it did before. It |
|
39074 can now destroy empty anonymous block chains and can now merge two contiguous anonymous blocks |
|
39075 that don't share the same childrenInline() setting (by putting one inside the other). It also |
|
39076 makes sure to do full appends/moves/inserts in the cases where the affected blocks have layers. |
|
39077 |
|
39078 (WebCore::RenderBlock::fillSelectionGaps): |
|
39079 Don't let the selection extend outside of a column-span. |
|
39080 |
|
39081 (WebCore::RenderBlock::setDesiredColumnCountAndWidth): |
|
39082 Turn off multi-column layout on the outermost block if it has wrapped its children in anonymous |
|
39083 column/column-span blocks. |
|
39084 |
|
39085 (WebCore::RenderBlock::createAnonymousBlockWithSameTypeAs): |
|
39086 (WebCore::RenderBlock::createAnonymousColumnsBlock): |
|
39087 (WebCore::RenderBlock::createAnonymousColumnSpanBlock): |
|
39088 New helper functions for anonymous block creation. |
|
39089 |
|
39090 (WebCore::RenderBlock::renderName): |
|
39091 Patched to dump anonymous column and column-span blocks so that they can be distinguished from |
|
39092 regular anonymous blocks. |
|
39093 * rendering/RenderBlock.h: |
|
39094 * rendering/RenderObject.h: |
|
39095 (WebCore::RenderObject::isAnonymousColumnsBlock): |
|
39096 (WebCore::RenderObject::isAnonymousColumnSpanBlock): |
|
39097 New helper functions for asking the type of an anonymous block. |
|
39098 |
|
39099 * rendering/style/RenderStyle.h: |
|
39100 (WebCore::InheritedFlags::inheritColumnPropertiesFrom): |
|
39101 A helper function to allow anonymous column blocks to easily inherit all column properties for |
|
39102 rendering. |
|
39103 |
|
39104 2010-05-25 Dirk Pranke <dpranke@chromium.org> |
|
39105 |
|
39106 Reviewed by Dimitri Glazkov. |
|
39107 |
|
39108 Re-commit r58765 - it had been rolled out to see if it was causing |
|
39109 a perf regression (in r59787), but that does not seem to have been |
|
39110 the case. |
|
39111 |
|
39112 Tests: fast/notifications/notifications-replace.html |
|
39113 fast/notifications/notifications-rtl.html |
|
39114 |
|
39115 https://bugs.webkit.org/show_bug.cgi?id=39605 |
|
39116 |
|
39117 * notifications/Notification.h: |
|
39118 (WebCore::Notification::dir): |
|
39119 (WebCore::Notification::setDir): |
|
39120 (WebCore::Notification::replaceId): |
|
39121 (WebCore::Notification::setReplaceId): |
|
39122 * notifications/Notification.idl: |
|
39123 |
|
39124 2010-05-22 Jer Noble <jer.noble@apple.com> |
|
39125 |
|
39126 Reviewed by Adam Roben. |
|
39127 |
|
39128 Full screen doesn't work for video elements |
|
39129 https://bugs.webkit.org/show_bug.cgi?id=39557 |
|
39130 rdar://problem/8011813 |
|
39131 |
|
39132 Add fullscreen support for MediaPlayerPrivateVisualContext. A new class, MediaPlayerPrivateFullscreenWindow, |
|
39133 provides the fullscreen hwnd and layer renderer. Any WKCACFLayer can be provided to MediaPlayerPrivateFullscreenWindow |
|
39134 so future additional MediaPlayerPrivate implementations can use the fullscreen window. |
|
39135 |
|
39136 Minor additions have been made to the FloatSize and IntSize classes. |
|
39137 |
|
39138 MediaPlayerPrivateQuickTimeVisualContext now calls retrieveCurrentImage after creating a new |
|
39139 videoLayer; this is an existing bug that was never really exposed before now. |
|
39140 |
|
39141 * WebCore.vcproj/WebCore.vcproj: |
|
39142 * platform/graphics/FloatSize.h: Added aspectRatio() and scale(float). |
|
39143 (WebCore::FloatSize::aspectRatio): |
|
39144 (WebCore::FloatSize::scale): |
|
39145 * platform/graphics/IntSize.h: Added aspectRatio(). |
|
39146 (WebCore::IntSize::aspectRatio): |
|
39147 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp: Added. |
|
39148 * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h: Added. |
|
39149 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: Call retrieveCurrentImage() after creating the videoLayer. |
|
39150 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::supportsFullscreen): |
|
39151 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage): |
|
39152 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::createLayerForMovie): |
|
39153 * platform/graphics/win/WKCACFLayer.cpp: |
|
39154 (WebCore::WKCACFLayer::WKCACFLayer): |
|
39155 (WebCore::WKCACFLayer::removeFromSuperlayer): |
|
39156 (WebCore::WKCACFLayer::setFrame): |
|
39157 (WebCore::WKCACFLayer::internalSetNeedsDisplay): |
|
39158 (WebCore::WKCACFLayer::setLayoutClient): |
|
39159 (WebCore::WKCACFLayer::layoutSublayersProc): |
|
39160 (WebCore::WKCACFLayer::layoutClient): |
|
39161 (WebCore::WKCACFLayer::setNeedsLayout): |
|
39162 * platform/graphics/win/WKCACFLayer.h: Add layout client class. |
|
39163 (WebCore::WKCACFLayerLayoutClient::~WKCACFLayerLayoutClient): |
|
39164 (WebCore::WKCACFLayer::frame): Added back frame()/setFrame(). |
|
39165 * platform/graphics/win/WebTiledLayer.cpp: |
|
39166 (WebCore::WebTiledLayer::setFrame): Implamented setFrame() in subclass of WKCACFLayer |
|
39167 * platform/graphics/win/WebTiledLayer.h: |
|
39168 * platform/graphics/win/WebTiledLayer.cpp: Added setFrame() overriding WKCACFLayer's implementation |
|
39169 (WebCore::WebTiledLayer::setFrame): |
|
39170 * platform/graphics/win/WebTiledLayer.h: |
|
39171 |
|
39172 |
|
39173 2010-05-25 Dumitru Daniliuc <dumi@chromium.org> |
|
39174 |
|
39175 Reviewed by Brady Eidson. |
|
39176 |
|
39177 Allow FTS3 functions. |
|
39178 https://bugs.webkit.org/show_bug.cgi?id=38003 |
|
39179 |
|
39180 * storage/DatabaseAuthorizer.cpp: |
|
39181 (WebCore::DatabaseAuthorizer::addWhitelistedFunctions): |
|
39182 (WebCore::DatabaseAuthorizer::createVTable): |
|
39183 |
|
39184 2010-05-25 Anders Carlsson <andersca@apple.com> |
|
39185 |
|
39186 Reviewed by Sam Weinig. |
|
39187 |
|
39188 Get rid of PluginDatabaseClient |
|
39189 https://bugs.webkit.org/show_bug.cgi?id=39685 |
|
39190 |
|
39191 PluginDatabaseClient isn't used anywhere so just remove it. |
|
39192 |
|
39193 * GNUmakefile.am: |
|
39194 * plugins/PluginDatabase.cpp: |
|
39195 (WebCore::PluginDatabase::PluginDatabase): |
|
39196 (WebCore::PluginDatabase::refresh): |
|
39197 * plugins/PluginDatabase.h: |
|
39198 * plugins/PluginDatabaseClient.h: Removed. |
|
39199 |
|
39200 2010-05-25 Alexey Proskuryakov <ap@apple.com> |
|
39201 |
|
39202 Reviewed by Darin Adler. |
|
39203 |
|
39204 https://bugs.webkit.org/show_bug.cgi?id=18595 |
|
39205 REGRESSION (r20766): Setting display:none on an iframe causes the ownerDocument to freeze |
|
39206 |
|
39207 Test: fast/events/frame-detached-in-mousedown.html |
|
39208 |
|
39209 * page/EventHandler.h: Added a boolean tracking whether EventHandler needs to reset capturing |
|
39210 node on mouse up. It's only done for nodes that hold subframes - elements that capture events |
|
39211 are responsible for resetting the state. |
|
39212 |
|
39213 * page/EventHandler.cpp: |
|
39214 (WebCore::EventHandler::EventHandler): Don't initialize m_capturingMouseEventsNode, it's a |
|
39215 RefPtr and is initialized automatically. |
|
39216 (WebCore::EventHandler::handleMousePressEvent): Remember that EventHandler should reset |
|
39217 capturing node on its own. |
|
39218 (WebCore::EventHandler::handleMouseDoubleClickEvent): The code here looked like it was copied |
|
39219 from the below in r21156. Copied correct code instead. |
|
39220 (WebCore::EventHandler::handleMouseReleaseEvent): We only clear the capturing node when it |
|
39221 holds a subframe, but the frame may be already detached by the time mouse up is handled, so the |
|
39222 check was wrong - and return code of passMouseReleaseEventToSubframe() is obviously irrelevant. |
|
39223 (WebCore::EventHandler::setCapturingMouseEventsNode): Remember that EventHandler should not |
|
39224 reset capturing node on its own. |
|
39225 |
|
39226 2010-05-25 Kevin Ollivier <kevino@theolliviers.com> |
|
39227 |
|
39228 [wx] Build fix for missing symbol. |
|
39229 |
|
39230 * wscript: |
|
39231 |
|
39232 2010-05-25 Darin Adler <darin@apple.com> |
|
39233 |
|
39234 * dom/Element.cpp: |
|
39235 (WebCore::Element::getIDAttribute): Added comments about problems with this function. |
|
39236 |
|
39237 2010-05-25 Leandro Pereira <leandro@profusion.mobi> |
|
39238 |
|
39239 Reviewed by Gustavo Noronha Silva. |
|
39240 |
|
39241 [EFL] Build fix. |
|
39242 http://webkit.org/b/39598 |
|
39243 |
|
39244 * CMakeLists.txt: |
|
39245 |
|
39246 2010-05-25 Enrica Casucci <enrica@apple.com> |
|
39247 |
|
39248 Reviewed by Darin Adler. |
|
39249 |
|
39250 REGRESSION(51522): typing at the end of a line in designMode documents is *very* slow. |
|
39251 https://bugs.webkit.org/show_bug.cgi?id=36037 |
|
39252 <rdar://problem/8022887> |
|
39253 |
|
39254 The performance regression was traced to r51522 but this is not entirely true. That revision introduced, among other things, |
|
39255 additional checks in the method isCandidate of both Position and PositionIterator classes to support scenarios of mixed editability |
|
39256 that were not allowed before. This change uncovered an underlying issue with the decrement method of PositionIterator, that in some |
|
39257 cases would iterate through every position as offset in a block before moving to the last child in the block. |
|
39258 This was exactly the case of the attached test case, where, trying to check if the caret was placed at the end of a block, we were examining |
|
39259 every position in the block before considering the last true position in the block. |
|
39260 The performance was linear with the number of child nodes in the block, instead of constant. |
|
39261 |
|
39262 * dom/PositionIterator.cpp: |
|
39263 (WebCore::PositionIterator::decrement): |
|
39264 |
|
39265 2010-05-25 Alexey Proskuryakov <ap@apple.com> |
|
39266 |
|
39267 Reviewed by Darin Adler. |
|
39268 |
|
39269 https://bugs.webkit.org/show_bug.cgi?id=39621 |
|
39270 <rdar://problem/8009738> Extreme memory growth on DOM Hanoi test |
|
39271 |
|
39272 The largest cause of memory growth on this test were autoreleased DOMNode objects created |
|
39273 to make webView:formStateDidChangeForNode: delegate calls. |
|
39274 |
|
39275 * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): |
|
39276 Don't call notifyFormStateChanged() - since the element starts with refcount 0, it's not |
|
39277 safe to call functions that are likely to create temporary wrappers (wrapper destructor |
|
39278 would bring refcount back to 0, and destroy HTMLTextAreaElement from within its constructor). |
|
39279 |
|
39280 2010-05-25 Kent Tamura <tkent@chromium.org> |
|
39281 |
|
39282 Reviewed by Dimitri Glazkov. |
|
39283 |
|
39284 [DRT/Chromium] Enable 3D_CANVAS, FILTERS, METER_TAG and PROGRESS_TAG |
|
39285 https://bugs.webkit.org/show_bug.cgi?id=39652 |
|
39286 |
|
39287 * rendering/RenderTheme.cpp: |
|
39288 (WebCore::RenderTheme::paintMeter): Fix narrowPrecisionToFloat() usage. |
|
39289 |
|
39290 2010-05-25 Darin Adler <darin@apple.com> |
|
39291 |
|
39292 Sort ".exp" files with the sort tool. |
|
39293 This makes later merging easier. |
|
39294 |
|
39295 These Mac-specific files should probably move into a subdirectory |
|
39296 at some point. |
|
39297 |
|
39298 * WebCore.Inspector.exp: Sorted. |
|
39299 * WebCore.PluginHostProcess.exp: Removed blank line. |
|
39300 * WebCore.VideoProxy.exp: Sorted. |
|
39301 * WebCore.base.exp: Ditto. |
|
39302 |
|
39303 2010-05-25 Vangelis Kokkevis <vangelis@chromium.org> |
|
39304 |
|
39305 Reviewed by Darin Fisher. |
|
39306 |
|
39307 Removing the persistent GraphicsContext from LayerChromium to save on |
|
39308 memory and simplify code. Layers now create a temporary context, draw into |
|
39309 it, update the GL texture and discard the context. |
|
39310 https://bugs.webkit.org/show_bug.cgi?id=39640 |
|
39311 |
|
39312 * platform/graphics/chromium/GraphicsLayerChromium.cpp: |
|
39313 (WebCore::GraphicsLayerChromium::updateLayerDrawsContent): |
|
39314 * platform/graphics/chromium/LayerChromium.cpp: |
|
39315 (WebCore::LayerChromium::LayerChromium): |
|
39316 (WebCore::LayerChromium::~LayerChromium): |
|
39317 (WebCore::LayerChromium::setLayerRenderer): |
|
39318 (WebCore::LayerChromium::updateTextureContents): |
|
39319 (WebCore::LayerChromium::setContents): |
|
39320 (WebCore::LayerChromium::setBounds): |
|
39321 (WebCore::LayerChromium::setNeedsDisplay): |
|
39322 * platform/graphics/chromium/LayerChromium.h: |
|
39323 * platform/graphics/chromium/LayerRendererChromium.cpp: |
|
39324 (WebCore::LayerRendererChromium::~LayerRendererChromium): |
|
39325 (WebCore::LayerRendererChromium::setRootLayerCanvasSize): |
|
39326 (WebCore::LayerRendererChromium::drawLayers): |
|
39327 (WebCore::LayerRendererChromium::assignTextureForLayer): |
|
39328 (WebCore::LayerRendererChromium::compositeLayersRecursive): |
|
39329 * platform/graphics/chromium/LayerRendererChromium.h: |
|
39330 (WebCore::LayerRendererChromium::rootLayerGraphicsContext): |
|
39331 |
|
39332 2010-05-24 Kenneth Rohde Christiansen <kenneth@webkit.org> |
|
39333 |
|
39334 Reviewed by Simon Hausmann. |
|
39335 |
|
39336 [Qt] Make text filling work together with text stroke. |
|
39337 |
|
39338 When the text has stroke a new QPen was set, overriding the pen |
|
39339 set for text filling. This patch fixes that by storing the two |
|
39340 pens and using where appropriate. |
|
39341 |
|
39342 * platform/graphics/qt/FontQt.cpp: |
|
39343 (WebCore::Font::drawComplexText): |
|
39344 |
|
39345 2010-05-17 Antonio Gomes <tonikitoo@webkit.org> |
|
39346 |
|
39347 Reviewed by Darin Adler. |
|
39348 |
|
39349 Add an optional "starting node' parameter to scrollRecursively and scrollOverflow of EventHandler |
|
39350 https://bugs.webkit.org/show_bug.cgi?id=39217 |
|
39351 |
|
39352 It would be usefull if scrollOverflow and scrollRecursively methods of EventHandler |
|
39353 could receive a parameter to specify where to start scrolling from. Currently they |
|
39354 start scrolling from either the current focused node or the node where mouse last |
|
39355 pressed on. Patch proposes an aditional starting point as an optional parameter. |
|
39356 Since it is optional, all call sites can remain as are, and if a Null node is passed |
|
39357 in, both methods work as previously. |
|
39358 |
|
39359 * page/EventHandler.cpp: |
|
39360 (WebCore::EventHandler::scrollOverflow): |
|
39361 (WebCore::EventHandler::scrollRecursively): |
|
39362 * page/EventHandler.h: |
|
39363 |
|
39364 2010-05-25 Yury Semikhatsky <yurys@chromium.org> |
|
39365 |
|
39366 Reviewed by Timothy Hatcher. |
|
39367 |
|
39368 Web Inspector: localize heap graph strings. |
|
39369 |
|
39370 https://bugs.webkit.org/show_bug.cgi?id=39674 |
|
39371 |
|
39372 * English.lproj/localizedStrings.js: |
|
39373 |
|
39374 2010-05-25 Adam Barth <abarth@webkit.org> |
|
39375 |
|
39376 Reviewed by Eric Seidel. |
|
39377 |
|
39378 Switch HTML parsing benchmark to use document.write instead of innerHTML |
|
39379 https://bugs.webkit.org/show_bug.cgi?id=39661 |
|
39380 |
|
39381 We'd like to exercise the main parsing pipeline instead of the fragment |
|
39382 parsing pipeline. |
|
39383 |
|
39384 * benchmarks/parser/html-parser.html: |
|
39385 |
|
39386 2010-05-25 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> |
|
39387 |
|
39388 Reviewed by Laszlo Gombos. |
|
39389 |
|
39390 [Qt] Running with accelerated compositing enabled sometimes result in a crash |
|
39391 https://bugs.webkit.org/show_bug.cgi?id=39609 |
|
39392 |
|
39393 Check if we have a scene before applying the workaround for |
|
39394 the QGraphicsScene bug where opacity change doesn't always have |
|
39395 immediate effect. |
|
39396 |
|
39397 * platform/graphics/qt/GraphicsLayerQt.cpp: |
|
39398 (WebCore::OpacityAnimationQt::applyFrame): |
|
39399 |
|
39400 2010-05-25 Yury Semikhatsky <yurys@chromium.org> |
|
39401 |
|
39402 Unreviewed. Fix Chromium Mac Release build. |
|
39403 |
|
39404 * bindings/v8/ScriptDebugServer.cpp: |
|
39405 |
|
39406 2010-05-24 Yury Semikhatsky <yurys@chromium.org> |
|
39407 |
|
39408 Reviewed by Pavel Feldman. |
|
39409 |
|
39410 ScriptDebugServer is now implemented as DebugEventListener which means it doesn't |
|
39411 depend on v8 debugging protocol, instead it uses ExecState to collect debugging |
|
39412 info and pass it to the listeners. |
|
39413 |
|
39414 New implementation of ScriptDebugServer uses methods provided by client to dispatch |
|
39415 its messages while JS is paused(previously the messages was dispatched in a callback |
|
39416 passed to v8 along with DebugEventHandler). |
|
39417 |
|
39418 https://bugs.webkit.org/show_bug.cgi?id=39594 |
|
39419 |
|
39420 * bindings/js/ScriptDebugServer.cpp: |
|
39421 (WebCore::ScriptDebugServer::dispatchDidPause): |
|
39422 (WebCore::ScriptDebugServer::dispatchDidContinue): |
|
39423 (WebCore::ScriptDebugServer::dispatchFunctionToListeners): Changed method signature to allow |
|
39424 invocation of ScriptDebugListener methods that have non-empty argument list. |
|
39425 (WebCore::ScriptDebugServer::pauseIfNeeded): |
|
39426 * bindings/js/ScriptDebugServer.h: |
|
39427 * bindings/v8/ScriptDebugServer.cpp: |
|
39428 (WebCore::retrieveFrame): |
|
39429 (WebCore::ScriptDebugServer::ScriptDebugServer): |
|
39430 (WebCore::ScriptDebugServer::addListener): |
|
39431 (WebCore::ScriptDebugServer::removeListener): Execution is resumed(nested message loop is terminated) when |
|
39432 corresponding debugger window closes. |
|
39433 (WebCore::ScriptDebugServer::clearBreakpoints): |
|
39434 (WebCore::ScriptDebugServer::pauseOnExceptionsState): |
|
39435 (WebCore::ScriptDebugServer::setPauseOnExceptionsState): |
|
39436 (WebCore::ScriptDebugServer::continueProgram): |
|
39437 (WebCore::ScriptDebugServer::stepIntoStatement): |
|
39438 (WebCore::ScriptDebugServer::stepOverStatement): |
|
39439 (WebCore::ScriptDebugServer::stepOutOfFunction): |
|
39440 (WebCore::ScriptDebugServer::v8DebugEventCallback): |
|
39441 (WebCore::ScriptDebugServer::handleV8DebugEvent): |
|
39442 (WebCore::ScriptDebugServer::didResume): |
|
39443 * bindings/v8/ScriptDebugServer.h: |
|
39444 (WebCore::ScriptDebugServer::ClientMessageLoop::~ClientMessageLoop): |
|
39445 (WebCore::ScriptDebugServer::setClientMessageLoop): |
|
39446 * inspector/InspectorController.cpp: |
|
39447 (WebCore::InspectorController::didPause): |
|
39448 * inspector/InspectorController.h: |
|
39449 * inspector/ScriptDebugListener.h: Changed didPause signature to explicitly pass ScriptState |
|
39450 where execution is paused. |
|
39451 |
|
39452 2010-05-25 Adam Barth <abarth@webkit.org> |
|
39453 |
|
39454 Reviewed by Eric Seidel. |
|
39455 |
|
39456 Clear attributes for each tag in the HTML5 parser |
|
39457 https://bugs.webkit.org/show_bug.cgi?id=39660 |
|
39458 |
|
39459 Yes, I did screw this up. |
|
39460 |
|
39461 * html/HTML5Token.h: |
|
39462 (WebCore::HTML5Token::beginStartTag): |
|
39463 (WebCore::HTML5Token::beginEndTag): |
|
39464 |
|
39465 2010-05-25 Anders Bakken <agbakken@gmail.com> |
|
39466 |
|
39467 Reviewed by Darin Adler. |
|
39468 |
|
39469 Remove warning for GCC 4.4.3 |
|
39470 |
|
39471 GCC suggest parentheses around && within || |
|
39472 |
|
39473 * dom/Element.cpp: |
|
39474 (WebCore::Element::recalcStyle): |
|
39475 |
|
39476 2010-05-25 Xan Lopez <xlopez@igalia.com> |
|
39477 |
|
39478 Fix the GTK+ build, PluginInfoStore was removed. |
|
39479 |
|
39480 * GNUmakefile.am: |
|
39481 |
|
39482 2010-05-25 Ada Chan <adachan@apple.com> |
|
39483 |
|
39484 Reviewed by Steve Falkenburg. |
|
39485 |
|
39486 Add a base class for DOMTimer called SuspendableTimer which captures just the |
|
39487 basic functionality of TimerBase and ActiveDOMObject combined. It does not |
|
39488 contain functionality specific to scripting timers. |
|
39489 |
|
39490 SuspendableTimer is used in fixing https://bugs.webkit.org/show_bug.cgi?id=39651 |
|
39491 |
|
39492 * Android.mk: |
|
39493 * CMakeLists.txt: |
|
39494 * GNUmakefile.am: |
|
39495 * WebCore.gypi: |
|
39496 * WebCore.pro: |
|
39497 * WebCore.vcproj/WebCore.vcproj: |
|
39498 * WebCore.xcodeproj/project.pbxproj: |
|
39499 * page/DOMTimer.cpp: |
|
39500 (WebCore::DOMTimer::DOMTimer): |
|
39501 (WebCore::DOMTimer::contextDestroyed): |
|
39502 (WebCore::DOMTimer::stop): |
|
39503 * page/DOMTimer.h: |
|
39504 * page/SuspendableTimer.cpp: Added. |
|
39505 (WebCore::SuspendableTimer::SuspendableTimer): |
|
39506 (WebCore::SuspendableTimer::~SuspendableTimer): |
|
39507 (WebCore::SuspendableTimer::hasPendingActivity): |
|
39508 (WebCore::SuspendableTimer::stop): |
|
39509 (WebCore::SuspendableTimer::suspend): |
|
39510 (WebCore::SuspendableTimer::resume): |
|
39511 (WebCore::SuspendableTimer::canSuspend): |
|
39512 * page/SuspendableTimer.h: Added. |
|
39513 |
|
39514 2010-05-25 Justin Schuh <jschuh@chromium.org> |
|
39515 |
|
39516 Reviewed by Nate Chapin. |
|
39517 |
|
39518 Remove custom bindings for Element.SetAttribute* |
|
39519 https://bugs.webkit.org/show_bug.cgi?id=39604 |
|
39520 |
|
39521 Custom bindings are no longer needed because origin checks were moved |
|
39522 out of the bindings by: http://trac.webkit.org/changeset/59866 |
|
39523 |
|
39524 Behavior isn't changed and is covered by existing tests. |
|
39525 |
|
39526 * bindings/js/JSElementCustom.cpp: |
|
39527 * bindings/v8/custom/V8ElementCustom.cpp: |
|
39528 * dom/Element.idl: |
|
39529 |
|
39530 2010-05-25 Yury Semikhatsky <yurys@chromium.org> |
|
39531 |
|
39532 Reviewed by Pavel Feldman. |
|
39533 |
|
39534 Add memory graph to Timeline overview pane. |
|
39535 |
|
39536 https://bugs.webkit.org/show_bug.cgi?id=37879 |
|
39537 |
|
39538 * inspector/front-end/Drawer.js: |
|
39539 (WebInspector.Drawer): |
|
39540 (WebInspector.Drawer.prototype.show.animationFinished): |
|
39541 (WebInspector.Drawer.prototype.show): |
|
39542 (WebInspector.Drawer.prototype.hide): |
|
39543 (WebInspector.Drawer.prototype.set currentPanelCounters): |
|
39544 * inspector/front-end/Panel.js: |
|
39545 * inspector/front-end/TimelineOverviewPane.js: |
|
39546 (WebInspector.TimelineOverviewPane): |
|
39547 (WebInspector.TimelineOverviewPane.prototype.showTimelines): |
|
39548 (WebInspector.TimelineOverviewPane.prototype.showMemoryGraph): |
|
39549 (WebInspector.TimelineOverviewPane.prototype._forAllRecords): |
|
39550 (WebInspector.TimelineOverviewPane.prototype.update): |
|
39551 (WebInspector.TimelineOverviewPane.prototype.updateMainViewWidth): |
|
39552 (WebInspector.TimelineOverviewPane.prototype._endWindowDragging): |
|
39553 (WebInspector.TimelineOverviewPane.prototype._createTimelineCategoryStatusBarCheckbox): |
|
39554 (WebInspector.HeapGraph): |
|
39555 (WebInspector.HeapGraph.prototype.get element): |
|
39556 (WebInspector.HeapGraph.prototype.get visible): |
|
39557 (WebInspector.HeapGraph.prototype.show): |
|
39558 (WebInspector.HeapGraph.prototype.hide): |
|
39559 (WebInspector.HeapGraph.prototype.setSize): |
|
39560 (WebInspector.HeapGraph.prototype.update): |
|
39561 (WebInspector.HeapGraph.prototype._clear): |
|
39562 (WebInspector.HeapGraph.prototype._drawScale): |
|
39563 * inspector/front-end/TimelinePanel.js: |
|
39564 (WebInspector.TimelinePanel): |
|
39565 (WebInspector.TimelinePanel.prototype.toolbarItemClass._createTopPane): |
|
39566 (WebInspector.TimelinePanel.prototype.get statusBarItems): |
|
39567 (WebInspector.TimelinePanel.prototype._timelinesOverviewItemSelected): |
|
39568 (WebInspector.TimelinePanel.prototype._memoryOverviewItemSelected): |
|
39569 (WebInspector.TimelinePanel.prototype.setSidebarWidth): |
|
39570 (WebInspector.TimelinePanel.prototype.show): |
|
39571 (WebInspector.TimelinePanel.prototype.hide): |
|
39572 * inspector/front-end/inspector.css: |
|
39573 (#counters): |
|
39574 (#timeline-overview-sidebar): |
|
39575 (.timeline-category-statusbar-item): |
|
39576 (.timeline-category-statusbar-item .timeline-category-checkbox): |
|
39577 (.timeline-category-statusbar-item .timeline-category-checkbox:checked): |
|
39578 (.timeline-category-statusbar-item.timeline-category-loading .timeline-category-checkbox): |
|
39579 (.timeline-category-statusbar-item.timeline-category-scripting .timeline-category-checkbox): |
|
39580 (.timeline-category-statusbar-item.timeline-category-rendering .timeline-category-checkbox): |
|
39581 (#timeline-overview-memory): |
|
39582 (.timeline-records-counter): |
|
39583 (#main-status-bar > .timeline-records-counter): |
|
39584 (#counters > .timeline-records-counter): |
|
39585 * inspector/front-end/inspector.html: |
|
39586 * inspector/front-end/utilities.js: |
|
39587 (): |
|
39588 |
|
39589 2010-05-25 Adam Barth <abarth@webkit.org> |
|
39590 |
|
39591 Unreviewed. Fix typo pointed out by Maciej. |
|
39592 |
|
39593 * html/HTML5Lexer.cpp: |
|
39594 (WebCore::HTMLNames::unconsumeCharacters): |
|
39595 (WebCore::HTML5Lexer::consumeEntity): |
|
39596 |
|
39597 2010-05-25 Adam Barth <abarth@webkit.org> |
|
39598 |
|
39599 Reviewed by Eric Seidel. |
|
39600 |
|
39601 Fix <noembed> and <plaintext> content models |
|
39602 https://bugs.webkit.org/show_bug.cgi?id=39653 |
|
39603 |
|
39604 PLAINTEXTState is my favorite lexer state. :) |
|
39605 |
|
39606 * html/HTML5TreeBuilder.cpp: |
|
39607 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
39608 |
|
39609 2010-05-24 Adam Barth <abarth@webkit.org> |
|
39610 |
|
39611 Reviewed by Eric Seidel. |
|
39612 |
|
39613 First cut at HTML5 entities |
|
39614 https://bugs.webkit.org/show_bug.cgi?id=39649 |
|
39615 |
|
39616 There's still a bunch more work to do to get our entity parsing fully |
|
39617 up to spec. This patch contains the bulk of the implementation |
|
39618 however. |
|
39619 |
|
39620 The basics are covered by the existing html5lib tests. I'll add more |
|
39621 detailed tests in a followup patch. |
|
39622 |
|
39623 * html/HTML5Lexer.cpp: |
|
39624 (WebCore::HTMLNames::legalEntityFor): |
|
39625 (WebCore::HTMLNames::isHexDigit): |
|
39626 (WebCore::HTMLNames::isAlphaNumeric): |
|
39627 (WebCore::HTMLNames::uncomsumeCharacters): |
|
39628 (WebCore::HTML5Lexer::consumeEntity): |
|
39629 (WebCore::HTML5Lexer::nextToken): |
|
39630 (WebCore::HTML5Lexer::haveBufferedCharacterToken): |
|
39631 * html/HTML5Lexer.h: |
|
39632 (WebCore::HTML5Lexer::): |
|
39633 * html/HTML5Tokenizer.cpp: |
|
39634 (WebCore::HTML5Tokenizer::write): |
|
39635 |
|
39636 2010-05-24 Tasuku Suzuki <tasuku.suzuki@nokia.com> |
|
39637 |
|
39638 Reviewed by Kenneth Rohde Christiansen. |
|
39639 |
|
39640 [Qt] Fix compilation with QT_NO_TEMPORARYFILE |
|
39641 https://bugs.webkit.org/show_bug.cgi?id=38324 |
|
39642 |
|
39643 * platform/qt/FileSystemQt.cpp: |
|
39644 (WebCore::openTemporaryFile): |
|
39645 |
|
39646 2010-05-24 Andrey Kosyakov <caseq@chromium.org> |
|
39647 |
|
39648 Reviewed by Yury Semikhatsky. |
|
39649 |
|
39650 Fixed handling of bare '/' and '?' at console prompt. |
|
39651 https://bugs.webkit.org/show_bug.cgi?id=39585 |
|
39652 |
|
39653 * inspector/front-end/inspector.js: |
|
39654 (WebInspector.documentKeyDown): |
|
39655 |
|
39656 2010-05-24 Andreas Kling <andreas.kling@nokia.com> |
|
39657 |
|
39658 Reviewed by Sam Weinig. |
|
39659 |
|
39660 The 'prototype' property on generated Web IDL interfaces should be { DontDelete | ReadOnly }. |
|
39661 |
|
39662 Spec link: |
|
39663 http://www.w3.org/TR/WebIDL/#interface-object |
|
39664 |
|
39665 https://bugs.webkit.org/show_bug.cgi?id=39436 |
|
39666 |
|
39667 Test: fast/dom/prototype-property.html |
|
39668 |
|
39669 * bindings/scripts/CodeGeneratorJS.pm: |
|
39670 |
|
39671 2010-05-24 Eric Seidel <eric@webkit.org> |
|
39672 |
|
39673 Reviewed by Adam Barth. |
|
39674 |
|
39675 Add RCDATA and RAWTEXT suport to the HTML5 parser |
|
39676 https://bugs.webkit.org/show_bug.cgi?id=39642 |
|
39677 |
|
39678 Adam Barth wrote half of this patch. |
|
39679 |
|
39680 * html/HTML5TreeBuilder.cpp: |
|
39681 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
39682 |
|
39683 2010-05-24 Tony Chang <tony@chromium.org> |
|
39684 |
|
39685 Not reviewed, build fix. |
|
39686 |
|
39687 Fix the chromium compile due to pageZoomFactor refactoring. |
|
39688 |
|
39689 * page/EventHandler.cpp: |
|
39690 (WebCore::pageZoomFactor): |
|
39691 |
|
39692 2010-05-24 Jer Noble <jer.noble@apple.com> |
|
39693 |
|
39694 Reviewed by Eric Carlson. |
|
39695 |
|
39696 HTML5 <video> tag performance worse than Flash |
|
39697 https://bugs.webkit.org/show_bug.cgi?id=39577 |
|
39698 rdar://problem/7982458 |
|
39699 |
|
39700 Added attachments() back to QTPixelBuffer, as they are necessary for CAImageQueue. |
|
39701 |
|
39702 WKCACFLayer contents()/setContents() now return/take a CFTypeRef instead of a CGImageRef, which allows |
|
39703 a CAImageQueueRef to be set as a layer's contents. |
|
39704 |
|
39705 WKCAImageQueue is a simple C++ wrapper around the WebKitSystemInterface CAImageQueue functions. |
|
39706 |
|
39707 MediaPlayerPrivateQuickTimeVisualContext will now use a CAImageQueue to display movie frames if |
|
39708 certain prerequisites are met (QuartzCore.dll and CoreVideo.dll version numbers must meet a certain |
|
39709 threshold defined in MediaPlayerPrivateQuickTimeVisualContext.cpp). |
|
39710 |
|
39711 * WebCore.vcproj/WebCore.vcproj: |
|
39712 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: |
|
39713 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h: |
|
39714 * platform/graphics/win/QTPixelBuffer.cpp: |
|
39715 * platform/graphics/win/QTPixelBuffer.h: |
|
39716 * platform/graphics/win/WKCACFLayer.cpp: |
|
39717 * platform/graphics/win/WKCACFLayer.h: |
|
39718 * platform/graphics/win/WKCAImageQueue.cpp: Added. |
|
39719 * platform/graphics/win/WKCAImageQueue.h: Added. |
|
39720 |
|
39721 2010-05-24 Adam Barth <abarth@webkit.org> |
|
39722 |
|
39723 Reviewed by Eric Seidel. |
|
39724 |
|
39725 Teach the HTML5 parser how to lex escaped script data |
|
39726 https://bugs.webkit.org/show_bug.cgi?id=39630 |
|
39727 |
|
39728 * html/HTML5Lexer.cpp: |
|
39729 (WebCore::HTMLNames::vectorEqualsString): |
|
39730 (WebCore::HTML5Lexer::nextToken): |
|
39731 (WebCore::HTML5Lexer::temporaryBufferIs): |
|
39732 (WebCore::HTML5Lexer::isAppropriateEndTag): |
|
39733 (WebCore::HTML5Lexer::maybeFlushBufferedEndTag): |
|
39734 (WebCore::HTML5Lexer::flushBufferedEndTag): |
|
39735 * html/HTML5Lexer.h: |
|
39736 |
|
39737 2010-05-24 Eric Seidel <eric@webkit.org> |
|
39738 |
|
39739 Unreviewed. Trick MSVC into ignoring our unused code for the moment. |
|
39740 |
|
39741 Prepare HTML5TreeBuilder for addition of new HTML5 parser code |
|
39742 https://bugs.webkit.org/show_bug.cgi?id=39623 |
|
39743 |
|
39744 * html/HTML5TreeBuilder.cpp: |
|
39745 (WebCore::HTML5TreeBuilder::constructTreeFromToken): |
|
39746 |
|
39747 2010-05-24 Darin Adler <darin@apple.com> |
|
39748 |
|
39749 Fix build on platforms with touch code enabled. |
|
39750 |
|
39751 * page/EventHandler.cpp: |
|
39752 (WebCore::pageZoomFactor): Added. |
|
39753 (WebCore::EventHandler::handleTouchEvent): Use pageZoomFactor. |
|
39754 |
|
39755 2010-05-24 Darin Adler <darin@apple.com> |
|
39756 |
|
39757 Reviewed by Eric Seidel. |
|
39758 |
|
39759 Move view-related functions from Frame to FrameView |
|
39760 https://bugs.webkit.org/show_bug.cgi?id=39366 |
|
39761 |
|
39762 Refactoring only so adds no new tests. |
|
39763 |
|
39764 * WebCore.base.exp: Updated. |
|
39765 |
|
39766 * css/CSSStyleSelector.cpp: |
|
39767 (WebCore::CSSStyleSelector::styleForDocument): Call zoom factor function |
|
39768 on FrameView. |
|
39769 (WebCore::CSSStyleSelector::applyProperty): Ditto. |
|
39770 (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize): Ditto. |
|
39771 * dom/Document.cpp: |
|
39772 (WebCore::Document::elementFromPoint): Ditto. |
|
39773 (WebCore::Document::caretRangeFromPoint): Ditto. |
|
39774 * dom/MouseRelatedEvent.cpp: |
|
39775 (WebCore::contentsX): Ditto. |
|
39776 (WebCore::contentsY): Ditto. |
|
39777 (WebCore::pageZoomFactor): Added helper function. |
|
39778 (WebCore::MouseRelatedEvent::computePageLocation): Use helper. |
|
39779 (WebCore::MouseRelatedEvent::receivedTarget): Ditto. |
|
39780 * dom/Node.cpp: |
|
39781 (WebCore::Node::dispatchMouseEvent): Call zoom factor function on FrameView. |
|
39782 (WebCore::Node::dispatchWheelEvent): Ditto. |
|
39783 * dom/Touch.cpp: |
|
39784 (WebCore::contentsX): Call zoom factor function on FrameView. |
|
39785 (WebCore::contentsY): Ditto. |
|
39786 * html/HTMLBodyElement.cpp: |
|
39787 (WebCore::adjustForZoom): Ditto. |
|
39788 (WebCore::HTMLBodyElement::setScrollLeft): Ditto. |
|
39789 (WebCore::HTMLBodyElement::setScrollTop): Ditto. |
|
39790 * html/HTMLImageElement.cpp: |
|
39791 (WebCore::HTMLImageElement::width): Ditto. |
|
39792 (WebCore::HTMLImageElement::height): Ditto. |
|
39793 * loader/ImageDocument.cpp: |
|
39794 (WebCore::pageZoomFactor): Added helper function. |
|
39795 (WebCore::ImageTokenizer::finish): Use helper function |
|
39796 (WebCore::ImageDocument::scale): Ditto. |
|
39797 (WebCore::ImageDocument::resizeImageToFit): Ditto. |
|
39798 (WebCore::ImageDocument::imageChanged): Ditto. |
|
39799 (WebCore::ImageDocument::restoreImageSize): Ditto. |
|
39800 (WebCore::ImageDocument::imageFitsInWindow): Ditto. |
|
39801 * page/DOMWindow.cpp: |
|
39802 (WebCore::DOMWindow::innerHeight): Ditto. |
|
39803 (WebCore::DOMWindow::innerWidth): Ditto. |
|
39804 (WebCore::DOMWindow::scrollX): Ditto. |
|
39805 (WebCore::DOMWindow::scrollY): Ditto. |
|
39806 (WebCore::DOMWindow::scrollTo): Ditto. |
|
39807 * page/DragController.cpp: |
|
39808 (WebCore::elementUnderMouse): Ditto. |
|
39809 |
|
39810 * page/Frame.cpp: |
|
39811 (WebCore::Frame::Frame): Removed code to initialize m_zoomFactor. |
|
39812 * page/Frame.h: Moved functions to FrameView. Moved all #if to the left |
|
39813 margin to make the style consistent. Removed empty function |
|
39814 removeEditingStyleFromBodyElement. |
|
39815 |
|
39816 * page/FrameView.cpp: |
|
39817 (WebCore::parentZoomFactor): Added helper function for constructor. |
|
39818 (WebCore::FrameView::FrameView): Added initialization of m_zoomFactor. |
|
39819 (WebCore::FrameView::shouldApplyTextZoom): Moved this here from Frame. |
|
39820 (WebCore::FrameView::shouldApplyPageZoom): Ditto. |
|
39821 (WebCore::FrameView::setZoomFactor): Ditto. |
|
39822 |
|
39823 * page/FrameView.h: Added members moved here from Frame. |
|
39824 |
|
39825 * rendering/RenderView.cpp: |
|
39826 (WebCore::RenderView::zoomFactor): Call FrameView instead of Frame. |
|
39827 * svg/SVGSVGElement.cpp: |
|
39828 (WebCore::SVGSVGElement::currentScale): Ditto. |
|
39829 (WebCore::SVGSVGElement::setCurrentScale): Ditto. |
|
39830 |
|
39831 2010-05-24 Jer Noble <jer.noble@apple.com> |
|
39832 |
|
39833 No review; build fix only. |
|
39834 |
|
39835 Roll-out changes r60094, 60096-60097. |
|
39836 |
|
39837 * WebCore.vcproj/WebCore.vcproj: |
|
39838 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: |
|
39839 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::load): |
|
39840 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage): |
|
39841 (WebCore::MediaPlayerPrivateQuickTimeVisualContext::destroyLayerForMovie): |
|
39842 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h: |
|
39843 * platform/graphics/win/QTPixelBuffer.cpp: |
|
39844 * platform/graphics/win/QTPixelBuffer.h: |
|
39845 * platform/graphics/win/WKCACFLayer.cpp: |
|
39846 (WebCore::WKCACFLayer::printLayer): |
|
39847 * platform/graphics/win/WKCACFLayer.h: |
|
39848 (WebCore::WKCACFLayer::setContents): |
|
39849 (WebCore::WKCACFLayer::contents): |
|
39850 (WebCore::WKCACFLayer::speed): |
|
39851 (WebCore::WKCACFLayer::timeOffset): |
|
39852 * platform/graphics/win/WKCAImageQueue.cpp: Removed. |
|
39853 * platform/graphics/win/WKCAImageQueue.h: Removed. |
|
39854 |
|
39855 2010-05-24 Eric Seidel <eric@webkit.org> |
|
39856 |
|
39857 Unreviewed. Add wtf/UnusedParam.h include to make Chromium happy. |
|
39858 |
|
39859 Chromium does not use a prefix header in order to support |
|
39860 distcc3. Other ports all do. The real fix is to remove |
|
39861 wtf/UnusedParam.h from the prefix header. |
|
39862 |
|
39863 * html/HTML5TreeBuilder.cpp: |
|
39864 |
|
39865 2010-05-24 Jer Noble <jer.noble@apple.com> |
|
39866 |
|
39867 No review; build fix only. |
|
39868 |
|
39869 Second half of previous build fix, in which I add the include in the correct place. |
|
39870 |
|
39871 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: |
|
39872 |
|
39873 2010-05-24 Jer Noble <jer.noble@apple.com> |
|
39874 |
|
39875 No review; build fix only. |
|
39876 |
|
39877 Include WKCAImageQueue.h outside the ACCELERATED_COMPOSITING check. |
|
39878 |
|
39879 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: |
|
39880 |
|
39881 2010-05-24 Eric Seidel <eric@webkit.org> |
|
39882 |
|
39883 Reviewed by Adam Barth. |
|
39884 |
|
39885 Prepare HTML5TreeBuilder for addition of new HTML5 parser code |
|
39886 https://bugs.webkit.org/show_bug.cgi?id=39623 |
|
39887 |
|
39888 Before we start transcribing the parser, we need a place to put it. |
|
39889 |
|
39890 This also cleans up HTML5 token to not convert comment and character |
|
39891 data into AtomicStrings (which makes no sense). |
|
39892 |
|
39893 No functionality change, so no new tests. |
|
39894 |
|
39895 * html/HTML5Token.h: |
|
39896 (WebCore::HTML5Token::beginStartTag): |
|
39897 (WebCore::HTML5Token::beginEndTag): |
|
39898 (WebCore::HTML5Token::beginCharacter): |
|
39899 (WebCore::HTML5Token::beginComment): |
|
39900 (WebCore::HTML5Token::name): |
|
39901 (WebCore::HTML5Token::adoptDataAsStringImpl): |
|
39902 (WebCore::HTML5Token::characters): |
|
39903 (WebCore::HTML5Token::commentData): |
|
39904 (WebCore::HTML5Token::clearData): |
|
39905 * html/HTML5TreeBuilder.cpp: |
|
39906 (WebCore::convertToOldStyle): |
|
39907 (WebCore::HTML5TreeBuilder::constructTreeFromToken): |
|
39908 (WebCore::HTML5TreeBuilder::processToken): |
|
39909 * html/HTML5TreeBuilder.h: |
|
39910 |
|
39911 2010-05-23 Jer Noble <jer.noble@apple.com> |
|
39912 |
|
39913 Reviewed by Eric Carlson. |
|
39914 |
|
39915 HTML5 <video> tag performance worse than Flash |
|
39916 https://bugs.webkit.org/show_bug.cgi?id=39577 |
|
39917 rdar://problem/7982458 |
|
39918 |
|
39919 Added attachments() back to QTPixelBuffer, as they are necessary for CAImageQueue. |
|
39920 |
|
39921 WKCACFLayer contents()/setContents() now return/take a CFTypeRef instead of a CGImageRef, which allows |
|
39922 a CAImageQueueRef to be set as a layer's contents. |
|
39923 |
|
39924 WKCAImageQueue is a simple C++ wrapper around the WebKitSystemInterface CAImageQueue functions. |
|
39925 |
|
39926 MediaPlayerPrivateQuickTimeVisualContext will now use a CAImageQueue to display movie frames if |
|
39927 certain prerequisites are met (QuartzCore.dll and CoreVideo.dll version numbers must meet a certain |
|
39928 threshold defined in MediaPlayerPrivateQuickTimeVisualContext.cpp). |
|
39929 |
|
39930 * WebCore.vcproj/WebCore.vcproj: |
|
39931 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: |
|
39932 * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h: |
|
39933 * platform/graphics/win/QTPixelBuffer.cpp: |
|
39934 * platform/graphics/win/QTPixelBuffer.h: |
|
39935 * platform/graphics/win/WKCACFLayer.cpp: |
|
39936 * platform/graphics/win/WKCACFLayer.h: |
|
39937 * platform/graphics/win/WKCAImageQueue.cpp: Added. |
|
39938 * platform/graphics/win/WKCAImageQueue.h: Added. |
|
39939 |
|
39940 2010-05-24 Brady Eidson <beidson@apple.com> |
|
39941 |
|
39942 Reviewed by Darin Adler. |
|
39943 |
|
39944 Database origins aren't populated at launch (missing db in prefs sheet, possible other symptoms) |
|
39945 <rdar://problem/8013233> and https://bugs.webkit.org/show_bug.cgi?id=39486 |
|
39946 |
|
39947 Currently, a Tracker needs to know it's path before origins are populated. Testing databases and |
|
39948 related features is made very difficult with this regression, so instead of changing things in a |
|
39949 complicated way to make this not the case, I've added an "initialize Tracker with this path" function |
|
39950 that calls the DatabaseTracker constructor with the initial path. |
|
39951 |
|
39952 I checked the other platforms besides Mac and Win, and none of them seem to perform the |
|
39953 "initialize databases if necessary" step in their init routines, so this change shouldn't effect them. |
|
39954 |
|
39955 No new tests. (API specific layout test in DRT is forthcoming) |
|
39956 |
|
39957 * WebCore.base.exp: |
|
39958 |
|
39959 * storage/DatabaseTracker.cpp: |
|
39960 (WebCore::DatabaseTracker::initializeTracker): Added to create the tracker with its initial path. |
|
39961 (WebCore::DatabaseTracker::tracker): Move the static tracker out so tracker() and initializeTracker() |
|
39962 can share it. Add a fallback to not change behavior of platforms that don't call the new |
|
39963 "initializeTracker()" method. |
|
39964 (WebCore::DatabaseTracker::DatabaseTracker): Changed to take the initial path as an argument. |
|
39965 * storage/DatabaseTracker.h: |
|
39966 |
|
39967 * storage/chromium/DatabaseTrackerChromium.cpp: |
|
39968 (WebCore::DatabaseTracker::tracker): Adapt to new c'tor. |
|
39969 (WebCore::DatabaseTracker::DatabaseTracker): Ditto. |
|
39970 |
|
39971 2010-05-24 Adam Barth <abarth@webkit.org> |
|
39972 |
|
39973 Reviewed by Eric Seidel. |
|
39974 |
|
39975 Teach the HTML5 parser to lex DOCTYPEs |
|
39976 https://bugs.webkit.org/show_bug.cgi?id=39571 |
|
39977 |
|
39978 * html/HTML5Lexer.cpp: |
|
39979 (WebCore::HTML5Lexer::nextToken): |
|
39980 * html/HTML5Lexer.h: |
|
39981 * html/HTML5Token.h: |
|
39982 (WebCore::HTML5Token::beginDOCTYPE): |
|
39983 (WebCore::HTML5Token::publicIdentifier): |
|
39984 (WebCore::HTML5Token::systemIdentifier): |
|
39985 (WebCore::HTML5Token::setPublicIdentifierToEmptyString): |
|
39986 (WebCore::HTML5Token::setSystemIdentifierToEmptyString): |
|
39987 (WebCore::HTML5Token::appendToPublicIdentifier): |
|
39988 (WebCore::HTML5Token::appendToSystemIdentifier): |
|
39989 (WebCore::HTML5Token::DoctypeData::DoctypeData): |
|
39990 * html/HTML5TreeBuilder.cpp: |
|
39991 (WebCore::convertToOldStyle): |
|
39992 (WebCore::HTML5TreeBuilder::passTokenToLegacyParser): |
|
39993 * platform/text/SegmentedString.h: |
|
39994 (WebCore::SegmentedString::lookAheadIgnoringCase): |
|
39995 (WebCore::SegmentedString::advanceAndASSERTIgnoringCase): |
|
39996 |
|
39997 == Rolled over to ChangeLog-2010-05-24 == |