1 2008-09-04 Adam Roben <aroben@apple.com>
5 * platform/graphics/win/FontPlatformData.h: Added a missing #include
6 of PassRefPtr.h, and corrected the capitalization of RefCounted.h.
7 * platform/text/PlatformString.h: Added a missing #include of
10 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
14 Fix the QtWebKit build to match changes in r36016
17 * bridge/qt/qt_instance.cpp:
18 (KJS::Bindings::QtInstance::getRuntimeObject):
19 * bridge/qt/qt_runtime.cpp:
20 (KJS::Bindings::convertQVariantToValue):
21 (KJS::Bindings::QtConnectionObject::execute):
23 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
27 Re-enable support for user stylesheets in QtWebKit
29 QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
30 code path, which allows us to keep API support for
31 loading user style sheets from remote URLs.
33 As part of the change UserStyleSheetLoader.cpp/h was
34 moved from WebCore/loader/mac to WebCore/loader.
37 * WebCore.xcodeproj/project.pbxproj:
39 * loader/UserStyleSheetLoader.cpp: Renamed from WebCore/loader/mac/UserStyleSheetLoader.cpp.
40 (UserStyleSheetLoader::UserStyleSheetLoader):
41 (UserStyleSheetLoader::~UserStyleSheetLoader):
42 * loader/UserStyleSheetLoader.h: Renamed from WebCore/loader/mac/UserStyleSheetLoader.h.
43 * page/qt/FrameQt.cpp:
44 (WebCore::Frame::setUserStyleSheetLocation):
45 (WebCore::Frame::setUserStyleSheet):
47 2008-09-04 Alp Toker <alp@nuanti.com>
51 Remove left-over QT and CAIRO platform checks.
53 * html/CanvasRenderingContext2D.cpp:
55 2008-09-04 Eric Seidel <eric@webkit.org>
57 Reviewed by Mark Rowe.
59 Fix leak of TextMetrics due to over-ref as see on buildbot.
61 * html/TextMetrics.h: use adoptRef since RefCounted starts @ refcount 1 instead of 0 now.
63 2008-09-04 Dan Bernstein <mitz@apple.com>
65 Reviewed by Dave Hyatt.
67 - fix https://bugs.webkit.org/show_bug.cgi?id=19717
68 <rdar://problem/6026832> REGRESSION (r31876): menu items render horizontally at the Economist
70 * rendering/RenderBlock.cpp:
71 (WebCore::RenderBlock::layoutOnlyPositionedObjects): In the
72 positioned movement only case, call
73 tryLayoutDoingPositionedMovementOnly() and fall back on doing a full
75 (WebCore::RenderBlock::layoutPositionedObjects): Ditto.
76 * rendering/RenderBox.h:
77 (WebCore::RenderBox::tryLayoutDoingPositionedMovementOnly): Renamed
78 layoutDoingPositionedMovementOnly to this, and made this function
79 check if the width changed. If it did, return, leaving the object
80 dirty. The caller can then call layout(). The width can change even
81 in the "positioned movement only" case if the object is shrink-to-fit
82 and the available width constraint is met. (This was the case in the
84 * rendering/RenderObject.h:
85 (WebCore::RenderObject::tryLayoutDoingPositionedMovementOnly):
86 Renamed layoutDoingPositionedMovementOnly() to this.
88 2008-09-03 Eric Seidel <eric@webkit.org>
90 No review, build fix only.
92 Attempt to fix the Qt build.
94 * WebCore.pro: add page/animation to include path
96 2008-09-03 Mark Rowe <mrowe@apple.com>
98 Mac build fix. Correctly detect whether dashboard support is enabled.
100 * DerivedSources.make:
102 2008-09-03 Eric Seidel <eric@webkit.org>
106 Clean up Platform.h and add PLATFORM(CHROMIUM), PLATFORM(SKIA) and USE(V8_BINDINGS)
108 * Configurations/WebCore.xcconfig: add missing ENABLE_*
109 * config.h: add rules for V8_BINDINGS
111 2008-09-03 Eric Seidel <eric@webkit.org>
115 https://bugs.webkit.org/show_bug.cgi?id=20620
117 Add #if USE(JSC) around KJS dependencies
118 Remove !USE(JAVASCRIPTCORE_BINDINGS) support for 3 reasons:
119 1. Most platforms have it on anyway
120 2. V8 is going to want to share some of that code
121 3. Those platforms which want it off, should have a separate file instead of an #ifdef in our .cpp
123 * bindings/js/JSPluginElementFunctions.cpp: remove !USE(JAVASCRIPTCORE_BINDINGS) support
124 * config.h: change JAVASCRIPTCORE_BINDINGS to JSC and add USE(V8)
125 * html/HTMLAppletElement.cpp: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
126 * html/HTMLAppletElement.h: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
127 * html/HTMLEmbedElement.cpp: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
128 * html/HTMLEmbedElement.h: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
129 * html/HTMLObjectElement.cpp: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
130 * html/HTMLObjectElement.h: remove USE(JAVASCRIPTCORE_BINDINGS) wrappers
131 * html/HTMLPlugInElement.cpp: replace USE(JAVASCRIPTCORE_BINDINGS) with USE(JSC) where needed
132 * html/HTMLPlugInElement.h: replace USE(JAVASCRIPTCORE_BINDINGS) with USE(JSC) where needed
133 * platform/text/AtomicString.cpp: add USE(JSC)
134 * platform/text/AtomicString.h: add USE(JSC)
135 * platform/text/PlatformString.h: add USE(JSC)
136 * platform/text/String.cpp: add USE(JSC)
137 * platform/text/StringImpl.cpp: add USE(JSC)
138 * platform/text/StringImpl.h: add USE(JSC)
140 2008-09-03 Dean McNamee <deanm@chromium.org>
142 Reviewed by Darin Adler.
144 Fix https://bugs.webkit.org/show_bug.cgi?id=20511
145 Bug 20511: Remove static initializers on Windows
147 Avoid static initializers on Windows by forcing Visual C++ to put
148 all static initializers in a code segment that is never executed.
151 * css/MediaFeatureNames.cpp:
152 * dom/EventNames.cpp:
153 * dom/QualifiedName.cpp:
155 * platform/StaticConstructors.h:
156 * platform/text/AtomicString.cpp:
158 2008-09-03 Dirk Schulze <vbs85@gmx.de>
160 Reviewed by Dave Hyatt.
162 Make FontCairo draw TextStroke and TextFill separately.
164 [CAIRO] draw TextFill and TextStroke separately.
165 [https://bugs.webkit.org/show_bug.cgi?id=20631]
167 * platform/graphics/cairo/FontCairo.cpp:
168 (WebCore::Font::drawGlyphs):
170 2008-09-03 Peter Kasting <zerodpx@gmail.com>
172 Reviewed by Dave Hyatt.
174 https://bugs.webkit.org/show_bug.cgi?id=19663
175 Account for paint and timer lag when animating images. Also pretend
176 that images whose animations were paused (by becoming invisible)
177 continued to animate, by "catching up" to the correct frame when they're
180 * platform/graphics/BitmapImage.cpp:
181 (WebCore::BitmapImage::BitmapImage):
182 (WebCore::BitmapImage::startAnimation):
183 (WebCore::BitmapImage::advanceAnimation):
184 (WebCore::BitmapImage::internalAdvanceAnimation):
185 (WebCore::BitmapImage::notifyObserverAndTrimDecodedData):
186 * platform/graphics/BitmapImage.h:
187 * platform/graphics/cairo/ImageCairo.cpp:
188 (WebCore::BitmapImage::draw):
189 * platform/graphics/cg/ImageCG.cpp:
190 (WebCore::BitmapImage::draw):
191 * platform/graphics/qt/ImageQt.cpp:
192 (WebCore::BitmapImage::draw):
193 * platform/graphics/wx/ImageWx.cpp:
194 (WebCore::BitmapImage::draw):
196 2008-09-03 Kevin McCullough <kmccullough@apple.com>
200 Remove the rest of the "zombie" code from the profiler.
201 - There is no longer a need for the ProfilerClient callback mechanism.
204 (WebCore::Console::Console):
205 (WebCore::Console::profile):
206 (WebCore::Console::profileEnd): Move the variables from the header to
207 here since we don't have to wait for a callback to use them.
209 * page/InspectorController.cpp:
210 (WebCore::InspectorController::startUserInitiatedProfiling):
211 (WebCore::InspectorController::stopUserInitiatedProfiling):
212 * page/InspectorController.h:
214 2008-09-03 Ada Chan <adachan@apple.com>
218 * WebCore.vcproj/WebCore.vcproj: Added JSWebKitCSSKeyframeRule.cpp and JSWebKitCSSKeyframesRule.cpp to the project.
220 2008-09-01 Dean Jackson <dino@apple.com>
222 Reviewed by Dave Hyatt.
224 https://bugs.webkit.org/show_bug.cgi?id=20594
225 Add DOM interfaces for WebKitCSSKeyframeRule
226 and WebKitCSSKeyframesRule.
228 TEST: LayoutTests/css3/keyframes-rule.html
230 * css/WebKitCSSKeyframeRule.idl: Added
231 * css/WebKitCSSKeyframesRule.idl: Added
233 * bindings/js/JSCSSRuleCustom.cpp:
235 Add return of new JS Keyframe rules
236 * bindings/objc/DOMInternal.h:
237 Include new internal header
239 * DerivedSources.make:
242 * WebCore.vcproj/WebCore.vcproj:
243 * WebCore.xcodeproj/project.pbxproj:
244 * WebCoreSources.bkl:
245 Build configs for new files
247 2008-09-03 Adam Roben <aroben@apple.com>
251 * DerivedSources.cpp: Add JSTextMetrics.cpp to fix the build.
252 * WebCore.vcproj/WebCore.vcproj: Add JSTextMetrics.h for
253 convenience/consistency.
255 2008-09-03 Adele Peterson <adele@apple.com>
259 * WebCore.vcproj/WebCore.vcproj:
261 2008-09-03 David Hyatt <hyatt@apple.com>
263 Fix for bug 18203, right floats should be allowed to overflow past the left border edge.
265 Reviewed by Darin (ages ago)
267 Added fast/block/float/clamped-right-float.html
269 * rendering/RenderBlock.cpp:
270 (WebCore::RenderBlock::positionNewFloats):
272 2008-09-02 David Hyatt <hyatt@apple.com>
274 Add support for canvas text drawing APIs.
278 Tests added as fast/canvas/canvas-text-*.html
280 * DerivedSources.make:
281 * WebCore.xcodeproj/project.pbxproj:
282 * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
283 (WebCore::JSCanvasRenderingContext2D::fillText):
284 (WebCore::JSCanvasRenderingContext2D::strokeText):
285 * css/CSSStyleSelector.cpp:
286 (WebCore::CSSStyleSelector::initForStyleResolve):
287 (WebCore::CSSStyleSelector::applyPropertyToStyle):
288 * css/CSSStyleSelector.h:
289 * html/CanvasRenderingContext2D.cpp:
290 (WebCore::CanvasRenderingContext2D::State::State):
291 (WebCore::CanvasRenderingContext2D::font):
292 (WebCore::CanvasRenderingContext2D::setFont):
293 (WebCore::CanvasRenderingContext2D::textAlign):
294 (WebCore::CanvasRenderingContext2D::setTextAlign):
295 (WebCore::CanvasRenderingContext2D::textBaseline):
296 (WebCore::CanvasRenderingContext2D::setTextBaseline):
297 (WebCore::CanvasRenderingContext2D::fillText):
298 (WebCore::CanvasRenderingContext2D::strokeText):
299 (WebCore::CanvasRenderingContext2D::measureText):
300 (WebCore::CanvasRenderingContext2D::drawTextInternal):
301 (WebCore::CanvasRenderingContext2D::accessFont):
302 * html/CanvasRenderingContext2D.h:
303 * html/CanvasRenderingContext2D.idl:
304 * html/TextMetrics.h: Added.
305 (WebCore::TextMetrics::create):
306 (WebCore::TextMetrics::width):
307 (WebCore::TextMetrics::setWidth):
308 (WebCore::TextMetrics::TextMetrics):
309 * html/TextMetrics.idl: Added.
310 * platform/graphics/Font.cpp:
311 (WebCore::Font::lineGap):
312 * platform/graphics/Font.h:
313 * platform/graphics/GraphicsContext.cpp:
314 (WebCore::GraphicsContext::drawBidiText):
315 * platform/graphics/GraphicsContext.h:
316 * platform/graphics/GraphicsTypes.cpp:
317 (WebCore::textAlignName):
318 (WebCore::parseTextAlign):
319 (WebCore::textBaselineName):
320 (WebCore::parseTextBaseline):
321 * platform/graphics/GraphicsTypes.h:
324 2008-09-03 John Sullivan <sullivan@apple.com>
326 Fixed <rdar://problem/6193022> <rdar://problem/6193022> Crash occurs at WebCore::AnimationBase::propertiesEqual () after certain steps
328 Fixed by Darin, reviewed by me
330 * page/animation/AnimationBase.cpp:
331 (WebCore::AnimationBase::propertiesEqual):
332 added ensurePropertyMap() to this static function
333 (WebCore::AnimationBase::getPropertyAtIndex):
335 (WebCore::AnimationBase::getNumProperties):
338 2008-09-03 Kevin McCullough <kmccullough@apple.com>
340 Reviewed by Darin and Tim.
342 Remove most of the "zombie" mode from the profiler. Next we will need
343 to remove the client callback mechanism in profiles.
344 - These changes are a result of changes to JSCore.
346 * manual-tests/inspector/profiler-test-nested-start-and-stop-profiler.html:
348 (WebCore::retrieveLastCaller):
349 (WebCore::Console::profileEnd):
350 * page/InspectorController.cpp:
351 (WebCore::InspectorController::stopUserInitiatedProfiling):
353 2008-09-03 Adele Peterson <adele@apple.com>
355 Reviewed by Darin Adler.
357 Test: fast/forms/search-display-none-cancel-button.html
359 Allow display:none to work on a search field's cancel button. Prepare for adding more style-ability for the results button too.
361 * css/html4.css: Set display:inline-block for these buttons. Now they can be overridden by a web author.
363 * rendering/RenderTextControl.cpp:
364 (WebCore::RenderTextControl::setStyle): Add nil checks for the button renderers.
365 (WebCore::RenderTextControl::createResultsButtonStyle): Don't set the display explicitly. This is now done in html4.css.
366 (WebCore::RenderTextControl::createCancelButtonStyle): ditto.
367 (WebCore::RenderTextControl::createSubtreeIfNeeded):
368 Reorganize this code so our complicated way of adding shadow nodes is abstracted out into the TextControlInnerElement class.
369 (WebCore::RenderTextControl::updateFromElement): Added nil checks for the button renderers.
370 (WebCore::RenderTextControl::subtreeHasChanged): ditto.
371 (WebCore::RenderTextControl::calcHeight): ditto.
372 (WebCore::RenderTextControl::nodeAtPoint): ditto.
373 (WebCore::RenderTextControl::layout): ditto.
374 (WebCore::RenderTextControl::calcPrefWidths): ditto.
375 (WebCore::RenderTextControl::clientPaddingLeft): ditto.
376 (WebCore::RenderTextControl::clientPaddingRight): ditto.
378 * rendering/TextControlInnerElements.cpp:
379 (WebCore::RenderTextControlInnerBlock::RenderTextControlInnerBlock): Moved from RenderTextControl.cpp.
380 (WebCore::RenderTextControlInnerBlock::nodeAtPoint): ditto.
381 (WebCore::TextControlInnerElement::attachInnerElement): Added.
382 This does all the separate steps of attaching a shadow node that used to be repeated in RenderTextControl::createSubtreeIfNeeded for each element.
383 (WebCore::TextControlInnerTextElement::createRenderer): Added. Creates a RenderTextControlInnerBlock.
384 * rendering/TextControlInnerElements.h:
386 2008-08-28 Alexey Proskuryakov <ap@webkit.org>
390 Elminate SQLiteAuthorizer class.
392 * WebCore.xcodeproj/project.pbxproj:
393 * WebCore.vcproj/WebCore.vcproj:
395 Removed SQLiteAuthorizer.h.
397 * platform/sql/SQLiteAuthorizer.cpp:
398 * platform/sql/SQLiteAuthorizer.h: Removed.
399 * platform/sql/SQLiteDatabase.cpp:
400 (WebCore::SQLiteDatabase::authorizerFunction):
401 (WebCore::SQLiteDatabase::setAuthorizer):
402 * platform/sql/SQLiteDatabase.h:
403 * storage/DatabaseAuthorizer.h:
404 (WebCore::DatabaseAuthorizer::create):
405 (WebCore::DatabaseAuthorizer::createView):
406 (WebCore::DatabaseAuthorizer::createTempView):
407 (WebCore::DatabaseAuthorizer::dropView):
408 (WebCore::DatabaseAuthorizer::dropTempView):
409 (WebCore::DatabaseAuthorizer::allowSelect):
410 (WebCore::DatabaseAuthorizer::allowReindex):
411 Merge SQLiteAuthorizer and DatabaseAuthorizer, as keeping them separate serves no purpose.
413 2008-09-03 Dirk Schulze <vbs85@gmx.de>
415 Reviewed by Mark Rowe.
420 * page/animation/AnimationController.h:
422 2008-09-02 Robert Blaut <webkit@blaut.biz>
424 Reviewed by Geoff Garen.
426 Fix for <https://bugs.webkit.org/show_bug.cgi?id=16913>
427 Misplaced elements should not close DL lists.
429 Test: fast/invalid/test-case-tr-th-td-should-not-close-dl-list.html
431 * html/HTMLParser.cpp:
432 (WebCore::HTMLParser::handleError):
434 2008-09-02 Glenn Wilson <wilsong@gmail.com>
436 Reviewed by Darin Adler.
438 Fix for <https://bugs.webkit.org/show_bug.cgi?id=15360>
439 Bug 15360: color:#{predefined colorName} is treated as colorName in Safari
441 We would inappropriately interpret and apply an invalid CSS "color" property
442 when the value is a predefined color preceded by a '#' symbol. For example,
443 style="color:#gray;" would apply the color gray when it should not.
445 In the bison template, "hexcolor" was defined as both "HEX maybe_space" OR "IDENT maybe_space".
446 This caused identifiers not fitting the appropriate hex format but preceded by a '#' to be
447 interpreted as a valid color (CSSPrimitiveValue::CSS_PARSER_HEXCOLOR), when it was really just
450 To correct this, "IDENT maybe_space" was removed from "hexcolor" and added under "term" as
451 '#' IDENT maybe_space, which is then processed as a CSSPrimitiveValue::CSS_STRING instead of
452 CSSPrimitiveValue::CSS_PARSER_HEXCOLOR.
454 Test: css1/color_and_background/invalid_color.html
458 2008-09-02 Mihnea Ovidenie <mihnea@adobe.com>
460 Reviewed by Darin Adler.
462 Fix for https://bugs.webkit.org/show_bug.cgi?id=19964
463 Bug 19964: Divide by zero crash in RenderBox::calculateBackgroundSize with 0,0 bmp background image
465 Add a check to RenderBox::repaintLayerRectsForImage to make sure the current layer image can be rendered.
467 Test: css3/khtml-background-size-0x0-bmp.html
469 * rendering/RenderBox.cpp:
470 (WebCore::RenderBox::repaintLayerRectsForImage):
472 2008-09-02 Glenn Wilson <wilsong@gmail.com>
474 Reviewed by Eric Seidel.
476 Fix https://bugs.webkit.org/show_bug.cgi?id=20397
477 Bug 20397: Invalid webkit-border-bottom-left-radius property causes crash
479 The function checkForOrphanedUnits() would change the length of a list whose size was
480 was already determined before the call to checkForOrphanedUnits was made. Later in
481 the caller, the old size was being used for boundary management.
483 This has been fixed by moving the call to checkForOrphanedUnits() earlier in the
484 calling function, before the size of the list is determined.
486 Test: fast/css/orphaned_units_crash.html
489 (WebCore::CSSParser::parseValue): Moved call to checkForOrphanedUnits() earlier in the function.
491 2008-09-02 Dirk Schulze <vbs85@gmx.de>
493 Reviewed by Darin Adler.
495 Fallback on invalid fill or stroke styles in Canvas was
496 transparent black. Changed it to last valid style.
498 Canvas fillStyle() and strokeStyle() needs fallback
499 https://bugs.webkit.org/show_bug.cgi?id=20474
501 Tests: fast/canvas/canvas-invalid-fillstyle.html
502 fast/canvas/canvas-invalid-strokestyle.html
504 * html/CanvasStyle.cpp:
505 (WebCore::CanvasStyle::applyStrokeColor):
506 (WebCore::CanvasStyle::applyFillColor):
508 2008-09-02 Dirk Schulze <vbs85@gmx.de>
510 Reviewed by Darin Adler.
512 Fix https://bugs.webkit.org/show_bug.cgi?id=20468
513 Updated drawImage() in canvas to match the current specification.
515 Test: fast/canvas/drawImage-with-negative-source-destination.html
517 * html/CanvasRenderingContext2D.cpp:
518 (WebCore::normalizeRect):
519 (WebCore::CanvasRenderingContext2D::drawImage):
521 2008-08-26 Mark Rowe <mrowe@apple.com>
523 Reviewed by Darin Adler.
525 <rdar://problem/5768210> Switch back to the system version of SQLite
527 Use the system version of SQLite when it is new enough to provide the functionality
528 that WebCore requires.
530 * Configurations/Base.xcconfig:
531 * Configurations/DebugRelease.xcconfig:
532 * Configurations/WebCore.xcconfig:
534 2008-09-02 Dan Bernstein <mitz@apple.com>
538 * page/animation/AnimationBase.h:
540 2008-09-02 Chris Marrin <cmarrin@apple.com>
542 Reviewed by Dave Hyatt.
544 AnimationController.cpp should be split into separate files
545 https://bugs.webkit.org/show_bug.cgi?id=20604
547 Note: All makefiles, except WebCore.xcodeproj have been changed without testing, upon
548 recommendation of Dave Hyatt.
552 * WebCore.vcproj/WebCore.vcproj:
553 * WebCore.xcodeproj/project.pbxproj:
554 * WebCoreSources.bkl:
557 * page/AnimationController.cpp: Removed.
558 * page/AnimationController.h: Removed.
559 * page/animation: Added.
560 * page/animation/AnimationBase.cpp: Added.
561 * page/animation/AnimationBase.h: Added.
562 * page/animation/AnimationController.cpp: Copied from WebCore/page/AnimationController.cpp.
563 * page/animation/AnimationController.h: Copied from WebCore/page/AnimationController.h.
564 * page/animation/CompositeAnimation.cpp: Added.
565 * page/animation/CompositeAnimation.h: Added.
566 * page/animation/ImplicitAnimation.cpp: Added.
567 * page/animation/ImplicitAnimation.h: Added.
568 * page/animation/KeyframeAnimation.cpp: Added.
569 * page/animation/KeyframeAnimation.h: Added.
571 2008-09-02 Dan Bernstein <mitz@apple.com>
575 * platform/graphics/cg/GraphicsContextCG.cpp:
576 (WebCore::calculateDrawingMode):
578 2008-09-02 Timothy Hatcher <timothy@apple.com>
580 Make console functions log the correct resource URL and
581 line number for where the call originated.
583 https://bugs.webkit.org/show_bug.cgi?id=17234
584 <rdar://problem/5732837>
586 Reviewed by Kevin McCullough.
588 Test: manual-tests/inspector/console-call-line-numbers.html
590 * bindings/js/JSConsoleCustom.cpp:
591 (WebCore::JSConsole::count): Call the impl.
592 (WebCore::JSConsole::timeEnd): Ditto.
593 * manual-tests/inspector/console-call-line-numbers.html: Added.
594 * manual-tests/inspector/resources/script-console-calls.js: Added.
596 (WebCore::retrieveLastCaller): Helper to get the URL and line.
597 (WebCore::Console::error): Call retrieveLastCaller to get the URL and
598 line number to pass to addMessageToConsole.
599 (WebCore::Console::info): Ditto.
600 (WebCore::Console::log): Ditto.
601 (WebCore::Console::assertCondition): Ditto.
602 (WebCore::Console::count): Ditto.
603 (WebCore::Console::timeEnd): Ditto.
604 (WebCore::Console::warn): Ditto.
606 * page/Console.idl: Make count and timeEnd custom.
608 2008-09-02 Timothy Hatcher <timothy@apple.com>
610 Removed IDL files from WebCore's framework resources.
612 * WebCore.xcodeproj/project.pbxproj:
614 2008-09-02 Dan Bernstein <mitz@apple.com>
616 Reviewed by Dave Hyatt.
618 - <rdar://problem/5681647> pages at http://www.stendmarsofa.com/ are so slow to calculate style it seems like a hang
620 * html/HTMLParser.cpp:
621 (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): Added a
622 cap on the number of consecutive identical residual style tags to
624 (WebCore::HTMLParser::popBlock): Ditto.
626 2008-09-02 Alexey Proskuryakov <ap@webkit.org>
628 Reviewed by Adam Roben.
630 A little database quota management cleanup.
632 * storage/OriginQuotaManager.cpp:
633 (WebCore::OriginQuotaManager::OriginQuotaManager):
634 (WebCore::OriginQuotaManager::lock):
635 (WebCore::OriginQuotaManager::unlock):
636 (WebCore::OriginQuotaManager::trackOrigin):
637 (WebCore::OriginQuotaManager::tracksOrigin):
638 (WebCore::OriginQuotaManager::addDatabase):
639 (WebCore::OriginQuotaManager::removeDatabase):
640 (WebCore::OriginQuotaManager::removeOrigin):
641 (WebCore::OriginQuotaManager::markDatabase):
642 (WebCore::OriginQuotaManager::diskUsage):
643 * storage/OriginQuotaManager.h:
644 Changed to assert that a lock is taken more directly and reliably. Removed comments about
645 main/background threads, as this is likely to stop being true with synchronous Database calls
646 being made on worker threads.
648 * storage/OriginUsageRecord.cpp:
649 (WebCore::OriginUsageRecord::OriginUsageRecord):
650 (WebCore::OriginUsageRecord::addDatabase):
651 (WebCore::OriginUsageRecord::removeDatabase):
652 (WebCore::OriginUsageRecord::markDatabase):
653 (WebCore::OriginUsageRecord::diskUsage):
654 * storage/OriginUsageRecord.h:
655 (WebCore::OriginUsageRecord::DatabaseEntry::DatabaseEntry):
656 Don't use a magic value for unknown. It is totally unnecessary for DatabaseEntry, and
657 can be replaced with a single boolean for OriginUsageRecord.
658 Added assertions for string parameters being unshared.
661 2008-09-01 Adam Barth <abarth@webkit.org>
663 Reviewed by Sam Weinig.
665 https://bugs.webkit.org/show_bug.cgi?id=19760
667 Make granting LoadLocalResources conditional on a policy.
671 (WebCore::Document::initSecurityContext):
672 * loader/FrameLoader.cpp:
673 (WebCore::FrameLoader::setLocalLoadPolicy):
674 (WebCore::FrameLoader::restrictAccessToLocal):
675 * loader/FrameLoader.h:
676 (WebCore::FrameLoader::):
677 * platform/SecurityOrigin.cpp:
678 (WebCore::SecurityOrigin::grantLoadLocalResources):
679 * platform/SecurityOrigin.h:
681 2008-09-01 Dean Jackson <dino@apple.com>
683 Reviewed by Sam Weinig.
685 https://bugs.webkit.org/show_bug.cgi?id=20571
686 Make sure Window object can assign Animation/Transition event
687 listeners via attributes.
689 Also added a bunch of transition event tests, although
690 only transition-end-event-window is directly relevant to this patch.
692 (WebCore::JSDOMWindowBase::put):
694 Tests: transitions/transition-end-event-all-properties.html
695 transitions/transition-end-event-attributes.html
696 transitions/transition-end-event-container.html
697 transitions/transition-end-event-left.html
698 transitions/transition-end-event-multiple-01.html
699 transitions/transition-end-event-multiple-02.html
700 transitions/transition-end-event-multiple-03.html
701 transitions/transition-end-event-multiple-04.html
702 transitions/transition-end-event-nested.html
703 transitions/transition-end-event-transform.html
704 transitions/transition-end-event-window.html
706 2008-09-01 Dean Jackson <dino@apple.com>
708 Reviewed by Sam Weinig
710 Code styling cleanup.
712 * bindings/js/JSDOMWindowBase.cpp:
713 (WebCore::JSDOMWindowBase::getValueProperty):
714 (WebCore::JSDOMWindowBase::put):
716 2008-09-01 Geoffrey Garen <ggaren@apple.com>
718 Reviewed by Darin Adler.
720 First cut at inline caching for access to vanilla JavaScript properties.
722 Updated for JavaScriptCore changes. Mostly mechanical addition of StructureIDs
723 to WebCore classes, and PutPropertySlot& arguments to put functions.
725 (WebCore::JSCSSStyleDeclaration::customPut): Be sure to play nice with
726 inline caching for global properties, so global assignment can be optimized.
728 * ForwardingHeaders/kjs/StructureID.h: Added.
729 * bindings/js/JSDOMBinding.h:
730 (WebCore::DOMObject::DOMObject):
731 * bindings/js/JSDOMWindowBase.cpp:
732 (WebCore::JSDOMWindowBase::put):
733 * bindings/js/JSDOMWindowBase.h:
734 * bindings/js/JSDOMWindowCustom.h:
735 (WebCore::JSDOMWindow::customPut):
736 * bindings/js/JSDOMWindowShell.cpp:
737 (WebCore::JSDOMWindowShell::JSDOMWindowShell):
738 (WebCore::JSDOMWindowShell::put):
739 * bindings/js/JSDOMWindowShell.h:
740 * bindings/js/JSEventTargetBase.h:
741 (WebCore::JSEventTargetBase::put):
742 * bindings/js/JSEventTargetNode.h:
743 (WebCore::JSEventTargetNode::put):
744 * bindings/js/JSHTMLAppletElementCustom.cpp:
745 (WebCore::JSHTMLAppletElement::customPut):
746 * bindings/js/JSHTMLEmbedElementCustom.cpp:
747 (WebCore::JSHTMLEmbedElement::customPut):
748 * bindings/js/JSHTMLInputElementBase.cpp:
749 (WebCore::JSHTMLInputElementBase::put):
750 * bindings/js/JSHTMLInputElementBase.h:
751 * bindings/js/JSHTMLObjectElementCustom.cpp:
752 (WebCore::JSHTMLObjectElement::customPut):
753 * bindings/js/JSHistoryCustom.cpp:
754 (WebCore::JSHistory::customPut):
755 * bindings/js/JSInspectedObjectWrapper.cpp:
756 (WebCore::JSInspectedObjectWrapper::wrap):
757 (WebCore::JSInspectedObjectWrapper::JSInspectedObjectWrapper):
758 * bindings/js/JSInspectedObjectWrapper.h:
759 * bindings/js/JSInspectorCallbackWrapper.cpp:
760 (WebCore::JSInspectorCallbackWrapper::wrap):
761 (WebCore::JSInspectorCallbackWrapper::JSInspectorCallbackWrapper):
762 * bindings/js/JSInspectorCallbackWrapper.h:
763 * bindings/js/JSLocationCustom.cpp:
764 (WebCore::JSLocation::customPut):
765 * bindings/js/JSPluginElementFunctions.cpp:
766 (WebCore::runtimeObjectCustomPut):
767 * bindings/js/JSPluginElementFunctions.h:
768 * bindings/js/JSQuarantinedObjectWrapper.cpp:
769 (WebCore::JSQuarantinedObjectWrapper::JSQuarantinedObjectWrapper):
770 (WebCore::JSQuarantinedObjectWrapper::put):
771 * bindings/js/JSQuarantinedObjectWrapper.h:
772 * bindings/js/JSStorageCustom.cpp:
773 (WebCore::JSStorage::customPut):
774 * bindings/objc/WebScriptObject.mm:
775 (-[WebScriptObject setValue:forKey:]):
776 * bindings/scripts/CodeGeneratorJS.pm:
777 * bridge/NP_jsobject.cpp:
779 * bridge/jni/jni_jsobject.mm:
780 (JavaJSObject::setMember):
781 * bridge/objc/objc_class.mm:
782 (KJS::Bindings::ObjcClass::fallbackObject):
783 * bridge/objc/objc_runtime.h:
784 * bridge/objc/objc_runtime.mm:
785 (ObjcFallbackObjectImp::ObjcFallbackObjectImp):
786 (ObjcFallbackObjectImp::put):
787 * bridge/runtime.cpp:
788 (KJS::Bindings::Instance::createRuntimeObject):
789 * bridge/runtime_array.cpp:
791 * bridge/runtime_array.h:
792 * bridge/runtime_object.cpp:
793 (RuntimeObjectImp::RuntimeObjectImp):
794 (RuntimeObjectImp::put):
795 * bridge/runtime_object.h:
797 2008-09-01 Dirk Schulze <vbs85@gmx.de>
799 Reviewed by Eric Seidel.
801 Fixed border-radius for Cairo.
803 * platform/graphics/cairo/GraphicsContextCairo.cpp:
804 (WebCore::GraphicsContext::strokeArc):
806 2008-09-01 Dirk Schulze <vbs85@gmx.de>
808 Reviewed by Eric Seidel.
810 Added canvas's globalAlpha to cairo.
812 * platform/graphics/GraphicsContext.h:
813 * platform/graphics/cairo/GraphicsContextCairo.cpp:
814 (WebCore::GraphicsContext::fillPath):
815 (WebCore::GraphicsContext::strokePath):
816 (WebCore::GraphicsContext::setAlpha):
817 (WebCore::GraphicsContext::getAlpha):
818 * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
819 (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
820 * platform/graphics/cairo/ImageCairo.cpp:
821 (WebCore::BitmapImage::draw):
823 2008-08-31 Simon Hausmann <hausmann@webkit.org>
825 Unreviewed Qt build fix.
827 * WebCore.pro: Add TextControlInnerElements.cpp to SOURCES instead of
830 2008-08-30 Darin Adler <darin@apple.com>
834 - adopt some new JavaScriptCore functions where appropriate
836 * bindings/js/JSDOMWindowBase.cpp:
837 (WebCore::windowProtoFuncAToB): Adopted jsEmptyString.
838 (WebCore::windowProtoFuncBToA): Ditto.
839 * bindings/js/JSEventListener.cpp:
840 (WebCore::JSLazyEventListener::eventParameterName): Adopted
842 * bindings/js/JSSVGLazyEventListener.cpp:
843 (WebCore::JSSVGLazyEventListener::eventParameterName): Ditto.
845 2008-08-29 Brady Eidson <beidson@apple.com>
847 Reviewed by Anders' rubberstamp
849 Style cleanup to match MediaTokenizer::writeRawData()
851 * loader/PluginDocument.cpp:
852 (WebCore::PluginTokenizer::writeRawData):
854 2008-08-29 Brady Eidson <beidson@apple.com>
858 Fix regression I introducted in 35946
859 Already covered by media/video-click-dlbclick-standalone.html
861 * loader/MediaDocument.cpp:
862 (WebCore::MediaTokenizer::createDocumentStructure): Don't cancel the load here - too early!
863 (WebCore::MediaTokenizer::writeRawData): Call finish() here so onload() can be called. Also add
864 an ASSERT signifying that this method should only be called once, to more closely follow the
867 2008-08-29 Beth Dakin <bdakin@apple.com>
869 Reviewed by Sam Weinig.
871 Fix for <rdar://problem/6181588>
873 This patch makes hit testing take into account the new concept of a
874 disconnected frame, in which some of the content may not be
875 visible. The current hit testing mechanism starts at a target frame
876 and drills down for a HitTestResult. In some cases, drilling down
877 will find a non-visible result. When this happens, we need to try
878 again, starting at a higher level -- namely, starting at the main
881 * editing/Editor.cpp:
882 (WebCore::Editor::insideVisibleArea): New function that tests if a
883 point is inside the visible area for a disconnected frame.
885 * page/EventHandler.cpp:
886 (WebCore::EventHandler::hitTestResultAtPoint):
888 2008-08-29 Adele Peterson <adele@apple.com>
890 Reviewed by Adam Roben.
892 Rename HTMLTextFieldInnerElement.h/.cpp to TextControlInnerElements.h/.cpp
896 * WebCore.vcproj/WebCore.vcproj:
897 * WebCore.xcodeproj/project.pbxproj:
898 * WebCoreSources.bkl:
899 * html/HTMLTextFieldInnerElement.cpp: Removed.
900 * html/HTMLTextFieldInnerElement.h: Removed.
901 * rendering/RenderTextControl.cpp:
902 (WebCore::RenderTextControl::createSubtreeIfNeeded):
903 * rendering/RenderTextControl.h:
904 * rendering/TextControlInnerElements.cpp: Copied from html/HTMLTextFieldInnerElement.cpp.
905 (WebCore::TextControlInnerElement::TextControlInnerElement):
906 (WebCore::TextControlInnerTextElement::TextControlInnerTextElement):
907 (WebCore::TextControlInnerTextElement::defaultEventHandler):
908 (WebCore::SearchFieldResultsButtonElement::SearchFieldResultsButtonElement):
909 (WebCore::SearchFieldResultsButtonElement::defaultEventHandler):
910 (WebCore::SearchFieldCancelButtonElement::SearchFieldCancelButtonElement):
911 (WebCore::SearchFieldCancelButtonElement::defaultEventHandler):
912 * rendering/TextControlInnerElements.h: Copied from html/HTMLTextFieldInnerElement.h.
914 2008-08-29 Eric Seidel <eric@webkit.org>
916 Rubber-stamped by aroben.
918 Add GraphicsContext.h include to GraphcisContextPrivate.h
920 GraphicsContextPrivate uses StrokeStyle which is defined
921 in GraphicsContext.h but it doesn't include that header.
922 CoreGraphics build doesn't fail here due to the order
923 it happens to include files.
925 * platform/graphics/GraphicsContextPrivate.h:
927 2008-08-29 Eric Seidel <eric@webkit.org>
931 Fix GeneratedImage to respect Image's refcounting
932 Fixing potential crashers (future if not current)
933 https://bugs.webkit.org/show_bug.cgi?id=20567
935 I don't know if it's possible to make the current code
936 crash, thus I've not made a test.
938 * css/CSSGradientValue.cpp:
939 (WebCore::CSSGradientValue::image):
940 * css/CSSImageGeneratorValue.cpp:
941 (WebCore::CSSImageGeneratorValue::removeClient):
942 (WebCore::CSSImageGeneratorValue::getImage):
943 * css/CSSImageGeneratorValue.h:
944 * platform/graphics/GeneratedImage.h:
945 (WebCore::GeneratedImage::GeneratedImage):
946 * rendering/style/RenderStyle.cpp:
947 (WebCore::RenderStyle::setContent):
948 * rendering/style/RenderStyle.h:
950 2008-08-29 Eric Carlson <eric.carlson@apple.com>
954 Fix for <rdar://problem/6093767>
955 https://bugs.webkit.org/show_bug.cgi?id=20526
957 Don't allow video to render until unsupported track types have been disabled.
959 * platform/graphics/win/QTMovieWin.cpp:
960 (QTMovieWinPrivate::task):
961 (QTMovieWinPrivate::drawingComplete):
962 (QTMovieWinPrivate::clearGWorld):
964 2008-08-29 Eric Carlson <eric.carlson@apple.com>
968 Fix for https://bugs.webkit.org/show_bug.cgi?id=20525
969 <rdar://problem/6169301>
971 Return the size of the movie data instead of 1000.
973 Test: media/progress-event-total.html
975 * platform/graphics/win/QTMovieWin.cpp:
976 (QTMovieWin::dataSize):
978 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
980 Reviewed by Eric Seidel.
982 [janitor/qt] Start replacing port specific getters with the generic native getter
983 To get the native presentation of an image we currently have platform
984 specific #ifdef's and a generic getter using NativeImagePtr. This patch
985 extends this to the ImageBuffer and updates the Qt platform to get rid
986 of the special #ifdefs.
988 https://bugs.webkit.org/attachment.cgi?id=22861
990 * platform/graphics/BitmapImage.h:
991 * platform/graphics/Image.h:
992 * platform/graphics/qt/ImageQt.cpp:
993 * platform/graphics/qt/StillImageQt.cpp:
994 * platform/graphics/qt/StillImageQt.h:
995 * platform/qt/ClipboardQt.cpp:
996 (WebCore::ClipboardQt::createDragImage):
997 (WebCore::ClipboardQt::declareAndWriteDragImage):
998 * platform/qt/CursorQt.cpp:
999 * platform/qt/PasteboardQt.cpp:
1000 (WebCore::Pasteboard::writeImage):
1002 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
1006 [svg/qt] Stop crashing... when no RenderPath/RenderObject is given...
1008 * svg/graphics/qt/SVGPaintServerQt.cpp:
1009 (WebCore::SVGPaintServer::renderPath):
1010 * svg/graphics/qt/SVGPaintServerSolidQt.cpp:
1011 (WebCore::SVGPaintServerSolid::setup):
1013 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
1017 [network/qt] Implement defering of loading ResourceHandle's
1018 This is needed otherwise we end in an ASSERT in the MainResourceLoader. The
1019 implementation is simply not forwarding anything to the
1020 ResourceHandleClient until we are allowed to. This might lead to a deadlock
1021 in Qt as we do not empty the QNetworkReply input buffer and wait until we
1022 are allowed to read. If that happens we are forced to buffer the data
1023 within QNetworkReplyHandler, for now this is not done.
1026 - Open http://acid3.acidtests.org
1027 - Wait for the test to complete
1028 - Click on the Reference Rendering link
1029 - Be fast and see the results of acid3
1032 * platform/network/qt/QNetworkReplyHandler.cpp:
1033 (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
1034 (WebCore::QNetworkReplyHandler::setLoadMode):
1035 (WebCore::QNetworkReplyHandler::finish):
1036 (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
1037 (WebCore::QNetworkReplyHandler::forwardData):
1038 (WebCore::QNetworkReplyHandler::start):
1039 (WebCore::QNetworkReplyHandler::resetState):
1040 (WebCore::QNetworkReplyHandler::sendQueuedItems):
1041 * platform/network/qt/QNetworkReplyHandler.h:
1042 (WebCore::QNetworkReplyHandler::):
1043 * platform/network/qt/ResourceHandleQt.cpp:
1044 (WebCore::ResourceHandle::start):
1045 (WebCore::ResourceHandle::loadResourceSynchronously):
1046 (WebCore::ResourceHandle::setDefersLoading):
1048 2008-08-29 Simon Hausmann <hausmann@webkit.org>
1052 Don't crash when drawing patterns with the HTML canvas. Patterns
1053 remain unimplemented but at least they don't crash anymore. This is
1054 done by changing the PlatformPatternPtr to be a brush for the Qt
1057 * platform/graphics/Pattern.h:
1058 * platform/graphics/qt/GraphicsContextQt.cpp:
1059 (WebCore::GraphicsContext::fillPath):
1060 (WebCore::GraphicsContext::strokePath):
1061 (WebCore::GraphicsContext::fillRect):
1062 * platform/graphics/qt/PatternQt.cpp:
1063 (WebCore::Pattern::createPlatformPattern):
1065 2008-08-29 Simon Hausmann <hausmann@webkit.org>
1067 Fix the Qt build, fontSelector() is not used by the Qt port yet
1068 and we just return 0 in Font::fontSelector().
1070 * platform/graphics/Font.h:
1072 2008-08-28 Alp Toker <alp@nuanti.com>
1074 GTK+ dist/build fix. List newly added header files.
1078 2008-08-28 Simon Fraser <simon.fraser@apple.com>
1080 Reviewed by Dave Hyatt
1082 Various WebKitCSSTransformValue-related fixes
1083 https://bugs.webkit.org/show_bug.cgi?id=20562
1085 Test: css3/transform-value-types.html
1087 * bindings/js/JSCSSValueCustom.cpp:
1090 * css/WebKitCSSTransformValue.cpp:
1091 (WebCore::WebKitCSSTransformValue::cssText):
1092 * css/WebKitCSSTransformValue.h:
1093 (WebCore::WebKitCSSTransformValue::):
1094 * css/WebKitCSSTransformValue.idl:
1096 2008-08-28 Dan Bernstein <mitz@apple.com>
1098 Reviewed by Steve Falkenburg.
1100 - do not let the "last chance" WM_TIMER trigger WebCore timers when they should be deferred
1102 * platform/win/SharedTimerWin.cpp:
1103 (WebCore::TimerWindowWndProc):
1105 2008-08-28 David Hyatt <hyatt@apple.com>
1107 RenderStyle cleanup.
1109 Break out StyleImage, StyleGeneratedImage, StyleCachedImage and NinePieceImage into separate files.
1113 * css/CSSImageGeneratorValue.cpp:
1114 * css/CSSImageValue.cpp:
1115 * css/CSSStyleSelector.cpp:
1116 * rendering/RenderImageGeneratedContent.cpp:
1117 * rendering/style/NinePieceImage.cpp: Added.
1118 * rendering/style/NinePieceImage.h: Added.
1119 * rendering/style/RenderStyle.cpp:
1120 (WebCore::FillLayer::operator==):
1121 (WebCore::FillLayer::containsImage):
1122 (WebCore::StyleInheritedData::operator==):
1123 (WebCore::RenderStyle::contentDataEquivalent):
1124 * rendering/style/RenderStyle.h:
1125 * rendering/style/StyleCachedImage.cpp: Added.
1126 * rendering/style/StyleCachedImage.h: Added.
1127 * rendering/style/StyleGeneratedImage.cpp: Added.
1128 * rendering/style/StyleGeneratedImage.h: Added.
1129 * rendering/style/StyleImage.h: Added.
1131 2008-08-28 Simon Fraser <simon.fraser@apple.com>
1133 Reviewed by Dave Hyatt
1135 Make all the 'isFoo()' methods on CSSValue const,
1136 and fix the subclasses.
1138 https://bugs.webkit.org/show_bug.cgi?id=20561
1140 * css/CSSTimingFunctionValue.h:
1142 (WebCore::CSSValue::isFontValue):
1143 (WebCore::CSSValue::isImageGeneratorValue):
1144 (WebCore::CSSValue::isImageValue):
1145 (WebCore::CSSValue::isImplicitInitialValue):
1146 * css/CSSValueList.h:
1149 2008-08-28 David Hyatt <hyatt@apple.com>
1151 The great RenderStyle cleanup begins!
1153 Move LengthBox and LengthSize out of RenderStyle and into Length.
1157 * rendering/Length.h:
1159 (WebCore::Length::Length):
1160 (WebCore::Length::operator==):
1161 (WebCore::Length::operator!=):
1162 (WebCore::Length::value):
1163 (WebCore::Length::rawValue):
1164 (WebCore::Length::percent):
1165 (WebCore::Length::type):
1166 (WebCore::Length::quirk):
1167 (WebCore::Length::setValue):
1168 (WebCore::Length::setRawValue):
1169 (WebCore::Length::calcValue):
1170 (WebCore::Length::calcMinValue):
1171 (WebCore::Length::calcFloatValue):
1172 (WebCore::Length::isUndefined):
1173 (WebCore::Length::isZero):
1174 (WebCore::Length::isPositive):
1175 (WebCore::Length::isNegative):
1176 (WebCore::Length::isAuto):
1177 (WebCore::Length::isRelative):
1178 (WebCore::Length::isPercent):
1179 (WebCore::Length::isFixed):
1180 (WebCore::Length::isStatic):
1181 (WebCore::Length::isIntrinsicOrAuto):
1182 (WebCore::Length::blend):
1183 (WebCore::LengthBox::LengthBox):
1184 (WebCore::LengthBox::operator=):
1185 (WebCore::LengthBox::operator==):
1186 (WebCore::LengthBox::operator!=):
1187 (WebCore::LengthBox::nonZero):
1188 (WebCore::LengthSize::LengthSize):
1189 * rendering/style/RenderStyle.h:
1191 2008-08-28 David Hyatt <hyatt@apple.com>
1195 https://bugs.webkit.org/show_bug.cgi?id=18091
1197 font-size should be animatable using -webkit-transition.
1199 * page/AnimationController.cpp:
1200 (WebCore::AnimationControllerPrivate::ensurePropertyMap):
1201 * rendering/style/RenderStyle.h:
1202 (WebCore::RenderStyle::setFontSize):
1204 2008-08-28 Brad Garcia <bgarcia@google.com>
1206 Reviewed by Dan Bernstein.
1208 https://bugs.webkit.org/show_bug.cgi?id=20549
1209 Correctly determine when cursor is over a resizable border within
1212 * rendering/RenderFrameSet.cpp:
1213 (WebCore::RenderFrameSet::canResizeRow):
1214 (WebCore::RenderFrameSet::canResizeColumn):
1216 2008-08-28 Simon Fraser <simon.fraser@apple.com>
1218 Reviewed by Eric Seidel
1220 Add RuleTypes to CSSRule.idl for keyframes and keyframe rules.
1221 https://bugs.webkit.org/show_bug.cgi?id=20552
1223 Test: animations/animation-css-rule-types.html
1227 2008-08-28 Anders Carlsson <andersca@apple.com>
1229 Reviewed by Kevin and Darin.
1231 <rdar://problem/6182541>
1232 https://bugs.webkit.org/show_bug.cgi?id=20202
1233 Missing http status line from the http headers.
1235 Add a status line to the header string.
1237 * plugins/PluginStream.cpp:
1238 (WebCore::PluginStream::startStream):
1240 2008-08-28 Holger Hans Peter Freyther <zecke@selfish.org>
1242 Rubber-stamped by Darin Adler.
1244 https://bugs.webkit.org/show_bug.cgi?id=17261
1246 Make it possible to theme the default Url icon and enable this for
1247 the Qt port. To have a minimal usage of #ifdef in the code the setting
1248 of the icon was moved to a new method which comes in two flavors.
1250 * loader/icon/IconDatabase.cpp:
1251 (WebCore::loadDefaultIconRecord): Load or set the default icon
1252 (WebCore::IconDatabase::defaultIcon):
1254 2008-08-28 Holger Hans Peter Freyther <zecke@selfish.org>
1256 Unreviewed compile fix
1258 * platform/graphics/qt/GraphicsContextQt.cpp: Remove redefinitions
1260 2008-08-28 Adam Roben <aroben@apple.com>
1262 Windows (and others?) build fix
1264 * page/Chrome.cpp: Added a missing #include.
1265 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer): Fixed typo.
1267 2008-08-27 Eric Seidel <eric@webkit.org>
1269 Reviewed by Oliver Hunt.
1271 Qt and Cairo support from krit (and blind stab @ wx compile support)
1272 https://bugs.webkit.org/show_bug.cgi?id=20373
1274 * platform/graphics/cairo/GraphicsContextCairo.cpp:
1275 (WebCore::GraphicsContext::fillPath):
1276 (WebCore::GraphicsContext::strokePath):
1277 (WebCore::GraphicsContext::drawPath):
1278 (WebCore::GraphicsContext::fillRect):
1279 (WebCore::GraphicsContext::setPlatformFillColor):
1280 (WebCore::GraphicsContext::setPlatformStrokeColor):
1281 (WebCore::GraphicsContext::setPlatformStrokeStyle):
1282 (WebCore::GraphicsContext::strokeRect):
1283 (WebCore::GraphicsContext::setImageInterpolationQuality):
1284 (WebCore::GraphicsContext::imageInterpolationQuality):
1285 (WebCore::GraphicsContext::setPlatformFillPattern):
1286 (WebCore::GraphicsContext::setPlatformStrokePattern):
1287 (WebCore::GraphicsContext::setPlatformFillGradient):
1288 (WebCore::GraphicsContext::setPlatformStrokeGradient):
1289 * platform/graphics/qt/GraphicsContextQt.cpp:
1290 (WebCore::GraphicsContext::fillPath):
1291 (WebCore::GraphicsContext::strokePath):
1292 (WebCore::GraphicsContext::fillRect):
1293 (WebCore::GraphicsContext::strokeRect):
1294 (WebCore::GraphicsContext::clipToImageBuffer):
1295 (WebCore::GraphicsContext::setPlatformFillPattern):
1296 (WebCore::GraphicsContext::setPlatformStrokePattern):
1297 (WebCore::GraphicsContext::setPlatformFillGradient):
1298 (WebCore::GraphicsContext::setPlatformStrokeGradient):
1299 (WebCore::GraphicsContext::setImageInterpolationQuality):
1300 (WebCore::GraphicsContext::imageInterpolationQuality):
1301 * platform/graphics/wx/GraphicsContextWx.cpp:
1302 (WebCore::GraphicsContext::clipToImageBuffer):
1303 (WebCore::GraphicsContext::setImageInterpolationQuality):
1304 (WebCore::GraphicsContext::imageInterpolationQuality):
1305 (WebCore::GraphicsContext::fillPath):
1306 (WebCore::GraphicsContext::strokePath):
1307 (WebCore::GraphicsContext::drawPath):
1308 (WebCore::GraphicsContext::fillRect):
1309 (WebCore::GraphicsContext::setPlatformFillPattern):
1310 (WebCore::GraphicsContext::setPlatformStrokePattern):
1311 (WebCore::GraphicsContext::setPlatformFillGradient):
1313 2008-08-27 Eric Seidel <eric@webkit.org>
1315 Reviewed by Oliver Hunt.
1317 Add stroke/fill Gradient and Pattern support to GraphicsContext and update <canvas> to use it.
1318 https://bugs.webkit.org/show_bug.cgi?id=20373
1320 Changed pattern() to canvasPattern() on CanvasStyle to match canvasGradient()
1322 Made Generator (aka Gradient) RefCounted so that GraphicsContext didn't
1323 have to store large Gradient objects in the GraphicsContextState
1325 Made Pattern RefCounted for the same reason.
1327 Many updates to GraphicsContext to support easier drawing with
1328 Patterns and Gradients.
1330 * WebCore.xcodeproj/project.pbxproj: Add pre-existing GraphicsContextPrivate.h
1331 * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
1333 * css/CSSGradientValue.cpp:
1334 (WebCore::CSSGradientValue::createGradient):
1335 * css/CSSGradientValue.h:
1336 * html/CanvasGradient.cpp:
1337 (WebCore::CanvasGradient::CanvasGradient):
1338 * html/CanvasGradient.h:
1339 (WebCore::CanvasGradient::gradient):
1340 (WebCore::CanvasGradient::addColorStop):
1341 (WebCore::CanvasGradient::getColor):
1342 * html/CanvasPattern.cpp:
1343 * html/CanvasPattern.h:
1344 (WebCore::CanvasPattern::pattern):
1345 (WebCore::CanvasPattern::originClean):
1346 * html/CanvasRenderingContext2D.cpp:
1347 (WebCore::CanvasRenderingContext2D::State::State):
1348 (WebCore::CanvasRenderingContext2D::setStrokeStyle):
1349 (WebCore::CanvasRenderingContext2D::setFillStyle):
1350 (WebCore::CanvasRenderingContext2D::fill):
1351 (WebCore::CanvasRenderingContext2D::stroke):
1352 (WebCore::CanvasRenderingContext2D::fillRect):
1353 (WebCore::CanvasRenderingContext2D::strokeRect):
1354 * html/CanvasRenderingContext2D.h:
1355 * html/CanvasStyle.cpp:
1356 (WebCore::CanvasStyle::applyStrokeColor):
1357 (WebCore::CanvasStyle::applyFillColor):
1358 * html/CanvasStyle.h:
1359 * platform/graphics/GeneratedImage.h:
1360 (WebCore::GeneratedImage::GeneratedImage):
1361 * platform/graphics/Generator.h:
1362 * platform/graphics/Gradient.h:
1363 (WebCore::Gradient::create):
1364 * platform/graphics/GraphicsContext.cpp:
1365 (WebCore::GraphicsContext::fillRule):
1366 (WebCore::GraphicsContext::setFillRule):
1367 (WebCore::GraphicsContext::setStrokePattern):
1368 (WebCore::GraphicsContext::setFillPattern):
1369 (WebCore::GraphicsContext::setStrokeGradient):
1370 (WebCore::GraphicsContext::setFillGradient):
1371 * platform/graphics/GraphicsContext.h:
1372 * platform/graphics/GraphicsContextPrivate.h:
1374 (WebCore::GraphicsContextState::GraphicsContextState):
1375 * platform/graphics/GraphicsTypes.h:
1376 * platform/graphics/Path.h:
1377 * platform/graphics/Pattern.h:
1378 (WebCore::Pattern::create):
1379 (WebCore::Pattern::tileImage):
1380 * platform/graphics/cg/GraphicsContextCG.cpp:
1381 (WebCore::GraphicsContext::drawRect):
1382 (WebCore::GraphicsContext::drawEllipse):
1383 (WebCore::GraphicsContext::drawConvexPolygon):
1384 (WebCore::calculateDrawingMode):
1385 (WebCore::GraphicsContext::drawPath):
1386 (WebCore::fillPathWithFillRule):
1387 (WebCore::GraphicsContext::fillPath):
1388 (WebCore::GraphicsContext::strokePath):
1389 (WebCore::GraphicsContext::fillRect):
1390 (WebCore::GraphicsContext::fillRoundedRect):
1391 (WebCore::GraphicsContext::setPlatformStrokePattern):
1392 (WebCore::GraphicsContext::setPlatformFillPattern):
1393 (WebCore::GraphicsContext::setPlatformStrokeGradient):
1394 (WebCore::GraphicsContext::setPlatformFillGradient):
1396 2008-08-20 Eric Seidel <eric@webkit.org>
1398 Reviewed by Darin and Alexey.
1400 Close a leak of PausedTimeouts if the JavaScriptDebugServer was destroyed
1401 with timeouts paused.
1402 https://bugs.webkit.org/show_bug.cgi?id=20469
1404 I attempted to clean up the memory management of PausedTimeouts, I'm not
1405 sure the solution I came up with is "cleaner", but it's in some ways
1406 "safer", since it no longer uses raw pointers and manual new/delete.
1408 This also now prevents CachedPage from needlessly creating Window
1409 objects when caching pages which didn't already have one. :)
1411 I also made Chrome.cpp no longer depend on the JavaScript bindings
1412 (aka JSDOMWindowBase.h), since there was no real reason for it to.
1414 * bindings/js/JSDOMWindowBase.cpp:
1415 (WebCore::JSDOMWindowBase::pauseTimeouts):
1416 (WebCore::JSDOMWindowBase::resumeTimeouts):
1417 * bindings/js/JSDOMWindowBase.h:
1418 * bindings/js/ScriptController.cpp:
1419 (WebCore::ScriptController::pauseTimeouts):
1420 (WebCore::ScriptController::resumeTimeouts):
1421 * bindings/js/ScriptController.h:
1422 * history/CachedPage.cpp:
1423 (WebCore::CachedPage::CachedPage):
1424 (WebCore::CachedPage::restore):
1426 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
1427 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
1428 * page/JavaScriptDebugServer.cpp:
1429 (WebCore::JavaScriptDebugServer::~JavaScriptDebugServer):
1430 (WebCore::JavaScriptDebugServer::setJavaScriptPaused):
1432 2008-08-27 Holger Hans Peter Freyther <zecke@selfish.org>
1434 Unreviewed compile fix
1436 Add the stub for the Qt port.
1439 * page/qt/AccessibilityObjectQt.cpp: Added.
1440 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
1442 2008-08-27 Alp Toker <alp@nuanti.com>
1446 https://bugs.webkit.org/show_bug.cgi?id=20551
1447 [GTK] search popup crash
1449 * platform/gtk/SearchPopupMenuGtk.cpp:
1450 (WebCore::SearchPopupMenu::enabled):
1451 Fix a search popup crasher by disabling the history popup since we
1452 don't support this feature yet in the GTK+ port.
1454 2008-08-27 Alp Toker <alp@nuanti.com>
1458 https://bugs.webkit.org/show_bug.cgi?id=20551
1461 * platform/network/curl/ResourceHandleManager.cpp:
1462 (WebCore::ResourceHandleManager::startScheduledJobs):
1463 Remove the resource handle from the pending list before starting the
1464 job, not afterwards. Fixes crashers in the test suite.
1466 Test: fast/dom/clientWidthAfterDocumentIsRemoved.html
1467 Test: fast/encoding/char-encoding.html
1469 2008-08-27 Dirk Schulze <vbs85@gmx.de>
1471 Reviewed by eseidel.
1473 Fix canvas drawImage to support composite operations.
1474 Composite had no effect on canvas elements like these:
1475 http://philip.html5.org/tests/canvas/suite/tests/index.2d.composite.canvas.html
1477 [CAIRO] Canvas composite don't work on canvas-elements.
1478 https://bugs.webkit.org/show_bug.cgi?id=20548
1480 * html/CanvasRenderingContext2D.cpp:
1481 (WebCore::CanvasRenderingContext2D::drawImage): pass the current composite operator to the drawImage call
1483 2008-08-27 Mario Bensi <mbensi@pleyo.com>
1485 Reviewed by Eric Seidel.
1487 Fix the data content of an image with a base64.
1489 * platform/network/curl/ResourceHandleManager.cpp:
1490 (WebCore::parseDataUrl): Remove the String and use only the data
1491 Vector because the data.latin1().data() convert the data content and
1492 the image test ( https://bugs.webkit.org/attachment.cgi?id=21726 ) is
1493 not drawn correctly.
1495 2008-08-27 Antti Koivisto <antti@apple.com>
1497 Reviewed by Eric Seidel.
1499 Crash after OK in dialog box and reloading page in secure mode
1500 https://bugs.webkit.org/show_bug.cgi?id=20493
1502 The new run loop spawned by a modal dialog causes a timer in the loader to run
1503 synchronously inside didFinishLoading() deleting "this" object.
1505 Defer all WebCore timers when a modal dialog is up. They are not
1509 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
1510 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
1512 2008-08-27 Chris Marrin <cmarrin@apple.com>
1514 Reviewed by Dave Hyatt
1516 Memory leaks when animating transforms
1517 https://bugs.webkit.org/show_bug.cgi?id=20532
1519 * rendering/style/RenderStyle.cpp:
1520 (WebCore::ScaleTransformOperation::blend):
1521 (WebCore::RotateTransformOperation::blend):
1522 (WebCore::SkewTransformOperation::blend):
1523 (WebCore::TranslateTransformOperation::blend):
1524 (WebCore::MatrixTransformOperation::blend):
1525 * rendering/style/RenderStyle.h:
1527 2008-08-27 Timothy Hatcher <timothy@apple.com>
1529 Add support for support for -webkit-appearance: default-button on the Mac platform.
1531 <rdar://problem/6173530>
1533 Reviewed by Dave Hyatt.
1535 * WebCore.base.exp: Export new symbols.
1536 * platform/mac/WebCoreSystemInterface.h: Add wkAdvanceDefaultButtonPulseAnimation.
1537 * platform/mac/WebCoreSystemInterface.mm: Ditto.
1538 * rendering/RenderButton.cpp:
1539 (WebCore::RenderButton::RenderButton): Remove #if PLATFORM(WIN).
1540 (WebCore::RenderButton::setStyle): Ditto.
1541 * rendering/RenderButton.h: Ditto.
1542 * rendering/RenderThemeMac.mm:
1543 (WebCore::RenderThemeMac::adjustRepaintRect): Add a case for DefaultButtonAppearance.
1544 (WebCore::RenderThemeMac::setButtonCellState): Set the key equivalent to the return
1545 key if the button is default, otherwise reset the key equivalent.
1546 (WebCore::RenderThemeMac::paintButton): If the button is default call setDefaultButtonCell:
1547 on the window, then wkAdvanceDefaultButtonPulseAnimation before painting. Restore
1548 the window's previous default button cell when finished.
1550 2008-08-26 David Hyatt <hyatt@apple.com>
1552 First cut at making form controls on OS X respect full page zoom. There are lots of bugs.
1556 Added fast/forms/zoomed-controls.html
1558 * css/CSSStyleSelector.cpp:
1559 (WebCore::addIntrinsicMargins):
1560 * rendering/RenderSlider.cpp:
1561 (WebCore::RenderSlider::calcPrefWidths):
1562 * rendering/RenderThemeMac.h:
1563 * rendering/RenderThemeMac.mm:
1564 (WebCore::RenderThemeMac::adjustRepaintRect):
1565 (WebCore::RenderThemeMac::inflateRect):
1566 (WebCore::RenderThemeMac::baselinePosition):
1567 (WebCore::RenderThemeMac::setControlSize):
1568 (WebCore::RenderThemeMac::sizeForFont):
1569 (WebCore::RenderThemeMac::sizeForSystemFont):
1570 (WebCore::RenderThemeMac::setFontFromControlSize):
1571 (WebCore::RenderThemeMac::paintCheckbox):
1572 (WebCore::RenderThemeMac::setCheckboxCellState):
1573 (WebCore::RenderThemeMac::paintRadio):
1574 (WebCore::RenderThemeMac::setRadioCellState):
1575 (WebCore::RenderThemeMac::setButtonPaddingFromControlSize):
1576 (WebCore::RenderThemeMac::adjustButtonStyle):
1577 (WebCore::RenderThemeMac::setButtonCellState):
1578 (WebCore::RenderThemeMac::paintButton):
1579 (WebCore::RenderThemeMac::paintMenuList):
1580 (WebCore::RenderThemeMac::paintMenuListButton):
1581 (WebCore::RenderThemeMac::popupInternalPaddingLeft):
1582 (WebCore::RenderThemeMac::popupInternalPaddingRight):
1583 (WebCore::RenderThemeMac::popupInternalPaddingTop):
1584 (WebCore::RenderThemeMac::popupInternalPaddingBottom):
1585 (WebCore::RenderThemeMac::setPopupButtonCellState):
1586 (WebCore::RenderThemeMac::paintSliderTrack):
1587 (WebCore::RenderThemeMac::paintSliderThumb):
1588 (WebCore::RenderThemeMac::adjustSliderThumbSize):
1589 (WebCore::RenderThemeMac::paintSearchField):
1590 (WebCore::RenderThemeMac::adjustSearchFieldStyle):
1591 (WebCore::RenderThemeMac::paintSearchFieldCancelButton):
1592 (WebCore::RenderThemeMac::paintSearchFieldResultsButton):
1594 2008-08-27 Brady Eidson <beidson@apple.com>
1598 <rdar://problem/6134133> - Crash when loading large movie as a standalone document
1600 We hand off these loads to Quicktime which manages and spools the data itself, but we also continued
1601 to load and buffer the data for the movie in WebCore. With large media files, this results in blowing
1602 away the virtual address space and a crash.
1604 * loader/EmptyClients.h:
1605 (WebCore::EmptyFrameLoaderClient::pluginWillHandleLoadError):
1606 * loader/FrameLoaderClient.h: Added client method to get platform specific error for
1607 "plugin will handle load"
1609 * loader/MediaDocument.cpp:
1610 (WebCore::MediaTokenizer::createDocumentStructure): Tell the MainResourceLoader to not buffer data,
1611 and cancel the WebCore-managed load
1612 (WebCore::MediaTokenizer::writeRawData):
1613 (WebCore::MediaTokenizer::finish):
1615 2008-08-26 Simon Fraser <simon.fraser@apple.com>
1617 Reviewed by Eric Seidel
1619 Linear timing functions should have control points 0, 0, 1, 1.
1620 https://bugs.webkit.org/show_bug.cgi?id=20535
1622 * css/CSSStyleSelector.cpp:
1623 (WebCore::CSSStyleSelector::mapAnimationTimingFunction):
1624 * rendering/style/RenderStyle.h:
1626 2008-08-27 Adam Roben <aroben@apple.com>
1630 * WebCore.vcproj/WebCore.vcproj: Fix file extension.
1632 2008-08-26 Chris Fleizach <cfleizach@apple.com>
1634 Reviewed by Beth Dakin.
1636 <rdar://problem/6069462> REGRESSION: webkit is returning flash objects as AXUnknown
1638 Added platform-specific accessibilityIgnoreAttachment, which allows the platform
1639 to determine if an attachment is ignored through accessibility. Added equivalent
1640 methods in Gtk, Win and Mac
1642 Test: accessibility/plugin.html
1645 * WebCore.vcproj/WebCore.vcproj:
1646 * WebCore.xcodeproj/project.pbxproj:
1647 * page/AccessibilityObject.h:
1648 * page/AccessibilityRenderObject.cpp:
1649 (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
1650 * page/gtk/AccessibilityObjectAtk.cpp: Added.
1651 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
1652 * page/mac/AccessibilityObjectMac.mm: Added.
1653 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
1654 * page/mac/AccessibilityObjectWrapper.h:
1655 * page/win/AccessibilityObjectWin.cpp: Added.
1656 (WebCore::AccessibilityObject::accessibilityIgnoreAttachment):
1658 2008-08-26 Chris Fleizach <cfleizach@apple.com>
1660 Reviewed by Beth Dakin.
1662 <rdar://problem/5817770> can't bring up contextual menu for embedded objects in WebText
1664 * page/mac/AccessibilityObjectWrapper.mm:
1665 (-[AccessibilityObjectWrapper accessibilityPerformShowMenuAction]):
1666 (-[AccessibilityObjectWrapper accessibilityShowContextMenu]):
1668 2008-08-26 Chris Fleizach <cfleizach@apple.com>
1670 Reviewed by Darin Adler.
1672 <rdar://problem/6176924> CrashTracer: [USER] 4 crashes in Safari at com.apple.WebCore: WebCore::RenderTableSection::numColumns
1674 Tests: accessibility/table-notbody.html
1676 * page/AccessibilityTable.cpp:
1677 (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
1679 2008-08-26 Sam Weinig <sam@webkit.org>
1681 Reviewed by Beth Dakin.
1685 * dom/DOMCoreException.h:
1687 2008-08-26 Sam Weinig <sam@webkit.org>
1689 Reviewed by Oliver Hunt.
1691 Fix https://bugs.webkit.org/show_bug.cgi?id=20479
1692 <rdar://problem/6167660>
1693 Take image redirects into account when tainting the canvas.
1695 Test: http/tests/security/canvas-remote-read-redirect-to-remote-image.html
1697 * html/CanvasRenderingContext2D.cpp:
1698 (WebCore::CanvasRenderingContext2D::drawImage):
1699 (WebCore::CanvasRenderingContext2D::drawImageFromRect):
1701 2008-08-26 Sam Weinig <sam@webkit.org>
1703 Reviewed by Darin Adler.
1705 Change canvas tainting logic to ask the image if it contains
1706 any resources outside of its own origin. Since there is no
1707 way to determine if SVG images contain any resources outside its
1708 origin, we always assume it does.
1710 * html/CanvasRenderingContext2D.cpp:
1711 (WebCore::CanvasRenderingContext2D::drawImage):
1712 (WebCore::CanvasRenderingContext2D::drawImageFromRect):
1713 * platform/graphics/BitmapImage.h:
1714 (WebCore::BitmapImage::hasSingleSecurityOrigin):
1715 * platform/graphics/GeneratedImage.h:
1716 (WebCore::GeneratedImage::hasSingleSecurityOrigin):
1717 * platform/graphics/Image.h:
1718 (WebCore::Image::hasSingleSecurityOrigin):
1719 * platform/graphics/cg/PDFDocumentImage.h:
1720 (WebCore::PDFDocumentImage::hasSingleSecurityOrigin):
1721 * svg/graphics/SVGImage.h:
1723 2008-08-26 Maxime Britto <britto@apple.com>
1727 <rdar://6159244> Pan-scrolling does not work on particular sites (starmagazine.com, nytimes.com)
1728 This patch fixes the issues and modify the behavior of the panscroll by allowing it to jump to a parent layer when it reaches the end of its scrollable area.
1729 This is matching the behavior of the mouse wheel when trying to scroll in a smaller layer of the page (div, textarea, ...) and when we reach the edge and keep scrolling then the whole page scrolls.
1731 * page/EventHandler.cpp:
1732 (WebCore::EventHandler::updateAutoscrollRenderer): if we switch to the parent layer to do the scroll we want to change the renderer for the panning
1733 * page/EventHandler.h:
1734 * rendering/RenderLayer.cpp:
1735 (WebCore::RenderLayer::panScrollFromPoint): now calls the scrollByRecursively method when it has computed the xDelta and yDelta
1736 (WebCore::RenderLayer::scrollByRecursively): try to scroll the current layer by the xDelta and yDelta provided, if it can't it ask its parent layer to do so.
1737 * rendering/RenderLayer.h:
1738 * rendering/RenderObject.cpp:
1739 (WebCore::RenderObject::canBeProgramaticallyScrolled): a RenderObject must have a RenderLayer to be programatically scrolled
1740 (WebCore::RenderObject::autoscroll): No need to check for the layer anymore since we verify it's present in the upmentionned method
1741 (WebCore::RenderObject::panScroll): No need to check for the layer anymore too.
1743 2008-08-25 Julien Chaffraix <jchaffraix@webkit.org>
1747 Bug 20247: setAttributeNode() does not work when attribute name has a capital letter in it
1748 https://bugs.webkit.org/show_bug.cgi?id=20247
1750 <rdar://problem/6118218>
1752 Add a boolean parameter to getAttributeItem to choose between case sensitive and case insensitive
1753 check. This keeps the behaviour for setAttribute / hasAttribute (case sensitive) and getAttribute
1754 (case insensitive for HTML elements).
1756 Test: fast/dom/Element/getAttribute-check-case-sensitivity.html
1759 (WebCore::Element::getAttribute):
1760 * dom/NamedAttrMap.cpp:
1761 (WebCore::NamedAttrMap::getNamedItem):
1762 (WebCore::NamedAttrMap::getAttributeItem):
1763 * dom/NamedAttrMap.h:
1765 2008-08-25 Sam Weinig <sam@webkit.org>
1767 Reviewed by Oliver Hunt.
1769 Fix for https://bugs.webkit.org/show_bug.cgi?id=20514
1770 <rdar://problem/6174096>
1771 Treat SVG images as dirty when drawing to a canvas.
1773 Test: http/tests/security/canvas-remote-read-svg-image.html
1775 * html/CanvasRenderingContext2D.cpp:
1776 (WebCore::CanvasRenderingContext2D::drawImage):
1777 (WebCore::CanvasRenderingContext2D::drawImageFromRect):
1778 * platform/graphics/Image.h:
1779 (WebCore::Image::isSVGImage):
1780 * svg/graphics/SVGImage.h:
1781 (WebCore::SVGImage::isSVGImage):
1783 2008-08-25 Sam Weinig <sam@webkit.org>
1785 Reviewed by Mark Rowe.
1787 Fix https://bugs.webkit.org/show_bug.cgi?id=20377
1788 Leak in XMLHttpRequest.
1790 * xml/XMLHttpRequest.cpp:
1791 (WebCore::XMLHttpRequest::makeCrossSiteAccessRequestWithPreflight):
1793 2008-08-25 Brady Eidson <beidson@apple.com>
1797 Speculative fix for <rdar://problem/6173217>
1799 Moves the "clearArchivedResources()" call to exactly where it used to be in the old version of WebArchive code.
1800 Also, adds a null check for m_documentLoader since DocumentLoader::stopLoading() can end up clearing it, rendering
1801 the first null check invalid.
1803 * loader/FrameLoader.cpp:
1804 (WebCore::FrameLoader::stopAllLoaders):
1807 2008-08-25 Kevin McCullough <kmccullough@apple.com>
1811 <rdar://problem/6157711> Heavy/Tree view selector is not grayed out if
1812 there is no profile, can cause crash
1814 * page/inspector/ProfilesPanel.js:
1816 2008-08-25 Dean Jackson <dino@apple.com>
1818 Reviewed by Dave Hyatt
1820 Make sure 'inherit' is handled by transition property.
1821 https://bugs.webkit.org/show_bug.cgi?id=20513
1823 Test: transitions/inherit.html
1824 Test: transitions/inherit-other-props.html
1826 * css/CSSStyleSelector.cpp:
1827 fix macro to check existence of list before getting size
1829 2008-08-25 Anders Carlsson <andersca@apple.com>
1833 <rdar://problem/6149787> crash @ com.apple.JavaScriptCore: WTF::callOnMainThread + 37.
1835 Initialize threading in the call to WebCoreObjCFinalizeOnMainThread. We currently assume
1836 (safely) that any class that needs finalization on the main thread will also need to be deallocated
1837 on the main thread, and calling initializeThreading from WebCoreObjCFinalizeOnMainThread instead of
1838 calling it from WebCoreObjCScheduleDeallocateOnMainThread seems safer.
1840 * platform/mac/WebCoreObjCExtras.c:
1841 (WebCoreObjCFinalizeOnMainThread):
1843 2008-08-25 Antti Koivisto <antti@apple.com>
1845 Reviewed by Dan Bernstein.
1847 Rename CachedResource::referenced() to CachedResource::hasClients() to
1848 match previous ref() -> addClient() rename.
1851 (WebCore::Cache::pruneLiveResources):
1852 (WebCore::Cache::pruneDeadResources):
1853 (WebCore::Cache::remove):
1854 (WebCore::Cache::getStatistics):
1855 (WebCore::Cache::dumpLRULists):
1856 * loader/CachedResource.cpp:
1857 (WebCore::CachedResource::addClient):
1858 (WebCore::CachedResource::removeClient):
1859 (WebCore::CachedResource::setDecodedSize):
1860 (WebCore::CachedResource::setEncodedSize):
1861 * loader/CachedResource.h:
1862 (WebCore::CachedResource::hasClients):
1863 (WebCore::CachedResource::canDelete):
1865 2008-08-25 Anthony Ricaud <rik24d@gmail.com>
1867 Add a missing Inspector localized string for "other".
1869 https://bugs.webkit.org/show_bug.cgi?id=20509
1871 Reviewed by Tim Hatcher.
1873 * English.lproj/localizedStrings.js:
1875 2008-08-22 Kevin McCullough <kmccullough@apple.com>
1877 Reviewed by Geoff, Mark and Tim.
1879 <rdar://problem/6150623> JSProfiler: It would be nice if the profiles
1880 in the console said what file and line number they came from
1881 - Lay the foundation for getting line numbers and other data from the
1884 * ForwardingHeaders/VM: Added.
1885 * ForwardingHeaders/VM/Machine.h: Added.
1886 * page/Console.cpp: Gather the line number and file information when
1887 profileEnd has been called, but don't use it until didFinishProfiling is
1888 called. We won't need to wait once we remove the profiler "zombie" mode
1889 which this patch helps pave the foundation for.
1890 (WebCore::Console::Console):
1891 (WebCore::Console::profileEnd):
1892 (WebCore::Console::finishedProfiling):
1894 * page/InspectorController.cpp: Modify calls to
1895 addProfileMessageToConsole to satisfy the new arguments it takes.
1896 (WebCore::InspectorController::finishedProfiling):
1897 (WebCore::InspectorController::addProfile):
1898 (WebCore::InspectorController::addProfileMessageToConsole):
1899 (WebCore::InspectorController::finishedProfiling):
1900 * page/InspectorController.h:
1902 2008-08-25 Holger Hans Peter Freyther <zecke@selfish.org>
1906 [inspector] Update the WebKit.qrc Qt resources file
1907 Catchup with the changes in the directory.
1909 * page/inspector/WebKit.qrc:
1911 2008-08-25 Dirk Schulze <vbs85@gmx.de>
1915 Transformed the radian to degree, to get rotate()
1916 in canvas work as expected.
1918 [Qt] Canvas.rotate() doesn't work
1919 https://bugs.webkit.org/show_bug.cgi?id=20496
1921 * platform/graphics/qt/GraphicsContextQt.cpp:
1922 (WebCore::GraphicsContext::rotate):
1924 2008-08-24 Steve Falkenburg <sfalken@apple.com>
1926 Add a "last chance" WM_TIMER to the Windows shared timer.
1928 The last chance timer fires every 5 seconds to run any lost WM_TIMER based timers.
1929 Failure to fire a timer is fatal to the cross-platform Timer code, since it won't re-schedule
1930 timers if a timer with an earlier expiration is already pending. This results in no timers
1931 firing from that point on.
1933 We lose WM_TIMER messages occasionally (in the neighborhood of 1 per hour) probably due to a
1934 buggy window message hook.
1936 This timer will start when the first WM_TIMER is scheduled, and will
1937 fire every 5 seconds thereafter, causing any lost timers to be fired.
1939 Found this via one of its symptoms: leaking WebFrames. The fix prevents timers from stalling
1940 and prevents the WebFrame leak.
1942 Reviewed by Darin Adler, Geoff Garen.
1944 * platform/win/SharedTimerWin.cpp:
1946 (WebCore::TimerWindowWndProc):
1947 (WebCore::setSharedTimerFireTime):
1949 2008-08-24 Dan Bernstein <mitz@apple.com>
1951 Reviewed by Darin Adler.
1953 - fix <rdar://problem/6065547> REGRESSION (r34879): "Subject" in unread emails in Yahoo mail is not shown in bold
1955 Test: fast/css/font-property-priority.html
1957 * css/CSSParser.cpp:
1958 (WebCore::CSSParser::parseValue): Changed to pass the 'important' flag
1959 to the font-property-parsing functions.
1960 (WebCore::CSSParser::parseFontStyle): Added an 'important' argument and
1961 changed to use it rather than the m_important member.
1962 (WebCore::CSSParser::parseFontVariant): Ditto.
1963 (WebCore::CSSParser::parseFontWeight): Ditto.
1966 2008-08-24 Timothy Hatcher <timothy@apple.com>
1968 Fixes a bug where the Inspector's UI would not animate or
1969 fully function because JavaScript timeouts, intervals and
1970 CSS animation timers where not firing while paused at a
1971 a breakpoint in the inspected page.
1973 https://bugs.webkit.org/show_bug.cgi?id=20042
1975 Reviewed by Darin Adler.
1977 Test: manual-tests/inspector/forzen-ui-while-paused.html
1979 * page/JavaScriptDebugServer.cpp:
1980 (WebCore::JavaScriptDebugServer::pauseIfNeeded):
1981 Add a call to TimerBase::fireTimersInNestedEventLoop before
1982 spinning the EventLoop.
1984 2008-08-24 Rob Buis <buis@kde.org>
1986 Reviewed by Sam Weinig.
1988 https://bugs.webkit.org/show_bug.cgi?id=20324
1989 A change in SVG Glyph wont show up
1991 Invalidate the glyph cache when the d attribute is set.
1993 Test: svg/custom/glyph-setting-d-attribute.svg
1995 * svg/SVGGlyphElement.cpp:
1996 (WebCore::SVGGlyphElement::invalidateGlyphCache):
1997 (WebCore::SVGGlyphElement::parseMappedAttribute):
1998 (WebCore::SVGGlyphElement::insertedIntoDocument):
1999 (WebCore::SVGGlyphElement::removedFromDocument):
2000 * svg/SVGGlyphElement.h:
2002 2008-08-24 Dan Bernstein <mitz@apple.com>
2004 Reviewed by Sam Weinig.
2006 - fix https://bugs.webkit.org/show_bug.cgi?id=13864
2007 <rdar://problem/5451470> REGRESSION: Uninitialized value in RenderBlock::calcInlinePrefWidths()
2009 * rendering/RenderText.cpp:
2010 (WebCore::RenderText::trimmedPrefWidths): Moved the assignment to
2011 beginWS and endWS before the early return to ensure that they are
2012 initialized in that case.
2014 2008-08-23 Cameron Zwarich <cwzwarich@uwaterloo.ca>
2016 Rubber-stamped by Mark Rowe.
2021 * bridge/testbindings.cpp:
2023 * loader/SubstituteData.h:
2026 * page/ChromeClient.h:
2028 * page/FrameLoadRequest.h:
2029 * page/FrameTree.cpp:
2032 * page/mac/ChromeMac.mm:
2033 * platform/network/HTTPHeaderMap.h:
2034 * platform/network/ResourceErrorBase.cpp:
2035 * platform/network/ResourceErrorBase.h:
2036 * platform/network/ResourceHandleInternal.h:
2037 * platform/network/ResourceRequestBase.cpp:
2038 * platform/network/ResourceRequestBase.h:
2039 * platform/network/ResourceResponseBase.cpp:
2040 * platform/network/ResourceResponseBase.h:
2041 * platform/network/cf/ResourceError.h:
2042 * platform/network/cf/ResourceRequest.h:
2043 * platform/network/cf/ResourceRequestCFNet.h:
2044 * platform/network/cf/ResourceResponse.h:
2045 * platform/network/cf/ResourceResponseCFNet.h:
2046 * platform/network/curl/ResourceError.h:
2047 * platform/network/curl/ResourceRequest.h:
2048 * platform/network/curl/ResourceResponse.h:
2049 * platform/network/mac/ResourceError.h:
2050 * platform/network/mac/ResourceErrorMac.mm:
2051 * platform/network/mac/ResourceRequest.h:
2052 * platform/network/mac/ResourceRequestMac.mm:
2053 * platform/network/mac/ResourceResponse.h:
2054 * platform/network/mac/ResourceResponseMac.mm:
2055 * platform/network/qt/ResourceError.h:
2056 * platform/network/qt/ResourceRequest.h:
2057 * platform/network/qt/ResourceResponse.h:
2058 * platform/network/soup/CookieJarSoup.cpp:
2059 * platform/network/soup/ResourceError.h:
2060 * platform/network/soup/ResourceRequest.h:
2061 * platform/network/soup/ResourceResponse.h:
2063 2008-08-23 Dan Bernstein <mitz@apple.com>
2065 Reviewed by Dave Hyatt.
2067 - fix <rdar://problem/6065143> Reflowed image in first line of table doesn't affect baseline
2069 Test: fast/table/vertical-align-baseline.html
2071 * rendering/RenderTable.cpp:
2072 (WebCore::RenderTable::getBaselineOfFirstLineBox): Added. Returns the
2073 baseline of the first table row, if there is one, -1 otherwise.
2074 * rendering/RenderTable.h:
2075 * rendering/RenderTableCell.cpp:
2076 (WebCore::RenderTableCell::baselinePosition): Changed to follow the
2077 CSS2.1 definition of the baseline of a table cell.
2078 * rendering/RenderTableSection.cpp:
2079 (WebCore::RenderTableSection::getBaselineOfFirstLineBox): Added. Returns
2080 the baseline of the first row in the section.
2081 * rendering/RenderTableSection.h:
2083 2008-08-18 Jon Honeycutt <jhoneycutt@apple.com>
2085 Add SPI to make a Windows WebView transparent.
2087 Reviewed by Dan Bernstein.
2089 * platform/graphics/GraphicsContext.h: Add a parameter, hasAlpha, that
2090 determines whether the created context has an alpha channel.
2091 * platform/graphics/win/GraphicsContextCGWin.cpp:
2092 (WebCore::CGContextWithHDC):
2094 2008-08-22 Timothy Hatcher <timothy@apple.com>
2096 Rolls out r35834 because it caused a regression in the Inspector's
2097 Console where some expressions always threw a syntax error.
2099 https://bugs.webkit.org/show_bug.cgi?id=20487
2101 * page/inspector/Console.js:
2102 (Console.prototype._evalInInspectedWindow): Removes parenthesis
2103 around the expression.
2105 2008-08-22 Timothy Hatcher <timothy@apple.com>
2107 Makes getStyleProperty return a value for the overflow property
2108 when overflow-x and overflow-y are equal.
2110 https://bugs.webkit.org/show_bug.cgi?id=20485
2112 Reviewed by Dan Bernstein.
2114 Test: fast/css/overflow-property.html
2116 * css/CSSMutableStyleDeclaration.cpp:
2117 (WebCore::CSSMutableStyleDeclaration::getPropertyValue):
2119 2008-08-22 Timothy Hatcher <timothy@apple.com>
2121 Fixes a bug where while editing in the Inspector the
2122 sidebar scroll position would jump to the top.
2124 https://bugs.webkit.org/show_bug.cgi?id=20484
2126 Reviewed by Darin Adler.
2128 * page/inspector/treeoutline.js:
2129 (TreeOutline._removeChildren): Remove the offsetTop call that
2130 was forcing a layout, since layout causes scroll positions
2131 to be clamped to the new scrollHeight/Width. Layout will happen
2132 normally when needed.
2134 2008-08-22 Kevin Ollivier <kevino@theolliviers.com>
2136 wx build fix. Add AccessibilityTable sources.
2138 * WebCoreSources.bkl:
2140 2008-08-21 Dan Bernstein <mitz@apple.com>
2142 Reviewed by Jon Honeycutt and Alexey Proskuryakov.
2144 - fix <rdar://problem/6162701> WebKit should correct Geeza Pro's font metrics
2146 Test: platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment.html
2148 * platform/graphics/mac/SimpleFontDataMac.mm:
2149 (WebCore::SimpleFontData::platformInit): Add 8% to Geeza Pro's reported
2150 ascent and 100% to its reported descent.
2152 2008-08-21 Kalle Vahlman <kalle.vahlman@movial.com>
2154 Reviewed by Darin Adler.
2156 https://bugs.webkit.org/show_bug.cgi?id=20267
2157 [GTK] Crash on some pages due to a plugin
2159 Fix handling of badly formatted and empty plugin mime descriptions
2161 * plugins/gtk/PluginPackageGtk.cpp:
2162 (WebCore::PluginPackage::fetchInfo):
2164 2008-08-21 Kevin Watters <kevinwatters@gmail.com>
2166 Reviewed by Darin Adler.
2168 Follow other ports (and IE) in ImageSourceWx.cpp never to return an
2169 animated GIF frame duration of less than 50ms.
2171 * platform/graphics/wx/ImageSourceWx.cpp:
2172 (WebCore::ImageSource::frameDurationAtIndex):
2174 2008-08-21 Maxime Britto <britto@apple.com>
2176 Reviewed by Kevin McCullough.
2178 Test: fast/events/autoscroll-nonscrollable-iframe-in-scrollable-div.html
2179 https://bugs.webkit.org/show_bug.cgi?id=20451
2181 rdar://problem/6166435 Inspector doesn't auto scroll when selecting text (20451)
2182 When we climb up the rendering tree looking for a scrollable renderer, we need to be able to jump outside of an iframe.
2183 This way we can see if what is embedding the iframe can be scrolled even if the iframe content can't.
2185 * page/EventHandler.cpp:
2186 (WebCore::EventHandler::handleMouseDraggedEvent): when we reach the document node and it can't be scrolled we set the next parent as the document's owner element if it exists.
2188 (WebCore::EventHandler::handleMousePressEvent): ditto
2190 2008-08-21 Anthony Ricaud <rik24d@gmail.com>
2192 Small optimization for when the dividers in the Inspector's
2193 Resources panel are updated.
2195 Reviewed by Tim Hatcher.
2197 * page/inspector/ResourcesPanel.js:
2198 (WebInsector.ResourcesPanel.prototype._updateGraphDividersIfNeeded):
2199 Combind a for loop and clone the divider element.
2201 2008-08-21 Chris Marrin <cmarrin@apple.com>
2203 Allow 0 (without units) for Time eg. duration
2204 Fix for https://bugs.webkit.org/show_bug.cgi?id=20467
2206 Reviewed by Dave Hyatt.
2208 Test: css1/units/zero-duration-without-units.html
2210 * css/CSSParser.cpp:
2211 (WebCore::CSSParser::validUnit):
2213 2008-08-21 Timothy Hatcher <timothy@apple.com>
2215 Make deleting all text while editing a DOM attribute in
2216 the Inspector delete the attribute. This also fixes
2217 an exception that would happen before.
2219 https://bugs.webkit.org/show_bug.cgi?id=20472
2221 Reviewed by Kevin McCullough.
2223 * page/inspector/ElementsPanel.js:
2224 (WebInspector.DOMNodeTreeElement.prototype._attributeEditingCommitted):
2225 Don't check for hasAttributes on the parseElement, continuing
2226 through the function will correctly remove the attribute.
2227 If the parseElement is null, call _editingCancelled not
2228 editingCancelled, this fixes an exception.
2230 2008-08-21 Timothy Hatcher <timothy@apple.com>
2232 Update the Inspector's Metrics pane when editing in
2233 the Styles pane. This makes sure the metrics shown
2234 always match what the Styles pane shows.
2236 https://bugs.webkit.org/show_bug.cgi?id=20470
2238 Reviewed by Kevin McCullough.
2240 * page/inspector/ElementsPanel.js:
2241 (WebInspector.ElementsPanel): Add event listeners for
2242 the "style edited" and "style property toggled" events,
2243 so the Metrics pane is updated.
2244 (WebInspector.ElementsPanel.prototype._stylesPaneEdited):
2245 Update the Metrics pane.
2246 * page/inspector/StylesSidebarPane.js:
2247 (WebInspector.StylePropertyTreeElement.prototype.toggleEnabled):
2248 Dispatch the "style property toggled" event.
2249 (WebInspector.StylePropertyTreeElement.prototype.editingCancelled):
2250 Dispatch the "style edited" event when the CSS text is restored.
2251 (WebInspector.StylePropertyTreeElement.prototype.applyStyleText):
2252 Dispatch the "style edited" event.
2254 2008-08-21 Timothy Hatcher <timothy@apple.com>
2256 Make the Inspector's Metrics sidebar pane editable.
2258 https://bugs.webkit.org/show_bug.cgi?id=17218
2259 rdar://problem/5732818
2261 Reviewed by Kevin McCullough.
2263 * page/inspector/ElementsPanel.js:
2264 (WebInspector.ElementsPanel): Add an event listener for
2265 the "metrics edited" event, so the Styles pane is updated.
2266 * page/inspector/MetricsSidebarPane.js:
2267 (WebInspector.MetricsSidebarPane.prototype.update): Remember the node
2268 so future updates work. Add a double click event listener for the
2269 metric values to start editing.
2270 (WebInspector.MetricsSidebarPane.prototype.startEditing):
2271 Call WebInspector.startEditing with some context.
2272 (WebInspector.MetricsSidebarPane.prototype.editingCancelled):
2273 (WebInspector.MetricsSidebarPane.prototype.editingCommitted):
2274 Set the user input on the elements inline style. Fire the
2275 "metrics edited" event.
2277 2008-08-21 Steve Falkenburg <sfalken@apple.com>
2279 Fix a race condition in Windows timer code.
2280 Timer function could end up being called with a 0 timer, leading to a Windows exception.
2282 Don't post a timer message if one is already pending.
2284 Reviewed by Ada Chan.
2286 * platform/win/SharedTimerWin.cpp:
2287 (WebCore::TimerWindowWndProc):
2288 (WebCore::clearTimer):
2289 (WebCore::queueTimerProc):
2290 (WebCore::setSharedTimerFireTime):
2292 2008-08-21 Anthony Ricaud <rik24d@gmail.com>
2294 After trying to add the expression, try again with quotes for
2297 https://bugs.webkit.org/show_bug.cgi?id=20466
2299 Reviewed by Tim Hatcher.
2301 * page/inspector/ObjectPropertiesSection.js: Added an
2302 evaluateExpression function.
2304 2008-08-21 Anthony Ricaud <rik24d@gmail.com>
2306 Perform Inspector searches on search event to clear results when
2307 clicking the cross to empty it. Delete the lastQuery when the field
2308 is emptied in order to perform the search if exactly the same query
2311 https://bugs.webkit.org/show_bug.cgi?id=20462
2313 Reviewed by Tim Hatcher.
2315 * page/inspector/inspector.js:
2317 2008-08-21 Marco Barisione <marco.barisione@collabora.co.uk>
2319 Reviewed by Mark Rowe.
2321 http://bugs.webkit.org/show_bug.cgi?id=19656
2322 [SOUP] The gio code should call didFail() instead of
2323 didFinishLoading() in case of error
2325 In case of error call didFail() instead of didReceiveResponse() and
2328 * platform/network/soup/ResourceHandleSoup.cpp:
2329 (WebCore::networkErrorForFile):
2330 (WebCore::readCallback):
2331 (WebCore::openCallback):
2332 (WebCore::queryInfoCallback):
2334 2008-08-20 Mark Rowe <mrowe@apple.com>
2336 Reviewed by Jon Honeycutt.
2340 * bridge/c/c_instance.cpp:
2341 (KJS::Bindings::CInstance::getPropertyNames): Declare count as uint32_t rather than unsigned
2342 as that is what NPEnumerationFunctionPtr is declared as accepting.
2344 2008-08-20 Mark Rowe <mrowe@apple.com>
2346 Reviewed by Dan Bernstein.
2348 Build fix. Handle kCGInterpolationMedium in switch statements if it is available.
2350 * platform/graphics/GraphicsContext.h:
2352 * platform/graphics/cg/GraphicsContextCG.cpp:
2353 (WebCore::GraphicsContext::setImageInterpolationQuality):
2354 (WebCore::GraphicsContext::imageInterpolationQuality):
2356 2008-08-20 Dan Bernstein <mitz@apple.com>
2358 Rubber-stamped by John Sullivan.
2360 - rename shouldUpdateWhileHidden to shouldUpdateWhileOffscreen and
2361 rename related methods and variables accordingly.
2364 * page/FrameView.cpp:
2365 (WebCore::FrameViewPrivate::FrameViewPrivate):
2366 (WebCore::FrameView::shouldUpdateWhileOffscreen):
2367 (WebCore::FrameView::setShouldUpdateWhileOffscreen):
2369 * platform/ScrollView.h:
2370 * platform/mac/ScrollViewMac.mm:
2371 (WebCore::ScrollView::updateContents):
2373 2008-08-20 Brady Eidson <beidson@apple.com>
2375 Reviewed by Mitzpettel
2377 <rdar://problem/6163636> - Many images broken in Mail
2379 This can be traced back to the preload scanner. With that change, CachedResources are created a lot
2380 sooner than before and confuse the WebArchive machinery.
2382 When referencing WebArchive subresources directly through the WebKit API it is appropriate to ignore
2383 such CachedResources since they are placeholders and have not been submitted to the ResourceLoadDelegate
2384 machinery and nothing is known about where the data will eventually come from.
2386 * loader/DocumentLoader.cpp:
2387 (WebCore::DocumentLoader::subresource): Ignore a CachedResource if its preloadResult is
2388 CachedResource::PreloadReferenced.
2390 2008-08-20 Holger Hans Peter Freyther <zecke@selfish.org>
2392 Unreviewed compile fix
2394 Catch up with the JSValue::type elimination.
2396 * bridge/qt/qt_instance.cpp:
2397 (KJS::Bindings::QtRuntimeObjectImp::construct):
2398 (KJS::Bindings::QtInstance::defaultValue):
2399 * bridge/qt/qt_runtime.cpp:
2400 (KJS::Bindings::QtRuntimeConnectionMethod::call):
2402 2008-08-20 Chris Teague <chris.teague@gmail.com>
2404 Reviewed by Mark Rowe.
2406 Fix https://bugs.webkit.org/show_bug.cgi?id=20449
2407 Bug 20449: Build fails if LOW_BANDWIDTH_DISPLAY is defined
2410 * loader/FrameLoader.cpp:
2411 (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
2413 2008-08-20 Simon Fraser <simon.fraser@apple.com>
2415 Reviewed by Dave Hyatt
2417 getComputedStyle() for webkitTransform should return a transform
2418 that does not have the transform origin baked into it.
2419 https://bugs.webkit.org/show_bug.cgi?id=20464
2421 Test: fast/css/getComputedStyle-transform.html
2423 * css/CSSComputedStyleDeclaration.cpp:
2424 (WebCore::computedTransform):
2425 * rendering/style/RenderStyle.cpp:
2426 (WebCore::RenderStyle::applyTransform):
2427 * rendering/style/RenderStyle.h:
2429 2008-08-20 Josh Aas <joshmoz@gmail.com>
2431 Reviewed and landed by Anders.
2433 <rdar://problem/6163636>
2434 rename NPCocoaEvent's "event" struct to "data" (20446)
2439 2008-08-20 Beth Dakin <bdakin@apple.com>
2443 Fix for <rdar://problem/6145626>
2444 This patch fixes a number of remaining problems getting
2445 disconnected frames to work correctly with markAllMatchesForText()
2446 and findString(). Details inline.
2448 This was a static helper function in Frame, but this patch requires
2449 the same functionality in Editor, so I just added it as a function
2452 (WebCore::Node::isInShadowTree):
2455 * editing/Editor.cpp:
2456 (WebCore::Editor::insideVisibleArea): Returns false if
2457 excludeFromTextSearch() is true.
2459 In a normal (non-disconnected) frame, findString returns a range of
2460 the document node if the text is not found in the frame. I changed
2461 firstVisibleRange and lastVisibleRange to match that behavior when
2462 the text is not found
2463 (WebCore::Editor::firstVisibleRange):
2464 (WebCore::Editor::lastVisibleRange):
2466 Here are the bulk of the changes in the patch. A lot of text was
2467 not being found in disconnected frames because I failed to account
2468 for all of the possible problems associated with shadow trees. That
2470 (WebCore::Editor::nextVisibleRange):
2473 excludeFromTextSearch() is new. It allows a WebKit client to mark a
2474 frame as not-text-searchable through SPI.
2477 (WebCore::Frame::excludeFromTextSearch):
2478 (WebCore::Frame::setExcludeFromTextSearch):
2479 (WebCore::FramePrivate::FramePrivate):
2481 * page/FramePrivate.h:
2483 (WebCore::Frame::findString):
2484 (WebCore::Frame::markAllMatchesForText): I kept running into an
2485 assertion failure in paining code because of the forced paint on
2486 empty visible rects.
2488 2008-08-20 Timothy Hatcher <timothy@apple.com>
2490 Adds a positon box to the Inspector's Metrics sidebar
2491 pane. When an element is not statically positioned, there
2492 is now a position box that show top, right, bottom and
2493 left computed values.
2495 Reviewed by Kevin McCullough.
2497 * English.lproj/localizedStrings.js: Updated the strings.
2498 * page/inspector/MetricsSidebarPane.js:
2499 (WebInspector.MetricsSidebarPane.prototype.update):
2500 Renamed the boxPartValue function to createBoxPartElement
2501 and made it create the entire element. Made it understand
2502 how to get position style properties. Don't use the figure dash
2503 when 0px is used for positions, since the 0 is meaningful there.
2504 Instead use the figure dash when a position is auto.
2505 * page/inspector/inspector.css: Added a new rule for position.
2507 2008-08-20 Chris Fleizach <cfleizach@apple.com>
2509 Reviewed by Beth Dakin
2515 2008-08-20 Dan Bernstein <mitz@apple.com>
2517 Reviewed by Anders Carlsson.
2519 - avoid using a deprecated NSScroller method on Leopard
2521 * platform/mac/PlatformScrollBarMac.mm:
2522 (WebCore::PlatformScrollbar::updateThumbPosition):
2523 (WebCore::PlatformScrollbar::updateThumbProportion):
2525 2008-08-20 Jan Michael Alonzo <jmalonzo@webkit.org>
2527 Reviewed by Oliver Hunt.
2532 * page/AccessibilityTable.cpp: Change nil to 0
2533 (WebCore::AccessibilityTable::cellForColumnAndRow):
2535 2008-08-19 Alexey Proskuryakov <ap@webkit.org>
2537 Reviewed by Geoff Garen.
2539 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
2541 * ForwardingHeaders/kjs/JSLock.h: Added.
2542 * WebCore.vcproj/WebCore.vcproj:
2543 * bindings/js/GCController.cpp:
2545 (WebCore::GCController::gcTimerFired):
2546 (WebCore::GCController::garbageCollectNow):
2547 * bindings/js/JSCustomSQLStatementCallback.cpp:
2548 (WebCore::JSCustomSQLStatementCallback::handleEvent):
2549 * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
2550 (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
2551 * bindings/js/JSCustomSQLTransactionCallback.cpp:
2552 (WebCore::JSCustomSQLTransactionCallback::handleEvent):
2553 * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
2554 (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
2555 * bindings/js/JSCustomVoidCallback.cpp:
2556 (WebCore::JSCustomVoidCallback::handleEvent):
2557 * bindings/js/JSCustomXPathNSResolver.cpp:
2558 (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
2559 * bindings/js/JSDOMWindowBase.cpp:
2560 (WebCore::DOMWindowTimer::~DOMWindowTimer):
2561 (WebCore::JSDOMWindowBase::clear):
2562 (WebCore::JSDOMWindowBase::timerFired):
2563 * bindings/js/JSEventCustom.cpp:
2565 * bindings/js/JSEventListener.cpp:
2566 (WebCore::JSAbstractEventListener::handleEvent):
2567 * bindings/js/JSNSResolver.cpp:
2568 (WebCore::JSNSResolver::lookupNamespaceURI):
2569 * bindings/js/JSNodeFilterCondition.cpp:
2570 (WebCore::JSNodeFilterCondition::acceptNode):
2571 * bindings/js/ScheduledAction.cpp:
2572 (WebCore::ScheduledAction::execute):
2573 * bindings/js/ScriptController.cpp:
2574 (WebCore::ScriptController::evaluate):
2575 (WebCore::ScriptController::clearWindowShell):
2576 (WebCore::ScriptController::createHTMLEventHandler):
2577 (WebCore::ScriptController::createSVGEventHandler):
2578 (WebCore::ScriptController::initScript):
2579 (WebCore::ScriptController::updateDocument):
2580 (WebCore::ScriptController::bindingRootObject):
2581 (WebCore::ScriptController::windowScriptNPObject):
2582 (WebCore::ScriptController::createScriptObjectForPluginElement):
2583 (WebCore::ScriptController::clearScriptObjects):
2584 * bindings/js/ScriptControllerMac.mm:
2585 (WebCore::ScriptController::windowScriptObject):
2586 * bindings/objc/WebScriptObject.mm:
2588 (-[WebScriptObject callWebScriptMethod:withArguments:]):
2589 (-[WebScriptObject evaluateWebScript:]):
2590 (-[WebScriptObject setValue:forKey:]):
2591 (-[WebScriptObject valueForKey:]):
2592 (-[WebScriptObject removeWebScriptKey:]):
2593 (-[WebScriptObject stringRepresentation]):
2594 (-[WebScriptObject webScriptValueAtIndex:]):
2595 (-[WebScriptObject setWebScriptValueAtIndex:value:]):
2596 (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
2597 * bridge/NP_jsobject.cpp:
2598 (_NPN_InvokeDefault):
2603 (_NPN_RemoveProperty):
2607 * bridge/c/c_class.cpp:
2608 (KJS::Bindings::CClass::~CClass):
2609 (KJS::Bindings::CClass::methodsNamed):
2610 (KJS::Bindings::CClass::fieldNamed):
2611 * bridge/c/c_instance.cpp:
2612 (KJS::Bindings::CInstance::invokeMethod):
2613 (KJS::Bindings::CInstance::invokeDefaultMethod):
2614 (KJS::Bindings::CInstance::getPropertyNames):
2615 * bridge/c/c_runtime.cpp:
2616 (KJS::Bindings::CField::valueFromInstance):
2617 (KJS::Bindings::CField::setValueToInstance):
2618 * bridge/c/c_utility.cpp:
2619 (KJS::Bindings::convertValueToNPVariant):
2620 (KJS::Bindings::convertNPVariantToValue):
2621 * bridge/jni/jni_class.cpp:
2622 (JavaClass::JavaClass):
2623 (JavaClass::~JavaClass):
2624 * bridge/jni/jni_instance.cpp:
2625 (JavaInstance::stringValue):
2626 * bridge/jni/jni_jsobject.mm:
2627 (JavaJSObject::call):
2628 (JavaJSObject::eval):
2629 (JavaJSObject::getMember):
2630 (JavaJSObject::setMember):
2631 (JavaJSObject::removeMember):
2632 (JavaJSObject::getSlot):
2633 (JavaJSObject::setSlot):
2634 (JavaJSObject::toString):
2635 (JavaJSObject::convertValueToJObject):
2636 (JavaJSObject::convertJObjectToValue):
2637 * bridge/jni/jni_objc.mm:
2638 (KJS::Bindings::dispatchJNICall):
2639 * bridge/jni/jni_runtime.cpp:
2641 (JavaMethod::signature):
2642 * bridge/jni/jni_runtime.h:
2643 (KJS::Bindings::JavaString::JavaString):
2644 (KJS::Bindings::JavaString::_commonInit):
2645 (KJS::Bindings::JavaString::~JavaString):
2646 (KJS::Bindings::JavaString::UTF8String):
2647 * bridge/jni/jni_utility.cpp:
2648 (KJS::Bindings::convertValueToJValue):
2649 * bridge/npruntime.cpp:
2650 (_NPN_GetStringIdentifier):
2651 * bridge/objc/objc_instance.mm:
2652 (ObjcInstance::moveGlobalExceptionToExecState):
2653 (ObjcInstance::invokeMethod):
2654 (ObjcInstance::invokeDefaultMethod):
2655 (ObjcInstance::setValueOfUndefinedField):
2656 (ObjcInstance::getValueOfUndefinedField):
2657 * bridge/objc/objc_runtime.mm:
2658 (ObjcField::valueFromInstance):
2659 (ObjcField::setValueToInstance):
2660 * bridge/objc/objc_utility.mm:
2661 (KJS::Bindings::convertValueToObjcValue):
2662 (KJS::Bindings::convertNSStringToString):
2663 (KJS::Bindings::convertObjcValueToValue):
2664 * bridge/qt/qt_instance.cpp:
2665 (KJS::Bindings::QtRuntimeObjectImp::removeFromCache):
2666 (KJS::Bindings::QtInstance::~QtInstance):
2667 (KJS::Bindings::QtInstance::getQtInstance):
2668 (KJS::Bindings::QtInstance::getRuntimeObject):
2669 * bridge/qt/qt_runtime.cpp:
2670 (KJS::Bindings::convertValueToQVariant):
2671 (KJS::Bindings::convertQVariantToValue):
2672 (KJS::Bindings::QtRuntimeMetaMethod::call):
2673 (KJS::Bindings::QtRuntimeConnectionMethod::call):
2674 (KJS::Bindings::QtConnectionObject::QtConnectionObject):
2675 (KJS::Bindings::QtConnectionObject::execute):
2676 * bridge/runtime.cpp:
2677 (KJS::Bindings::Instance::createRuntimeObject):
2678 * bridge/testbindings.cpp:
2680 * bridge/testbindings.mm:
2682 * bridge/testqtbindings.cpp:
2685 (WebCore::Document::~Document):
2687 (WebCore::Node::setDocument):
2688 * history/CachedPage.cpp:
2689 (WebCore::CachedPage::CachedPage):
2690 (WebCore::CachedPage::restore):
2691 (WebCore::CachedPage::clear):
2692 * loader/FrameLoader.cpp:
2693 (WebCore::getString):
2694 * page/InspectorController.cpp:
2695 (WebCore::ConsoleMessage::ConsoleMessage):
2696 (WebCore::XMLHttpRequestResource::XMLHttpRequestResource):
2697 (WebCore::XMLHttpRequestResource::~XMLHttpRequestResource):
2698 (WebCore::getResourceDocumentNode):
2700 (WebCore::inspectedWindow):
2701 (WebCore::wrapCallback):
2702 (WebCore::currentCallFrame):
2703 (WebCore::profiles):
2704 (WebCore::InspectorController::focusNode):
2705 (WebCore::InspectorController::inspectedWindowScriptObjectCleared):
2706 (WebCore::InspectorController::addDatabaseScriptResource):
2707 (WebCore::InspectorController::addScriptProfile):
2708 * page/JavaScriptCallFrame.cpp:
2709 (WebCore::JavaScriptCallFrame::evaluate):
2710 * page/JavaScriptProfileNode.cpp:
2711 (WebCore::getTotalTime):
2712 (WebCore::getSelfTime):
2713 (WebCore::getTotalPercent):
2714 (WebCore::getSelfPercent):
2715 (WebCore::getNumberOfCalls):
2716 (WebCore::getChildren):
2717 (WebCore::getVisible):
2719 * page/mac/FrameMac.mm:
2720 * plugins/PluginView.cpp:
2721 (WebCore::PluginView::start):
2722 (WebCore::getString):
2723 (WebCore::PluginView::performRequest):
2724 (WebCore::PluginView::bindingInstance):
2725 * plugins/gtk/PluginViewGtk.cpp:
2726 (WebCore::PluginView::paint):
2727 (WebCore::PluginView::handleKeyboardEvent):
2728 (WebCore::PluginView::handleMouseEvent):
2729 (WebCore::PluginView::setNPWindowRect):
2730 (WebCore::PluginView::stop):
2731 (WebCore::PluginView::init):
2732 * plugins/qt/PluginViewQt.cpp:
2733 (WebCore::PluginView::setNPWindowRect):
2734 (WebCore::PluginView::stop):
2735 (WebCore::PluginView::init):
2736 * plugins/win/PluginViewWin.cpp:
2737 (WebCore::PluginView::dispatchNPEvent):
2738 (WebCore::PluginView::handleKeyboardEvent):
2739 (WebCore::PluginView::handleMouseEvent):
2740 (WebCore::PluginView::setNPWindowRect):
2741 (WebCore::PluginView::stop):
2742 * xml/XMLHttpRequest.cpp:
2743 (WebCore::XMLHttpRequest::clearResponse):
2744 (WebCore::XMLHttpRequest::didFinishLoading):
2745 (WebCore::XMLHttpRequest::didReceiveData):
2747 2008-08-19 Eric Seidel <eric@webkit.org>
2749 Reviewed by Geoff Garen.
2751 Add the beginnings of Skia graphics support to WebCore
2752 as I try to begin the long process of un-forking the changes
2753 needed to WebCore to make Andriod's WebCore build.
2755 I'll follow this up with actual *Skia.cpp files in a separate patch.
2757 * platform/graphics/AffineTransform.h:
2758 * platform/graphics/FloatPoint.h:
2759 * platform/graphics/FloatRect.h:
2760 * platform/graphics/Gradient.h:
2761 * platform/graphics/GraphicsContext.h:
2762 * platform/graphics/Image.h:
2763 * platform/graphics/ImageBuffer.h:
2764 * platform/graphics/ImageSource.h:
2765 * platform/graphics/IntPoint.h:
2766 * platform/graphics/IntRect.h:
2767 * platform/graphics/Path.h:
2768 * platform/graphics/Pattern.h:
2769 * svg/graphics/SVGPaintServerPattern.h:
2770 * svg/graphics/SVGPaintServerSolid.h:
2772 2008-08-19 Steve Falkenburg <sfalken@apple.com>
2774 Fix Windows build more.
2776 * WebCore.vcproj/WebCore.vcproj:
2778 2008-08-19 Steve Falkenburg <sfalken@apple.com>
2782 * page/AccessibilityRenderObject.cpp:
2783 (WebCore::AccessibilityRenderObject::canSetFocusAttribute):
2785 2008-08-19 Chris Fleizach <cfleizach@apple.com>
2787 Reviewed by Beth Dakin.
2789 <rdar://problem/4003764> Expose tables as AXTables
2791 Tests: accessibility/table-attributes.html
2792 accessibility/table-cell-spans.html
2793 accessibility/table-cells.html
2794 accessibility/table-detection.html
2795 accessibility/table-sections.html
2796 accessibility/table-with-rules.html
2798 * WebCore.xcodeproj/project.pbxproj:
2799 * page/AXObjectCache.cpp:
2800 (WebCore::AXObjectCache::get):
2801 * page/AccessibilityObject.h:
2803 (WebCore::AccessibilityObject::isDataTable):
2804 (WebCore::AccessibilityObject::isTableRow):
2805 (WebCore::AccessibilityObject::isTableColumn):
2806 (WebCore::AccessibilityObject::isTableCell):
2807 * page/AccessibilityRenderObject.cpp:
2808 (WebCore::AccessibilityRenderObject::canSetFocusAttribute):
2809 * page/AccessibilityTable.cpp: Added.
2810 (WebCore::AccessibilityTable::AccessibilityTable):
2811 (WebCore::AccessibilityTable::~AccessibilityTable):
2812 (WebCore::AccessibilityTable::create):
2813 (WebCore::AccessibilityTable::isTableExposableThroughAccessibility):
2814 (WebCore::AccessibilityTable::clearChildren):
2815 (WebCore::AccessibilityTable::addChildren):
2816 (WebCore::AccessibilityTable::headerContainer):
2817 (WebCore::AccessibilityTable::columns):
2818 (WebCore::AccessibilityTable::rows):
2819 (WebCore::AccessibilityTable::rowHeaders):
2820 (WebCore::AccessibilityTable::columnHeaders):
2821 (WebCore::AccessibilityTable::cells):
2822 (WebCore::AccessibilityTable::columnCount):
2823 (WebCore::AccessibilityTable::rowCount):
2824 (WebCore::AccessibilityTable::cellForColumnAndRow):
2825 (WebCore::AccessibilityTable::roleValue):
2826 (WebCore::AccessibilityTable::accessibilityIsIgnored):
2827 (WebCore::AccessibilityTable::title):
2828 (WebCore::AccessibilityTable::isDataTable):
2829 * page/AccessibilityTable.h: Added.
2830 * page/AccessibilityTableCell.cpp: Added.
2831 (WebCore::AccessibilityTableCell::AccessibilityTableCell):
2832 (WebCore::AccessibilityTableCell::~AccessibilityTableCell):
2833 (WebCore::AccessibilityTableCell::create):
2834 (WebCore::AccessibilityTableCell::accessibilityIsIgnored):
2835 (WebCore::AccessibilityTableCell::rowIndexRange):
2836 (WebCore::AccessibilityTableCell::columnIndexRange):
2837 * page/AccessibilityTableCell.h: Added.
2838 (WebCore::AccessibilityTableCell::isTableCell):
2839 (WebCore::AccessibilityTableCell::roleValue):
2840 * page/AccessibilityTableColumn.cpp: Added.
2841 (WebCore::AccessibilityTableColumn::AccessibilityTableColumn):
2842 (WebCore::AccessibilityTableColumn::~AccessibilityTableColumn):
2843 (WebCore::AccessibilityTableColumn::create):
2844 (WebCore::AccessibilityTableColumn::setParentTable):
2845 (WebCore::AccessibilityTableColumn::elementRect):
2846 (WebCore::AccessibilityTableColumn::size):
2847 (WebCore::AccessibilityTableColumn::children):
2848 (WebCore::AccessibilityTableColumn::headerObject):
2849 (WebCore::AccessibilityTableColumn::headerObjectForSection):
2850 (WebCore::AccessibilityTableColumn::addChildren):
2851 * page/AccessibilityTableColumn.h: Added.
2852 (WebCore::AccessibilityTableColumn::parentObject):
2853 (WebCore::AccessibilityTableColumn::roleValue):
2854 (WebCore::AccessibilityTableColumn::accessibilityIsIgnored):
2855 (WebCore::AccessibilityTableColumn::isTableColumn):
2856 (WebCore::AccessibilityTableColumn::setColumnIndex):
2857 (WebCore::AccessibilityTableColumn::columnIndex):
2858 * page/AccessibilityTableHeaderContainer.cpp: Added.
2859 (WebCore::AccessibilityTableHeaderContainer::AccessibilityTableHeaderContainer):
2860 (WebCore::AccessibilityTableHeaderContainer::~AccessibilityTableHeaderContainer):
2861 (WebCore::AccessibilityTableHeaderContainer::create):
2862 (WebCore::AccessibilityTableHeaderContainer::children):
2863 (WebCore::AccessibilityTableHeaderContainer::elementRect):
2864 (WebCore::AccessibilityTableHeaderContainer::size):
2865 (WebCore::AccessibilityTableHeaderContainer::addChildren):
2866 * page/AccessibilityTableHeaderContainer.h: Added.
2867 (WebCore::AccessibilityTableHeaderContainer::roleValue):
2868 (WebCore::AccessibilityTableHeaderContainer::setParentTable):
2869 (WebCore::AccessibilityTableHeaderContainer::parentObject):
2870 (WebCore::AccessibilityTableHeaderContainer::accessibilityIsIgnored):
2871 * page/AccessibilityTableRow.cpp: Added.
2872 (WebCore::AccessibilityTableRow::AccessibilityTableRow):
2873 (WebCore::AccessibilityTableRow::~AccessibilityTableRow):
2874 (WebCore::AccessibilityTableRow::create):
2875 (WebCore::AccessibilityTableRow::accessibilityIsIgnored):
2876 (WebCore::AccessibilityTableRow::headerObject):
2877 * page/AccessibilityTableRow.h: Added.
2878 (WebCore::AccessibilityTableRow::isTableRow):
2879 (WebCore::AccessibilityTableRow::roleValue):
2880 (WebCore::AccessibilityTableRow::setRowIndex):
2881 (WebCore::AccessibilityTableRow::rowIndex):
2882 * page/mac/AccessibilityObjectWrapper.mm:
2883 (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
2885 (-[AccessibilityObjectWrapper roleDescription]):
2886 (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
2887 (-[AccessibilityObjectWrapper accessibilityParameterizedAttributeNames]):
2888 (-[AccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
2890 2008-08-19 Steve Falkenburg <sfalken@apple.com>
2893 Add buildfailed support to stop builds early (preventing inaccurate error messages).
2894 Add missing post-build rule to Release.
2896 * WebCore.vcproj/QTMovieWin.vcproj:
2898 2008-08-19 Keishi Hattori <casey.hattori@gmail.com>
2900 Added support for console.count in the inspector.
2902 Reviewed by Geoff Garen.
2905 (WebCore::Console::count):
2907 * page/Console.idl: Added console.count.
2908 * page/InspectorController.cpp:
2909 (WebCore::InspectorController::didCommitLoad): Clears m_counts.
2910 (WebCore::InspectorController::count): Updates the count number
2911 sing "title@source:line" as the identifier, and adds a
2912 message to the console.
2913 * page/InspectorController.h: Added m_counts.
2915 2008-08-19 Keishi Hattori <casey.hattori@gmail.com>
2917 Clear console.time timers when changing page.
2919 Reviewed by Geoff Garen.
2921 * page/InspectorController.cpp:
2922 (WebCore::InspectorController::didCommitLoad):
2924 2008-08-19 Eric Carlson <eric.carlson@apple.com>
2928 Fix for <rdar://problem/6154695> Full-page movies flicker while playing
2929 https://bugs.webkit.org/show_bug.cgi?id=20404
2931 Ignore setVisible() when visibility doesn't change.
2933 * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
2934 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
2935 (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
2936 (WebCore::MediaPlayerPrivate::setVisible):
2938 2008-08-19 Timothy Hatcher <timothy@apple.com>
2940 Fixes a bug in the Profile view where switching sort order, then
2941 switching from heavy to tree mode would show the tree in the
2942 previous sort order.
2944 https://bugs.webkit.org/show_bug.cgi?id=20441
2946 Reviewed by Kevin McCullough.
2948 * page/inspector/ProfileView.js:
2949 (WebInspector.ProfileView.prototype._changeView): Call _sortProfile
2950 on the next profile before assigning it to this.profile.
2951 (WebInspector.ProfileView.prototype._sortData): Call _sortProfile.
2952 (WebInspector.ProfileView.prototype._sortProfile): Moves from
2953 _sortData and takes a profile argument. If the profile passed in
2954 matches the this.profile, then call refresh.
2956 2008-08-18 Timothy Hatcher <timothy@apple.com>
2958 Changed the default sort order now that heavy view is the default.
2959 Also fixes a bug where the heavy profile was not sorted at first.
2961 https://bugs.webkit.org/show_bug.cgi?id=20440
2963 Reviewed by Kevin McCullough.
2965 * page/inspector/ProfileView.js:
2966 (WebInspector.ProfileView): Changed the default sort column. Also assign
2967 heavyProfile to profile, so the sortSelfTimeDescending call happens
2968 on the heavy profile before assigning to this.profile.
2970 2008-08-18 Timothy Hatcher <timothy@apple.com>
2972 Add support for editing DOM properties and scope variables by double
2973 clicking a property to enter edit mode.
2975 https://bugs.webkit.org/show_bug.cgi?id=20415
2977 Reviewed by Kevin McCullough.
2979 * page/inspector/ObjectPropertiesSection.js:
2980 (WebInspector.ObjectPropertiesSection): Set editable to true by default.
2981 (WebInspector.ObjectPropertiesSection.prototype.onpopulate):
2982 Factored out code into update, and calls update.
2983 (WebInspector.ObjectPropertiesSection.prototype.update): Moved from onpopulate.
2984 Call removeChildren since this method can be called multiple times now.
2985 (WebInspector.ObjectPropertyTreeElement): Pass an empty title, the title
2986 gets made later in onattach.
2987 (WebInspector.ObjectPropertyTreeElement.prototype.onpopulate): Don't return early
2988 if shouldRefreshChildren is true. Call removeChildren since this method can be
2989 called multiple times now.
2990 (WebInspector.ObjectPropertyTreeElement.prototype.ondblclick): Call startEditing.
2991 (WebInspector.ObjectPropertyTreeElement.prototype.onattach): Call update.
2992 (WebInspector.ObjectPropertyTreeElement.prototype.update): Update the title for
2993 this element (code moved from the constructor.)
2994 (WebInspector.ObjectPropertyTreeElement.prototype.updateSiblings): Recreate all
2995 sibling property elements.
2996 (WebInspector.ObjectPropertyTreeElement.prototype.startEditing): Call
2997 WebInspector.startEditing after rememebring some context.
2998 (WebInspector.ObjectPropertyTreeElement.prototype.editingEnded): Reset the scrollLeft
2999 for the list element, since it might have scrolled during editing.
3000 (WebInspector.ObjectPropertyTreeElement.prototype.editingCancelled): Call editingEnded
3001 then restore the state from the context. Then call update to restore the title.
3002 (WebInspector.ObjectPropertyTreeElement.prototype.editingCommitted): Call editingCancelled
3003 if the user input and the previous input are the same. Call editingEnded, then call applyExpression
3004 to commit the user input.
3005 (WebInspector.ObjectPropertyTreeElement.prototype.applyExpression): Evaluates the input expression
3006 and stores the result on the object for the property name of this element. If the expression is
3007 empty, delete the property and remove the tree element.
3008 * page/inspector/ScopeChainSidebarPane.js:
3009 (WebInspector.ScopeChainSidebarPane.prototype.update): Set the editInSelectedCallFrameWhenPaused
3010 property on each ObjectPropertiesSection.
3011 (WebInspector.ScopeVariableTreeElement.prototype.onattach): Call ObjectPropertyTreeElement's onattach
3012 since it is now implemented.
3013 * page/inspector/ScriptsPanel.js:
3014 (WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame): Added an updateInterface argument
3015 that defaults to true if omitted. It specifies whether to call update on the scope chain.
3016 * page/inspector/inspector.css: New styles.
3017 * page/inspector/treeoutline.js:
3018 (TreeElement.prototype._attach): Fixed an exception that fired when handling the shouldRefreshChildren
3019 change. The nextSibling would exist but have a _listItemNode that didn't match the new parent.
3021 2008-08-18 Timothy Hatcher <timothy@apple.com>
3023 Surround the expression to be evaluated in parenthesis so the
3024 result of the eval is the result of the whole expression not
3025 the last potential sub-expression. So evaluating {x: 123}
3026 will show the Object not 123.
3028 https://bugs.webkit.org/show_bug.cgi?id=20428
3030 Reviewed by Kevin McCullough.
3032 * page/inspector/Console.js:
3033 (Console.prototype._evalInInspectedWindow): Add parenthesis
3034 around the expression. And add couple comments.
3036 2008-08-19 Kevin McCullough <kmccullough@apple.com>
3040 -Implement a page() function to extract a common code pattern.
3042 * WebCore.xcodeproj/project.pbxproj:
3044 (WebCore::Console::addMessage):
3045 (WebCore::Console::error):
3046 (WebCore::Console::info):
3047 (WebCore::Console::log):
3048 (WebCore::Console::dir):
3049 (WebCore::Console::assertCondition):
3050 (WebCore::Console::time):
3051 (WebCore::Console::timeEnd):
3052 (WebCore::Console::group):
3053 (WebCore::Console::groupEnd):
3054 (WebCore::Console::finishedProfiling):
3055 (WebCore::Console::warn):
3056 (WebCore::Console::framePage):
3059 2008-08-12 Darin Adler <darin@apple.com>
3063 - eliminate JSValue::type()
3065 * bridge/c/c_instance.cpp:
3066 (KJS::Bindings::CInstance::defaultValue): Take PreferredPrimitiveType
3067 argument instead of JSType argument. Removed unneeded code to handle
3068 boolean, since that's never passed.
3069 * bridge/c/c_instance.h: Ditto.
3071 * bridge/c/c_utility.cpp:
3072 (KJS::Bindings::convertValueToNPVariant): Use JSValue::is functions
3073 instead of JSValue::type(). Removed unneeded code to handle
3076 * bridge/jni/jni_instance.cpp:
3077 (JavaInstance::defaultValue): Take PreferredPrimitiveType argument
3078 instead of JSType argument. Removed unneeded code to handle boolean.
3079 * bridge/jni/jni_instance.h: Ditto.
3081 * bridge/jni/jni_jsobject.mm:
3082 (JavaJSObject::convertValueToJObject): Use JSValue::is functions
3083 instead of JSValue::type().
3085 * bridge/objc/objc_instance.h: Take PreferredPrimitiveType argument
3086 instead of JSType argument. Removed unused argument.
3087 * bridge/objc/objc_instance.mm:
3088 (ObjcInstance::getValueOfUndefinedField): Removed unused argument.
3089 (ObjcInstance::defaultValue): Take PreferredPrimitiveType argument
3090 instead of JSType argument. Removed unneeded code to handle boolean
3091 and another dead code path for unknown types.
3093 * bridge/objc/objc_runtime.h: Take PreferredPrimitiveType argument
3094 instead of JSType argument. Removed override of type() that caused
3095 the fallback object to return "UndefinedType" when there is no
3096 invokeUndefinedMethodFromWebScript:withArguments: method defined.
3097 That didn't accomplish much, since most checks for undefined don't
3099 * bridge/objc/objc_runtime.mm:
3100 (ObjcFallbackObjectImp::defaultValue): Ditto.
3102 * bridge/qt/qt_instance.cpp:
3103 (KJS::Bindings::QtInstance::defaultValue): Take PreferredPrimitiveType
3104 argument instead of JSType argument. Removed unneeded code to handle
3106 * bridge/qt/qt_instance.h: Ditto.
3109 (KJS::Bindings::Instance::getValueOfUndefinedField): Removed
3111 * bridge/runtime_object.cpp:
3112 (RuntimeObjectImp::defaultValue): Take PreferredPrimitiveType
3113 argument instead of JSType argument.
3114 * bridge/runtime_object.h: Ditto.
3116 2008-08-18 Maxime Britto <britto@apple.com>
3120 <rdar://6157207> Mouse pointer does not change when new window is opened after pan-scrolling original window
3121 Related to the discussion from rdar://6102511 , we should disable every key event (except for the esc key which stops the panning).
3122 We shouldn't be able to create another window while we are in pan scrolling.
3123 Other browsers behaviors :
3124 FF3 : Most of the keys are disabled, there is no way to create another window while in panscroll mode
3125 IE7 : Keys are not disabled but stops immediately the panning.
3126 This patch matches FF3 behavior by disabling every key but the esc key.
3128 * page/EventHandler.cpp:
3129 (WebCore::EventHandler::stopAutoscrollTimer): Change the cursor back to the regular arrow cursor when the pannning is stopped.
3130 (WebCore::EventHandler::keyEvent): When a key event is received while in panning or autoscroll we swallow the event early.
3132 2008-08-18 Dan Bernstein <mitz@apple.com>
3134 Reviewed by Dave Hyatt.
3136 - fix <rdar://problem/5862634> REGRESSION (3.1.1): In iChat, inline image not resizable past current size after another IM is received
3138 Test: fast/replaced/max-width-percent.html
3140 Added an includeMaxWidth boolean to RenderBox::calcReplaedWidth().
3141 When false, max-width is not factored into the
3143 Changed RenderReplaced and subclasses' calcPrefWidths() to call
3144 calcReplacedWidth(false) and then apply max-width only if it has a
3145 fixed, positive value.
3147 * rendering/RenderBox.cpp:
3148 (WebCore::RenderBox::calcReplacedWidth):
3149 * rendering/RenderBox.h:
3150 * rendering/RenderImage.cpp:
3151 (WebCore::RenderImage::calcReplacedWidth):
3152 (WebCore::RenderImage::calcPrefWidths):
3153 * rendering/RenderImage.h:
3154 * rendering/RenderReplaced.cpp:
3155 (WebCore::RenderReplaced::calcPrefWidths):
3156 * rendering/RenderSVGRoot.cpp:
3157 (WebCore::RenderSVGRoot::calcPrefWidths):
3158 * rendering/RenderVideo.cpp:
3159 (WebCore::RenderVideo::calcReplacedWidth):
3160 (WebCore::RenderVideo::calcPrefWidths):
3161 * rendering/RenderVideo.h:
3163 2008-08-18 Daniel Macks <dmacks@netspace.org>
3165 Reviewed by Mark Rowe.
3167 https://bugs.webkit.org/show_bug.cgi?id=20410
3168 More portable/self-documenting replacement for SIZE_MAX.
3170 * platform/network/curl/FormDataStreamCurl.cpp:
3171 (WebCore::FormDataStream::read):
3173 2008-08-18 Simon Fraser <simon.fraser@apple.com>
3175 Reviewed by Dave Hyatt
3177 Need to make sure we have an Animation in the AnimationList
3178 before setting the initial value.
3179 https://bugs.webkit.org/show_bug.cgi?id=20408
3181 Test: fast/css/transition_shorthand_parsing.html
3183 * css/CSSStyleSelector.cpp:
3185 2008-08-18 Kevin McCullough <kmccullough@apple.com>
3189 <rdar://problem/6150593> JSProfiler: Empty profiles disappear when there
3192 * page/inspector/ProfilesPanel.js:
3194 2008-08-18 Kevin McCullough <kmccullough@apple.com>
3198 <rdar://problem/6150642> REGRESSION: Closing the Web Inspector clears
3199 all console messages
3201 * page/inspector/Console.js:
3203 2008-08-18 Dirk Schulze <vbs85@gmx.de>
3205 Reviewed by Eric Seidel.
3207 Fixed Canvas for Cairo. Stroke and fill colors didn't work after
3208 the canvas clean up.
3210 https://bugs.webkit.org/show_bug.cgi?id=20405
3212 * html/CanvasRenderingContext2D.cpp:
3213 (WebCore::CanvasRenderingContext2D::fill):
3214 (WebCore::CanvasRenderingContext2D::stroke):
3215 (WebCore::CanvasRenderingContext2D::fillRect):
3217 2008-08-17 Timothy Hatcher <timothy@apple.com>
3219 Complete in scope variables in the Console when paused.
3221 https://bugs.webkit.org/show_bug.cgi?id=19115
3223 Reviewed by Geoffrey Garen.
3225 * page/inspector/Console.js:
3226 (WebInspector.Console.prototype.completions): If the expressionString
3227 is null or empty and the debugger is paused, call variablesInScopeForSelectedCallFrame
3228 to get an object that declares all the in scope variables. That way
3229 "top level" expressions are completed.
3230 * page/inspector/ScriptsPanel.js:
3231 (WebInspector.ScriptsPanel.prototype.variablesInScopeForSelectedCallFrame):
3232 Return an object that has all the variables that are in scope for the
3233 selected call frame. The value of each property is just true.
3234 The return object is useful for quick lookups or auto completion.
3236 2008-08-17 Cameron Zwarich <cwzwarich@uwaterloo.ca>
3240 Speculative Qt build fix.
3242 * bridge/qt/qt_runtime.cpp:
3243 (KJS::Bindings::convertValueToQVariant):
3244 (KJS::Bindings::QtRuntimeMethod::QtRuntimeMethod):
3246 2008-08-17 Geoffrey Garen <ggaren@apple.com>
3248 Reviewed by Cameron Zwarich.
3250 Updated project files to XCode 3.1.
3252 * manual-tests/NPN_Invoke/NPN_Invoke.xcodeproj/project.pbxproj:
3254 2008-08-17 Geoffrey Garen <ggaren@apple.com>
3256 Reviewed by Cameron Zwarich.
3258 Made room for a free word in JSCell.
3260 Changed JSDOMWindowBase to store its auxiliary data in a subclass of
3261 JSGlobalData, so the two could share a pointer.
3263 Added a bunch of ASSERTs, to help catch over-sized objects.
3265 2008-08-15 Mark Rowe <mrowe@apple.com>
3267 Reviewed by Dan Bernstein.
3269 Disable dead code stripping in debug builds.
3271 * Configurations/Base.xcconfig:
3272 * WebCore.xcodeproj/project.pbxproj:
3274 2008-08-15 Mark Rowe <mrowe@apple.com>
3276 Rubber-stamped by Geoff Garen.
3278 <rdar://problem/6139914> Please include a _debug version of JavaScriptCore framework
3280 * Configurations/Base.xcconfig: Factor out the debug-only settings so that they can shared
3281 between the Debug configuration and debug Production variant.
3282 * WebCore.xcodeproj/project.pbxproj: Enable the debug variant.
3284 2008-08-15 Antti Koivisto <antti@apple.com>
3288 Don't start preloading body resources before the head is complete. This prevents
3289 body preloads from slowing down initial display when there is limited amount
3290 of bandwidth available.
3292 Works by queuing up found body preloads to DocLoader and only issuing them
3293 after document has rendering.
3295 With bandwidth capped to 300kbit/s this speeds up cnn.com initial display by ~25% or 5s
3296 without affecting complete load time.
3298 * html/PreloadScanner.cpp:
3299 (WebCore::PreloadScanner::PreloadScanner):
3300 (WebCore::PreloadScanner::scanningBody):
3301 (WebCore::PreloadScanner::emitTag):
3302 (WebCore::PreloadScanner::emitCSSRule):
3303 * html/PreloadScanner.h:
3304 * loader/DocLoader.cpp:
3305 (WebCore::DocLoader::preload):
3306 (WebCore::DocLoader::checkForPendingPreloads):
3307 (WebCore::DocLoader::requestPreload):
3308 * loader/DocLoader.h:
3309 * loader/loader.cpp:
3310 (WebCore::Loader::Host::didFinishLoading):
3311 (WebCore::Loader::Host::didFail):
3313 2008-08-15 Ada Chan <adachan@apple.com>
3315 Use item's computed style if the render style is 0 before falling back to the <select>'s style.
3316 This way style set on an <hr> within a <select> will be honored.
3318 Reviewed by Dave Hyatt and Dan Bernstein.
3320 * rendering/RenderMenuList.cpp:
3321 (WebCore::RenderMenuList::itemStyle):
3323 2008-08-15 Antti Koivisto <antti@apple.com>
3327 Some loader performance tweaks:
3328 - Make stylesheets highest priority instead of scripts. We block script execution on stylesheets.
3329 Especially if a stylesheet @imports other stylesheets it is important to get them to the front of the queue
3330 to not delay rendering.
3331 - Issue the first resource load for a host immediately even if the resource is low priority. TCP connection setup
3332 can take long time when latency is high so it is good to get started early.
3333 - When the document is fully parsed and stylesheets have been loaded there is no need to keep managing the
3334 load queues. Issue remaining loads to the network layer.
3336 * loader/loader.cpp:
3337 (WebCore::Loader::determinePriority):
3338 (WebCore::Loader::load):
3339 (WebCore::Loader::Host::servePendingRequests):
3342 2008-08-15 Timothy Hatcher <timothy@apple.com>
3344 Detach the script debugger when the Web Inspector's window closes.
3345 This has always been the intended design, but never fully implemented.
3347 https://bugs.webkit.org/show_bug.cgi?id=20402
3349 Reviewed by Adam Roben.
3351 * page/InspectorController.cpp:
3352 (WebCore::InspectorController::setWindowVisible): Call stopDebugging()
3353 if the window is no longer visible.
3355 2008-08-15 HĂĄvard Wall <hwall@trolltech.com>
3359 Fixes: compile with QT_NO_CONTEXTMENU
3361 * platform/qt/PlatformMouseEventQt.cpp:
3362 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3363 * platform/qt/PlatformScrollBarQt.cpp:
3364 (WebCore::PlatformScrollbar::handleMouseMoveEvent):
3365 (WebCore::PlatformScrollbar::handleContextMenuEvent):
3367 2008-08-15 HĂĄvard Wall <hwall@trolltech.com>
3371 Fixes: compile with QT_NO_WHEELEVENT
3373 * platform/qt/WheelEventQt.cpp:
3374 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
3376 2008-08-15 Keishi Hattori <casey.hattori@gmail.com>
3378 Fixed Bug 20210: Console groups are incorrect when closing and reopening the Inspector
3380 https://bugs.webkit.org/show_bug.cgi?id=20210
3382 Reviewed by Tim Hatcher.
3385 (WebCore::Console::group):
3386 (WebCore::Console::groupEnd):
3388 (WebCore::): Removed GroupTitleMessageLevel. Added StartGroupMessaageLevel and EndGroupMessageLevel.
3389 * page/InspectorController.cpp:
3390 (WebCore::InspectorController::startGroup): Increments group level by
3391 one and adds console message with StartGroupMessaageLevel.
3392 (WebCore::InspectorController::endGroup): Decrements group level by one
3393 and adds console message with EndGroupMessaageLevel.
3394 * page/InspectorController.h:
3395 * page/inspector/Console.js:
3396 (WebInspector.Console.prototype.addMessage): Creates new ConsoleGroup
3397 if the message is StartGroupMessaageLevel.
3398 (WebInspector.ConsoleMessage.prototype.toMessageElement):
3399 (WebInspector.ConsoleGroup.prototype.addMessage):
3400 * page/inspector/inspector.js:
3402 2008-08-15 Keishi Hattori <casey.hattori@gmail.com>
3404 Adds support for console.dir to the Inspector
3406 https://bugs.webkit.org/show_bug.cgi?id=19155
3408 Reviewed by Tim Hatcher.
3410 * bindings/js/JSConsoleCustom.cpp:
3411 (WebCore::JSConsole::dir):
3413 (WebCore::Console::dir):
3414 * page/Console.h: Added ObjectMessageLevel.
3415 * page/Console.idl: Added console.dir.
3416 * page/inspector/Console.js:
3417 (WebInspector.ConsoleMessage.prototypet.toMessageElement): Creates an
3418 ObjectPropertiesSection if the MessageLevel is Object.
3419 * page/inspector/ObjectPropertiesSection.js: "in" operator can't be
3420 used on primitive data types.
3421 * page/inspector/inspector.css:
3423 2008-08-15 Keishi Hattori <casey.hattori@gmail.com>
3425 Adds support for clear() in the Inspector console.
3427 https://bugs.webkit.org/show_bug.cgi?id=19873
3429 Reviewed by Tim Hatcher.
3431 * page/inspector/Console.js:
3433 2008-08-15 Anthony Ricaud <rik24d@gmail.com>
3435 Cmd-F on Mac or Ctrl-F on other platforms now focus the search field.
3437 Platform distinction and modifier key matching adjusted
3438 by Daniel Jalkut <jalkut@red-sweater.com>
3440 Bug 16313: text search (find) keybindings should work in the Web Inspector
3441 https://bugs.webkit.org/show_bug.cgi?id=16313
3443 Reviewed by Tim Hatcher.
3445 * page/inspector/inspector.js: Added a case for the F key
3447 2008-08-15 Keishi Hattori <casey.hattori@gmail.com>
3449 Fix for error when the string doesn't contain a webkit-profile link.
3451 https://bugs.webkit.org/show_bug.cgi?id=20399
3453 Reviewed by Tim Hatcher.
3455 * page/inspector/inspector.js:
3457 2008-08-15 Timothy Hatcher <timothy@apple.com>
3459 Fixes two bugs where JavaScript could be executed from the page
3460 while the debugger is paused.
3462 The first issue was JSLazyEventListener not checking the paused
3463 state before parsing the code.
3465 The second issue was with the PageGroup version of
3466 JavaScriptDebugServer::setJavaScriptPaused always passing false
3467 to the Page version of JavaScriptDebugServer::setJavaScriptPaused,
3468 and not the paused argument.
3470 https://bugs.webkit.org/show_bug.cgi?id=20284
3472 Reviewed by Adam Roben.
3474 * bindings/js/JSEventListener.cpp:
3475 (WebCore::JSLazyEventListener::parseCode): Check the paused
3476 state of the ScriptController. Return early if paused.
3477 * manual-tests/inspector/debugger-execution-while-paused.html: Added.
3478 * page/JavaScriptDebugServer.cpp:
3479 (WebCore::JavaScriptDebugServer::setJavaScriptPaused):
3480 Pass the paused argument to the Page version of setJavaScriptPaused.
3482 2008-08-15 Alexey Proskuryakov <ap@webkit.org>
3484 Reviewed by Geoff Garen.
3486 JSStringRef is created context-free, but can get linked to one via an identifier table,
3487 breaking an implicit API contract.
3489 * page/InspectorController.cpp:
3490 (WebCore::jsStringRef):
3491 (WebCore::InspectorController::didParseSource):
3492 (WebCore::InspectorController::failedToParseSource):
3493 * page/JavaScriptProfile.cpp:
3494 (WebCore::getTitleCallback):
3495 Updated for JavaScriptCore changes.
3497 2008-08-14 Kevin Ollivier <kevino@theolliviers.com>
3499 wx !USE(WXGC) build fix. This is necessary until we find a way to replace GDI with
3500 an alternative that performs reasonably well. (GDI+ is too slow in many cases.)
3502 * platform/graphics/AffineTransform.h:
3504 2008-08-14 Eric Carlson <eric.carlson@apple.com>
3508 Fix for https://bugs.webkit.org/show_bug.cgi?id=20388
3509 <video> elements on Windows never becomes visible when a page is restored from the cache
3511 Always pass "set" calls down to MediaPlayerPrivate instead of only when the
3512 value is different from the cached value. Let the implementation decide when
3513 to avoid work because nothing has changed.
3515 * platform/graphics/MediaPlayer.cpp:
3516 (WebCore::MediaPlayer::setVolume):
3517 (WebCore::MediaPlayer::setRate):
3518 (WebCore::MediaPlayer::setRect):
3519 (WebCore::MediaPlayer::setVisible):
3521 2008-08-14 Keishi Hattori <casey.hattori@gmail.com>
3523 Make Firebug command line API respect predefined variables.
3525 https://bugs.webkit.org/show_bug.cgi?id=20385
3527 Reviewed by Tim Hatcher.
3529 * page/inspector/Console.js:
3531 2008-08-14 Sam Weinig <sam@webkit.org>
3533 Reviewed by Geoffrey Garen and Timothy Hatcher.
3535 Allow programatically setting the HTMLTokenizers time delay and chunk size
3536 which are used for determining how aggressively we yield.
3539 * html/HTMLTokenizer.cpp:
3540 (WebCore::HTMLTokenizer::begin):
3541 (WebCore::HTMLTokenizer::continueProcessing):
3542 * html/HTMLTokenizer.h:
3544 (WebCore::Page::Page):
3545 (WebCore::Page::setCustomHTMLTokenizerTimeDelay):
3546 (WebCore::Page::setCustomHTMLTokenizerChunkSize):
3548 (WebCore::Page::hasCustomHTMLTokenizerTimeDelay):
3549 (WebCore::Page::customHTMLTokenizerTimeDelay):
3550 (WebCore::Page::hasCustomHTMLTokenizerChunkSize):
3551 (WebCore::Page::customHTMLTokenizerChunkSize):
3553 2008-08-14 Eric Seidel <eric@webkit.org>
3557 Move us one step closer to cross-platform svg/graphics code
3559 * WebCore.xcodeproj/project.pbxproj:
3560 * html/CanvasStyle.cpp:
3561 * platform/graphics/Color.cpp:
3562 (WebCore::colorWithOverrideAlpha):
3563 * platform/graphics/Color.h:
3564 * svg/graphics/cg/CgSupport.cpp:
3565 (WebCore::applyStrokeStyleToContext):
3566 (WebCore::strokeBoundingBox):
3567 * svg/graphics/cg/SVGPaintServerSolidCg.cpp:
3568 (WebCore::SVGPaintServerSolid::setup):
3570 2008-08-14 Eric Seidel <eric@webkit.org>
3574 Remove un-need includes from HTMLCanvas and use the
3575 Gradient platform abstraction in one place in CanvasStyle
3577 * html/CanvasRenderingContext2D.cpp:
3578 (WebCore::CanvasRenderingContext2D::fillRect):
3579 * html/CanvasStyle.cpp:
3580 * html/HTMLCanvasElement.cpp:
3582 2008-08-14 Eric Seidel <eric@webkit.org>
3586 Clean up GlyphBuffer.h, removing more #ifdefs
3588 * platform/graphics/GlyphBuffer.h:
3589 (WebCore::GlyphBuffer::glyphAt):
3590 (WebCore::GlyphBuffer::advanceAt):
3591 (WebCore::GlyphBuffer::add):
3593 2008-08-14 Eric Seidel <eric@webkit.org>
3597 Clean up AffineTransform.h, removing #ifdefs
3599 * platform/graphics/AffineTransform.h:
3600 * platform/graphics/cairo/AffineTransformCairo.cpp:
3601 * platform/graphics/cg/AffineTransformCG.cpp:
3602 * platform/graphics/qt/AffineTransformQt.cpp:
3603 * platform/graphics/wx/AffineTransformWx.cpp:
3605 2008-08-14 Dan Bernstein <mitz@apple.com>
3607 - fix non-CG builds by adding an ImageSource::frameSizeAtIndex() that returns size().
3609 * platform/graphics/cairo/ImageSourceCairo.cpp:
3610 (WebCore::ImageSource::frameSizeAtIndex):
3611 * platform/graphics/qt/ImageSourceQt.cpp:
3612 (WebCore::ImageSource::frameSizeAtIndex):
3613 * platform/graphics/wx/ImageSourceWx.cpp:
3614 (WebCore::ImageSource::frameSizeAtIndex):
3616 2008-08-14 Dan Bernstein <mitz@apple.com>
3618 Reviewed by Brady Eidson.
3620 - fix <rdar://problem/5993323> REGRESSION (r34210): Apple.com favicon appears stretched/clipped
3622 * platform/graphics/BitmapImage.cpp:
3623 (WebCore::BitmapImage::BitmapImage): Added initialization of
3624 m_hasUniformFrameSize.
3625 (WebCore::BitmapImage::cacheFrame): Added code to get the size of the
3626 cached frame for use in decoded size computation and for setting
3627 m_hasUniformFrameSize.
3628 (WebCore::BitmapImage::currentFrameSize): Added.
3629 (WebCore::BitmapImage::dataChanged): Added code to reset
3630 m_hasUniformFrameSize.
3631 * platform/graphics/BitmapImage.h: Added currentFrameSize() and
3632 m_hasUniformFrameSize.
3633 * platform/graphics/ImageSource.h: Added frameSizeAtIndex().