1. 09 Jan, 2007 30 commits
    • rwlbuis's avatar
      Reviewed by Darin. · 25ef0bdd
      rwlbuis authored
              http://bugs.webkit.org/show_bug.cgi?id=12145
              Color parsing is too relaxed in strict mode
              http://bugs.webkit.org/show_bug.cgi?id=12166
              REGRESSION (r18480): "336633" is not parsed as a color 
      
              Fix a regression by using String::format return value.
              Also make strict mode more strict for cases where hexcolors
              lack a #.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18722 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      25ef0bdd
    • darin's avatar
      Reviewed by Maciej. · d101a955
      darin authored
              - fixed regression where redirects did not have user-agent any more
      
              Showed up as a failure in one of the http tests, so no new test needed.
      
              * loader/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::willSendRequest):
              Don't use a copy of the ResourceRequest; pass the original so it can be modified.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18721 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d101a955
    • darin's avatar
      - fix build · 468499f0
      darin authored
              * kjs/string_object.cpp: (KJS::StringProtoFunc::callAsFunction):
              Actually compile it this time.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18718 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      468499f0
    • darin's avatar
      - fix build · afa74b9b
      darin authored
              * kjs/string_object.cpp: (KJS::StringProtoFunc::callAsFunction):
              Change types.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18717 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      afa74b9b
    • darin's avatar
      - fix build on platforms where Unicode::UChar is != uint16_t · dce46426
      darin authored
              * kjs/string_object.cpp: (KJS::StringProtoFunc::callAsFunction):
              Change types.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18716 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      dce46426
    • ap's avatar
      2007-01-09 Mitz Pettel <mitz@webkit.org> · fdb27973
      ap authored
              Reviewed by Darin.
      
              - changes for http://bugs.webkit.org/show_bug.cgi?id=11078
                Forms Don't Submit (ASP Pages)
      
      JavaScriptCore:
              * JavaScriptCore.exp:
              * kjs/value.cpp:
              (KJS::JSValue::toInt32): Folded toInt32Inline into this method, which was its
              only caller.
              (KJS::JSValue::toUInt32): Added a variant that reports if the conversion has
              succeeded.
              * kjs/value.h:
      
      WebCore:
              * bindings/js/kjs_html.cpp:
              (KJS::JSHTMLCollectionProtoFunc::callAsFunction): Changed item() to fall back
              to namedItem() if its argument does not convert to a number.
      
      LayoutTests:
              * fast/dom/collection-namedItem-via-item-expected.txt: Added.
              * fast/dom/collection-namedItem-via-item.html: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18715 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      fdb27973
    • darin's avatar
      JavaScriptCore: · 0961d165
      darin authored
              Reviewed by Maciej.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=12174
                improve Unicode use (less WTF::Unicode:: prefix, centralized character names)
      
              * wtf/unicode/icu/UnicodeIcu.h: Change parameter and return types
              to UChar32 and UChar. Removed unneeded type casts and added some
              const to functions that lacked it. Removed WTF::Unicode::memcmp.
              (WTF::Unicode::umemcasecmp): Renamed from strcasecmp since this
              doesn't work on 0-terminated strings as the str functions do.
              * wtf/unicode/qt4/UnicodeQt4.h: Ditto.
      
              - got rid of namespace prefixes from most uses of WTF::Unicode
      
              * kjs/function.cpp:
              (KJS::isStrWhiteSpace):
              (KJS::escapeStringForPrettyPrinting):
              * kjs/lexer.cpp:
              (KJS::Lexer::isWhiteSpace):
              (KJS::Lexer::isIdentStart):
              (KJS::Lexer::isIdentPart):
              * kjs/string_object.cpp:
              (KJS::StringProtoFunc::callAsFunction):
      
      WebCore:
      
              Reviewed by Maciej.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=12174
                improve Unicode use (less WTF::Unicode:: prefix, centralized character names)
      
              - got rid of namespace prefixes from most uses of WTF::Unicode
      
              - updated for removal of WTF::Unicode::memcmp
              - updated for renaming of WTF::Unicode::strcasecmp to umemcasecmp.
      
              - unified constants for special Unicode characters in a new
                CharacterNames.h header
      
              * WebCore.xcodeproj/project.pbxproj:
              * css/cssparser.cpp:
              (WebCore::ParseString::lower):
              * dom/Document.cpp:
              (WebCore::isValidNameStart):
              (WebCore::isValidNamePart):
              * dom/Position.cpp:
              (WebCore::Position::leadingWhitespacePosition):
              (WebCore::Position::trailingWhitespacePosition):
              * editing/CompositeEditCommand.cpp:
              (WebCore::isWhitespace):
              * editing/HTMLInterchange.cpp:
              * editing/TextIterator.cpp:
              (WebCore::CircularSearchBuffer::CircularSearchBuffer):
              (WebCore::CircularSearchBuffer::append):
              * editing/htmlediting.cpp:
              (WebCore::stringWithRebalancedWhitespace):
              (WebCore::nonBreakingSpaceString):
              * editing/htmlediting.h:
              * html/HTMLFontElement.cpp:
              (WebCore::parseFontSizeNumber):
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::handleError):
              * html/HTMLSelectElement.cpp:
              (WebCore::stripLeadingWhiteSpace):
              * platform/Font.cpp:
              (WebCore::WidthIterator::advance):
              (WebCore::WidthIterator::normalizeVoicingMarks):
              * platform/GlyphMap.cpp:
              (WebCore::GlyphMap::locatePage):
              * platform/MimeTypeRegistry.h:
              * platform/StringHash.h:
              * platform/StringImpl.cpp:
              (WebCore::isSpace):
              (WebCore::StringImpl::append):
              (WebCore::StringImpl::insert):
              (WebCore::StringImpl::truncate):
              (WebCore::StringImpl::remove):
              (WebCore::parseLength):
              (WebCore::StringImpl::isLower):
              (WebCore::StringImpl::lower):
              (WebCore::StringImpl::upper):
              (WebCore::StringImpl::secure):
              (WebCore::StringImpl::foldCase):
              (WebCore::StringImpl::capitalize):t
              (WebCore::StringImpl::toInt):
              (WebCore::equalIgnoringCase):
              (WebCore::StringImpl::find):
              * platform/TextBoundaries.h:
              * platform/TextCodec.h:
              * platform/TextCodecLatin1.cpp:
              * platform/TextEncoding.h:
              * platform/TextEncodingRegistry.h:
              * platform/mac/PasteboardMac.mm:
              (WebCore::Pasteboard::writeSelection):
              * platform/mac/TextCodecMac.cpp:
              (WebCore::TextCodecMac::decode):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::updateFirstLetter):
              * rendering/RenderListMarker.cpp:
              (WebCore::listMarkerText):
              (WebCore::RenderListMarker::paint):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::widthFromCache):
              (WebCore::isSpaceAccordingToStyle):
              (WebCore::RenderText::setInternalString):
              * rendering/RenderTreeAsText.cpp:
              (WebCore::quoteAndEscapeNonPrintables):
              (WebCore::operator<<):
              * rendering/bidi.cpp:
              (WebCore::BidiState::BidiState):
              (WebCore::BidiContext::BidiContext):
              (WebCore::bidiNext):
              (WebCore::bidiFirst):
              (WebCore::BidiIterator::direction):
              (WebCore::appendRun):
              (WebCore::embed):
              (WebCore::RenderBlock::bidiReorderLine):
              (WebCore::RenderBlock::layoutInlineChildren):
              (WebCore::skipNonBreakingSpace):
              (WebCore::RenderBlock::findNextLineBreak):
              * rendering/break_lines.cpp:
              (WebCore::nextBreakablePosition):
              * rendering/break_lines.h:
              * xml/XPathParser.cpp:
              (WebCore::XPath::charCat):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18712 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      0961d165
    • darin's avatar
      Another change log tweak. · 4bc5e31c
      darin authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@18711 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      4bc5e31c
    • darin's avatar
      Add the bug number. · add0455c
      darin authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@18710 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      add0455c
    • darin's avatar
      Reviewed by Darin. · b59a1291
      darin authored
              * rendering/RenderText.h:
              (WebCore::RenderText::selectionState):
              Change the m_selectionState enum-bitfield to an unsigned-bitfield,
              because enums on Windows are signed, which caused it to become
              negative (whereas the valid values are all positive).
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18709 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b59a1291
    • darin's avatar
      Reviewed by Hyatt. · 822f23eb
      darin authored
              - http://bugs.webkit.org/show_bug.cgi?id=12175
                port break_lines.cpp to be platform independent
      
              * platform/TextBreakIterator.h: Added lineBreakIterator.
              Removed ICU-specific stuff from the header.
      
              * platform/TextBreakIteratorICU.cpp:
              (WebCore::setUpIterator): Added helper to be shared by the three different
              creation functions.
              (WebCore::characterBreakIterator): Changed to use setUpIterator.
              (WebCore::wordBreakIterator): Ditto.
              (WebCore::lineBreakIterator): Added.
      
              * platform/qt/TextBreakIteratorQt.cpp:
              (WebCore::lineBreakIterator): Added a stub.
      
              * rendering/break_lines.cpp:
              (WebCore::isBreakableSpace): Added.
              (WebCore::shouldBreakAfter): Added.
              (WebCore::needsAdvancedBreakAnalysis): Added.
              (WebCore::nextBreakablePosition): Changed to use TextBreakIterator on platforms
              other than Mac.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18708 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      822f23eb
    • darin's avatar
      Reviewed by Mitz. · 819745f6
      darin authored
              - added a Thai line breaking test
      
              * fast/text/international/thai-line-breaks-expected.checksum: Added.
              * fast/text/international/thai-line-breaks-expected.png: Added.
              * fast/text/international/thai-line-breaks-expected.txt: Added.
              * fast/text/international/thai-line-breaks.html: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18707 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      819745f6
    • mjs's avatar
      Reviewed by Darin. · ae8d355f
      mjs authored
              - move WebDataProtocol load handling from ResourceLoader to MainResourceLoader
              
              (it's only ever used for main resources)
      
              * loader/ResourceLoader.h:
              (WebCore::ResourceLoader::setRequest):
              * loader/mac/MainResourceLoaderMac.mm:
              (WebCore::MainResourceLoader::willSendRequest):
              (WebCore::MainResourceLoader::continueAfterContentPolicy):
              * loader/mac/ResourceLoaderMac.mm:
              (WebCore::ResourceLoader::willSendRequest):
              (WebCore::ResourceLoader::didReceiveResponse):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18706 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ae8d355f
    • rwlbuis's avatar
      Reviewed by Eric. · a9031b36
      rwlbuis authored
              http://bugs.webkit.org/show_bug.cgi?id=12129
              repaint issue after setting viewBox attribute with ECMAScript
      
              Make sure RenderSVGContainer updates after setting viewBox from js.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18705 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a9031b36
    • mjs's avatar
      Reviewed by Darin. · fe030f3f
      mjs authored
              
              - remove window display throttling code; no longer used
      
              * Misc/WebNSWindowExtras.h:
              * Misc/WebNSWindowExtras.m:
              * WebView/WebFrameView.mm:
              (-[WebFrameView initWithFrame:]):
              * WebView/WebPreferenceKeysPrivate.h:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18704 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      fe030f3f
    • lars's avatar
      Make the Qt build compile... again! · 216b5a1d
      lars authored
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18703 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      216b5a1d
    • hyatt's avatar
      Fix for background: inherit bug where background-color wasn't getting... · f235cb06
      hyatt authored
              Fix for background: inherit bug where background-color wasn't getting properly overridden.  This was a
              regression from Safari 1.3 to 2.0.
      
              Reviewed by bdash
      
              fast/backgrounds/background-color-inherit-bug.html
      
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18702 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f235cb06
    • hyatt's avatar
      Add new layout test for background inherit color bug. · 4064e584
      hyatt authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@18701 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      4064e584
    • beidson's avatar
      Reviewed by Brian Dash · 8d1e66de
      beidson authored
              <rdar://problem/4895178> 
              WebCore::BackForwardList vector should be backed by a HashSet to remove
              the potential expense in frequently calling BackForwardList::containsItem()
      
              * history/BackForwardList.cpp:
              (WebCore::BackForwardList::addItem): Maintain HashSet as well as Vector
              (WebCore::BackForwardList::setCapacity): Ditto
              (WebCore::BackForwardList::close): Ditto
              (WebCore::BackForwardList::removeItem): Ditto
              (WebCore::BackForwardList::containsItem): Make a hash lookup instead of iterate 
              through the Vector
              * history/BackForwardList.h:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18700 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8d1e66de
    • hyatt's avatar
      Fix a regression where layout is triggering on all recalcStyles, due to a bad comparison · bc9e4893
      hyatt authored
              in the multicol assignment operator.
      
              * rendering/RenderStyle.cpp:
              (WebCore::StyleMultiColData::operator==):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18699 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      bc9e4893
    • darin's avatar
      And forgot change log. · 71b6fb4a
      darin authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@18698 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      71b6fb4a
    • darin's avatar
      Oops, forgot one file. · 49da2a7c
      darin authored
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18697 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      49da2a7c
    • darin's avatar
      - rolled out Beth's RenderFlow::destroy change, which broke 5 editing tests · cea4f2df
      darin authored
              * rendering/RenderFlow.cpp: (WebCore::RenderFlow::destroy):
              Used svn merge to roll the change out.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18696 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      cea4f2df
    • bdash's avatar
      2007-01-09 Mark Rowe <mrowe@apple.com> · b30006bb
      bdash authored
              Reviewed by Tim H.
      
              Build fix for 64-bit platforms.
      
              * platform/graphics/svg/SVGPaintServerGradient.h:
              * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
              (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18695 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b30006bb
    • andersca's avatar
      WebCore: · ce520eb0
      andersca authored
              Reviewed by Brady.
      
              Move some history related functions off the bridge and into FrameLoader directly.
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::canGoBackOrForward):
              (WebCore::FrameLoader::getHistoryLength):
              (WebCore::FrameLoader::historyURL):
              * loader/mac/FrameLoaderMac.mm:
              * page/mac/WebCoreFrameBridge.h:
      
      WebKit:
      
              Reviewed by Brady.
      
              Remove bridge functions that are implemented directly in FrameLoader now.
              
              * WebCoreSupport/WebFrameBridge.mm:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18694 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ce520eb0
    • weinig's avatar
      LayoutTests: · 8eef2e2d
      weinig authored
              Reviewed by Mark.
      
              Update results to include outline-color.
      
              * fast/css/computed-style-expected.txt:
              * fast/css/computed-style.html:
      
      WebCore:
      
              Reviewed by Mark.
      
              Adds outline-color to list of computable styles.
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
      
      WebKit:
      
              Reviewed by Mark.
      
              Adds default value for outline-color and fixes default
              values of the recently fixed *-color properties.
      
              * WebInspector/webInspector/inspector.js:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18693 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8eef2e2d
    • bdakin's avatar
      Reviewed by Hyatt. · 57c3d4cf
      bdakin authored
              Fix for a bug that Adam, Hyatt, and I noticed when debugging 
              another problem.
      
              * rendering/InlineBox.cpp:
              (WebCore::InlineBox::root): Added assertion. If we are casting to a 
              root, we should make sure we are root.
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::destroy): It is not enough to remove the 
              child boxes for anonymous blocks. We need to be more thorough when 
              cleaning these up. Adam's test case illustrates the problem well.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18690 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      57c3d4cf
    • hyatt's avatar
      Land updated computed style results. · b861641b
      hyatt authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@18689 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b861641b
    • hyatt's avatar
      Land updated stroke results. · 583bbe88
      hyatt authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@18688 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      583bbe88
    • hyatt's avatar
      Only dump stroke/fill if it's different from color · 6b2fb21a
      hyatt authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@18687 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      6b2fb21a
  2. 08 Jan, 2007 10 commits
    • ddkilzer's avatar
      Fix typo. · ac5f55f5
      ddkilzer authored
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18686 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ac5f55f5
    • sullivan's avatar
      Fixed text of previous comment. · 8c36bd37
      sullivan authored
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18685 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8c36bd37
    • sullivan's avatar
      Tweak to previous checkin · 079806aa
      sullivan authored
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::contextMenuItemSelected):
              Adam suggested I should nil-check page->frame()
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18684 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      079806aa
    • sullivan's avatar
      Reviewed by Brady and Beth · eb7ed64e
      sullivan authored
              
              - fixed <rdar://problem/4912541> GMAIL: With selected text in a rich text message, choosing 
              "Search in Google" displays search results in the message body field
      
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::contextMenuItemSelected):
              Visit google URL in main frame rather than in current frame
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18683 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      eb7ed64e
    • hyatt's avatar
      Fix computed style errors for color properties that had invalid colors. · a8aa8e6f
      hyatt authored
              They should return the value of the 'color' property when their colors
              are not valid.
      
              Fixed the computed style value for border-top-color (a typo was causing it to
              use border-left-color instead).
      
              Implement outline-color computed style.
      
              Reviewed by harrison
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::currentColorOrValidColor):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18682 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a8aa8e6f
    • weinig's avatar
      LayoutTests: · b1fe1b67
      weinig authored
              Reviewed by Darin and Eric.
      
              Fixes: http://bugs.webkit.org/show_bug.cgi?id=12150
              Corrected results for W3C's pservers-grad-16-b.
              Add a test for stop calues corner cases.
      
              * svg/W3C-SVG-1.1/pservers-grad-16-b-expected.checksum:
              * svg/W3C-SVG-1.1/pservers-grad-16-b-expected.png:
              * svg/W3C-SVG-1.1/pservers-grad-16-b-expected.txt:
              * svg/custom/gradient-stop-corner-cases-expected.checksum: Added.
              * svg/custom/gradient-stop-corner-cases-expected.png: Added.
              * svg/custom/gradient-stop-corner-cases-expected.txt: Added.
              * svg/custom/gradient-stop-corner-cases.svg: Added.
      
      WebCore:
      
              Reviewed by Darin and Eric.
      
              Fixes: http://bugs.webkit.org/show_bug.cgi?id=12150
              Handle correctly cases where no stops are defined, cases where a
              stop offset value is less than previous stops offset value, and cases
              where a stop offset value is greater than 1.0.
              
              * platform/graphics/svg/SVGPaintServerGradient.cpp:
              (WebCore::SVGPaintServerGradient::setGradientStops): Don't sort stops
              * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
              (WebCore::cgGradientCallback): When there are no stops, use a transparent
              fill
              (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
              a stop offset must always be considered at greater or equal to all
              preceding stop offsets, but no more than 1.0
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18681 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      b1fe1b67
    • thatcher's avatar
      Reviewed by Geoff. · 90800ca3
      thatcher authored
              <rdar://problem/4865325> please re-add auto font activation support in WebKit
      
              * platform/mac/WebFontCache.mm:
              (+[WebFontCache fontWithFamily:traits:size:]):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18680 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      90800ca3
    • darin's avatar
      - turn off the Armenian part of this test for now, · c3358951
      darin authored
                since it gives different results with different fonts
      
              * fast/lists/w3-list-styles-expected.checksum:
              * fast/lists/w3-list-styles-expected.png:
              * fast/lists/w3-list-styles-expected.txt:
              * fast/lists/w3-list-styles.html:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18679 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c3358951
    • bdakin's avatar
      Reviewed by Adam. · d4e6b9d3
      bdakin authored
              Fix for http://bugs.webkit.org/show_bug.cgi?id=12161 REGRESSION: 
              Crash when control-clicking on an image for contextual menu
      
              * WebView/WebHTMLView.m:
              (-[WebHTMLView menuForEvent:]): We need to nil-check coreMenu since 
              it will be nil if the DOM popped up a menu instead. I cleaned up 
              the function to make all the nil checks early returns instead of 
              nesting all of the content. Also moved the autorelease to be with 
              the creation of the menu instead of at the return.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18678 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d4e6b9d3
    • weinig's avatar
      Reviewed by Adam. · 0a85c2e8
      weinig authored
              - http://bugs.webkit.org/show_bug.cgi?id=12143
                remove Widget code unneeded now that form elements do not use Widget
      
              * bindings/objc/DOMHTML.mm: (-[DOMHTMLSelectElement _activateItemAtIndex:]):
              Removed useless implementation that would only work with NSView-based
              <select> elements, and added a FIXME about the fact that this function
              doesn't do anything any more. I think it's used by Safari forms auto-fill.
      
              * bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject rendererForView:]):
              Removed code that depends on elementForView:, since that always returns
              nil now.
      
              * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::~HTMLFormElement):
              Use a formDestroyed() function rather than clearing m_form directly so that
              this class doesn't have to be a friend of HTMLGenericFormElement.
      
              * html/HTMLGenericFormElement.h: Removed now-unneeded friend declaration
              for HTMLFormElement. Moved definition of supportsFocus into the .cpp file.
              Added a public formDestroyed function for use by HTMLFormElement.
              * html/HTMLGenericFormElement.cpp:
              (WebCore::HTMLGenericFormElement::attach): Removed widget-specific code.
              (WebCore::HTMLGenericFormElement::isKeyboardFocusable): Ditto.
              (WebCore::HTMLGenericFormElement::isMouseFocusable): Ditto.
              (WebCore::HTMLGenericFormElement::supportsFocus): Added this here; it was
              in the header file before, for no good reason.
      
              * page/EventHandler.h: Removed unused Mac-specific
              currentEventIsMouseDownInWidget.
              * page/mac/EventHandlerMac.mm: Ditto.
      
              * page/Frame.cpp: (WebCore::Frame::frameForWidget): Changed to use
              RenderWidget to find the frame rather than the WigetClient element()
              function.
      
              * page/mac/FrameMac.h: Removed unused bridgeForWidget.
              * page/mac/FrameMac.mm: Ditto.
      
              * page/mac/WebCoreFrameBridge.h: Removed elementForView.
              * page/mac/WebCoreFrameBridge.mm: Ditto. While the scroll bar still did
              implement WebCoreWidgetHolder, it does not correspond to a DOM element,
              so this method was always returning nil.
      
              * platform/Widget.h: Moved unused types and functions that are still
              in the platform-specific implementations into a "to be deleted" section:
              FocusPolicy, NoFocus, TabFocus, ClickFocus, StrongFocus, WheelFocus,
              lockDrawingFocus, font, focusPolicy, hasFocus, clearFocus, setFont,
              disableFlushDrawing, enableFlushDrawing, unlockDrawingFocus.
              Removed unused functions that are not in platform-specific implementations:
              sizeHint, baselinePosition, checksDescendantsForFocus.
              * platform/Widget.cpp: Removed functions.
      
              * platform/WidgetClient.h: Emptied out the class. Soon we can delete it.
      
              * platform/mac/PlatformScrollBarMac.mm: (-[WebCoreScrollBar mouseDown:]):
              Got rid of unneeded includes, removed use of the WebCoreWidgetHolder
              protocol and the one method in it, and changed the calls to beforeMouseDown
              and afterMouseDown to pass the widget pointer in.
      
              * platform/mac/WebCoreWidgetHolder.h: Emptied out the file -- to be deleted
              later.
      
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::~Widget): Removed code to manage deferredFirstResponder.
              (WebCore::Widget::hasFocus): Removed body of function and replaced with
              an assertion that it's never called. Later we'll remove it.
              (WebCore::Widget::setFocus): Tweaked a bit to work given changes to the
              FrameMac class. Also added a FIXME. Given how this works, it does not
              belong in the platform layer.
              (WebCore::Widget::clearFocus): Removed body of function and replaced with
              an assertion that it's never called. Later we'll remove it.
              (WebCore::Widget::focusPolicy): Ditto.
              (WebCore::Widget::font): Ditto.
              (WebCore::Widget::setFont): Ditto.
              (WebCore::Widget::lockDrawingFocus): Ditto.
              (WebCore::Widget::unlockDrawingFocus): Ditto.
              (WebCore::Widget::disableFlushDrawing): Ditto.
              (WebCore::Widget::enableFlushDrawing): Ditto.
              (WebCore::Widget::paint): Removed obsolete comment.
              (WebCore::Widget::sendConsumedMouseUp): Removed body of function and replaced with
              an assertion that it's never called. Later we'll remove it.
              (WebCore::Widget::setIsSelected): Tweaked a bit to work given changes to the
              FrameMac class. Also added a FIXME. Given how this works, it does not
              belong in the platform layer.
              (WebCore::Widget::beforeMouseDown): Changed to take an explicit Widget parameter.
              (WebCore::Widget::afterMouseDown): Ditto.
      
              * rendering/RenderApplet.cpp:
              (WebCore::RenderApplet::intrinsicWidth): Changed to not call sizeHint() any more.
              I didn't change the values returned by the function, but they make no sense and
              this should probably be fixed later.
              (WebCore::RenderApplet::intrinsicHeight): Ditto.
      
              * rendering/RenderWidget.h: Removed unneeded WidgetClient.h include. Changed
              RenderWidget to no longer inherit from WidgetClient. Added a find function to find
              a RenderWidget given a Widget. Removed all the virtual functions that override
              WidgetClient hooks.
              * rendering/RenderWidget.cpp: Removed all the WidgetClient functions.
              (WebCore::widgetRendererMap): Added. Map that gives the RenderWidget for each
              Widget that is owned by a RenderWidget.
              (WebCore::RenderWidget::destroy): Removed the setClient call and added a call to
              remove the widget from the widgetRendererMap.
              (WebCore::RenderWidget::setWidget): Ditto.
              (WebCore::RenderWidget::setStyle): Removed the call to Widget::setFont.
              (WebCore::RenderWidget::find): Added. Returns the RenderWidget for a Widget, if any.
      
              - other changes
      
              * dom/Node.cpp:
              (WebCore::Node::dump): Removed unnecessary use of DeprecatedString.
              (WebCore::appendAttributeDesc): Ditto.
              (WebCore::Node::showNode): Ditto.
              (WebCore::Node::formatForDebugger): Ditto.
      
              * loader/CachedImage.cpp: (WebCore::CachedImage::createImage): Cleaned up
              conditional compilation so adding more MIME types here doesn't make the
              function more and more difficult to read.
      
              * page/Frame.h: Removed unneeded includes and declarations.
              Tweaked formatting.
              * page/Page.h: Removed unneeded declarations.
              * platform/ScrollView.h: Removed unneeded includes.
      
              * rendering/RenderBlock.cpp: (WebCore::RenderBlock::renderName): Tweaked formatting.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18677 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      0a85c2e8