1. 02 Feb, 2010 40 commits
    • steveblock@google.com's avatar
      Adds virtual destructors for AbstractWeakReferenceMap and AbstractWeakReferenceMap::Visitor · 235bc627
      steveblock@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=34434
      
      Reviewed by Adam Barth.
      
      No new tests, build fix only.
      
      * bindings/v8/V8DOMMap.h: Modified.
      (WebCore::AbstractWeakReferenceMap::~AbstractWeakReferenceMap): Added.
      (WebCore::AbstractWeakReferenceMap::Visitor::~Visitor): Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54218 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      235bc627
    • eric@webkit.org's avatar
      2010-02-02 Kwang Yul Seo <skyul@company100.net> · 648e3963
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [BREWMP] Don't define HAVE_TM_GMTOFF, HAVE_TM_ZONE and HAVE_TIMEGM
              https://bugs.webkit.org/show_bug.cgi?id=34388
      
              BREWMP does not have these features.
      
              * wtf/Platform.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54217 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      648e3963
    • eric@webkit.org's avatar
      2010-02-02 Kwang Yul Seo <skyul@company100.net> · cef8ae95
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [BREWMP] Define WTF_PLATFORM_BREWMP=1 when BUILDING_BREWMP is defined
              https://bugs.webkit.org/show_bug.cgi?id=34386
      
              Define WTF_PLATFORM_BREWMP=1 so that PLATFORM(BREWMP) guard can be used.
      
              * wtf/Platform.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54216 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      cef8ae95
    • eric@webkit.org's avatar
      2010-02-02 Avi Drissman <avi@chromium.org> · b9699687
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Sync up Chromium Mac render theme to Mac render theme
              https://bugs.webkit.org/show_bug.cgi?id=34340
      
              Covered by existing layout tests.
      
              * platform/chromium/ThemeChromiumMac.mm:
              (WebCore::updateStates):
              (WebCore::checkbox):
              (WebCore::paintCheckbox):
              (WebCore::radio):
              (WebCore::paintRadio):
              (WebCore::listButtonSizes):
              (WebCore::setupButtonCell):
              (WebCore::button):
              (WebCore::paintButton):
              (WebCore::ThemeChromiumMac::controlSize):
              (WebCore::ThemeChromiumMac::minimumControlSize):
              (WebCore::ThemeChromiumMac::controlBorder):
              (WebCore::ThemeChromiumMac::paint):
              * rendering/RenderThemeChromiumMac.h:
              * rendering/RenderThemeChromiumMac.mm:
              (-[WebCoreRenderThemeNotificationObserver initWithTheme:WebCore::]):
              (WebCore::convertNSColorToColor):
              (WebCore::RenderThemeChromiumMac::systemColor):
              (WebCore::RenderThemeChromiumMac::isControlStyled):
              (WebCore::RenderThemeChromiumMac::adjustRepaintRect):
              (WebCore::RenderThemeChromiumMac::convertToPaintingRect):
              (WebCore::RenderThemeChromiumMac::paintCapsLockIndicator):
              (WebCore::RenderThemeChromiumMac::paintMenuList):
              (WebCore::RenderThemeChromiumMac::paintMenuListButton):
              (WebCore::RenderThemeChromiumMac::adjustMenuListStyle):
              (WebCore::RenderThemeChromiumMac::adjustMenuListButtonStyle):
              (WebCore::RenderThemeChromiumMac::paintSliderTrack):
              (WebCore::RenderThemeChromiumMac::paintSliderThumb):
              (WebCore::RenderThemeChromiumMac::paintSearchField):
              (WebCore::RenderThemeChromiumMac::setSearchFieldSize):
              (WebCore::RenderThemeChromiumMac::adjustSearchFieldStyle):
              (WebCore::RenderThemeChromiumMac::paintSearchFieldResultsButton):
              (WebCore::RenderThemeChromiumMac::adjustSliderThumbSize):
              (WebCore::RenderThemeChromiumMac::popupButton):
              (WebCore::RenderThemeChromiumMac::sliderThumbHorizontal):
              (WebCore::RenderThemeChromiumMac::sliderThumbVertical):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54215 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b9699687
    • jorlow@chromium.org's avatar
      2010-02-01 Jeremy Orlow <jorlow@chromium.org> · 14a0523d
      jorlow@chromium.org authored
              Reviewed by Darin Fisher.
      
              [Chromium] Add WebSecurityOrigin::createFromString factory
              https://bugs.webkit.org/show_bug.cgi?id=34460
      
              * public/WebSecurityOrigin.h:
              * src/WebSecurityOrigin.cpp:
              (WebKit::WebSecurityOrigin::createFromString):
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54214 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      14a0523d
    • eric@webkit.org's avatar
      2010-02-02 Kwang Yul Seo <skyul@company100.net> · 03d7761b
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [BREWMP] Port Logging
              https://bugs.webkit.org/show_bug.cgi?id=34300
      
              Log calls to notImplemented() by default.
      
              * platform/brew/LoggingBrew.cpp: Added.
              (WebCore::InitializeLoggingChannelsIfNecessary):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54213 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      03d7761b
    • tkent@chromium.org's avatar
      2010-02-02 Kent Tamura <tkent@chromium.org> · 1d3b1ae4
      tkent@chromium.org authored
              Reviewed by Darin Fisher.
      
              [Chromium] Should not select a word on right-click.
              https://bugs.webkit.org/show_bug.cgi?id=33364
      
              For non-Mac platforms, do not select a word around the caret when
              a context menu is opening. This behavior is not common in non-Mac
              platforms, and it prevents pasting with a context menu.
      
              In order that the spell checker works without the selection, we
              introduce WebFrame::selectWordAroundCaret(). We can replace a word
              around the caret with selectWordAroundCaret() + replaceSelection().
      
              * public/WebFrame.h: Add pure selectWordAroundCaret() declaration.
              * src/ContextMenuClientImpl.cpp:
              (WebKit::selectMisspelledWord): Move word-selection code to
              WebFrameImpl::selectWordAroundPosition(), and clear the selection
              on non-Mac.
              * src/WebFrameImpl.cpp:
              (WebKit::WebFrameImpl::selectWordAroundPosition):
              (WebKit::WebFrameImpl::selectWordAroundCaret):
              * src/WebFrameImpl.h: Add selectWordAroundCaret() declaration.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54212 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1d3b1ae4
    • eric@webkit.org's avatar
      2010-02-02 Kwang Yul Seo <skyul@company100.net> · c2614338
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [BREWMP] Port FileChooser
              https://bugs.webkit.org/show_bug.cgi?id=34261
      
              Port FileChooser to BREWMP.
      
              * platform/brew/FileChooserBrew.cpp: Added.
              (WebCore::FileChooser::basenameForWidth):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54211 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c2614338
    • zoltan@webkit.org's avatar
      2010-02-01 Zoltan Horvath <zoltan@webkit.org> · 5c7b8ba1
      zoltan@webkit.org authored
              Reviewed by Darin Adler.
      
              Allow custom memory allocation control for IconDatabaseClient class
              https://bugs.webkit.org/show_bug.cgi?id=33252
      
              Inherits the following struct from Noncopyable because it is 
              instantiated by 'new' and no need to be copyable:
      
              class name               - instantiated at: WebCore/'location'
              class IconDatabaseClient - loader/icon/IconDatabase.cpp:89
      
              * loader/icon/IconDatabaseClient.h:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54210 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      5c7b8ba1
    • bweinstein@apple.com's avatar
      Check in new expected results for a test that has been failing on Windows · 9b96af1f
      bweinstein@apple.com authored
      since it was originally landed. This appears to be a font issue, but commenting
      on bug <https://bugs.webkit.org/show_bug.cgi?id=34234> to make sure.
      
      * platform/win/fast/text/international/hebrew-vowels-expected.txt: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54209 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9b96af1f
    • eric@webkit.org's avatar
      2010-02-01 Kwang Yul Seo <skyul@company100.net> · 3b8b1efb
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [BREWMP] Port MIMETypeRegistry
              https://bugs.webkit.org/show_bug.cgi?id=34220
      
              Port MIMETypeRegistry with an extension map as other ports do.
      
              * platform/brew: Added.
              * platform/brew/MIMETypeRegistryBrew.cpp: Added.
              (WebCore::):
              (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54208 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3b8b1efb
    • dimich@chromium.org's avatar
    • cjerdonek@webkit.org's avatar
      Addressed FIXME in check-webkit-style so that the carriage-return · b4699f10
      cjerdonek@webkit.org authored
      check will work for patches.
      
      Reviewed by Shinichiro Hamaji.
      
      https://bugs.webkit.org/show_bug.cgi?id=34260
      
      Also added support for limiting the number of errors reported
      per category, per file.
      
      * Scripts/webkitpy/style/checker.py:
        - Added new "whitespace/carriage_return" category from common.py.
        - Added MAX_REPORTS_PER_CATEGORY dictionary.
        - Added max_reports_per_category attribute to ProcessorOptions class.
        - Refactored StyleChecker._process_file().
      
      * Scripts/webkitpy/style/checker_unittest.py:
        - Updated ProcessorOptionsTest tests.
        - Added test to check MAX_REPORTS_PER_CATEGORY.
      
      * Scripts/webkitpy/style/error_handlers.py:
        - Added support for suppressing the display of errors after
          reaching a per-category maximum (from max_reports_per_category).
      
      * Scripts/webkitpy/style/error_handlers_unittest.py:
        - Added test for suppressing error display.
      
      * Scripts/webkitpy/style/processors/common.py: Added.
        - Moved carriage-return check to new file.
      
      * Scripts/webkitpy/style/processors/common_unittest.py: Added.
        - Added unit tests for carriage-return check.
      
      * Scripts/webkitpy/style/unittests.py:
        - Added reference to common_unittest.py.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54206 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b4699f10
    • hamaji@chromium.org's avatar
      2010-02-01 Shinichiro Hamaji <hamaji@chromium.org> · 3713dd50
      hamaji@chromium.org authored
              Reviewed by Eric Seidel.
      
              Provide a way to get page number with layoutTestController
              https://bugs.webkit.org/show_bug.cgi?id=33840
      
              * platform/gtk/Skipped:
              * platform/mac/Skipped:
              * platform/qt/Skipped:
              * platform/win/Skipped:
              * printing/page-break-always-expected.txt: Added.
              * printing/page-break-always.html: Added.
              * printing/pageNumerForElementById-expected.txt: Added.
              * printing/pageNumerForElementById.html: Added.
              * printing/script-tests/TEMPLATE.html: Added.
              * printing/script-tests/page-break-always.js: Added.
              (createParagraph):
              * printing/script-tests/pageNumerForElementById.js: Added.
              (createParagraph):
      2010-02-01  Shinichiro Hamaji  <hamaji@chromium.org>
      
              Reviewed by Eric Seidel.
      
              Provide a way to get page number with layoutTestController
              https://bugs.webkit.org/show_bug.cgi?id=33840
      
              Test: printing/page-break-always.html
      
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * page/PrintContext.cpp:
              (WebCore::PrintContext::pageRect): Added a getter function.
              (WebCore::PrintContext::computePageRects): Move its logic into computePageRectsWithPageSize.
              (WebCore::PrintContext::computePageRectsWithPageSize): Factored out from computePageRects for pageNumberForElement.
              (WebCore::enclosingBoxModelObject): Added for pageNumberForElement.
              (WebCore::PrintContext::pageNumberForElement): Added for testing.
              * page/PrintContext.h:
      2010-02-01  Shinichiro Hamaji  <hamaji@chromium.org>
      
              Reviewed by Eric Seidel.
      
              Provide a way to get page number with layoutTestController
              https://bugs.webkit.org/show_bug.cgi?id=33840
      
              * Misc/WebCoreStatistics.h:
              * Misc/WebCoreStatistics.mm:
              (-[WebFrame pageNumberForElement:element:pageWidth:]):
      2010-02-01  Shinichiro Hamaji  <hamaji@chromium.org>
      
              Reviewed by Eric Seidel.
      
              Provide a way to get page number with layoutTestController
              https://bugs.webkit.org/show_bug.cgi?id=33840
      
              * DumpRenderTree/LayoutTestController.cpp:
              (pageNumberForElementByIdCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::pageNumberForElementById):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::pageNumberForElementById):
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::pageNumberForElementById):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54205 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3713dd50
    • eric@webkit.org's avatar
      2010-02-01 Kwang Yul Seo <skyul@company100.net> · 169f140c
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [BREWMP] Add conversions between IntSize and AEESize
              https://bugs.webkit.org/show_bug.cgi?id=34197
      
              Make it easy to convert between IntSize and AEESize.
      
              * platform/graphics/IntSize.h:
              * platform/graphics/brew/IntSizeBrew.cpp: Added.
              (WebCore::IntSize::IntSize):
              (WebCore::IntSize::operator AEESize):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54204 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      169f140c
    • eric@webkit.org's avatar
      2010-02-01 Stephen White <senorblanco@chromium.org> · 2166ed8c
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Fix for Pattern transformations in Chromium/Skia.  This required
              reworking Pattern a bit to be more like the Gradient implementation.
              In particular, it now holds an m_pattern reference to the
              platform-specific implementation, and passes along changes to the
              m_patternSpaceTransformation, in the same way that Gradient does for
              m_gradientSpaceTransformation.  This is necessary since Skia creates the
              platform-specific pattern (SkShader) once, rather than recreating it
              on each draw.
              For platforms other than Skia, m_pattern is unused, they will
              continue to use the static createPlatformPattern(), and the new
              notification functions are stubbed out.  Other platforms can switch to
              the new implementation if they so choose.
      
              https://bugs.webkit.org/show_bug.cgi?id=24534
      
              Covered by svg/custom/pattern-y-offset.svg,
              svg/custom/pattern-cycle-detection.svg, and many more.
      
              * platform/graphics/Pattern.cpp:
              (WebCore::Pattern::Pattern):
              Initializer for m_pattern.
              (WebCore::Pattern::~Pattern):
              call platformDestroy().
              (WebCore::Pattern::setPatternSpaceTransform):
              Pass along the transform via setPlatformPatternSpaceTransform().
              (WebCore::Pattern::platformDestroy):
              (WebCore::Pattern::setPlatformPatternSpaceTransform):
              Stub implementations for non-skia platforms.
              * platform/graphics/Pattern.h:
              * platform/graphics/skia/GraphicsContextSkia.cpp:
              (WebCore::GraphicsContext::setPlatformFillPattern):
              (WebCore::GraphicsContext::setPlatformStrokePattern):
              Call platformPattern() instead of static version.
              Since Pattern now owns its SkShader, no need to unref here.
              * platform/graphics/skia/PatternSkia.cpp:
              (WebCore::Pattern::platformDestroy):
              Unref the SkShader on destroy.
              (WebCore::Pattern::platformPattern):
              Create the platform pattern (SkShader) once, and cache it.
              (WebCore::Pattern::setPlatformPatternSpaceTransform):
              Set the shader's local matrix from the m_patternSpaceTransformation.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54203 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      2166ed8c
    • dbates@webkit.org's avatar
      2010-02-01 Daniel Bates <dbates@webkit.org> · fc8a2755
      dbates@webkit.org authored
              Reviewed by Adam Barth.
      
              https://bugs.webkit.org/show_bug.cgi?id=27312
      
              Implements support for full page blocking via the X-XSS-Protection header.
      
              Tests: http/tests/security/xssAuditor/full-block-base-href.html
                     http/tests/security/xssAuditor/full-block-get-from-iframe.html
                     http/tests/security/xssAuditor/full-block-iframe-javascript-url.html
                     http/tests/security/xssAuditor/full-block-iframe-no-inherit.php
                     http/tests/security/xssAuditor/full-block-javascript-link.html
                     http/tests/security/xssAuditor/full-block-link-onclick.html
                     http/tests/security/xssAuditor/full-block-object-tag.html
                     http/tests/security/xssAuditor/full-block-post-from-iframe.html
                     http/tests/security/xssAuditor/full-block-script-tag-with-source.html
                     http/tests/security/xssAuditor/full-block-script-tag.html
                     http/tests/security/xssAuditor/malformed-xss-protection-header.html
      
              * page/XSSAuditor.cpp:
              (WebCore::XSSAuditor::shouldFullPageBlockForXSSProtectionHeader): Added.
              (WebCore::XSSAuditor::findInRequest): Modified to call method
              XSSAuditor::shouldFullPageBlockForXSSProtectionHeader.
              * page/XSSAuditor.h: Defined method shouldFullPageBlockForXSSProtectionHeader
              and fixed misspelled words in large comment block.
      2010-02-01  Daniel Bates  <dbates@webkit.org>
      
              Reviewed by Adam Barth.
      
              https://bugs.webkit.org/show_bug.cgi?id=27312
      
              Tests that the header "X-XSS-Protection: full-block" leads to a full page block
              when an XSS attack is detected.
      
              * http/tests/security/xssAuditor/full-block-base-href-expected.txt: Added.
              * http/tests/security/xssAuditor/full-block-base-href.html: Added.
              * http/tests/security/xssAuditor/full-block-get-from-iframe-expected.txt: Added.
              * http/tests/security/xssAuditor/full-block-get-from-iframe.html: Added.
              * http/tests/security/xssAuditor/full-block-iframe-javascript-url-expected.txt: Added.
              * http/tests/security/xssAuditor/full-block-iframe-javascript-url.html: Added.
              * http/tests/security/xssAuditor/full-block-iframe-no-inherit-expected.txt: Added.
              * http/tests/security/xssAuditor/full-block-iframe-no-inherit.php: Added.
              * http/tests/security/xssAuditor/full-block-javascript-link-expected.txt: Added.
              * http/tests/security/xssAuditor/full-block-javascript-link.html: Added.
              * http/tests/security/xssAuditor/full-block-link-onclick-expected.txt: Added.
              * http/tests/security/xssAuditor/full-block-link-onclick.html: Added.
              * http/tests/security/xssAuditor/full-block-object-tag-expected.txt: Added.
              * http/tests/security/xssAuditor/full-block-object-tag.html: Added.
              * http/tests/security/xssAuditor/full-block-post-from-iframe-expected.txt: Added.
              * http/tests/security/xssAuditor/full-block-post-from-iframe.html: Added.
              * http/tests/security/xssAuditor/full-block-script-tag-expected.txt: Added.
              * http/tests/security/xssAuditor/full-block-script-tag-with-source-expected.txt: Added.
              * http/tests/security/xssAuditor/full-block-script-tag-with-source.html: Added.
              * http/tests/security/xssAuditor/full-block-script-tag.html: Added.
              * http/tests/security/xssAuditor/malformed-xss-protection-header-expected.txt: Added.
              * http/tests/security/xssAuditor/malformed-xss-protection-header.html: Added.
              * http/tests/security/xssAuditor/resources/echo-head-base-href.pl: Modified to optionally
              enable full page blocking.
              * http/tests/security/xssAuditor/resources/echo-intertag-click-and-notify.pl: Ditto.
              * http/tests/security/xssAuditor/resources/echo-intertag.pl: Ditto.
              * http/tests/security/xssAuditor/resources/utilities.js:
              (checkIfFrameLocationMatchesURLAndCallDone): Added.
              (sendRequestFromIFrame): Modified to optionally call callback function when done.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54202 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      fc8a2755
    • hamaji@chromium.org's avatar
      2010-02-01 Shinichiro Hamaji <hamaji@chromium.org> · 8db1691e
      hamaji@chromium.org authored
              Reviewed by Dmitry Titov.
      
              Convert textarea-rows-cols.html to dumpAsText()
              https://bugs.webkit.org/show_bug.cgi?id=34074
      
              Remove checks for the size of scrollbar as scrollbar doesn't
              appear on Windows.
      
              * fast/forms/script-tests/textarea-rows-cols.js:
              * fast/forms/textarea-rows-cols-expected.txt:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54201 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8db1691e
    • eric@webkit.org's avatar
      2010-02-01 Kwang Yul Seo <skyul@company100.net> · 155eb964
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [BREWMP] Port SharedTimer with IShell_SetTimerEx.
              https://bugs.webkit.org/show_bug.cgi?id=33599
      
              As fireTime passed in setSharedTimerFireTime is the absolute time,
              we must calcalute the interval by subtracting currentTime() from
              fireTime and pass the result to ISHELL_SetTimerEx.
      
              * platform/brew/SharedTimerBrew.cpp: Added.
              (WebCore::invokeCallback):
              (WebCore::setSharedTimerFiredFunction):
              (WebCore::setSharedTimerFireTime):
              (WebCore::stopSharedTimer):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54200 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      155eb964
    • tkent@chromium.org's avatar
      2010-02-01 Kent Tamura <tkent@chromium.org> · b81112e0
      tkent@chromium.org authored
              Reviewed by Darin Adler.
      
              Date.UTC() should apply TimeClip operation.
              https://bugs.webkit.org/show_bug.cgi?id=34461
      
              ECMAScript 5 15.9.4.3:
              > 9 Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))).
      
              * runtime/DateConstructor.cpp:
              (JSC::dateUTC): Calls WTF::timeClip().
      
      2010-02-01  Kent Tamura  <tkent@chromium.org>
      
              Reviewed by Darin Adler.
      
              Date.UTC() should apply TimeClip operation.
              https://bugs.webkit.org/show_bug.cgi?id=34461
      
              Add tests for corner cases of Date.UTC().
      
              * fast/js/date-utc-timeclip-expected.txt: Added.
              * fast/js/date-utc-timeclip.html: Added.
              * fast/js/script-tests/date-utc-timeclip.js: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54199 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b81112e0
    • tkent@chromium.org's avatar
      2010-02-01 Kent Tamura <tkent@chromium.org> · d5b4fe0d
      tkent@chromium.org authored
              Unreviewed. Add two more test cases which I forgot to add in r54197.
              https://bugs.webkit.org/show_bug.cgi?id=34462
      
              * fast/js/math-expected.txt:
              * fast/js/script-tests/math.js:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54198 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d5b4fe0d
    • tkent@chromium.org's avatar
      2010-02-01 Kent Tamura <tkent@chromium.org> · 7d2c7e3f
      tkent@chromium.org authored
              Reviewed by Darin Adler.
      
              Fix a bug that Math.round() retunrs incorrect results for huge integers
              https://bugs.webkit.org/show_bug.cgi?id=34462
      
              * runtime/MathObject.cpp:
              (JSC::mathProtoFuncRound): Avoid "arg + 0.5".
      
      2010-02-01  Kent Tamura  <tkent@chromium.org>
      
              Reviewed by Darin Adler.
      
              Fix a bug that Math.round() retunrs incorrect results for huge integers
              https://bugs.webkit.org/show_bug.cgi?id=34462
      
              * fast/js/math-expected.txt:
              * fast/js/script-tests/math.js: Add test cases for Math.round() for huge numbers.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54197 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      7d2c7e3f
    • hamaji@chromium.org's avatar
      2010-02-01 Shinichiro Hamaji <hamaji@chromium.org> · d3dd007c
      hamaji@chromium.org authored
              [Chromium] Unreviewed attempt to fix the chromium build.
      
              Corresponding change: http://trac.webkit.org/changeset/54182
      
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/ScriptController.cpp:
              (WebCore::ScriptController::processingUserGesture):
              * bindings/v8/ScriptController.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54196 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d3dd007c
    • hamaji@chromium.org's avatar
      2010-02-01 Shinichiro Hamaji <hamaji@chromium.org> · 50f43981
      hamaji@chromium.org authored
              Unreviewed attempt to fix the broken build.
      
              This was introduced in http://trac.webkit.org/changeset/54182
      
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::performMediaPlayerAction):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54195 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      50f43981
    • dimich@chromium.org's avatar
      When a live iframe element is moved between pages, it still depends on the old page. · d79180bd
      dimich@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=34382
      
      Reviewed by David Levin.
      
      WebCore:
      
      Test: fast/frames/iframe-reparenting-new-page.html
      
      * html/HTMLFrameElementBase.cpp:
      (WebCore::HTMLFrameElementBase::setName):
      Move the code setting the frame name into a separate function.
      
      (WebCore::HTMLFrameElementBase::setNameAndOpenURL):
      (WebCore::HTMLFrameElementBase::updateLiveFrame):
      Update frame tree, reset page in the contentFrame and re-set the name.
      
      (WebCore::HTMLFrameElementBase::insertedIntoDocument):
      * html/HTMLFrameElementBase.h:
      
      * page/Frame.cpp:
      (WebCore::Frame::setPage):
      * page/Frame.h: Add setPage method. It is only currently used when iframe is
                      moved between pages (so the ASSERT(m_ownerElement).
      
      LayoutTests:
      
      * fast/frames/iframe-reparenting-new-page-expected.txt: Added.
      * fast/frames/iframe-reparenting-new-page.html: Added.
      * fast/frames/resources/iframe-reparenting-new-page-1.html: Added.
      * fast/frames/resources/iframe-reparenting-new-page-2.html: Added.
      * fast/frames/resources/iframe-reparenting-new-page-iframe.html: Added.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54194 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d79180bd
    • beidson@apple.com's avatar
      WebCore: Add common IRC ports to port blocking. · 2a253af3
      beidson@apple.com authored
      <rdar://problem/7593895> and https://bugs.webkit.org/show_bug.cgi?id=34451
      
      Reviewed by Tim Hatcher.
      
      * platform/KURL.cpp:
      (WebCore::portAllowed):
      
      LayoutTests: Add common IRC ports to port blocking.
      <rdar://problem/7593895> and https://bugs.webkit.org/show_bug.cgi?id=34451
      * platform/mac-tiger/security/block-test-expected.txt:
      * platform/mac/security/block-test-expected.txt:
      * security/block-test.html:
      
      Reviewed by Tim Hatcher.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54193 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      2a253af3
    • hamaji@chromium.org's avatar
      2010-02-01 Shinichiro Hamaji <hamaji@chromium.org> · 508ce224
      hamaji@chromium.org authored
              Unreviewed fix for an invalid function call.
      
              check-webkit-style: Remove filename parameter from all functions where no longer used
              https://bugs.webkit.org/show_bug.cgi?id=34249
      
              * Scripts/webkitpy/style/checker.py:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54192 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      508ce224
    • jorlow@chromium.org's avatar
      2010-01-27 Matt Perry <mpcomplete@chromium.org> · 1fdbb825
      jorlow@chromium.org authored
              Reviewed by Eric Seidel.
      
              Add support for addUserScript to chromium port.
      
              * public/WebView.h:
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::addUserScript):
              (WebKit::WebViewImpl::removeAllUserContent):
              * src/WebViewImpl.h:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54191 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1fdbb825
    • jorlow@chromium.org's avatar
      2010-01-29 Jeremy Orlow <jorlow@chromium.org> · 1b847237
      jorlow@chromium.org authored
              Reviewed by Nate Chapin.
      
              [V8] Add compile time guards for IndexedDB custom functions
              https://bugs.webkit.org/show_bug.cgi?id=34368
      
              * bindings/v8/custom/V8IDBRequestCustom.cpp:
              * bindings/v8/custom/V8IndexedDatabaseRequestCustom.cpp:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54190 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1b847237
    • eric@webkit.org's avatar
      2010-02-01 Kwang Yul Seo <skyul@company100.net> · 71549f61
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [BREWMP] Port WTF's currentTime
              https://bugs.webkit.org/show_bug.cgi?id=33567
      
              Combine GETUTCSECONDS and GETTIMEMS to calculate the number
              of milliseconds since 1970/01/01 00:00:00 UTC.
      
              * wtf/CurrentTime.cpp:
              (WTF::currentTime):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54183 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      71549f61
    • barraclough@apple.com's avatar
      Bug 34346 - With JSC bindings, make processingUserGesture work with events in Isolated Worlds · 670a72a3
      barraclough@apple.com authored
      WebCore: 
      
      Reviewed by Sam Weinig + Oliver Hunt.
      
      Change HTMLMediaElement methods that require checking whether the event is a user gesture to
      be passed a boolean.  This may be passed from the JSC bindings (where we have an exec state),
      or read from the event.  Add a Flag to the IDL to mark this information is required.
      
      * WebCore.Video.exp:
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::processingUserGesture):
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore::domWindowAllowPopUp):
      (WebCore::JSDOMWindow::open):
      (WebCore::JSDOMWindow::showModalDialog):
      * bindings/js/JSDocumentCustom.cpp:
      (WebCore::JSDocument::setLocation):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::processingUserGesture):
      (WebCore::ScriptController::processingUserGestureEvent):
      (WebCore::ScriptController::anyPageIsProcessingUserGesture):
      * bindings/js/ScriptController.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      * dom/Event.cpp:
      (WebCore::Event::isUserEvent):
      * dom/Event.h:
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::removedFromDocument):
      (WebCore::HTMLMediaElement::load):
      (WebCore::HTMLMediaElement::play):
      (WebCore::HTMLMediaElement::pause):
      (WebCore::HTMLMediaElement::beginScrubbing):
      (WebCore::HTMLMediaElement::documentDidBecomeActive):
      (WebCore::HTMLMediaElement::webkitEnterFullScreen):
      * html/HTMLMediaElement.h:
      * html/HTMLMediaElement.idl:
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::isProcessingUserGesture):
      * loader/MediaDocument.cpp:
      (WebCore::MediaDocument::defaultEventHandler):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::allowPopUp):
      * rendering/MediaControlElements.cpp:
      (WebCore::MediaControlSeekButtonElement::defaultEventHandler):
      
      WebKit/mac: 
      
      Reviewed by Sam Weinig + Oliver Hunt.
      
      Pass processeing user gensture flag to media play/pause methods.
      
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController setPlaying:]):
      
      WebKit/win: 
      
      Reviewed by Sam Weinig + Oliver Hunt.
      
      Pass processeing user gensture flag to media play/pause methods.
      
      * FullscreenVideoController.cpp:
      (FullscreenVideoController::play):
      (FullscreenVideoController::pause):
      
      LayoutTests: 
      
      Reviewed by Sam Weinig.
      
      * http/tests/security/isolatedWorld/resources/userGestureEvents-second-window.html: Added.
      * http/tests/security/isolatedWorld/userGestureEvents-expected.txt: Added.
      * http/tests/security/isolatedWorld/userGestureEvents.html: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54182 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      670a72a3
    • eric@webkit.org's avatar
      2010-02-01 Andreas Kling <andreas.kling@nokia.com> · e0304c07
      eric@webkit.org authored
              Reviewed by Kenneth Rohde Christiansen.
      
              [Qt] Use the fallback style on Maemo 5
      
              https://bugs.webkit.org/show_bug.cgi?id=34376
      
              * platform/qt/RenderThemeQt.cpp:
              (WebCore::RenderThemeQt::RenderThemeQt):
              (WebCore::RenderThemeQt::fallbackStyle):
              (WebCore::RenderThemeQt::qStyle):
              (WebCore::RenderThemeQt::setPaletteFromPageClientIfExists):
              * platform/qt/RenderThemeQt.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54180 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e0304c07
    • eric@webkit.org's avatar
      2010-02-01 Kavita Kanetkar <kkanetkar@chromium.org> · b197c33d
      eric@webkit.org authored
              Reviewed by Nate Chapin.
      
              [V8] Making V8 generated classes' GetTemplate() function public
              https://bugs.webkit.org/show_bug.cgi?id=34026
      
              * bindings/scripts/CodeGeneratorV8.pm: Generated code need not depend on V8CustomBinding.h, made GetTemplate() signature public.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54179 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b197c33d
    • mitz@apple.com's avatar
      <rdar://problem/7044385> Crash at NetscapePlugInStreamLoader::didReceiveResponse() · 727d0762
      mitz@apple.com authored
      Reviewed by Anders Carlsson.
      
      The crash was caused by having two streams with a streamID of 1.
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): Fixed a typo. Now
      correctly increments m_currentURLRequestID to account for the manual stream.
      (WebKit::NetscapePluginInstanceProxy::disconnectStream): If the stream is the manual stream,
      null it out instead of trying to remove it from the map. Added an assertion.
      (WebKit::NetscapePluginInstanceProxy::loadRequest): Added an assertion.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54178 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      727d0762
    • eric@webkit.org's avatar
      2010-02-01 Patrick Gansterer <paroga@paroga.com> · 1848851e
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              [Qt] WinCE buildfix after r52729 and fix for Q_BIG_ENDIAN typo.
              https://bugs.webkit.org/show_bug.cgi?id=34378
      
              * wtf/Platform.h:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54176 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1848851e
    • steveblock@google.com's avatar
      Adds V8-specific JNI bridge classes · 66b0de31
      steveblock@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=34166
      
      Reviewed by Ariya Hidayat.
      
      This is the V8 equivalent of bridge/jni/jsc/JNIBridgeJSC.
      
      No new tests, build fix only.
      
      * Android.v8bindings.mk: Modified. Added JNIBridge.cpp and JNIBridgeV8.cpp
      * bridge/Bridge.h: Modified. Added missing include for Noncopyable.h
      * bridge/jni/v8/JNIBridgeV8.cpp: Added.
      (JavaField::JavaField):
      * bridge/jni/v8/JNIBridgeV8.h: Added.
      (JSC::Bindings::JavaField::name):
      (JSC::Bindings::JavaField::type):
      (JSC::Bindings::JavaField::getJNIType):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54175 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      66b0de31
    • steveblock@google.com's avatar
      Adds V8-specific JNI utility functions. · 78303937
      steveblock@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=33901
      
      Reviewed by Ariya Hidayat.
      
      This is the V8 equivalent of bridge/jni/jsc/JNIUtilityPrivate.
      
      No new tests, build fix only.
      
      * Android.v8bindings.mk: Modified. Add JNIUtilityPrivate.cpp
      * bridge/jni/v8/JNIUtilityPrivate.cpp: Added.
      (JSC::Bindings::convertNPVariantToJValue):
      (JSC::Bindings::convertJValueToNPVariant):
      * bridge/jni/v8/JNIUtilityPrivate.h: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54171 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      78303937
    • steveblock@google.com's avatar
      Adds V8 version of JavaClass · 1a1116c7
      steveblock@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=33898
      
      Reviewed by Ariya Hidayat.
      
      This is the V8 equivalent of bridge/jni/jsc/JavaClassJSC
      
      No new tests, build fix only.
      
      * Android.v8bindings.mk: Modified. Added JavaClassV8.cpp
      * bridge/jni/v8/JavaClassV8.cpp: Added.
      (JavaClass::JavaClass):
      (JavaClass::~JavaClass):
      (JavaClass::methodsNamed):
      (JavaClass::fieldNamed):
      * bridge/jni/v8/JavaClassV8.h: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54169 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1a1116c7
    • hamaji@chromium.org's avatar
      2010-02-01 Shinichiro Hamaji <hamaji@chromium.org> · 2e284ad3
      hamaji@chromium.org authored
              Reviewed by Darin Adler.
      
              REGRESSION: editing/selection/doubleclick-beside-cr-span.html times out on Windows
              https://bugs.webkit.org/show_bug.cgi?id=34069
      
              Make the sleep time shorter as this test timed out on Windows bot.
      
              * editing/selection/doubleclick-beside-cr-span.html:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54166 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      2e284ad3
    • steveblock@google.com's avatar
      Adds V8 version of JavaInstance · d6285e33
      steveblock@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=33951
      
      Reviewed by Ariya Hidayat.
      
      This is the V8 equivalent of bridge/jni/jsc/JavaInstanceJSC.
      Also fixes a typo in a comment in JavaInstanceJSC.cpp.
      
      No new tests, build fix only.
      
      * Android.v8bindings.mk: Modified. Added JavaInstanceV8.cpp
      * bridge/jni/jsc/JavaInstanceJSC.cpp: Modified.
      (JavaInstance::invokeMethod): Modified. Fixed comment
      * bridge/jni/v8/JavaInstanceV8.cpp: Added.
      (JavaInstance::JavaInstance):
      (JavaInstance::~JavaInstance):
      (JavaInstance::getClass):
      (JavaInstance::invokeMethod):
      (JObjectWrapper::JObjectWrapper):
      (JObjectWrapper::~JObjectWrapper):
      * bridge/jni/v8/JavaInstanceV8.h: Added.
      (JSC::Bindings::JObjectWrapper::instance):
      (JSC::Bindings::JObjectWrapper::setInstance):
      (JSC::Bindings::JObjectWrapper::ref):
      (JSC::Bindings::JObjectWrapper::deref):
      (JSC::Bindings::JavaInstance::javaInstance):
      (JSC::Bindings::JavaInstance::begin):
      (JSC::Bindings::JavaInstance::end):
      (JSC::Bindings::JavaInstance::virtualBegin):
      (JSC::Bindings::JavaInstance::virtualEnd):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@54165 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d6285e33