1. 30 Nov, 2007 3 commits
  2. 28 Nov, 2007 2 commits
    • antti@apple.com's avatar
      WebCore: · 4e4658c3
      antti@apple.com authored
              Reviewed by Darin.
      
              Test: media/video-controls.html
              
              <rdar://problem/5605668>
              Implement controls attribute for video element
              
              - Add RenderMedia and make RenderVideo its subclass. Controls code goes to RenderMedia while
                video specific (painting etc) code stays in RenderVideo. For example audio controls can be implemented
                later by just instantiating RenderMedia as renderer.
              - Make media renderer hierarchy inherit from RenderBlock instead of RenderReplaced so it can 
                have child nodes (for controls).
              - Controls are implemented as a shadow DOM.
              - Current look is a placeholder. It is defined purely in CSS.
              - Some things like volume controls are not yet implemented.
              - Fade-in/out is done manually, CSS animations don't work well in shadow trees.
                
              * WebCore.xcodeproj/project.pbxproj:
              * css/html4.css:
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::attributeChanged):
              (WebCore::HTMLMediaElement::updateMovie):
              (WebCore::HTMLMediaElement::defaultEventHandler):
              * html/HTMLMediaElement.h:
              * rendering/RenderMedia.cpp: Added.
              (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
              (WebCore::MediaControlShadowRootElement::isShadowNode):
              (WebCore::MediaControlShadowRootElement::shadowParentNode):
              (WebCore::MediaControlInputElement::MediaControlInputElement):
              (WebCore::MediaControlInputElement::attachToParent):
              (WebCore::MediaControlPlayButtonElement::MediaControlPlayButtonElement):
              (WebCore::MediaControlPlayButtonElement::inPausedState):
              (WebCore::MediaControlPlayButtonElement::defaultEventHandler):
              (WebCore::MediaControlPlayButtonElement::update):
              (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
              (WebCore::MediaControlTimelineElement::defaultEventHandler):
              (WebCore::MediaControlTimelineElement::update):
              (WebCore::RenderMedia::RenderMedia):
              (WebCore::RenderMedia::~RenderMedia):
              (WebCore::RenderMedia::mediaElement):
              (WebCore::RenderMedia::movie):
              (WebCore::RenderMedia::setStyle):
              (WebCore::RenderMedia::createControlsShadowRoot):
              (WebCore::RenderMedia::createPanel):
              (WebCore::RenderMedia::createPlayButton):
              (WebCore::RenderMedia::createTimeline):
              (WebCore::RenderMedia::createTimeDisplay):
              (WebCore::RenderMedia::updateFromElement):
              (WebCore::RenderMedia::updateControls):
              (WebCore::RenderMedia::timeUpdateTimerFired):
              (WebCore::RenderMedia::updateTimeDisplay):
              (WebCore::RenderMedia::updateControlVisibility):
              (WebCore::RenderMedia::changeOpacity):
              (WebCore::RenderMedia::opacityAnimationTimerFired):
              (WebCore::RenderMedia::forwardEvent):
              * rendering/RenderMedia.h: Added.
              (WebCore::RenderMedia::renderName):
              (WebCore::RenderMedia::isMedia):
              (WebCore::RenderMedia::intrinsicSize):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::isMedia):
              * rendering/RenderVideo.cpp:
              (WebCore::RenderVideo::RenderVideo):
              (WebCore::RenderVideo::videoSizeChanged):
              (WebCore::RenderVideo::paintObject):
              (WebCore::RenderVideo::layout):
              (WebCore::RenderVideo::updateFromElement):
              (WebCore::RenderVideo::calcAspectRatioWidth):
              (WebCore::RenderVideo::calcAspectRatioHeight):
              * rendering/RenderVideo.h:
      
      LayoutTests:
      
              Reviewed by Darin.
              
              <rdar://problem/5605668>
              Implement controls attribute for video element
              
              - A new test for the controls attribute.
              - Add the controls attibute to all existing video tests. This will give the code
                some additional exercise without affecting test results.
      
              * media/progress-event.html:
              * media/video-append-source.html:
              * media/video-autoplay.html:
              * media/video-buffered.html:
              * media/video-controls-expected.txt: Added.
              * media/video-controls.html: Added.
              * media/video-currentTime-set.html:
              * media/video-currentTime-set2.html:
              * media/video-currentTime.html:
              * media/video-dom-autoplay.html:
              * media/video-dom-end.html:
              * media/video-dom-loopcount.html:
              * media/video-dom-loopend.html:
              * media/video-dom-loopstart.html:
              * media/video-dom-src.html:
              * media/video-dom-start.html:
              * media/video-end.html:
              * media/video-error-abort.html:
              * media/video-error-does-not-exist.html:
              * media/video-load-networkState.html:
              * media/video-load-readyState.html:
              * media/video-loopcount.html:
              * media/video-loopend.html:
              * media/video-loopstart.html:
              * media/video-muted.html:
              * media/video-no-autoplay.html:
              * media/video-pause-empty-events.html:
              * media/video-play-empty-events.html:
              * media/video-play-pause-events.html:
              * media/video-play-pause-exception.html:
              * media/video-poster.html:
              * media/video-seek-past-end-paused.html:
              * media/video-seek-past-end-playing.html:
              * media/video-seekable.html:
              * media/video-seeking.html:
              * media/video-size.html:
              * media/video-source-media.html:
              * media/video-source-type.html:
              * media/video-source.html:
              * media/video-src-change.html:
              * media/video-src-remove.html:
              * media/video-src-set.html:
              * media/video-src-source.html:
              * media/video-src.html:
              * media/video-start.html:
              * media/video-volume.html:
              * media/video-width-height.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4e4658c3
    • justin.garcia@apple.com's avatar
      WebCore: · 0ca5d705
      justin.garcia@apple.com authored
              Reviewed by Darin Adler.
      
              <rdar://problem/5573879> GMail Beta: Crash in when undoing Remove Formating
              
              In the new beta, Google has added some custom code on top of our RemoveFormat
              to work around a bug where fully selected lists aren't removed.  This code corrupts
              the undo stack and causes crashes.  This change fixes two problems with RemoveFormat
              so that Google doesn't have to have any custom code. After checking this in I'll 
              work on bulletproofing the undo stack
      
              * WebCore.xcodeproj/project.pbxproj: 
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::insertLineBreak): Added this convenience method.
              (WebCore::CompositeEditCommand::inputText): Added code to select all inserted text, not
              just the last paragraph.  Added code to support an input string with '\n's.
              * editing/CompositeEditCommand.h:
              * editing/Editor.cpp:
              (WebCore::Editor::removeFormattingAndStyle): Moved code to its own EditCommand.
              * editing/RemoveFormatCommand.cpp: Added. Moved code from removeFormattingAndStyle here.
              (WebCore::RemoveFormatCommand::RemoveFormatCommand):
              (WebCore::RemoveFormatCommand::doApply): Added code to remove fully selected lists.
              * editing/RemoveFormatCommand.h: Added.
              (WebCore::RemoveFormatCommand::editingAction):
      
      LayoutTests:
      
              Reviewed by Darin Adler.
              
              <rdar://problem/5573879> GMail Beta: Crash in when undoing Remove Formating
      
              Added to demonstrate fixes:
              * editing/execCommand/5573879.html: Added.
              * platform/mac/editing/execCommand/5573879-expected.checksum: Added.
              * platform/mac/editing/execCommand/5573879-expected.png: Added.
              * platform/mac/editing/execCommand/5573879-expected.txt: Added.
              
              Fixes (RemoveFormat now preserves the selection correctly):
              * platform/mac/editing/execCommand/4920742-1-expected.checksum:
              * platform/mac/editing/execCommand/4920742-1-expected.png:
              * platform/mac/editing/execCommand/4920742-1-expected.txt:
              * platform/mac/editing/execCommand/remove-formatting-2-expected.checksum:
              * platform/mac/editing/execCommand/remove-formatting-2-expected.png:
              * platform/mac/editing/execCommand/remove-formatting-2-expected.txt:
              * platform/mac/editing/execCommand/remove-formatting-expected.checksum:
              * platform/mac/editing/execCommand/remove-formatting-expected.png:
              * platform/mac/editing/execCommand/remove-formatting-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28126 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ca5d705
  3. 27 Nov, 2007 1 commit
    • timothy@apple.com's avatar
      WebCore: · bf423a1b
      timothy@apple.com authored
              Reviewed by Dave Hyatt.
      
              <rdar://problem/5569233> Add the ability to disable author and user CSS styles
      
              * WebCore.base.exp: Add the Settings::setAuthorAndUserStylesEnabled symbol.
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector): Add a new matchAuthorAndUserStyles parameter.
              (WebCore::CSSStyleSelector::styleForElement): Check m_matchAuthorAndUserStyles before
              matching user and author rules.
              (WebCore::CSSStyleSelector::pseudoStyleForElement): Ditto.
              (WebCore::CSSStyleSelector::styleRulesForElement): Ditto.
              * css/CSSStyleSelector.h: Add m_matchAuthorAndUserStyles and new constructor parameter.
              * dom/Document.cpp:
              (WebCore::Document::Document): Pass Settings::authorAndUserStylesEnabled to the CSSStyleSelector.
              (WebCore::Document::recalcStyleSelector): Skip collecting the author stylesheets if
              Settings::authorAndUserStylesEnabled is false, and pass that to the CSSStyleSelector.
              * page/Settings.cpp:
              (WebCore::Settings::Settings): Initialize m_authorAndUserStylesEnabled to true.
              (WebCore::Settings::setAuthorAndUserStylesEnabled): Recalc style in all the frames
              when the setting changes.
              * page/Settings.h: Add m_authorAndUserStylesEnabled.
              (WebCore::Settings::authorAndUserStylesEnabled): Return m_authorAndUserStylesEnabled.
      
      WebKit/mac:
      
              Reviewed by Dave Hyatt.
      
              <rdar://problem/5569233> Add the ability to disable author and user CSS styles
      
              * WebView/WebPreferenceKeysPrivate.h: Define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey.
              * WebView/WebPreferences.m:
              (+[WebPreferences initialize]): Default WebKitRespectStandardStyleKeyEquivalentsPreferenceKey to YES.
              (-[WebPreferences authorAndUserStylesEnabled]): Return the setting's BOOL value.
              (-[WebPreferences setAuthorAndUserStylesEnabled:]): Set the setting's BOOL value.
              * WebView/WebPreferencesPrivate.h: Add authorAndUserStylesEnabled and setAuthorAndUserStylesEnabled:.
              * WebView/WebView.mm:
              (-[WebView _preferencesChangedNotification:]): Update WebCore::Settings::authorAndUserStylesEnabled.
      
      WebKitTools:
      
              Reviewed by Dave Hyatt.
      
              <rdar://problem/5569233> Add the ability to disable author and user CSS styles
              
              Add support for disabling author and user styles for testing.
      
              * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
              * DumpRenderTree/LayoutTestController.cpp:
              (setAuthorAndUserStylesEnabledCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::setAuthorAndUserStylesEnabled):
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::setAuthorAndUserStylesEnabled):
      
      LayoutTests:
      
              Reviewed by Dave Hyatt.
      
              Test for: <rdar://problem/5569233> Add the ability to disable author and user CSS styles
      
              * fast/css/disabled-author-styles.html: Added.
              * platform/mac/fast/css/disabled-author-styles-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf423a1b
  4. 23 Nov, 2007 1 commit
    • ap@webkit.org's avatar
      Reviewed by Maciej. · fbee6ca0
      ap@webkit.org authored
              http://bugs.webkit.org/show_bug.cgi?id=16077
              <rdar://problem/5609785> XSLT processor <xsl:sort> algorithm is incompatible with other
              browser implementations
      
              Test: fast/xsl/sort-unicode.xml
      
              * xml/XSLTProcessor.cpp:
              (WebCore::XSLTProcessor::transformToString): Set a custom sort function.
      
              * xml/XSLTUnicodeSort.cpp: Added.
              (init_xsltTransformError):
              (xsltTransformError):
              (WebCore::xsltUnicodeSortFunction):
              * xml/XSLTUnicodeSort.h: Added.
              ICU-based implementation of xsl:sort, using an example from libxslt distribution.
              Only minimal coding style fixes to ease synchronization with upstream in the future.
      
              * icu/unicode/ucol.h: Added.
              * icu/unicode/uset.h: Added.
              Taken from ICU 3.2
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              Added XSLTUnicodeSort.cpp.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbee6ca0
  5. 19 Nov, 2007 1 commit
    • beidson@apple.com's avatar
      WebCore: · 0b996016
      beidson@apple.com authored
              Reviewed by Maciej
      
              Stub out the WebCore parts of the WebKit API
      
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
      
              * storage/DatabaseDetails.h: Added.  Simple container for vitals on a specific database
              (WebCore::DatabaseDetails::DatabaseDetails::DatabaseDetails):
              (WebCore::DatabaseDetails::DatabaseDetails):
              (WebCore::DatabaseDetails::isValid):
              (WebCore::DatabaseDetails::name):
              (WebCore::DatabaseDetails::version):
              (WebCore::DatabaseDetails::displayName):
              (WebCore::DatabaseDetails::expectedUsage):
              (WebCore::DatabaseDetails::currentUsage):
      
              * storage/DatabaseTracker.cpp:  Added various methods for API usage
              (WebCore::DatabaseTracker::detailsForNameAndOrigin):
              (WebCore::DatabaseTracker::usageForOrigin):
              (WebCore::DatabaseTracker::quotaForOrigin):
              (WebCore::DatabaseTracker::setQuota):
              * storage/DatabaseTracker.h:
      
      WebKit:
      
              Reviewed by Maciej
      
              * WebKit.xcodeproj/project.pbxproj: Sorted!
      
      WebKit/mac:
      
              Reviewed by Maciej
      
              Finished hooking up the WebKit API for database management.
              Most of the API is actually implemented in WebCore and some of those methods might
              only be stubs for now.
      
              * Storage/WebDatabaseManager.mm:
              (-[WebDatabaseManager origins]): Call through to the WebCore tracker and construct an API result
              (-[WebDatabaseManager databasesWithOrigin:]): Ditto
              (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Ditto
      
              * Storage/WebSecurityOrigin.mm:
              (-[WebSecurityOrigin usage]): Call through to WebCore
              (-[WebSecurityOrigin quota]): Ditto
              (-[WebSecurityOrigin setQuota:]): Ditto
              (-[WebSecurityOrigin _core]): Get WebCore version of this object
              * Storage/WebSecurityOriginInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b996016
  6. 17 Nov, 2007 2 commits
    • timothy@apple.com's avatar
      WebCore: · 11650fd3
      timothy@apple.com authored
              Reviewed by Mark Rowe.
      
              Bug 13470: i18n: The Web Inspector is not localizable
              http://bugs.webkit.org/show_bug.cgi?id=13470
      
              Add support for localization to the Web Inspector. Clients need to
              implement localizedStringsURL() to return the URL of the
              InspectorLocalizedStrings.js that best matches the user's language.
      
              * English.lproj: Added.
              * English.lproj/InspectorLocalizedStrings.js: Added.
              * WebCore.xcodeproj/project.pbxproj: Add InspectorLocalizedStrings.js.
              * page/InspectorClient.h: Add localizedStringsURL.
              * page/InspectorController.cpp: Add localizedStringsURL that calls
                the client. Also added a version exposed to JavaScript.
              * page/InspectorController.h: Add localizedStringsURL.
              * page/inspector/ConsolePanel.js: Call WebInspector.UIString
                for user visible strings.
              * page/inspector/DatabasePanel.js: Ditto.
              * page/inspector/DocumentPanel.js: Ditto.
              * page/inspector/ImagePanel.js: Ditto.
              * page/inspector/MetricsSidebarPane.js: Ditto.
              * page/inspector/NetworkPanel.js: Ditto.
              * page/inspector/Panel.js: Ditto.
              * page/inspector/PropertiesSidebarPane.js: Ditto.
              * page/inspector/Resource.js: Ditto.
              * page/inspector/ResourceCategory.js: Ditto.
              * page/inspector/SourcePanel.js: Ditto.
              * page/inspector/StylesSidebarPane.js: Ditto.
              * page/inspector/inspector.css: Use pre-wrap so database errors can use \n.
              * page/inspector/inspector.html: Remove some user visible strings.
              * page/inspector/inspector.js: Added WebInspector.UIString and call
                WebInspector.UIString for user visible strings. Some code needed to be 
                moved to WebInspector.loaded to use UIString after the localized strings
                get loaded.
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyFrameLoaderClient::redirectDataToPlugin): Remove WebCore:: prefix.
              (WebCore::SVGEmptyInspectorClient::createPage): Ditto.
              (WebCore::SVGEmptyInspectorClient::localizedStringsURL): Add empty stub.
              (WebCore::SVGEmptyInspectorClient::highlight): Remove WebCore:: prefix.
              (WebCore::SVGEmptyInspectorClient::inspectedURLChanged): Ditto.
      
      WebKit:
      
              Reviewed by Mark Rowe.
      
              Bug 13470: i18n: The Web Inspector is not localizable
              http://bugs.webkit.org/show_bug.cgi?id=13470
      
              Update the localized strings and the file encoding of WebInspectorClient.mm.
      
              * English.lproj/Localizable.strings:
              * StringsNotToBeLocalized.txt:
              * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/gtk:
      
              Reviewed by Mark Rowe.
      
              Bug 13470: i18n: The Web Inspector is not localizable
              http://bugs.webkit.org/show_bug.cgi?id=13470
      
              * WebCoreSupport/InspectorClientGtk.cpp:
              (WebKit::InspectorClient::localizedStringsURL): Empty stub.
              * WebCoreSupport/InspectorClientGtk.h: Add localizedStringsURL.
      
      WebKit/mac:
      
              Reviewed by Mark Rowe.
      
              Bug 13470: i18n: The Web Inspector is not localizable
              http://bugs.webkit.org/show_bug.cgi?id=13470
      
              Implement the localizedStringsURL() client method to return the
              localized URL of InspectorLocalizedStrings.js in WebCore.
      
              * WebCoreSupport/WebInspectorClient.h: Added localizedStringsURL.
              * WebCoreSupport/WebInspectorClient.mm:
              (WebInspectorClient::localizedStringsURL): Added.
              (WebInspectorClient::updateWindowTitle): Localized the window title.
              (-[WebInspectorWindowController init]): Remove a FIXME that dosen't make sense anymore.
              (-[WebInspectorWindowController initWithInspectedWebView:]): Code style cleanup.
      
      WebKit/qt:
      
              Reviewed by Mark Rowe.
      
              Bug 13470: i18n: The Web Inspector is not localizable
              http://bugs.webkit.org/show_bug.cgi?id=13470
      
              * WebCoreSupport/InspectorClientQt.cpp:
              (WebCore::InspectorClientQt::localizedStringsURL): Empty stub.
              * WebCoreSupport/InspectorClientQt.h: Added localizedStringsURL.
      
      WebKit/win:
      
              Reviewed by Mark Rowe.
      
              Bug 13470: i18n: The Web Inspector is not localizable
              http://bugs.webkit.org/show_bug.cgi?id=13470
      
              * English.lproj/Localizable.strings: Updated.
              * WebInspectorClient.cpp:
              (WebInspectorClient::localizedStringsURL): Empty stub.
              * WebInspectorClient.h: Added localizedStringsURL.
      
      WebKit/wx:
      
              Reviewed by Mark Rowe.
      
              Bug 13470: i18n: The Web Inspector is not localizable
              http://bugs.webkit.org/show_bug.cgi?id=13470
      
              * WebKitSupport/InspectorClientWx.cpp:
              (WebCore::InspectorClientWx::localizedStringsURL): Empty stub.
              * WebKitSupport/InspectorClientWx.h: Added localizedStringsURL.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      11650fd3
    • timothy@apple.com's avatar
      Remove IDL files from the WebCore.framework Resources. · 227a8a64
      timothy@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      227a8a64
  7. 16 Nov, 2007 2 commits
    • mrowe@apple.com's avatar
      7b0d32cd
    • beidson@apple.com's avatar
      Reviewed by Sam · 0d3aee36
      beidson@apple.com authored
              Further purify DatabaseTracker to use SecurityOriginData instead of "a String"
      
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCore.vcproj/WebCore.vcproj
              * WebCore.pro
      
              * platform/SecurityOriginData.cpp: Added.
              (WebCore::SecurityOriginData::SecurityOriginData): Add a constructor that takes a "stringIdentifier"-style string,
                since that form is what will be stored in the Databases.db on disk
              (WebCore::SecurityOriginData::stringIdentifier):
              * platform/SecurityOriginData.h:
              (WebCore::SecurityOriginData::protocol):
              (WebCore::SecurityOriginData::host):
              (WebCore::SecurityOriginData::port):
      
              * storage/DatabaseTracker.cpp:
              (WebCore::SecurityOriginDataHash::hash): Follow the pattern Darin set in FontCache.cpp to make a decent hash for
                a SecurityOriginData object
              (WebCore::SecurityOriginDataHash::equal):
              (WebCore::SecurityOriginDataTraits::deletedValue): "file::1" will never exist in normal operation
              (WebCore::SecurityOriginDataTraits::emptyValue): "file::2" will never exist in normal operation
              (WebCore::DatabaseTracker::fullPathForDatabase):
              (WebCore::DatabaseTracker::populateOrigins):
              (WebCore::DatabaseTracker::origins):
              (WebCore::DatabaseTracker::addDatabase):
              * storage/DatabaseTracker.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d3aee36
  8. 15 Nov, 2007 2 commits
    • andersca@apple.com's avatar
      Reviewed by Sam. · 9e299a9b
      andersca@apple.com authored
              Make the VoidCallback DOM interface behave more like our other DOM interfaces.
              
              * bindings/js/JSCustomVoidCallback.h: Added.
              * bindings/js/JSCustomVoidCallback.cpp: Added.
              (WebCore::JSCustomVoidCallback::JSCustomVoidCallback):
              (WebCore::JSCustomVoidCallback::handleEvent):
              VoidCallback implementation that wraps a JS object.
              
              (WebCore::toVoidCallback):
              New method that creates a VoidCallback implementation given a JS object.
              
              * bindings/scripts/CodeGeneratorJS.pm:
              Specify that VoidCallback can fail conversion and add a custom conversion function.
              
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::movieCuePointReached):
              Call handleEvent on the callback.
              
              (WebCore::HTMLMediaElement::removeCuePoint):
              Comment out parts of this method, it has already been removed in the HTML5 spec and it relies
              on overriding VoidCallback equality.
              
              * html/VoidCallback.cpp: Removed.
              
              * html/VoidCallback.h:
              (WebCore::VoidCallback::VoidCallback):
              (WebCore::VoidCallback::~VoidCallback):
              Make this an abstract class with a pure virtual handleEvent method.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27826 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9e299a9b
    • beidson@apple.com's avatar
      WebCore: · 705db6e6
      beidson@apple.com authored
              Reviewed by John and Sam
      
              Stubbing out everything required for a WebKit API for databases
      
              Biggest change in WebCore is that we passed around SecurityOriginData as the representation
              of a SecurityOrigin, instead of a String or a SecurityOrigin itself (which is an opaque object
              that has a different purpose besides just hanging on to the data)
      
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
      
              * platform/SecurityOrigin.cpp:
              * platform/SecurityOrigin.h:
              * platform/SecurityOriginData.h: Added.  Simple object to encapsulate the 3
                pieces of data in the SecurityOrigin tuple
              (WebCore::SecurityOriginData::SecurityOriginData):
              (WebCore::SecurityOriginData::protocol):
              (WebCore::SecurityOriginData::host):
              (WebCore::SecurityOriginData::port):
              (WebCore::SecurityOriginData::toString): Simple concatenation of the 3 components,
                colon separated
      
              * storage/Database.cpp:
              (WebCore::Database::Database): Use SecurityOriginData instead
      
              * storage/DatabaseTracker.cpp:
              (WebCore::DatabaseTracker::fullPathForDatabase):
              (WebCore::DatabaseTracker::databaseNamesForOrigin):
              (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
              (WebCore::DatabaseTracker::deleteDatabase):
              * storage/DatabaseTracker.h:
      
              * storage/DatabaseTrackerClient.h: Added.  For dispatching notifications up to WebKit
              (WebCore::DatabaseTrackerClient::~DatabaseTrackerClient):
      
      WebKit:
      
              Reviewed by John
      
              Stubbing out everything required for a WebKit API for databases
      
              * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac:
      
              Reviewed by John
      
              Stubbing out everything required for a WebKit API for databases
      
              These interfaces seem to provide everything we need for UI and management at the browser level
      
              * Misc/WebDatabaseManager.h: Removed.
              * Misc/WebDatabaseManager.mm: Removed.
              * Misc/WebDatabaseManagerPrivate.h: Removed.
      
              * Misc/WebSecurityOrigin.mm: Added. Object that acts as a container for the "SecurityOrigin tuple"
                (protocol, domain, and port)
              (-[WebSecurityOriginPrivate initWithProtocol:domain:port:]):
              (-[WebSecurityOriginPrivate dealloc]):
              (-[WebSecurityOrigin initWithProtocol:domain:]):
              (-[WebSecurityOrigin initWithProtocol:domain:port:]):
              (-[WebSecurityOrigin protocol]):
              (-[WebSecurityOrigin domain]):
              (-[WebSecurityOrigin port]):
              (-[WebSecurityOrigin dealloc]):
              (-[WebSecurityOrigin _initWithWebCoreSecurityOriginData:WebCore::]):
              * Misc/WebSecurityOriginInternal.h: Added.
              * Misc/WebSecurityOriginPrivate.h: Added.
      
              * Storage/WebDatabaseManager.mm: Added.
              (+[WebDatabaseManager sharedWebDatabaseManager]):
              (-[WebDatabaseManager origins]):  Get a list of all origins currently tracked
              (-[WebDatabaseManager detailsForOrigin:]): Get the current usage and current quota for the given origin
              (-[WebDatabaseManager databasesWithOrigin:]): Get all databases for a certain origin
              (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Get all details about a specific database
              (-[WebDatabaseManager setQuota:forOrigin:]): Change origin-wide quota
              (-[WebDatabaseManager deleteAllDatabases]):
              (-[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
              (-[WebDatabaseManager deleteDatabase:withOrigin:]):
              * Storage/WebDatabaseManagerPrivate.h: Added.
              * Storage/WebDatabaseManagerInternal.h: Added.
              (WebKitInitializeDatabasesIfNecessary): One-time initialization of database-related things
      
              * Storage/WebDatabaseTrackerClient.h: Added. Stubbed out client for notifications
              * Storage/WebDatabaseTrackerClient.mm: Added.
              (WebDatabaseTrackerClient::sharedWebDatabaseTrackerClient):
              (WebDatabaseTrackerClient::WebDatabaseTrackerClient):
              (WebDatabaseTrackerClient::~WebDatabaseTrackerClient):
              (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
              (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
      
              * WebView/WebView.mm:
              (-[WebView _commonInitializationWithFrameName:groupName:]): Do one-time initialization of
                Database-related things here
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      705db6e6
  9. 13 Nov, 2007 2 commits
    • ggaren@apple.com's avatar
      JavaScriptCore: · 7911af29
      ggaren@apple.com authored
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places. Deployed
              Shared in places where JSCore previously had hand-rolled ref-counting
              classes.
      
              * API/JSClassRef.cpp:
              (OpaqueJSClass::OpaqueJSClass):
              * API/JSClassRef.h:
              * API/JSObjectRef.cpp:
              (JSClassRetain):
              (JSClassRelease):
              * JavaScriptCore.vcproj/WTF/WTF.vcproj:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * kjs/interpreter.cpp:
              (KJS::Interpreter::init):
              * kjs/interpreter.h:
              * kjs/regexp.cpp:
              (KJS::RegExp::RegExp):
              * kjs/regexp.h:
              * wtf/Shared.h: Copied from WebCore/platform/Shared.h.
      
      JavaScriptGlue:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places.
      
              * ForwardingHeaders/wtf/Shared.h: Added.
      
      WebCore:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places. Retained 
              TreeShared, but moved it to its own file, TreeShared.h.
      
              * ForwardingHeaders/wtf/Shared.h: Added.
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSSVGPODTypeWrapper.h:
              * css/CSSFontFace.h:
              * css/CSSRuleList.h:
              * css/Counter.h:
              * css/Pair.h:
              * css/Rect.h:
              * css/StyleBase.h:
              * css/StyleSheetList.h:
              * dom/Clipboard.h:
              * dom/DOMImplementation.h:
              * dom/Event.h:
              * dom/EventListener.h:
              * dom/NamedNodeMap.h:
              * dom/NodeFilterCondition.h:
              * dom/NodeList.h:
              * dom/Range.h:
              * dom/RangeException.h:
              * dom/RegisteredEventListener.h:
              * dom/Traversal.h:
              * history/BackForwardList.h:
              * history/CachedPage.h:
              * history/HistoryItem.h:
              * html/CanvasGradient.h:
              * html/CanvasPattern.h:
              * html/HTMLCollection.h:
              * html/MediaError.h:
              * html/TimeRanges.h:
              * html/VoidCallback.h:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * loader/DocumentLoader.h:
              * loader/FormState.h:
              * loader/ResourceLoader.h:
              * loader/TextResourceDecoder.h:
              * loader/icon/IconRecord.h:
              * page/BarInfo.h:
              * page/Console.h:
              * page/DOMSelection.h:
              * page/DOMWindow.h:
              * page/History.h:
              * page/InspectorController.cpp:
              * page/Plugin.h:
              * page/Screen.h:
              * platform/ArrayImpl.h:
              * platform/CString.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/FontFallbackList.h:
              * platform/FontFamily.h:
              * platform/FontSelector.h:
              * platform/GlyphPageTreeNode.h:
              * platform/PopupMenu.h:
              * platform/RegularExpression.cpp:
              * platform/ScrollBar.h:
              * platform/Shared.h: Removed.
              * platform/SharedBuffer.h:
              * platform/StringImpl.h:
              * platform/graphics/Icon.h:
              * platform/graphics/svg/SVGResource.h:
              * platform/network/FormData.h:
              * platform/network/ResourceHandleClient.h:
              * rendering/RenderStyle.h:
              * rendering/SVGCharacterLayoutInfo.h:
              * storage/SQLResultSetRowList.h:
              * xml/DOMParser.h:
              * xml/XMLSerializer.h:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.h:
              * xml/XPathNSResolver.h:
              * xml/XPathResult.h:
      
      WebKit/mac:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places.
      
              * ChangeLog:
              * WebCoreSupport/WebContextMenuClient.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7911af29
    • beidson@apple.com's avatar
      Squashed commit of the following: · effd1c72
      beidson@apple.com authored
      commit 3e6cb737b3b823b4bf177b9e0c2fcfcc38baf46d
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Nov 13 16:22:36 2007 -0800
      
          Changelog for commit
      
      commit 4be13a5ef17685368e68a76292b785c99da1d7f2
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Nov 13 16:19:34 2007 -0800
      
          Make inspector work with new API
      
      commit c500ed90c32b31fbc37a183c8ae5427f36b9ccc2
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Nov 13 14:37:16 2007 -0800
      
          Woops!
      
      commit c61b147f35a2801c340f82054d177914da6ccde5
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Nov 13 11:45:40 2007 -0800
      
          Ander's review comments
      
      commit f3dc2683acc5730cbab8758226adae3e35f7263b
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 12 18:05:21 2007 -0800
      
          Initial vcproj changes after the rebase
      
      commit c8cf9be275479ff1fb39b911e5165f07fcd5ae34
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 12 18:02:30 2007 -0800
      
          Fixed Changelog a bit
      
      commit c9790cde9b79e25690f1c0b34b9c1e77d2f4449f
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 12 16:53:48 2007 -0800
      
          Finish the rebase/trunk merge
      
      commit 663ad85619ec677eb5c52bed3c59b8b3f50de624
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Nov 6 11:54:26 2007 -0800
      
          VCProj changes for new SQL api + blind attempt at keeping qt/gtk going
      
      commit 2aceeb3bdfa6894bb4e93c0b129867059e9cdad7
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 15:27:55 2007 -0800
      
          Changelog edit cleanup
      
      commit a05f11fa4fa0ba935eb28df6d9628f29a4074d7a
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 15:25:27 2007 -0800
      
          Changelog entries and small style cleanup
      
      commit a2d34a78d06f446f4bdb6ea1797dfb91cfc336fe
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 13:37:10 2007 -0800
      
          Minor edit
      
      commit eaf0aa9c07cfeb54df312c130677ecbc60728c5f
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 13:32:20 2007 -0800
      
          Do version check at time of executeSql
      
      commit 3bac84615badcc810f44ebf14d1679bffd4cc8fb
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 13:04:14 2007 -0800
      
          Newline = t3h gone
      
      commit de7cfcf737b1a6143b74f1cc60955c317877ca27
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 13:02:11 2007 -0800
      
          Example + inspector fixes
      
      commit 536b119c219de72c97fe6756e226a36bef5e6880
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 11:47:30 2007 -0800
      
          DatabaseExample works
      
      commit fff79aa99dbf47955bc37ca325928460fc41a59e
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 10:36:59 2007 -0800
      
          Remove the old, now unused DatabaseCallback
      
      commit 06bc8e16ad346b755f767ce8e7849da819ccf96f
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 09:57:36 2007 -0800
      
          Sort project file
      
      commit 741084d108ec994ff513e18c3d7a3153f6dd6bb5
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 09:30:37 2007 -0800
      
          Sort the project file
      
      commit 2e77cec4337db174f56269b7fb406d81ebb1de7d
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 16:01:03 2007 -0700
      
          Yay!  Change version even works!
      
      commit 05c2ed1f22e3b689dd453ea300154492937f46db
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 15:19:56 2007 -0700
      
          Nuke some DRT changes
      
      commit 9b5b9b25c45d7d4720e4ddf4a31f163fb4f7faf2
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 15:05:59 2007 -0700
      
          Nuke some printfs
      
      commit 8503eecdefa95278a15246bb4eed2dccb69af12a
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 13:44:32 2007 -0700
      
          Added "current transaction" to Database and reworked how scheduling goes
      
      commit f70354c9a84d654d28894ab3c6b13679ce494fc3
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 11:49:26 2007 -0700
      
          Things are largely working.  Still need to clean up loose ends in the sticky notes demo and do further testing
      
      commit 417665cd15f020c22af5691577e5c8a072630839
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 00:00:47 2007 -0700
      
          Transaction steps are almost locked up completely.  Still need the SQLError for the transaction error callback and actually implementing ::execute() on the SQLStatement
      
      commit 752d572acd4d1d9832976b4869284e554845205a
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 31 18:52:55 2007 -0700
      
          Forgot this.
      
      commit 2c8f2689d212296961a841c579a2f93609858862
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 31 18:31:05 2007 -0700
      
          Merge.
      
      commit 7540d4fa7ef858400d9f834cba976a439394412d
      Author: Brady Eidson <beidson@apple.com>
      Date:   Wed Oct 31 17:14:30 2007 -0700
      
          Even closer!
      
      commit 143a70a5d026ab9fab1b5de91f826effcd481527
      Author: Brady Eidson <beidson@apple.com>
      Date:   Wed Oct 31 16:43:31 2007 -0700
      
          Merge project file correctly
      
      commit 11207e7b6e391a4052fc41f6db42ce30449c7e3e
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 31 11:04:35 2007 -0700
      
          Remove more unused methods.
      
      commit 9a0d306d467eb9aa8c19825da03b7abe318c609c
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 31 11:01:35 2007 -0700
      
          Add SQLTransactionCallback.idl
      
      commit 12e2fa2858145e3895320293462ec441c35a7e3d
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 31 10:47:17 2007 -0700
      
          Fix build.
      
      commit 02f4631705b0f6e0bd3c715c64f4938ea53f4670
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 23:36:24 2007 -0700
      
          All steps now take place in the right order, following the right rules - only thing missing is the actual SQL executing!
      
      commit 6a8c0d7d2beb745c070c55b14beac9a47d373fc4
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 18:20:35 2007 -0700
      
          Closer and closer we roll
      
      commit f945446453ae48a28d6e2f3dcce4660feae0da79
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 17:59:25 2007 -0700
      
          Things are really rolling - transaction steps 1-5 are called as expected.  Downhill from here
      
      commit 138b49b62bc8f3d05b1171e280d403e8b15ef9c4
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 14:50:14 2007 -0700
      
          Use pointer-to-member functions for the transaction steps...  !!!
      
      commit 3eb4f794861827f5c88cd8c36efb144cdc537bd5
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Tue Oct 30 14:45:59 2007 -0700
      
          Remove more old cruft.
      
      commit f18835f0709b4aff00903738974dbebb11a224f0
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 13:55:05 2007 -0700
      
          Restore that comment
      
      commit 35b2eac5ac3ec338cc2a8a4fe611f85e62c72dd6
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 12:08:29 2007 -0700
      
          Closer, still, to the new model working.  Lotsa little tweaks
      
      commit a8476702a7d9bb38b8e15966e837ceca5858e9b2
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Tue Oct 30 11:23:02 2007 -0700
      
          Wrap changeVersion.
      
      commit aa0d8cc6aaaf674de341996555306eb9f122de3c
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Oct 29 22:35:16 2007 -0700
      
          Dummy callback as part of transaction steps acheived!  And other architectural changes
      
      commit 01c0a92daf764375be79753bc7bc417aa0205168
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Oct 29 18:23:00 2007 -0700
      
          Have a the first chunk of transaction steps occuring asynchronously with stubs and printf()s - should be downhill from here.  Also updated the DatabaseExample.html for the portion of the new API that works so far.
      
      commit 6b6e9e7a064424cd6b70489de80c79e7ae950b38
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Oct 29 17:32:30 2007 -0700
      
          Made DatabaseTasks create mutex/conditions on demand, and renamed the internal sqlitedatabase
      
      commit 99d06513090c2b4e04edda82d82108cf97da245a
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Mon Oct 29 16:30:52 2007 -0700
      
          Fix bug.
      
      commit 83def2ce73fa001f5bda3e152ca60e58c563dbed
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Mon Oct 29 15:17:45 2007 -0700
      
          Remove some cruft.
      
      commit 9f2c8c21d06d6b379426449357f1ee00a25faeee
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Mon Oct 29 14:45:54 2007 -0700
      
          More bindings.
      
      commit 9eae9135ed17179b7bcd225648272d24b76de8b9
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Oct 29 14:19:34 2007 -0700
      
          Adapt to new openDatabase() method
      
      commit 2e1dad857b190634f4394475e925d2dc518ae1fe
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Oct 29 12:05:53 2007 -0700
      
          More infrastructure changes for the new spec, getting really close now!
      
      commit b0d8ca9dc7ffe1a424070d5f8587346eca56b76b
      Author: Brady Eidson <beidson@apple.com>
      Date:   Fri Oct 26 17:25:41 2007 -0700
      
          More stubbing of infrastructure
      
      commit bb8c6528208a24f129af9a8c09763989e5723157
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Fri Oct 26 15:38:16 2007 -0700
      
          Remove SQLVersionChangeCallback.h
      
      commit c77ec8b1d2a7c8cb7a6a0bc42b089c34541cdf83
      Author: Brady Eidson <beidson@apple.com>
      Date:   Fri Oct 26 15:28:08 2007 -0700
      
          Make it build (removed the old changeVersion)
      
      commit e205fd2d6cb0cd4e6dd47cf4b6609196d0d8e87d
      Author: Brady Eidson <beidson@apple.com>
      Date:   Fri Oct 26 14:53:15 2007 -0700
      
          Even more progress in the architecture change
      
      commit 322f576e2ed8c584244335f918302169c81ea39f
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Fri Oct 26 14:52:22 2007 -0700
      
          Add JSSQLTransactionCustom.cpp.
      
      commit 22d0b184e1d5d92574b5caf2b73eb6c7faae84be
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Fri Oct 26 13:21:55 2007 -0700
      
          Add new API to Database.
      
      commit 910660c7668f2728850990f8984045de9e41423f
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Fri Oct 26 11:48:33 2007 -0700
      
          Add more .IDL files
      
      commit 4d0cbb5b3e8c57076ce0cb743f8a52a5e31c0219
      Author: Brady Eidson <beidson@apple.com>
      Date:   Fri Oct 26 11:20:54 2007 -0700
      
          Further groundwork for new API (does not build)
      
      commit d6420aacd1bf610ca53eced12e61ecd074f31bd7
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Oct 25 18:02:23 2007 -0700
      
          Further stubs and adaptations to the new API
      
      commit ea80b0c14037cfbdccf322146b26b62df2aa8211
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Oct 25 15:51:43 2007 -0700
      
          Remove closeTransaction()
      
      commit 4e701837674e07111da80a476135f5b73e25210f
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Oct 25 14:05:40 2007 -0700
      
          Further stubbing and API-matching cleanup
      
      commit f667cf3c7847069a6720296710876394954611bd
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 24 16:32:58 2007 -0700
      
          Add extra arguments to Window.openDatabase.
      
      commit efbbe3016a31a9c4a717de25d831406288f8126d
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 24 14:21:22 2007 -0700
      
          cleanup.
      
      commit b70a8252a588eee36d06835bad5793361ced35c5
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 24 12:31:06 2007 -0700
      
          Stub out a couple of new classes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      effd1c72
  10. 12 Nov, 2007 2 commits
    • mitz@apple.com's avatar
      WebCore: · 698099cc
      mitz@apple.com authored
              Reviewed by Darin Adler.
      
              - <http://bugs.webkit.org/show_bug.cgi?id=15890>
                Most of www.aol.com still redraws unnecessarily when headline/photo section changes
      
              Test: fast/repaint/invisible-objects.html
      
              Avoid repainting invisible blocks if they are enclosed in a layer that
              contains no visible objects.
      
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::layoutBlock):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::absoluteClippedOverflowRect):
      
      LayoutTests:
      
              Reviewed by Darin Adler.
      
              - no-repaint test for <http://bugs.webkit.org/show_bug.cgi?id=15890>
                Most of www.aol.com still redraws unnecessarily when headline/photo section changes
      
              * fast/repaint/invisible-objects.html: Added.
              * platform/mac/fast/repaint/invisible-objects-expected.checksum: Added.
              * platform/mac/fast/repaint/invisible-objects-expected.png: Added.
              * platform/mac/fast/repaint/invisible-objects-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      698099cc
    • mrowe@apple.com's avatar
      2007-11-12 Julien Chaffraix <julien.chaffraix@gmail.com> · dee0243d
      mrowe@apple.com authored
              Reviewed by Darin.
      
              http://bugs.webkit.org/show_bug.cgi?id=15334
              Split ResourceResponse into platform specific files
      
              * WebCore.base.exp:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/network/ResourceResponse.cpp: Removed.
              * platform/network/ResourceResponse.h: Removed.
              * platform/network/ResourceResponseBase.cpp: Copied from platform/network/ResourceResponse.cpp.
              (WebCore::ResourceResponseBase::asResourceResponse):
              (WebCore::ResourceResponseBase::isHTTP):
              (WebCore::ResourceResponseBase::url):
              (WebCore::ResourceResponseBase::setUrl):
              (WebCore::ResourceResponseBase::mimeType):
              (WebCore::ResourceResponseBase::setMimeType):
              (WebCore::ResourceResponseBase::expectedContentLength):
              (WebCore::ResourceResponseBase::setExpectedContentLength):
              (WebCore::ResourceResponseBase::textEncodingName):
              (WebCore::ResourceResponseBase::setTextEncodingName):
              (WebCore::ResourceResponseBase::suggestedFilename):
              (WebCore::ResourceResponseBase::setSuggestedFilename):
              (WebCore::ResourceResponseBase::httpStatusCode):
              (WebCore::ResourceResponseBase::setHTTPStatusCode):
              (WebCore::ResourceResponseBase::httpStatusText):
              (WebCore::ResourceResponseBase::setHTTPStatusText):
              (WebCore::ResourceResponseBase::httpHeaderField):
              (WebCore::ResourceResponseBase::setHTTPHeaderField):
              (WebCore::ResourceResponseBase::httpHeaderFields):
              (WebCore::ResourceResponseBase::isAttachment):
              (WebCore::ResourceResponseBase::setExpirationDate):
              (WebCore::ResourceResponseBase::expirationDate):
              (WebCore::ResourceResponseBase::setLastModifiedDate):
              (WebCore::ResourceResponseBase::lastModifiedDate):
              (WebCore::ResourceResponseBase::updateResourceResponse):
              * platform/network/ResourceResponseBase.h: Copied from platform/network/ResourceResponse.h.
              (WebCore::ResourceResponseBase::ResourceResponseBase):
              * platform/network/cf/ResourceResponse.h: Added.
              (WebCore::ResourceResponse::ResourceResponse):
              * platform/network/curl/ResourceResponse.h: Added.
              (WebCore::ResourceResponse::ResourceResponse):
              (WebCore::ResourceResponse::doUpdateResourceResponse):
              * platform/network/mac/ResourceResponse.h: Added.
              (WebCore::ResourceResponse::ResourceResponse):
              * platform/network/qt/ResourceResponse.h: Added.
              (WebCore::ResourceResponse::ResourceResponse):
              (WebCore::ResourceResponse::doUpdateResourceResponse):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dee0243d
  11. 11 Nov, 2007 1 commit
    • eseidel's avatar
      2007-11-10 Eric Seidel <eric@webkit.org> · dc7c497d
      eseidel authored
              Reviewed by darin.
      
              Add simple type inferencing to the parser, and create custom
              AddNode and LessNode subclasses based on inferred types.
              http://bugs.webkit.org/show_bug.cgi?id=15884
      
              SunSpider claims this is at least a 0.5% speedup.
      
              * JavaScriptCore.exp:
              * kjs/grammar.y:
              * kjs/internal.cpp:
              (KJS::NumberImp::getPrimitiveNumber):
              (KJS::GetterSetterImp::getPrimitiveNumber):
              * kjs/internal.h:
              * kjs/lexer.cpp:
              (KJS::Lexer::lex):
              * kjs/nodes.cpp:
              (KJS::Node::Node):
              (KJS::StringNode::evaluate):
              (KJS::StringNode::evaluateToNumber):
              (KJS::StringNode::evaluateToBoolean):
              (KJS::RegExpNode::evaluate):
              (KJS::UnaryPlusNode::optimizeVariableAccess):
              (KJS::AddNode::evaluate):
              (KJS::AddNode::evaluateToNumber):
              (KJS::AddNumbersNode::inlineEvaluateToNumber):
              (KJS::AddNumbersNode::evaluate):
              (KJS::AddNumbersNode::evaluateToNumber):
              (KJS::AddStringsNode::evaluate):
              (KJS::AddStringLeftNode::evaluate):
              (KJS::AddStringRightNode::evaluate):
              (KJS::lessThan):
              (KJS::lessThanEq):
              (KJS::LessNumbersNode::evaluate):
              (KJS::LessStringsNode::evaluate):
              * kjs/nodes.h:
              (KJS::ExpressionNode::):
              (KJS::RegExpNode::):
              (KJS::RegExpNode::precedence):
              (KJS::TypeOfResolveNode::):
              (KJS::LocalVarTypeOfNode::):
              (KJS::UnaryPlusNode::):
              (KJS::UnaryPlusNode::precedence):
              (KJS::AddNode::):
              (KJS::AddNode::precedence):
              (KJS::AddNumbersNode::):
              (KJS::AddStringLeftNode::):
              (KJS::AddStringRightNode::):
              (KJS::AddStringsNode::):
              (KJS::LessNode::):
              (KJS::LessNode::precedence):
              (KJS::LessNumbersNode::):
              (KJS::LessStringsNode::):
              * kjs/nodes2string.cpp:
              (KJS::StringNode::streamTo):
              * kjs/object.cpp:
              * kjs/object.h:
              * kjs/value.h:
              (KJS::JSValue::getPrimitiveNumber):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc7c497d
  12. 10 Nov, 2007 1 commit
  13. 08 Nov, 2007 1 commit
    • darin@apple.com's avatar
      WebCore: · 02405e32
      darin@apple.com authored
              Reviewed by Steve.
      
              - cut down on notImplemented() functions on Windows
      
              * bridge/AXObjectCache.h: Put #if around the accessibility
              global.
      
              * bridge/win/FrameWin.cpp: (WebCore::Frame::setNeedsReapplyStyles):
              Moved here from TemporaryLinkStubs.
      
              * dom/Document.cpp: (WebCore::Document::lastModified): Re-implemented
              using the ResourceResponse that's now available from the DocumentLoader.
      
              * editing/JSEditor.cpp: (execTranspose): Changed to call transpose() on
              the Editor instead of the obsolete one on the Frame.
      
              * loader/DocumentLoader.h: Removed getResponseModifiedHeader.
              * loader/FrameLoader.h: Removed overrideMediaType.
      
              * loader/gtk/DocumentLoaderGtk.cpp: Removed.
              * loader/mac/DocumentLoaderMac.mm: Removed.
              * loader/qt/DocumentLoaderQt.cpp: Removed.
      
              * page/Frame.cpp: Removed transpose.
              * page/Frame.h: Ditto.
              * page/FrameView.h: Removed updateBorder.
              * page/gtk/FrameGtk.cpp: Removed issueTransposeCommand.
              * page/mac/FrameMac.mm: Ditto.
              * page/mac/WebCoreFrameBridge.h: Removed issueTransposeCommand and
              overrideMediaType.
              * page/qt/FrameQt.cpp: Removed issueTransposeCommand.
      
              * platform/gtk/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled.
              * platform/qt/TemporaryLinkStubs.cpp: Ditto.
              * platform/win/TemporaryLinkStubs.cpp: Removed or moved all but 3 of the stubs.
              * platform/wx/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled,
              issueTransposeCommand, and overrideMediaType.
      
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::ResourceHandle::loadsBlocked): Moved here from TemporaryLinkStubs.
              (WebCore::ResourceHandle::willLoadFromCache): Ditto.
              * platform/win/GraphicsContextWin.cpp:
              (WebCore::GraphicsContextPlatformPrivate::clip): Ditto.
              * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::inWindow): Ditto.
              * platform/win/SystemTimeWin.cpp: (WebCore::userIdleTime): Ditto.
              * platform/win/WidgetWin.cpp: (WebCore::Widget::setIsSelected): Ditto.
      
              * WebCore.pro: Updated for removed files.
              * WebCore.xcodeproj/project.pbxproj: Updated for removed file.
      
      WebKit/mac:
      
              Reviewed by Steve.
      
              - removed some unused WebCore bridge methods
      
              * WebCoreSupport/WebFrameBridge.mm: Removed issueTransposeCommand and overrideMediaType.
      
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::overrideMediaType): Changed to call WebView directly instead of
              using the bridge object.
      
      WebKit/win:
      
              Reviewed by Steve.
      
              * Interfaces/IWebUIDelegate.idl: Added the functions needed below.
              * WebChromeClient.cpp:
              (WebChromeClient::setMenubarVisible): Eliminated the notImplemented()
              here by calling through the UI delegate.
              (WebChromeClient::menubarVisible): Ditto.
              (WebChromeClient::runDatabaseSizeLimitPrompt): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02405e32
  14. 05 Nov, 2007 1 commit
    • tristan's avatar
      qt: · 9c51c237
      tristan authored
              Reviewed by Darin Adler.
      
              * WebCoreSupport/ChromeClientQt.cpp:
              (WebCore::ChromeClientQt::createWindow):
              * WebCoreSupport/ChromeClientQt.h:
              Revised to use new WebCore ChromeClient createWindow API.
      
      WebCore:
      
              Reviewed by Darin Adler.
      
              * WebCore.xcodeproj/project.pbxproj:
              Set WindowFeatures.h as a Private header.
              
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::createWindow):
              Revised to use a single createWindow function instead of
              two createWindow functions and one createModalDialog function.
              The logic for this is now addressed in WebKit in an effort
              to make this easier to follow.
              
              * page/Chrome.cpp:
              (WebCore::Chrome::createWindow):
              * page/Chrome.h:
              * page/ChromeClient.h:
              * page/ContextMenuController.cpp:
              (WebCore::openNewWindow):
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyChromeClient::createWindow):
              Revised to take new additional windowFeatures parameter.
      
      WebKit:
      
              Reviewed by Darin Adler.
      
              * DefaultDelegates/WebDefaultUIDelegate.m:
              (-[WebDefaultUIDelegate webView:createWebViewWithRequest:windowFeatures:]):
              Forward the UI delegate to call webView:createWebViewWithRequest: if
              this method doesn't exist.
              
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::dispatchCreatePage):
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView loadPluginRequest:]):
              * WebView/WebView.mm:
              (-[WebView _openNewWindowWithRequest:]):
              Revised to use new webView:createWebViewWithRequest:windowFeatures: callback.
              
              * WebCoreSupport/WebChromeClient.h:
              * WebCoreSupport/WebChromeClient.mm:
              (WebChromeClient::createWindow):
              Added a new createWindow that accepts 3 parameters, so we can pass up windowFeatures to the chrome.
              Removed createModalDialog to use new createWindow function.
              
              * WebView/WebUIDelegatePrivate.h:
              Added new webView:createWebViewWithRequest:windowFeatures: method.
      
      win:
      
              Reviewed by Darin Adler.
              
              Part of the WebKit/WebCore API changes for
              <rdar://problem/5368188>
      
              * WebChromeClient.cpp:
              (WebChromeClient::createWindow):
              Removed usage of createModalDialog and revised to use new createWindow
              ChromeClient API.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27452 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c51c237
  15. 03 Nov, 2007 1 commit
    • ddkilzer's avatar
      JavaScriptCore: · 1b97fcad
      ddkilzer authored
              Sort files(...); sections of Xcode project files.
      
              Rubber-stamped by Darin.
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
      
      JavaScriptGlue:
      
              Sort files(...); sections of Xcode project files.
      
              Rubber-stamped by Darin.
      
              * JavaScriptGlue.xcodeproj/project.pbxproj:
      
      WebCore:
      
              Sort files(...); sections of Xcode project files.
      
              Rubber-stamped by Darin.
      
              * WebCore.xcodeproj/project.pbxproj:
              * manual-tests/NPN_Invoke/NPN_Invoke.xcodeproj/project.pbxproj:
      
      WebKit:
      
              Sort files(...); sections of Xcode project files.
      
              Rubber-stamped by Darin.
      
              * WebKit.xcodeproj/project.pbxproj:
      
      WebKitTools:
      
              Sort files(...); sections of Xcode project files.
      
              Rubber-stamped by Darin.
      
              * DrawTest/DrawTest.xcodeproj/project.pbxproj:
              * Drosera/mac/Drosera.xcodeproj/project.pbxproj:
              * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
              * WebKitLauncher/WebKitLauncher.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b97fcad
  16. 31 Oct, 2007 2 commits
    • andersca's avatar
      Reviewed by Sam. · 4912acec
      andersca authored
              Add new SQL callback interfaces and JS implementations of them.
              
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSCustomSQLStatementCallback.cpp: Added.
              (WebCore::JSCustomSQLStatementCallback::JSCustomSQLStatementCallback):
              (WebCore::JSCustomSQLStatementCallback::handleEvent):
              * bindings/js/JSCustomSQLStatementCallback.h: Added.
              * bindings/js/JSCustomSQLStatementErrorCallback.cpp: Added.
              (WebCore::JSCustomSQLStatementErrorCallback::JSCustomSQLStatementErrorCallback):
              (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
              * bindings/js/JSCustomSQLStatementErrorCallback.h: Added.
              * bindings/js/JSCustomSQLTransactionCallback.cpp: Added.
              (WebCore::JSCustomSQLTransactionCallback::JSCustomSQLTransactionCallback):
              (WebCore::JSCustomSQLTransactionCallback::handleEvent):
              * bindings/js/JSCustomSQLTransactionCallback.h: Added.
              * bindings/js/JSCustomSQLTransactionErrorCallback.cpp: Added.
              (WebCore::JSCustomSQLTransactionErrorCallback::JSCustomSQLTransactionErrorCallback):
              (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
              * bindings/js/JSCustomSQLTransactionErrorCallback.h: Added.
              * storage/JSCustomSQLStatementCallback.h: Added.
              * storage/JSCustomSQLStatementErrorCallback.h: Added.
              * storage/JSCustomSQLTransactionCallback.h: Added.
              * storage/JSCustomSQLTransactionErrorCallback.h: Added.
              * storage/SQLStatementCallback.h: Added.
              (WebCore::SQLStatementCallback::~SQLStatementCallback):
              * storage/SQLStatementCallback.idl: Added.
              * storage/SQLStatementErrorCallback.h: Added.
              (WebCore::SQLStatementErrorCallback::~SQLStatementErrorCallback):
              * storage/SQLStatementErrorCallback.idl: Added.
              * storage/SQLTransaction.h: Added.
              * storage/SQLTransaction.idl: Added.
              * storage/SQLTransactionCallback.h: Added.
              (WebCore::SQLTransactionCallback::~SQLTransactionCallback):
              * storage/SQLTransactionCallback.idl: Added.
              * storage/SQLTransactionErrorCallback.h: Added.
              (WebCore::SQLTransactionErrorCallback::~SQLTransactionErrorCallback):
              * storage/SQLTransactionErrorCallback.idl: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4912acec
    • andersca's avatar
      Reviewed by Darin. · 5a5889b6
      andersca authored
              Add new SQLError implementation.
              
              * DerivedSources.make:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * storage/SQLError.h: Added.
              (WebCore::SQLError::SQLError):
              (WebCore::SQLError::code):
              (WebCore::SQLError::message):
              * storage/SQLError.idl: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a5889b6
  17. 30 Oct, 2007 4 commits
    • ddkilzer's avatar
      WebCore: · b7ba4fce
      ddkilzer authored
              Generated files missing from WebCore's Xcode project file
              <http://bugs.webkit.org/show_bug.cgi?id=15406>
      
              Reviewed by Darin.
      
              Added the following files to the Xcode project file (note that
              JSHTMLInputElementBaseTable.cpp is used as a header file):
      
              - DOMCSSStyleSheetPrivate.h
              - DOMEventPrivate.h
              - DOMHTMLCollectionPrivate.h
              - DOMHTMLEmbedElementPrivate.h
              - DOMHTMLIFrameElementPrivate.h
              - DOMHTMLObjectElementPrivate.h
              - DOMHTMLSelectElementPrivate.h
              - DOMTextEventInternal.h
              - JSHTMLInputElementBaseTable.cpp
      
              * DerivedSources.make: Removed DOMSVGException.h and JSSVGAnimatedPoints.h
              since their generated code was not used.
              * WebCore.xcodeproj/project.pbxproj: Added missing header files.
      
      WebKit:
      
              Generated files missing from WebCore's Xcode project file
              <http://bugs.webkit.org/show_bug.cgi?id=15406>
      
              Reviewed by Darin.
      
              Added the following private header files to MigrateHeaders.make:
      
              - DOMCSSStyleSheetPrivate.h
              - DOMEventPrivate.h
              - DOMHTMLCollectionPrivate.h
              - DOMHTMLEmbedElementPrivate.h
              - DOMHTMLIFrameElementPrivate.h
              - DOMHTMLObjectElementPrivate.h
              - DOMHTMLSelectElementPrivate.h
      
              * MigrateHeaders.make:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b7ba4fce
    • antti's avatar
      Rubber stamped by Adele. · 76787a87
      antti authored
              Initial media (<video> and <audio>) support from feature branch and 
              QTKit based platform implementation.
              
              This will need to be updated to match current draft specification.
      
              * Configurations/WebCore.xcconfig:
              * DerivedSources.make:
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSEventCustom.cpp:
              (WebCore::toJS):
              * bindings/js/JSHTMLAudioElementConstructor.cpp: Added.
              (WebCore::JSHTMLAudioElementConstructor::JSHTMLAudioElementConstructor):
              (WebCore::JSHTMLAudioElementConstructor::implementsConstruct):
              (WebCore::JSHTMLAudioElementConstructor::construct):
              * bindings/js/JSHTMLAudioElementConstructor.h: Added.
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              (WebCore::createJSHTMLWrapper):
              * bindings/js/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * bindings/scripts/CodeGeneratorJS.pm:
              * dom/Document.cpp:
              (WebCore::Document::createEvent):
              (WebCore::Document::willSaveToCache):
              (WebCore::Document::didRestoreFromCache):
              (WebCore::Document::registerForCacheCallbacks):
              (WebCore::Document::unregisterForCacheCallbacks):
              * dom/Document.h:
              * dom/Element.cpp:
              (WebCore::Element::setBooleanAttribute):
              * dom/Element.h:
              (WebCore::Element::willSaveToCache):
              * dom/Event.cpp:
              (WebCore::Event::isProgressEvent):
              * dom/Event.h:
              * dom/EventNames.h:
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dispatchProgressEvent):
              * dom/EventTargetNode.h:
              * dom/ProgressEvent.cpp: Added.
              (WebCore::ProgressEvent::ProgressEvent):
              (WebCore::ProgressEvent::initProgressEvent):
              (WebCore::ProgressEvent::initProgressEventNS):
              * dom/ProgressEvent.h: Added.
              (WebCore::ProgressEvent::lengthComputable):
              (WebCore::ProgressEvent::loaded):
              (WebCore::ProgressEvent::total):
              (WebCore::ProgressEvent::isProgressEvent):
              * dom/ProgressEvent.idl: Added.
              * history/CachedPage.cpp:
              (WebCore::CachedPage::CachedPage):
              * html/HTMLAttributeNames.in:
              * html/HTMLAudioElement.cpp: Added.
              (WebCore::HTMLAudioElement::HTMLAudioElement):
              * html/HTMLAudioElement.h: Added.
              (WebCore::HTMLAudioElement::tagPriority):
              * html/HTMLAudioElement.idl: Added.
              * html/HTMLElement.cpp:
              (WebCore::inlineTagList):
              * html/HTMLElementFactory.cpp:
              (WebCore::audioConstructor):
              (WebCore::videoConstructor):
              (WebCore::sourceConstructor):
              (WebCore::createFunctionMap):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::~HTMLInputElement):
              (WebCore::HTMLInputElement::setInputType):
              (WebCore::HTMLInputElement::willMoveToNewOwnerDocument):
              (WebCore::HTMLInputElement::didMoveToNewOwnerDocument):
              * html/HTMLMediaElement.cpp: Added.
              (WebCore::HTMLMediaElement::HTMLMediaElement):
              (WebCore::HTMLMediaElement::~HTMLMediaElement):
              (WebCore::HTMLMediaElement::checkDTD):
              (WebCore::HTMLMediaElement::rendererIsNeeded):
              (WebCore::HTMLMediaElement::createRenderer):
              (WebCore::HTMLMediaElement::insertedIntoDocument):
              (WebCore::HTMLMediaElement::removedFromDocument):
              (WebCore::HTMLMediaElement::scheduleLoad):
              (WebCore::HTMLMediaElement::initAndDispatchProgressEvent):
              (WebCore::HTMLMediaElement::dispatchEventAsync):
              (WebCore::HTMLMediaElement::loadTimerFired):
              (WebCore::HTMLMediaElement::asyncEventTimerFired):
              (WebCore::serializeTimeOffset):
              (WebCore::parseTimeOffset):
              (WebCore::HTMLMediaElement::getTimeOffsetAttribute):
              (WebCore::HTMLMediaElement::setTimeOffsetAttribute):
              (WebCore::HTMLMediaElement::error):
              (WebCore::HTMLMediaElement::src):
              (WebCore::HTMLMediaElement::HTMLMediaElement::setSrc):
              (WebCore::HTMLMediaElement::currentSrc):
              (WebCore::HTMLMediaElement::networkState):
              (WebCore::HTMLMediaElement::bufferingRate):
              (WebCore::HTMLMediaElement::load):
              (WebCore::HTMLMediaElement::movieNetworkStateChanged):
              (WebCore::HTMLMediaElement::movieReadyStateChanged):
              (WebCore::HTMLMediaElement::setReadyState):
              (WebCore::HTMLMediaElement::progressEventTimerFired):
              (WebCore::HTMLMediaElement::seek):
              (WebCore::HTMLMediaElement::readyState):
              (WebCore::HTMLMediaElement::seeking):
              (WebCore::HTMLMediaElement::currentTime):
              (WebCore::HTMLMediaElement::setCurrentTime):
              (WebCore::HTMLMediaElement::duration):
              (WebCore::HTMLMediaElement::paused):
              (WebCore::HTMLMediaElement::defaultPlaybackRate):
              (WebCore::HTMLMediaElement::setDefaultPlaybackRate):
              (WebCore::HTMLMediaElement::playbackRate):
              (WebCore::HTMLMediaElement::setPlaybackRate):
              (WebCore::HTMLMediaElement::ended):
              (WebCore::HTMLMediaElement::autoplay):
              (WebCore::HTMLMediaElement::setAutoplay):
              (WebCore::HTMLMediaElement::play):
              (WebCore::HTMLMediaElement::pause):
              (WebCore::HTMLMediaElement::loopCount):
              (WebCore::HTMLMediaElement::setLoopCount):
              (WebCore::HTMLMediaElement::start):
              (WebCore::HTMLMediaElement::setStart):
              (WebCore::HTMLMediaElement::end):
              (WebCore::HTMLMediaElement::setEnd):
              (WebCore::HTMLMediaElement::loopStart):
              (WebCore::HTMLMediaElement::setLoopStart):
              (WebCore::HTMLMediaElement::loopEnd):
              (WebCore::HTMLMediaElement::setLoopEnd):
              (WebCore::HTMLMediaElement::currentLoop):
              (WebCore::HTMLMediaElement::setCurrentLoop):
              (WebCore::HTMLMediaElement::controls):
              (WebCore::HTMLMediaElement::setControls):
              (WebCore::HTMLMediaElement::volume):
              (WebCore::HTMLMediaElement::setVolume):
              (WebCore::HTMLMediaElement::muted):
              (WebCore::HTMLMediaElement::setMuted):
              (WebCore::HTMLMediaElement::pickMedia):
              (WebCore::HTMLMediaElement::checkIfSeekNeeded):
              (WebCore::HTMLMediaElement::movieVolumeChanged):
              (WebCore::HTMLMediaElement::movieDidEnd):
              (WebCore::HTMLMediaElement::movieCuePointReached):
              (WebCore::HTMLMediaElement::addCuePoint):
              (WebCore::HTMLMediaElement::removeCuePoint):
              (WebCore::HTMLMediaElement::buffered):
              (WebCore::HTMLMediaElement::played):
              (WebCore::HTMLMediaElement::seekable):
              (WebCore::HTMLMediaElement::effectiveStart):
              (WebCore::HTMLMediaElement::effectiveEnd):
              (WebCore::HTMLMediaElement::effectiveLoopStart):
              (WebCore::HTMLMediaElement::effectiveLoopEnd):
              (WebCore::HTMLMediaElement::activelyPlaying):
              (WebCore::HTMLMediaElement::endedPlayback):
              (WebCore::HTMLMediaElement::willSaveToCache):
              (WebCore::HTMLMediaElement::didRestoreFromCache):
              * html/HTMLMediaElement.h: Added.
              (WebCore::HTMLMediaElement::movie):
              (WebCore::HTMLMediaElement::isVideo):
              (WebCore::HTMLMediaElement::):
              (WebCore::HTMLMediaElement::CallbackEntry::CallbackEntry):
              * html/HTMLMediaElement.idl: Added.
              * html/HTMLSourceElement.cpp: Added.
              (WebCore::HTMLSourceElement::HTMLSourceElement):
              (WebCore::HTMLSourceElement::~HTMLSourceElement):
              (WebCore::HTMLSourceElement::insertedIntoDocument):
              (WebCore::HTMLSourceElement::src):
              (WebCore::HTMLSourceElement::setSrc):
              (WebCore::HTMLSourceElement::media):
              (WebCore::HTMLSourceElement::setMedia):
              (WebCore::HTMLSourceElement::type):
              (WebCore::HTMLSourceElement::setType):
              * html/HTMLSourceElement.h: Added.
              (WebCore::HTMLSourceElement::endTagRequirement):
              (WebCore::HTMLSourceElement::tagPriority):
              * html/HTMLSourceElement.idl: Added.
              * html/HTMLTagNames.in:
              * html/HTMLVideoElement.cpp: Added.
              (WebCore::HTMLVideoElement::HTMLVideoElement):
              (WebCore::HTMLVideoElement::videoWidth):
              (WebCore::HTMLVideoElement::videoHeight):
              * html/HTMLVideoElement.h: Added.
              (WebCore::HTMLVideoElement::tagPriority):
              (WebCore::HTMLVideoElement::isVideo):
              * html/HTMLVideoElement.idl: Added.
              * html/MediaError.h: Added.
              (WebCore::MediaError::):
              (WebCore::MediaError::MediaError):
              (WebCore::MediaError::code):
              * html/MediaError.idl: Added.
              * html/TimeRanges.cpp: Added.
              (TimeRanges::TimeRanges):
              (TimeRanges::start):
              (TimeRanges::end):
              (TimeRanges::add):
              (TimeRanges::contain):
              * html/TimeRanges.h: Added.
              (WebCore::TimeRanges::TimeRanges):
              (WebCore::TimeRanges::length):
              (WebCore::TimeRanges::Range::Range):
              * html/TimeRanges.idl: Added.
              * page/DOMWindow.idl:
              * platform/MIMETypeRegistry.cpp:
              (WebCore::initialiseSupportedMovieMIMETypes):
              (WebCore::initialiseMIMETypeRegistry):
              (WebCore::MIMETypeRegistry::isSupportedMovieMIMEType):
              (WebCore::MIMETypeRegistry::getSupportedMovieMIMETypes):
              * platform/MIMETypeRegistry.h:
              * platform/graphics/Movie.cpp: Added.
              (WebCore::Movie::Movie):
              (WebCore::Movie::~Movie):
              (WebCore::Movie::load):
              (WebCore::Movie::cancelLoad):
              (WebCore::Movie::play):
              (WebCore::Movie::pause):
              (WebCore::Movie::duration):
              (WebCore::Movie::currentTime):
              (WebCore::Movie::seek):
              (WebCore::Movie::paused):
              (WebCore::Movie::seeking):
              (WebCore::Movie::naturalSize):
              (WebCore::Movie::hasVideo):
              (WebCore::Movie::networkState):
              (WebCore::Movie::readyState):
              (WebCore::Movie::volume):
              (WebCore::Movie::setVolume):
              (WebCore::Movie::rate):
              (WebCore::Movie::setRate):
              (WebCore::Movie::muted):
              (WebCore::Movie::setMuted):
              (WebCore::Movie::dataRate):
              (WebCore::Movie::setEndTime):
              (WebCore::Movie::addCuePoint):
              (WebCore::Movie::removeCuePoint):
              (WebCore::Movie::clearCuePoints):
              (WebCore::Movie::maxTimeBuffered):
              (WebCore::Movie::maxTimeSeekable):
              (WebCore::Movie::bytesLoaded):
              (WebCore::Movie::totalBytesKnown):
              (WebCore::Movie::totalBytes):
              (WebCore::Movie::setRect):
              (WebCore::Movie::visible):
              (WebCore::Movie::setVisible):
              (WebCore::Movie::paint):
              (WebCore::Movie::getSupportedTypes):
              (WebCore::Movie::networkStateChanged):
              (WebCore::Movie::readyStateChanged):
              (WebCore::Movie::volumeChanged):
              (WebCore::Movie::didEnd):
              (WebCore::Movie::cuePointReached):
              * platform/graphics/Movie.h: Added.
              (WebCore::MovieClient::~MovieClient):
              (WebCore::MovieClient::movieNetworkStateChanged):
              (WebCore::MovieClient::movieReadyStateChanged):
              (WebCore::MovieClient::movieVolumeChanged):
              (WebCore::MovieClient::movieDidEnd):
              (WebCore::MovieClient::movieCuePointReached):
              (WebCore::Movie::parentWidget):
              (WebCore::Movie::setParentWidget):
              (WebCore::Movie::rect):
              (WebCore::Movie::):
              * platform/graphics/mac/MoviePrivateQTKit.h: Added.
              * platform/graphics/mac/MoviePrivateQTKit.mm: Added.
              (WebCore::MoviePrivate::MoviePrivate):
              (WebCore::MoviePrivate::~MoviePrivate):
              (WebCore::MoviePrivate::createQTMovie):
              (WebCore::MoviePrivate::createQTMovieView):
              (WebCore::MoviePrivate::createQTTime):
              (WebCore::MoviePrivate::load):
              (WebCore::MoviePrivate::play):
              (WebCore::MoviePrivate::pause):
              (WebCore::MoviePrivate::duration):
              (WebCore::MoviePrivate::currentTime):
              (WebCore::MoviePrivate::seek):
              (WebCore::MoviePrivate::setEndTime):
              (WebCore::MoviePrivate::addCuePoint):
              (WebCore::MoviePrivate::removeCuePoint):
              (WebCore::MoviePrivate::clearCuePoints):
              (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
              (WebCore::MoviePrivate::cancelSeek):
              (WebCore::MoviePrivate::seekTimerFired):
              (WebCore::MoviePrivate::cuePointTimerFired):
              (WebCore::MoviePrivate::paused):
              (WebCore::MoviePrivate::seeking):
              (WebCore::MoviePrivate::naturalSize):
              (WebCore::MoviePrivate::hasVideo):
              (WebCore::MoviePrivate::setVolume):
              (WebCore::MoviePrivate::setMuted):
              (WebCore::MoviePrivate::setRate):
              (WebCore::MoviePrivate::dataRate):
              (WebCore::MoviePrivate::networkState):
              (WebCore::MoviePrivate::readyState):
              (WebCore::MoviePrivate::maxTimeBuffered):
              (WebCore::MoviePrivate::maxTimeSeekable):
              (WebCore::MoviePrivate::maxTimeLoaded):
              (WebCore::MoviePrivate::bytesLoaded):
              (WebCore::MoviePrivate::totalBytesKnown):
              (WebCore::MoviePrivate::totalBytes):
              (WebCore::MoviePrivate::cancelLoad):
              (WebCore::MoviePrivate::updateStates):
              (WebCore::MoviePrivate::loadStateChanged):
              (WebCore::MoviePrivate::rateChanged):
              (WebCore::MoviePrivate::sizeChanged):
              (WebCore::MoviePrivate::timeChanged):
              (WebCore::MoviePrivate::volumeChanged):
              (WebCore::MoviePrivate::didEnd):
              (WebCore::MoviePrivate::setRect):
              (WebCore::MoviePrivate::setVisible):
              (WebCore::MoviePrivate::paint):
              (WebCore::MoviePrivate::getSupportedTypes):
              (-[WebCoreMovieObserver loadStateChanged:]):
              (-[WebCoreMovieObserver rateChanged:]):
              (-[WebCoreMovieObserver sizeChanged:]):
              (-[WebCoreMovieObserver timeChanged:]):
              (-[WebCoreMovieObserver volumeChanged:]):
              (-[WebCoreMovieObserver didEnd:]):
              (-[WebCoreMovieObserver setCallback:WebCore::]):
              * platform/mac/WebCoreSystemInterface.h:
              * platform/mac/WebCoreSystemInterface.mm:
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::collectLayers):
              * rendering/RenderVideo.cpp: Added.
              (WebCore::RenderVideo::RenderVideo):
              (WebCore::RenderVideo::~RenderVideo):
              (WebCore::RenderVideo::movie):
              (WebCore::RenderVideo::videoSizeChanged):
              (WebCore::RenderVideo::paint):
              (WebCore::RenderVideo::layout):
              (WebCore::RenderVideo::updateFromElement):
              (WebCore::RenderVideo::updateMovie):
              (WebCore::RenderVideo::isWidthSpecified):
              (WebCore::RenderVideo::isHeightSpecified):
              (WebCore::RenderVideo::calcReplacedWidth):
              (WebCore::RenderVideo::calcReplacedHeight):
              (WebCore::RenderVideo::calcAspectRatioWidth):
              (WebCore::RenderVideo::calcAspectRatioHeight):
              (WebCore::RenderVideo::calcPrefWidths):
              * rendering/RenderVideo.h: Added.
              (WebCore::RenderVideo::renderName):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76787a87
    • adele's avatar
      WebCore: · e902c4c2
      adele authored
              Reviewed by Darin.
      
              WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
              <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
      
              Test: manual-tests/password-caps-lock.html
      
              * WebCore.base.exp: Added symbol for capsLockStateMayHaveChanged.
      
              * page/Frame.cpp: (WebCore::Frame::setIsActive): Calls capsLockStateMayHaveChanged.
              * page/EventHandler.cpp: (WebCore::EventHandler::capsLockStateMayHaveChanged): Added. Tells the focused node's renderer that the capsLockStateMayHaveChanged.
              * page/EventHandler.h:
      
              * platform/PlatformKeyboardEvent.h:
              * platform/mac/KeyEventMac.mm: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
              * platform/win/KeyEventWin.cpp: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
      
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::RenderTextControl):
              (WebCore::RenderTextControl::paint): Added.  If m_shouldDrawCapsLockIndicator is true, paints the caps lock indicator after the background.
              (WebCore::RenderTextControl::forwardEvent): When the control gets and loses focus, update the caps lock state.
              (WebCore::RenderTextControl::capsLockStateMayHaveChanged): Added. Updates m_shouldDrawCapsLockIndicator, which is true if the field is a password field, 
               and the frame is active, and the element is focused, and the caps lock is on.  Causes a repaint when m_shouldDrawCapsLockIndicator changes state.
              * rendering/RenderTextControl.h: Added m_shouldDrawCapsLockIndicator.
              * rendering/RenderObject.h: (WebCore::RenderObject::capsLockStateMayHaveChanged): Added.
      
              * rendering/RenderTheme.h: (WebCore::RenderTheme::paintCapsLockIndicator): Added.
              * rendering/RenderThemeMac.h:
              * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintCapsLockIndicator): Added.  Calls wkDrawCapsLockIndicator.
              * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintCapsLockIndicator): Added.  Calls paintThemePart for the CapsLockPart.
              * rendering/RenderThemeSafari.h:
      
      WebKit:
      
              Reviewed by Darin.
      
              WebKit part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
              <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView flagsChanged:]): Call capsLockStateMayHaveChanged so WebCore knows it may have to update a password field.
              (+[WebHTMLView _postFlagsChangedEvent:]): Added a comment with a Radar number for why this isn't just in flagsChanged.
              (-[WebHTMLView scrollWheel:]): Instead of calling the next responder explicitly, we can just call super, which will take care of this.
      
      win:
      
              Reviewed by Darin.
      
              WebKitWin part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
              <rdar://problem/5110427> REGRESSION: Caps lock icon should show in password fields
      
              * WebView.cpp: (WebView::keyDown): Call capsLockStateMayHaveChanged so WebCore knows it may have to update a password field.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27264 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e902c4c2
    • hyatt's avatar
      Land support for implicit animation in CSS. · d97bd61c
      hyatt authored
      	
              Reviewed by mitz, darin
      
              * css/CSSParser.cpp:
              (WebCore::CSSParser::parseTimingFunctionValue):
              (WebCore::CSSParser::parseTransitionTimingFunction):
              (WebCore::CSSParser::parseTransitionProperty):
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::mapTransitionDuration):
              (WebCore::CSSStyleSelector::mapTransitionRepeatCount):
              (WebCore::CSSStyleSelector::mapTransitionTimingFunction):
              (WebCore::CSSStyleSelector::mapTransitionProperty):
              * css/CSSTimingFunctionValue.h:
              (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
              (WebCore::CSSTimingFunctionValue::x1):
              (WebCore::CSSTimingFunctionValue::y1):
              (WebCore::CSSTimingFunctionValue::x2):
              (WebCore::CSSTimingFunctionValue::y2):
              * dom/Element.cpp:
              (WebCore::Element::styleForRenderer):
              (WebCore::Element::createRenderer):
              * dom/Node.cpp:
              (WebCore::Node::createRendererIfNeeded):
              (WebCore::Node::setRenderStyle):
              * page/AnimationController.cpp:
              (WebCore::CurveData::CurveData):
              (WebCore::CurveData::sampleCurveX):
              (WebCore::CurveData::sampleCurveY):
              (WebCore::CurveData::sampleCurveDerivativeX):
              (WebCore::CurveData::solveCurveX):
              (WebCore::solveEpsilon):
              (WebCore::solveCubicBezierFunction):
              (WebCore::ImplicitAnimation::finished):
              (WebCore::CompositeImplicitAnimation::~CompositeImplicitAnimation):
              (WebCore::CompositeImplicitAnimation::hasAnimationForProperty):
              (WebCore::ImplicitAnimation::ImplicitAnimation):
              (WebCore::ImplicitAnimation::~ImplicitAnimation):
              (WebCore::ImplicitAnimation::reset):
              (WebCore::ImplicitAnimation::progress):
              (WebCore::blendFunc):
              (WebCore::ImplicitAnimation::animate):
              (WebCore::CompositeImplicitAnimation::animate):
              (WebCore::CompositeImplicitAnimation::animating):
              (WebCore::CompositeImplicitAnimation::reset):
              (WebCore::AnimationControllerPrivate::hasImplicitAnimations):
              (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
              (WebCore::AnimationControllerPrivate::~AnimationControllerPrivate):
              (WebCore::AnimationControllerPrivate::get):
              (WebCore::AnimationControllerPrivate::clear):
              (WebCore::AnimationControllerPrivate::updateTimer):
              (WebCore::AnimationControllerPrivate::timerFired):
              (WebCore:::m_data):
              (WebCore::AnimationController::~AnimationController):
              (WebCore::AnimationController::cancelImplicitAnimations):
              (WebCore::AnimationController::updateImplicitAnimations):
              (WebCore::AnimationController::suspendAnimations):
              (WebCore::AnimationController::resumeAnimations):
              * page/AnimationController.h:
              * page/Frame.cpp:
              (WebCore::FramePrivate::FramePrivate):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              (WebCore::RenderBox::destroy):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::setAnimatableStyle):
              (WebCore::RenderObject::destroy):
              * rendering/RenderObject.h:
              * rendering/RenderStyle.h:
              (WebCore::TimingFunction::TimingFunction):
              (WebCore::TimingFunction::operator==):
              (WebCore::TimingFunction::x1):
              (WebCore::TimingFunction::y1):
              (WebCore::TimingFunction::x2):
              (WebCore::TimingFunction::y2):
              (WebCore::TimingFunction::type):
              (WebCore::Transition::transitionProperty):
              (WebCore::Transition::setTransitionProperty):
              (WebCore::RenderStyle::initialTransitionProperty):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::destroy):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d97bd61c
  18. 29 Oct, 2007 2 commits
    • bdakin's avatar
      WebCore: · f876beeb
      bdakin authored
              Reviewed by Hyatt.
      
              Fix for <rdar://problem/5399614> anchor tag is not rendered without 
              text content, works in Firefox with CSS background-image (13237)
      
              This patch allows empty inlines that have box decorations or width 
              from border/padding/margin to have line boxes.
      
              * rendering/bidi.cpp:
              (WebCore::inlineFlowAllowsLineBox): Convenience function that 
              defines when we allow an inline flow to have a line box.
              (WebCore::requiresLineBox): Call inlineFlowAllowsLineBox.
              (WebCore::shouldSkipWhitespaceAfterStartObject): New function to 
              merge some shared code between list markers and empty inline flows 
              that fall at the beginning of a line.
              (WebCore::RenderBlock::findNextLineBreak): Make flows more like 
              list markers.
      
              One interesting side effect of this bug appeared in our xhtml/svg 
              tests that generate parser error tags. The tag we generate was 
              actually an empty inline with box decorations. This patch causes 
              those inlines to draw now, and the parser errors looked strange. So 
              I changed it so that the parsererror tag is display:block. This 
              matches Firefox, and I think was the original intent of the tag 
              since that causes its red background and border to show up.
              * dom/XMLTokenizer.cpp:
              (WebCore::createXHTMLParserErrorHeader):
      
      LayoutTests:
      
              Reviewed by Hyatt.
      
              New tests and new results for old tests for <rdar://problem/
              5399614> anchor tag is not rendered without text content, works in 
              Firefox with CSS background-image (13237)
      
              New tests:
              * fast/inline/drawStyledEmptyInlines.html: Added.
              * fast/inline/drawStyledEmptyInlinesWithWS.html: Added.
              * fast/inline/emptyInlinesWithinLists.html: Added.
              * fast/inline/styledEmptyInlinesWithBRs.html: Added.
              * platform/mac/fast/inline/drawStyledEmptyInlines-expected.checksum: Added.
              * platform/mac/fast/inline/drawStyledEmptyInlines-expected.png: Added.
              * platform/mac/fast/inline/drawStyledEmptyInlines-expected.txt: Added.
              * platform/mac/fast/inline/drawStyledEmptyInlinesWithWS-expected.checksum: Added.
              * platform/mac/fast/inline/drawStyledEmptyInlinesWithWS-expected.png: Added.
              * platform/mac/fast/inline/drawStyledEmptyInlinesWithWS-expected.txt: Added.
              * platform/mac/fast/inline/emptyInlinesWithinLists-expected.checksum: Added.
              * platform/mac/fast/inline/emptyInlinesWithinLists-expected.png: Added.
              * platform/mac/fast/inline/emptyInlinesWithinLists-expected.txt: Added.
              * platform/mac/fast/inline/styledEmptyInlinesWithBRs-expected.checksum: Added.
              * platform/mac/fast/inline/styledEmptyInlinesWithBRs-expected.png: Added.
              * platform/mac/fast/inline/styledEmptyInlinesWithBRs-expected.txt: Added.
              
              New results for tests with <paserererrors> since <parsererror> is 
              now block.
              * platform/mac/fast/invalid/junk-data-expected.checksum: Replaced.
              * platform/mac/fast/invalid/junk-data-expected.png: Replaced.
              * platform/mac/fast/invalid/junk-data-expected.txt:
              * platform/mac/fast/invalid/missing-end-tag-expected.checksum: Replaced.
              * platform/mac/fast/invalid/missing-end-tag-expected.png: Replaced.
              * platform/mac/fast/invalid/missing-end-tag-expected.txt:
              * platform/mac/fast/parser/xhtml-alternate-entities-expected.checksum: Replaced.
              * platform/mac/fast/parser/xhtml-alternate-entities-expected.png: Replaced.
              * platform/mac/fast/parser/xhtml-alternate-entities-expected.txt:
              * platform/mac/fast/xsl/xslt-extra-content-at-end-expected.checksum: Replaced.
              * platform/mac/fast/xsl/xslt-extra-content-at-end-expected.png: Replaced.
              * platform/mac/fast/xsl/xslt-extra-content-at-end-expected.txt: Removed.
              * platform/mac/svg/custom/junk-data-expected.checksum: Replaced.
              * platform/mac/svg/custom/junk-data-expected.png: Replaced.
              * platform/mac/svg/custom/junk-data-expected.txt:
              * platform/mac/svg/custom/missing-xlink-expected.checksum: Replaced.
              * platform/mac/svg/custom/missing-xlink-expected.png: Replaced.
              * platform/mac/svg/custom/missing-xlink-expected.txt:
              * platform/mac/svg/hixie/error/012-expected.checksum: Replaced.
              * platform/mac/svg/hixie/error/012-expected.png: Replaced.
              * platform/mac/svg/hixie/error/012-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27254 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f876beeb
    • hyatt's avatar
      Land the back end for CSS animated property transitions. I am landing... · 02b766f2
      hyatt authored
              Land the back end for CSS animated property transitions.  I am landing this in stages, so the AnimationController
              class is deliberately left empty.
      
              Reviewed by darin/aroben
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSPropertyNames.in:
              * css/CSSTimingFunctionValue.cpp: Added.
              (WebCore::CSSTimingFunctionValue::cssText):
              * css/CSSTimingFunctionValue.h: Added.
              (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
              (WebCore::CSSTimingFunctionValue::firstPoint):
              (WebCore::CSSTimingFunctionValue::secondPoint):
              * css/CSSValueKeywords.in:
              * history/CachedPage.cpp:
              (WebCore::CachedPage::restore):
              * page/AnimationController.cpp: Added.
              (WebCore::AnimationController::AnimationController):
              (WebCore::AnimationController::~AnimationController):
              (WebCore::AnimationController::cancelTransitions):
              (WebCore::AnimationController::updateTransitions):
              (WebCore::AnimationController::suspendAnimations):
              (WebCore::AnimationController::resumeAnimations):
              * page/AnimationController.h: Added.
              * page/Frame.cpp:
              (WebCore::Frame::animationController):
              (WebCore::Frame::clearTimers):
              * page/Frame.h:
              * page/FramePrivate.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              (WebCore::RenderBox::destroy):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::animationController):
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              (WebCore::Transition::Transition):
              (WebCore::Transition::~Transition):
              (WebCore::Transition::operator=):
              (WebCore::Transition::operator==):
              (WebCore::Transition::fillUnsetProperties):
              (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
              (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
              (WebCore::StyleRareNonInheritedData::operator==):
              (WebCore::StyleRareNonInheritedData::transitionDataEquivalent):
              (WebCore::RenderStyle::diff):
              (WebCore::RenderStyle::adjustTransitions):
              (WebCore::RenderStyle::accessTransitions):
              * rendering/RenderStyle.h:
              (WebCore::BackgroundLayer::next):
              (WebCore::):
              (WebCore::TimingFunction::TimingFunction):
              (WebCore::TimingFunction::operator==):
              (WebCore::Transition::next):
              (WebCore::Transition::isTransitionDurationSet):
              (WebCore::Transition::isTransitionRepeatCountSet):
              (WebCore::Transition::isTransitionTimingFunctionSet):
              (WebCore::Transition::isTransitionPropertySet):
              (WebCore::Transition::isEmpty):
              (WebCore::Transition::clearTransitionDuration):
              (WebCore::Transition::clearTransitionRepeatCount):
              (WebCore::Transition::clearTransitionTimingFunction):
              (WebCore::Transition::clearTransitionProperty):
              (WebCore::Transition::transitionDuration):
              (WebCore::Transition::transitionRepeatCount):
              (WebCore::Transition::transitionTimingFunction):
              (WebCore::Transition::transitionProperty):
              (WebCore::Transition::setTransitionDuration):
              (WebCore::Transition::setTransitionRepeatCount):
              (WebCore::Transition::setTransitionTimingFunction):
              (WebCore::Transition::setTransitionProperty):
              (WebCore::Transition::setNext):
              (WebCore::Transition::operator!=):
              (WebCore::RenderStyle::transitions):
              (WebCore::RenderStyle::clearTransitions):
              (WebCore::RenderStyle::inheritTransitions):
              (WebCore::RenderStyle::initialTransitionDuration):
              (WebCore::RenderStyle::initialTransitionRepeatCount):
              (WebCore::RenderStyle::initialTransitionTimingFunction):
              (WebCore::RenderStyle::initialTransitionProperty):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::destroy):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02b766f2
  19. 28 Oct, 2007 3 commits
    • timothy@apple.com's avatar
      Remove IDLs from the Copy Bundle Resources phase. · 0d25a221
      timothy@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d25a221
    • eseidel's avatar
      2007-10-28 Eric Seidel <eric@webkit.org> · 53b829d7
      eseidel authored
              Reviewed by Oliver.
      
              Push SVGResourceFilter platform specific data down into m_platformData
              in preparation for implementing a non-mac filter solution.
              
              Also update a very old email address in copyright headers
      
              * WebCore.xcodeproj/project.pbxproj:
              * platform/graphics/FloatPoint3D.cpp:
              (WebCore::FloatPoint3D::FloatPoint3D):
              * platform/graphics/FloatPoint3D.h:
              * platform/graphics/svg/SVGResourceFilter.cpp:
              (WebCore::SVGResourceFilter::SVGResourceFilter):
              * platform/graphics/svg/SVGResourceFilter.h:
              (WebCore::SVGResourceFilter::platformData):
              (WebCore::SVGResourceFilter::effects):
              * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
              (WebCore::SVGResourceFilter::createPlatformData):l
              (WebCore::SVGResourceFilter::prepareFilter):
              (WebCore::SVGResourceFilter::applyFilter):
              * platform/graphics/svg/filters/SVGDistantLightSource.h:
              * platform/graphics/svg/filters/SVGFEBlend.cpp:
              * platform/graphics/svg/filters/SVGFEBlend.h:
              * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
              * platform/graphics/svg/filters/SVGFEColorMatrix.h:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
              * platform/graphics/svg/filters/SVGFEComposite.cpp:
              * platform/graphics/svg/filters/SVGFEComposite.h:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
              * platform/graphics/svg/filters/SVGFEFlood.cpp:
              * platform/graphics/svg/filters/SVGFEFlood.h:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
              * platform/graphics/svg/filters/SVGFEImage.cpp:
              * platform/graphics/svg/filters/SVGFEImage.h:
              * platform/graphics/svg/filters/SVGFEMerge.cpp:
              * platform/graphics/svg/filters/SVGFEMerge.h:
              * platform/graphics/svg/filters/SVGFEMorphology.cpp:
              * platform/graphics/svg/filters/SVGFEMorphology.h:
              * platform/graphics/svg/filters/SVGFEOffset.cpp:
              * platform/graphics/svg/filters/SVGFEOffset.h:
              * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
              * platform/graphics/svg/filters/SVGFESpecularLighting.h:
              * platform/graphics/svg/filters/SVGFETile.h:
              * platform/graphics/svg/filters/SVGFETurbulence.cpp:
              * platform/graphics/svg/filters/SVGFETurbulence.h:
              * platform/graphics/svg/filters/SVGFilterEffect.cpp:
              * platform/graphics/svg/filters/SVGFilterEffect.h:
              * platform/graphics/svg/filters/SVGLightSource.cpp:
              * platform/graphics/svg/filters/SVGLightSource.h:
              * platform/graphics/svg/filters/SVGPointLightSource.h:
              * platform/graphics/svg/filters/SVGSpotLightSource.h:
              * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
              (WebCore::SVGFEBlend::getCIFilter):
              * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
              (WebCore::SVGFEColorMatrix::getCIFilter):
              * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
              (WebCore::SVGFEComponentTransfer::getCIFilter):
              * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
              (WebCore::SVGFEComposite::getCIFilter):
              * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
              (WebCore::SVGFEDiffuseLighting::getCIFilter):
              * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
              (WebCore::SVGFEDisplacementMap::getCIFilter):
              * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
              (WebCore::SVGFEFlood::getCIFilter):
              * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
              * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
              (WebCore::SVGFEImage::getCIFilter):
              * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
              (WebCore::SVGFEMerge::getCIFilter):
              * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
              (WebCore::SVGFESpecularLighting::getCIFilter):
              * platform/graphics/svg/mac: Added.
              * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h: Added.
              * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm: Added.
              (WebCore::SVGResourceFilterPlatformDataMac::SVGResourceFilterPlatformDataMac):
              (WebCore::SVGResourceFilterPlatformDataMac::~SVGResourceFilterPlatformDataMac):
              (WebCore::SVGResourceFilterPlatformDataMac::getCIFilterStack):
              (WebCore::alphaImageForImage):
              (WebCore::SVGResourceFilterPlatformDataMac::imageForName):
              (WebCore::SVGResourceFilterPlatformDataMac::setImageForName):
              (WebCore::SVGResourceFilterPlatformDataMac::setOutputImage):
              (WebCore::SVGResourceFilterPlatformDataMac::inputImage):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27179 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      53b829d7
    • timothy@apple.com's avatar
      Reviewed by Adam. · 7d2aaa24
      timothy@apple.com authored
              Bug 15727: Resizing the resource sidebar doesn't scale the font preview or network timeline
              http://bugs.webkit.org/show_bug.cgi?id=15727
      
              Add one window resize listener and call the new resize function on the currentPanel.
              Also call the currentPanel's resize function when resizing the sidebar.
      
              * page/inspector/DocumentPanel.js: Implement resize and call updateTreeSelection() when
                the panel is shown and when resizing the DOM sidebar.
              * page/inspector/FontPanel.js: Implement resize.
              * page/inspector/NetworkPanel.js: Ditto.
              * page/inspector/inspector.js: Add a window resize listener.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27171 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7d2aaa24
  20. 27 Oct, 2007 2 commits
    • weinig's avatar
      WebCore: · 5e5675ed
      weinig authored
              Reviewed by Adam Roben.
      
              Fix http://bugs.webkit.org/show_bug.cgi?id=14953
              Implement window.console in WebCore
      
              - Adds a window.console object that has 4 methods (log, info, warn, and error)
                that send messages to the Chrome.  This moves functionality that was in the
                app down into WebCore.
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/scripts/CodeGeneratorJS.pm: Add extended attribute
              to mark attributes as [Replacable] which indicates they can 
              overridden when set.
              * page/Chrome.cpp:
              (WebCore::Chrome::addMessageToConsole): Allow all messages to go
              up to the ChromeClient.
              * page/Console.cpp: Added.
              (WebCore::Console::Console):
              (WebCore::Console::disconnectFrame):
              (WebCore::Console::error):
              (WebCore::Console::info):
              (WebCore::Console::log):
              (WebCore::Console::warn):
              * page/Console.h: Added.
              * page/Console.idl: Added.
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::clear):
              (WebCore::DOMWindow::console):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      LayoutTests:
      
              Reviewed by Adam Roben.
      
              Update tests for http://bugs.webkit.org/show_bug.cgi?id=14953
              Implement window.console in WebCore
      
              * fast/dom/Window/window-properties-expected.txt:
              * http/tests/security/cross-frame-access-put-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e5675ed
    • ap's avatar
      Reviewed by Darin. · 7b67568d
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=15555
              XMLHttpRequest does not support charset "x-user-defined", which can
              facilitate loading of binary data
      
              Test: http/tests/xmlhttprequest/binary-x-user-defined.html
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/TextCodecUserDefined.cpp: Added.
              (WebCore::TextCodecUserDefined::registerEncodingNames):
              (WebCore::newStreamingTextDecoderUserDefined):
              (WebCore::TextCodecUserDefined::registerCodecs):
              (WebCore::TextCodecUserDefined::decode):
              (WebCore::encodeComplexUserDefined):
              (WebCore::TextCodecUserDefined::encode):
              * platform/TextCodecUserDefined.h: Added.
              * platform/TextEncodingRegistry.cpp:
              (WebCore::buildBaseTextCodecMaps):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b67568d
  21. 25 Oct, 2007 2 commits
    • beidson's avatar
      Reviewed by Anders · 250d101e
      beidson authored
              Bulk rename of platform/sql/SQL* to platform/sql/SQLite*
      
              This is more accurate in that there is no realistic "SQL" abstraction, the classes are obviously
              tied extremely close to SQLite, and is necessitated by the introduction of "SQLTransaction" in
              the HTML5 database API which we are adopting.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      250d101e
    • eseidel's avatar
      2007-10-24 Eric Seidel <eric@webkit.org> · 5417cd59
      eseidel authored
              Reviewed by Maciej.
              
              Add a JSGlobalObject class and remove the InterpreterMap
              http://bugs.webkit.org/show_bug.cgi?id=15681
              
              This required making JSCallbackObject a template class to allow for
              JSGlobalObjects with JSCallbackObject functionality.
              
              SunSpider claims this was a 0.5% speedup.
      
              * API/JSCallbackObject.cpp:
              (KJS::):
              * API/JSCallbackObject.h:
              * API/JSCallbackObjectFunctions.h: Copied from API/JSCallbackObject.cpp.
              (KJS::::JSCallbackObject):
              (KJS::::init):
              (KJS::::~JSCallbackObject):
              (KJS::::initializeIfNeeded):
              (KJS::::className):
              (KJS::::getOwnPropertySlot):
              (KJS::::put):
              (KJS::::deleteProperty):
              (KJS::::implementsConstruct):
              (KJS::::construct):
              (KJS::::implementsHasInstance):
              (KJS::::hasInstance):
              (KJS::::implementsCall):
              (KJS::::callAsFunction):
              (KJS::::getPropertyNames):
              (KJS::::toNumber):
              (KJS::::toString):
              (KJS::::setPrivate):
              (KJS::::getPrivate):
              (KJS::::inherits):
              (KJS::::cachedValueGetter):
              (KJS::::staticValueGetter):
              (KJS::::staticFunctionGetter):
              (KJS::::callbackGetter):
              * API/JSClassRef.cpp:
              (OpaqueJSClass::prototype):
              * API/JSContextRef.cpp:
              (JSGlobalContextCreate):
              * API/JSObjectRef.cpp:
              (JSObjectMake):
              (JSObjectGetPrivate):
              (JSObjectSetPrivate):
              * API/JSValueRef.cpp:
              (JSValueIsObjectOfClass):
              * JavaScriptCore.exp:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * bindings/c/c_utility.cpp:
              (KJS::Bindings::convertValueToNPVariant):
              * bindings/jni/jni_jsobject.cpp:
              * bindings/objc/objc_utility.mm:
              (KJS::Bindings::convertValueToObjcValue):
              * kjs/Context.cpp:
              (KJS::Context::Context):
              * kjs/ExecState.cpp:
              (KJS::ExecState::lexicalInterpreter):
              * kjs/JSGlobalObject.h: Added.
              (KJS::JSGlobalObject::JSGlobalObject):
              (KJS::JSGlobalObject::isGlobalObject):
              (KJS::JSGlobalObject::interpreter):
              (KJS::JSGlobalObject::setInterpreter):
              * kjs/array_instance.cpp:
              * kjs/context.h:
              * kjs/function.cpp:
              (KJS::FunctionImp::callAsFunction):
              (KJS::GlobalFuncImp::callAsFunction):
              * kjs/interpreter.cpp:
              (KJS::Interpreter::Interpreter):
              (KJS::Interpreter::init):
              (KJS::Interpreter::~Interpreter):
              (KJS::Interpreter::globalObject):
              (KJS::Interpreter::initGlobalObject):
              (KJS::Interpreter::evaluate):
              * kjs/interpreter.h:
              * kjs/lookup.h:
              (KJS::cacheGlobalObject):
              * kjs/object.h:
              (KJS::JSObject::isGlobalObject):
              * kjs/testkjs.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5417cd59
  22. 23 Oct, 2007 2 commits
    • thatcher's avatar
      Reviewed by Sam Weinig. · 2f9f26fa
      thatcher authored
              - Made seperate files for the various classes in ResourcePanel.js.
              - Broke up ResourcePanel.js and created seperate panel classes for different resource types.
              - Moved View code down to the Panel base-class.
              - Reduced code duplication in DatabasePanel.js by sub-classing from the new ResourcePanel.
      
              * page/inspector/DatabasePanel.js:
              * page/inspector/DocumentPanel.js: Added.
              * page/inspector/FontPanel.js: Added.
              * page/inspector/ImagePanel.js: Added.
              * page/inspector/Panel.js: Added.
              * page/inspector/PropertiesSection.js: Added.
              * page/inspector/Resource.js:
              * page/inspector/ResourcePanel.js:
              * page/inspector/SidebarPane.js: Added.
              * page/inspector/SourcePanel.js: Added.
              * page/inspector/inspector.css:
              * page/inspector/inspector.html:
              * page/inspector/inspector.js:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f9f26fa
    • eseidel's avatar
      2007-10-23 Eric Seidel <eric@webkit.org> · e77f69fd
      eseidel authored
              Build fix only, no review.
      
              Sacrifice three virgin hours upon the altar of the heathen XCode gods
              and pray that our build troubles are finally over. :(
      
              * DerivedSources.make: add DOMSVGException.h
              * WebCore.xcodeproj/project.pbxproj: Remove DOMSVG*Interal.h files from "Copy Generated Headers" phase. Why?  Who knows.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e77f69fd