1. 08 Jan, 2007 24 commits
    • 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
    • weinig's avatar
      Reviewed by Darin. · f5d78838
      weinig authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=12162
                The inheritableProperties array is duplicated
      
              No test possible (no change to functionality).
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::removeComputedInheritablePropertiesFrom): Added.
              Removes the inheritable properties that CSSComputedStyleDeclaration knows how to compute
              from the given mutable declaration.
              * css/CSSComputedStyleDeclaration.h:
              * css/CSSMutableStyleDeclaration.cpp: Removed one copy of the inheritableProperties array.
              * css/CSSMutableStyleDeclaration.h:
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::removeRedundantStyles): Changed to call
              CSSComputedStyleDeclaration::removeComputedInheritablePropertiesFrom.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18676 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f5d78838
    • ap's avatar
      Reviewed by Darin. · 8063b91b
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=12099
              XMLHttpRequest shouldn't honor a charset specified via setRequestHeader
      
              Test: http/tests/xmlhttprequest/request-encoding.html
      
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::send): Don't try to get the charset from Content-Type. Keep checking 
              for unknown charsets, because that will be needed again when we start using document.xmlEncoding.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18675 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8063b91b
    • ap's avatar
      Reviewed by Darin. · 7c6963b7
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=7640
              Menu items are displayed as "undefined"
      
      WebCore:
              * bindings/js/kjs_dom.cpp:
              (KJS::DOMNodeProtoFunc::callAsFunction):
              * bindings/js/kjs_domnode.h:
              (KJS::DOMNode::):
              Removed Node::item. No idea why it was there in the first place.
      
              * bindings/js/kjs_html.cpp:
              (KJS::HTMLElementFunction::callAsFunction):
              * bindings/js/kjs_html.h:
              (KJS::JSHTMLElement::):
              Added HTMLSelectElement::item. It is not in DOM2 IDL, but the spec seems to mentions it anyway:
              "The contained options can be directly accessed through the select element as a collection."
      
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::namedItem):
              (WebCore::HTMLSelectElement::item):
              * html/HTMLSelectElement.h:
              * html/HTMLSelectElement.idl:
              Added this method to DOM and IDL, too. Made namedItem() non-virtual.
      
      LayoutTests:
              * fast/dom/Window/window-properties-expected.txt: Updated the results.
      
              * fast/dom/node-item-expected.txt: Added.
              * fast/dom/node-item.html: Added.
              Check that there is no Node:item or HTMLElement:item.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18674 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      7c6963b7
    • bdakin's avatar
      Reviewed by Maciej. · 6003944f
      bdakin authored
              Fix for <rdar://problem/4912254> REGRESSION: After copying text to 
              the clipboard, the paste contextual remains dimmed when it should
              be active
      
              No layout test for context menu problems.
      
              * platform/ContextMenu.cpp:
              (WebCore::ContextMenu::checkOrEnableIfNeeded): Remove check to see 
              if the content is richly editable; it only has to be regular 
              editable and the call to canPaste() takes care of that.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18673 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      6003944f
    • weinig's avatar
      Reviewed by Mitz. · 271eeeb6
      weinig authored
              Attempt to fix build for buildbots.
      
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::columnGap):
              (WebCore::RenderBlock::calcColumnWidth):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18672 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      271eeeb6
    • darin's avatar
      LayoutTests: · 63e829f2
      darin authored
              - added a W3C list style test that was cited in a bug
      
              * fast/lists/w3-list-styles-expected.checksum: Added.
              * fast/lists/w3-list-styles-expected.png: Added.
              * fast/lists/w3-list-styles-expected.txt: Added.
              * fast/lists/w3-list-styles.html: Added.
      
      WebCore:
      
              Reviewed by Maciej.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=3232
                CSS2: Web Kit does not support all list style types
      
              Test case showed problems in cjk-ideographic and hebrew
              Test: fast/lists/w3-list-styles.html
      
              * rendering/RenderListMarker.cpp:
              (WebCore::toCJKIdeographic): Fix the algorithm so it doesn't include leading zeroes.
              I had misread the part that says you start with the decimal form of the number.
              Fix an assertion that was too stringent. Fix the code to collapse consecutive zeroes
              so that it doesn't get confused by intervening "noChar" characters.
              (WebCore::RenderListMarker::paint): Reverse the text before painting if the first character's
              direction is right to left.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18671 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      63e829f2
    • darin's avatar
      LayoutTests: · 86430818
      darin authored
              Reviewed by Beth.
      
              - http://bugs.webkit.org/show_bug.cgi?id=12142
                render tree dump for test results should include the value of list markers
      
              * css1/basic/class_as_selector-expected.txt:
              * css1/basic/containment-expected.txt:
              * css1/basic/contextual_selectors-expected.txt:
              * css1/basic/id_as_selector-expected.txt:
              * css1/box_properties/border_bottom-expected.txt:
              * css1/box_properties/border_left-expected.txt:
              * css1/box_properties/border_right_inline-expected.txt:
              * css1/box_properties/border_top-expected.txt:
              * css1/box_properties/clear_float-expected.txt:
              * css1/box_properties/margin-expected.txt:
              * css1/box_properties/margin_bottom-expected.txt:
              * css1/box_properties/margin_left-expected.txt:
              * css1/box_properties/margin_right-expected.txt:
              * css1/box_properties/margin_top-expected.txt:
              * css1/box_properties/padding_left-expected.txt:
              * css1/box_properties/padding_right-expected.txt:
              * css1/cascade/cascade_order-expected.txt:
              * css1/classification/display-expected.txt:
              * css1/classification/list_style-expected.txt:
              * css1/classification/list_style_image-expected.txt:
              * css1/classification/list_style_position-expected.txt:
              * css1/classification/list_style_type-expected.txt:
              * css1/conformance/forward_compatible_parsing-expected.txt:
              * css1/pseudo/anchor-expected.txt:
              * css2.1/t0402-c71-fwd-parsing-02-f-expected.txt:
              * css2.1/t0505-c16-descendant-01-e-expected.txt:
              * css2.1/t050803-c14-classes-00-e-expected.txt:
              * css2.1/t0509-c15-ids-01-e-expected.txt:
              * css2.1/t0805-c5518-brdr-t-01-e-expected.txt:
              * css2.1/t0805-c5519-brdr-r-02-e-expected.txt:
              * css2.1/t0805-c5520-brdr-b-01-e-expected.txt:
              * css2.1/t0805-c5521-brdr-l-02-e-expected.txt:
              * css2.1/t1205-c561-list-displ-00-b-expected.txt:
              * css2.1/t1205-c563-list-type-00-b-expected.txt:
              * css2.1/t1205-c563-list-type-01-b-expected.txt:
              * css2.1/t1205-c564-list-img-00-b-g-expected.txt:
              * css2.1/t1205-c565-list-pos-00-b-expected.txt:
              * css2.1/t1205-c566-list-stl-00-e-ag-expected.txt:
              * editing/deleting/4866671-expected.txt:
              * editing/deleting/delete-first-list-item-expected.txt:
              * editing/deleting/delete-link-1-expected.txt:
              * editing/deleting/delete-listitem-002-expected.txt:
              * editing/deleting/list-item-1-expected.txt:
              * editing/deleting/merge-into-empty-block-2-expected.txt:
              * editing/execCommand/4641880-1-expected.txt:
              * editing/execCommand/create-list-from-range-selection-expected.txt:
              * editing/execCommand/create-list-with-hr-expected.txt:
              * editing/execCommand/indent-list-item-expected.txt:
              * editing/execCommand/indent-selection-expected.txt:
              * editing/execCommand/insert-list-and-stitch-expected.txt:
              * editing/execCommand/remove-list-from-range-selection-expected.txt:
              * editing/execCommand/remove-list-item-1-expected.txt:
              * editing/execCommand/remove-list-items-expected.txt:
              * editing/execCommand/switch-list-type-expected.txt:
              * editing/inserting/insert-div-022-expected.txt:
              * editing/inserting/insert-div-023-expected.txt:
              * editing/inserting/insert-div-024-expected.txt:
              * editing/pasteboard/4861080-expected.txt:
              * editing/pasteboard/drop-link-expected.txt:
              * editing/pasteboard/innerText-inline-table-expected.txt:
              * editing/pasteboard/input-field-1-expected.txt:
              * editing/pasteboard/merge-end-list-expected.txt:
              * editing/pasteboard/merge-start-list-expected.txt:
              * editing/pasteboard/paste-4039777-fix-expected.txt:
              * editing/pasteboard/paste-list-001-expected.txt:
              * editing/pasteboard/select-element-1-expected.txt:
              * editing/selection/drag-to-contenteditable-iframe-expected.txt:
              * editing/selection/extend-by-word-002-expected.txt:
              * editing/selection/move-by-line-002-expected.txt:
              * editing/selection/select-all-iframe-expected.txt:
              * editing/selection/selectNode-expected.txt:
              * editing/selection/selectNodeContents-expected.txt:
              * editing/unsupported-content/list-delete-001-expected.txt:
              * editing/unsupported-content/list-type-after-expected.txt:
              * editing/unsupported-content/list-type-before-expected.txt:
              * fast/backgrounds/repeat/noRepeatCorrectClip-expected.txt:
              * fast/block/float/014-expected.txt:
              * fast/css-generated-content/009-expected.txt:
              * fast/css/001-expected.txt:
              * fast/css/continuationCrash-expected.txt:
              * fast/css/css2-system-fonts-expected.txt:
              * fast/css/css3-modsel-22-expected.txt:
              * fast/css/list-outline-expected.txt:
              * fast/doctypes/001-expected.txt:
              * fast/doctypes/002-expected.txt:
              * fast/doctypes/003-expected.txt:
              * fast/doctypes/004-expected.txt:
              * fast/dom/Window/window-onFocus-expected.txt:
              * fast/forms/form-hides-table-expected.txt:
              * fast/forms/plaintext-mode-2-expected.txt:
              * fast/lists/001-expected.txt:
              * fast/lists/002-expected.txt:
              * fast/lists/003-expected.txt:
              * fast/lists/004-expected.txt:
              * fast/lists/005-expected.txt:
              * fast/lists/006-expected.txt:
              * fast/lists/007-expected.txt:
              * fast/lists/008-expected.txt:
              * fast/lists/alpha-list-wrap-expected.txt:
              * fast/lists/decimal-leading-zero-expected.txt:
              * fast/lists/drag-into-marker-expected.txt:
              * fast/lists/dynamic-marker-crash-expected.txt:
              * fast/lists/inlineBoxWrapperNullCheck-expected.txt:
              * fast/lists/li-br-expected.txt:
              * fast/lists/li-style-alpha-huge-value-crash-expected.txt:
              * fast/lists/li-values-expected.txt:
              * fast/lists/markers-in-selection-expected.txt:
              * fast/lists/numeric-markers-outside-list-expected.txt:
              * fast/lists/ol-display-types-expected.txt:
              * fast/lists/olstart-expected.txt:
              * fast/lists/ordered-list-with-no-ol-tag-expected.txt:
              * fast/lists/scrolled-marker-paint-expected.txt:
              * fast/overflow/overflow-rtl-expected.txt:
              * fast/selectors/001-expected.txt:
              * fast/selectors/013-expected.txt:
              * fast/selectors/015-expected.txt:
              * fast/selectors/166-expected.txt:
              * fast/table/018-expected.txt:
              * fast/table/form-with-table-style-expected.txt:
              * fast/text/whitespace/tab-character-basics-expected.txt:
              * fast/tokenizer/004-expected.txt:
              * tables/mozilla/bugs/bug23235-expected.txt:
              * tables/mozilla/bugs/bug30692-expected.txt:
              * tables/mozilla/bugs/bug3191-expected.txt:
              * tables/mozilla/bugs/bug32205-2-expected.txt:
              * tables/mozilla/marvin/backgr_index-expected.txt:
              * tables/mozilla/marvin/backgr_layers-opacity-expected.txt:
              * tables/mozilla/marvin/x_table-expected.txt:
              * tables/mozilla/other/wa_table_thtd_rowspan-expected.txt:
              * tables/mozilla/other/wa_table_tr_align-expected.txt:
              * tables/mozilla_expected_failures/bugs/bug1010-expected.txt:
              * tables/mozilla_expected_failures/marvin/backgr_fixed-bg-expected.txt:
              * tables/mozilla_expected_failures/marvin/backgr_layers-show-expected.txt:
              * traversal/stay-within-root-expected.txt:
      
      WebCore:
      
              Reviewed by Beth.
      
              - http://bugs.webkit.org/show_bug.cgi?id=12142
                render tree dump for test results should include the value of list markers
      
              * rendering/RenderTreeAsText.cpp:
              (WebCore::getTagName): Changed to use String instead of DeprecatedString.
              (WebCore::quoteAndEscapeNonPrintables): Ditto. Also moved up so it can be used
              in the operator below.
              (WebCore::operator<<): Added clause for RenderListMarker that dumps the value
              of the list marker's text.
              (WebCore::nodePosition): Changed to use String instead of DeprecatedString.
              * rendering/SVGRenderTreeAsText.cpp:
              (WebCore::TextStreamSeparator::TextStreamSeparator): Changed to use String
              instead of DeprecatedString.
              (WebCore::getTagName): Ditto.
              (WebCore::write): Ditto.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18670 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      86430818
    • weinig's avatar
      Reviewed by ap and the rubber stamp of Maciej. · 0cd5f096
      weinig authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=12164
              Cleanup Tokenizers
      
              - Moves Tokenizer class into its own file.
              - Move XMLTokenizer declaration from XMLTokenizer.cpp to XMLTokenizer.h
              - Fixup #includes.
      
              * WebCore.xcodeproj/project.pbxproj:
              * dom/Document.cpp:
              (WebCore::Document::createTokenizer):
              * dom/Tokenizer.h: Added.
              (WebCore::Tokenizer::Tokenizer):
              (WebCore::Tokenizer::~Tokenizer):
              (WebCore::Tokenizer::stopParsing):
              (WebCore::Tokenizer::processingData):
              (WebCore::Tokenizer::executingScript):
              (WebCore::Tokenizer::wantsRawData):
              (WebCore::Tokenizer::writeRawData):
              (WebCore::Tokenizer::inViewSourceMode):
              (WebCore::Tokenizer::setInViewSourceMode):
              (WebCore::Tokenizer::wellFormed):
              (WebCore::Tokenizer::lineNumber):
              (WebCore::Tokenizer::columnNumber):
              * dom/XMLTokenizer.cpp:
              * dom/XMLTokenizer.h:
              (WebCore::XMLTokenizer::):
              (WebCore::XMLTokenizer::setIsXHTMLDocument):
              (WebCore::XMLTokenizer::isXHTMLDocument):
              (WebCore::XMLTokenizer::wellFormed):
              * html/HTMLElement.cpp:
              * html/HTMLTokenizer.h:
              (WebCore::Token::reset):
              (WebCore::HTMLTokenizer::checkBuffer):
              (WebCore::HTMLTokenizer::checkScriptBuffer):
              (WebCore::HTMLTokenizer::State::State):
              (WebCore::HTMLTokenizer::State::setBit):
              * xml/XSLTProcessor.cpp:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18669 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      0cd5f096
    • weinig's avatar
      LayoutTests: · 72bceeeb
      weinig authored
              Reviewed by Tim H.
      
              Update results to include -webkit-box-shadow.
      
              * fast/css/computed-style-expected.txt:
      
      WebCore:
      
              Reviewed by Tim H.
      
              Adds -webkit-box-shadow to list of computable styles.
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
      
      WebKit:
      
              Reviewed by Tim H.
      
              Adds default value for -webkit-box-shadow and fixes default
              value of -webkit-column-count to be "auto".  Also sorts the
              list of defaults.
      
              * WebInspector/webInspector/inspector.js:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18666 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      72bceeeb
    • rwlbuis's avatar
      Reviewed by bdash. · a3d154b9
      rwlbuis authored
              Initialize the member vars, fixes testcases
              pointer-events-path.svg and pointer-events-text.svg
              on the PPC build.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18665 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a3d154b9
    • bdash's avatar
      2007-01-08 Andrew Wellington <proton@wiretapped.net> · 819b0aa1
      bdash authored
              Reviewed by Mark.
      
              * WebInspector/webInspector/inspector.js: Hide default values of
              -webkit-column styles in WebInspector.
      2007-01-08  Andrew Wellington  <proton@wiretapped.net>
      
              Reviewed by Mark.
      
              * fast/css/computed-style-expected.txt: Update results to include
              -webkit-column styles.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18664 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      819b0aa1
    • hyatt's avatar
      This patch computes the correct column width and column count. It... · 6ad575d2
      hyatt authored
              This patch computes the correct column width and column count.  It ensures that content lays out constrained
              to the column width in one long strip.  It does not yet balance the long strip into multiple columns.
      
              Reviewed by Mark
      
              * rendering/RenderBlock.cpp:
              (WebCore:::RenderFlow):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::rightOffset):
              (WebCore::RenderBlock::availableWidth):
              (WebCore::RenderBlock::columnGap):
              (WebCore::RenderBlock::calcColumnWidth):
              * rendering/RenderBlock.h:
              * rendering/RenderStyle.h:
              (WebCore::RenderStyle::setColumnWidth):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18663 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      6ad575d2
    • hyatt's avatar
      Fix column-count so that it supports auto just like column-width does. · e6fa1307
      hyatt authored
              Add a new function, availableWidth(), that will be used to return the width available to content placed inside
              a block.  For now it still returns contentWidth(), so no behavioral change has occurred yet.
      
              Subclass calcWidth() in RenderBlock, but don't change anything yet.  This is where RenderBlock will calc the
              correct column width.
      
              Reviewed by mark
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::leftRelOffset):
              (WebCore::RenderBlock::rightRelOffset):
              (WebCore::RenderBlock::getClearDelta):
              (WebCore::RenderBlock::availableWidth):
              (WebCore::RenderBlock::calcWidth):
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::containingBlockWidth):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::containingBlockWidth):
              (WebCore::RenderObject::paddingTop):
              (WebCore::RenderObject::paddingBottom):
              (WebCore::RenderObject::paddingLeft):
              (WebCore::RenderObject::paddingRight):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::availableWidth):
              * rendering/RenderStyle.cpp:
              (WebCore::StyleMultiColData::StyleMultiColData):
              (WebCore::StyleMultiColData::operator==):
              * rendering/RenderStyle.h:
              (WebCore::RenderStyle::hasAutoColumnCount):
              (WebCore::RenderStyle::setColumnCount):
              (WebCore::RenderStyle::setHasAutoColumnCount):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18662 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e6fa1307
    • hyatt's avatar
      LayoutTests: · 48a005cb
      hyatt authored
              Add layout test for inheritance of auto z-index.
      
              Reviewed by eric
      
              * fast/layers/zindex-inherit-expected.checksum: Added.
              * fast/layers/zindex-inherit-expected.png: Added.
              * fast/layers/zindex-inherit-expected.txt: Added.
              * fast/layers/zindex-inherit.html: Added.
      
      WebCore:
      
              Fix z-index:inherit so that it works properly when inheriting from z-index:auto.
      
              Reviewed by eric
      
              fast/layers/zindex-inherit.html
      
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18661 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      48a005cb
    • hyatt's avatar
      Add support for all of the CSS3 multi-column properties in preparation for implementing the · 7d3685d0
      hyatt authored
              feature.
      
              Reviewed by eric
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSMutableStyleDeclaration.cpp:
              (WebCore::):
              * css/CSSPropertyNames.in:
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * rendering/RenderStyle.cpp:
              (WebCore::StyleMultiColData::StyleMultiColData):
              (WebCore::StyleMultiColData::operator==):
              (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
              (WebCore::StyleRareNonInheritedData::operator==):
              (WebCore::RenderStyle::RenderStyle):
              (WebCore::RenderStyle::diff):
              * rendering/RenderStyle.h:
              (WebCore::StyleMultiColData::operator!=):
              (WebCore::StyleMultiColData::ruleWidth):
              (WebCore::RenderStyle::columnWidth):
              (WebCore::RenderStyle::hasAutoColumnWidth):
              (WebCore::RenderStyle::columnCount):
              (WebCore::RenderStyle::columnGap):
              (WebCore::RenderStyle::hasAutoColumnGap):
              (WebCore::RenderStyle::columnRuleColor):
              (WebCore::RenderStyle::columnRuleStyle):
              (WebCore::RenderStyle::columnRuleWidth):
              (WebCore::RenderStyle::columnBreakBefore):
              (WebCore::RenderStyle::columnBreakInside):
              (WebCore::RenderStyle::columnBreakAfter):
              (WebCore::RenderStyle::setColumnWidth):
              (WebCore::RenderStyle::setHasAutoColumnWidth):
              (WebCore::RenderStyle::setColumnCount):
              (WebCore::RenderStyle::setColumnGap):
              (WebCore::RenderStyle::setHasAutoColumnGap):
              (WebCore::RenderStyle::setColumnRuleColor):
              (WebCore::RenderStyle::setColumnRuleStyle):
              (WebCore::RenderStyle::setColumnRuleWidth):
              (WebCore::RenderStyle::resetColumnRule):
              (WebCore::RenderStyle::setColumnBreakBefore):
              (WebCore::RenderStyle::setColumnBreakInside):
              (WebCore::RenderStyle::setColumnBreakAfter):
              (WebCore::RenderStyle::initialColumnCount):
              (WebCore::RenderStyle::initialColumnWidth):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18660 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      7d3685d0
    • rwlbuis's avatar
      Reviewed by Eric. · 67a02b83
      rwlbuis authored
              http://bugzilla.opendarwin.org/show_bug.cgi?id=10587
              pointer-events is not implemented for RenderSVGImage or RenderSVGText
              Implement pointer-events for raster images and svg text.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18659 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      67a02b83
    • ddkilzer's avatar
      JavaScriptCore: · 0e87cfc4
      ddkilzer authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=11917
                setlocale() can return null
      
              * kjs/date_object.cpp:
              (KJS::DateProtoFunc::callAsFunction): Removed dead code.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18658 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      0e87cfc4
    • ddkilzer's avatar
      JavaScriptCore: · 16ecd3de
      ddkilzer authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=12100
                JNI bindings should be available to non-Mac platforms that have JNI
      
              Change JNI so that it is not wrapped in the PLATFORM(MAC) ifdef, enabling
              other platforms who have JNI to use it.
      
              * bindings/jni/jni_instance.h:  
                Removed unnecessary include of <CoreFoundation/CoreFoundation.h>
              * bindings/jni/jni_utility.cpp:
              (KJS::Bindings::setJavaVM):
              * bindings/jni/jni_utility.h:
                Added new method for clients to set the JavaVM
              * bindings/runtime.cpp:
              (KJS::Bindings::Instance::createBindingForLanguageInstance):
                Changed code to utilize new #if HAVE(JNI)
              * kjs/config.h:
                Added new #define for JNI, ie HAVE_JNI
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18657 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      16ecd3de
    • ddkilzer's avatar
      JavaScriptCore: · a7908324
      ddkilzer authored
              Reviewed by Darin.
      
              Fix http://bugs.webkit.org/show_bug.cgi?id=11431
              ARM platform has some byte alignment issues
      
              Fix for NaN being 4 bytes and it must start on a byte boundary
              for ARM architectures.
      
              * kjs/fpconst.cpp:
              (KJS::):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18656 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a7908324
    • hyatt's avatar
      Fix a regression where border-radius was not clipping the background... · 7bdab2af
      hyatt authored
              Fix a regression where border-radius was not clipping the background when border was set to none.
              Fix multi-line inline flow painting to properly apply border-radius to the background only at the
              beginning of the first line and end of the last line.
      
              Reviewed by eric
      
              * rendering/InlineFlowBox.cpp:
              (WebCore::InlineFlowBox::paintBackground):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintBackground):
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/RenderBox.h:
              * rendering/RenderObject.h:
              (WebCore::RenderObject::paintBackgroundExtended):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18655 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      7bdab2af
  2. 07 Jan, 2007 14 commits
    • hyatt's avatar
      LayoutTests: · 13edcf4e
      hyatt authored
              Add support for the CSS3 box-shadow property.
      
              Reviewed by olliej
      
              * fast/box-shadow/basic-shadows-expected.checksum: Added.
              * fast/box-shadow/basic-shadows-expected.png: Added.
              * fast/box-shadow/basic-shadows-expected.txt: Added.
              * fast/box-shadow/basic-shadows.html: Added.
      
      WebCore:
      
              Add support for the CSS3 box-shadow property.
      
              Reviewed by olliej
      
              fast/box-shadow/ contains the tests for this feature.
      
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContext::clipOutRoundedRect):
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::fillRoundedRect):
              (WebCore::GraphicsContext::clipOut):
              (WebCore::GraphicsContext::clipOutEllipseInRect):
              * platform/graphics/qt/GraphicsContextQt.cpp:
              (WebCore::GraphicsContext::fillRoundedRect):
              (WebCore::GraphicsContext::clipOut):
              (WebCore::GraphicsContext::clipOutEllipseInRect):
              * rendering/InlineFlowBox.cpp:
              (WebCore::InlineFlowBox::paint):
              (WebCore::InlineFlowBox::paintBoxShadow):
              (WebCore::InlineFlowBox::paintBoxDecorations):
              (WebCore::shouldDrawTextDecoration):
              (WebCore::InlineFlowBox::paintTextDecorations):
              * rendering/InlineFlowBox.h:
              * rendering/InlineRunBox.h:
              (WebCore::InlineRunBox::paintBoxDecorations):
              (WebCore::InlineRunBox::paintTextDecorations):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::paintObject):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              (WebCore::RenderBox::paintBoxDecorations):
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/RenderFieldset.cpp:
              (WebCore::RenderFieldset::paintBoxDecorations):
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::paint):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint):
              * rendering/RenderImage.h:
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
              (WebCore::RenderObject::paintBoxShadow):
              (WebCore::RenderObject::dump):
              (WebCore::RenderObject::setStyle):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::hasBoxDecorations):
              (WebCore::RenderObject::setHasBoxDecorations):
              * rendering/RenderSVGContainer.cpp:
              (WebCore::RenderSVGContainer::paint):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::paint):
              (WebCore::RenderTable::paintBoxDecorations):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::RenderTableCell):
              (WebCore::RenderTableCell::setStyle):
              (WebCore::RenderTableCell::paintBoxDecorations):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::paint):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18654 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      13edcf4e
    • rwlbuis's avatar
      Reviewed by weinig. · e5f11792
      rwlbuis authored
              Correct results from previous patch.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18653 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e5f11792
    • rwlbuis's avatar
      Reviewed by weinig. · c9034a5c
      rwlbuis authored
              http://bugs.webkit.org/show_bug.cgi?id=10362
              SVG needs to support SVGError events and some form of "error state"
              Report SVG warnings and errors on (JS) console.
              Expose line and column number getters in Tokenizer in
              order to display them with the error message. 
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18652 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c9034a5c
    • zimmermann's avatar
      Reviewed by Sam. · 249e373a
      zimmermann authored
      Cleanup code & fix InlineBox positioning when text-anchor is used.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18651 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      249e373a
    • staikos's avatar
      Make it compile and link again. (Qt) Includes implementation of a few stubs · a1433d71
      staikos authored
      which should be moved to other locations, as well as a non-Qt-specific change
      to make it compile (nil->ResourceResponse()).  Qt port continues to function as
      well as before.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18650 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a1433d71
    • ap's avatar
      Updated pixel results that weren't landed with r17141. · 8be4672d
      ap authored
              * http/tests/incremental/slow-utf8-css-expected.checksum:
              * http/tests/incremental/slow-utf8-css-expected.png:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18649 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      8be4672d
    • ap's avatar
      2007-01-07 Mitz Pettel <mitz@webkit.org> · 1794b0f4
      ap authored
              Reviewed by Mark Rowe.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=11133
      
              Test: fast/forms/listbox-clip.html
      
              * platform/mac/PlatformScrollBarMac.mm:
              (-[WebCoreScrollBar initWithPlatformScrollbar:]): Get the correct scrollbar
              width/height based on control size.
              * rendering/RenderListBox.cpp:
              Renamed optionsSpacingLeft to optionsSpacingHorizontal since it is applied
              on both sides.
              (WebCore::RenderListBox::calcMinMaxWidth): Account for optionsSpacingHorizontal.
              Not including the spacing before went unnoticed since the scrollbar was lying
              about its width by exactly the same amount.
              (WebCore::RenderListBox::paintObject): Clip out the scrollbar.
              (WebCore::RenderListBox::paintItemForeground): Changed for the rename.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18648 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      1794b0f4
    • ap's avatar
      2007-01-07 Mitz Pettel <mitz@webkit.org> · 53406cc0
      ap authored
              Reviewed by Hyatt.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=11935
                REGRESSION: Changing the overflow style dynamically does not force repaint
      
              Test: fast/repaint/erase-overflow.html
      
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle): Added a repaint before changing hasOverflowClip
              to true, to ensure that the current overflow is erased.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18647 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      53406cc0
    • rwlbuis's avatar
      Reviewed by Darin. · 79105ae6
      rwlbuis authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=12106
              Changed URL from WebResourceLoadDelegate's webView:resource:willSendRequest:... is ignored
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18646 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      79105ae6
    • ap's avatar
      Re-apply r17618, which got reverted with CSS suite update. · ec08a4dc
      ap authored
              Reviewed by Sam Weinig.
      
              Fix a layout test failure that happened with additional fonts installed - replace a fancy 
              Unicode character with a plain asterisk.
      
              * css2.1/t0905-c414-flt-00-d-expected.checksum:
              * css2.1/t0905-c414-flt-00-d-expected.png:
              * css2.1/t0905-c414-flt-00-d-expected.txt:
              * css2.1/t0905-c414-flt-00-d.html:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18645 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ec08a4dc
    • ap's avatar
      Reviewed by Darin. · 207887a0
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=10313
              xsl:import doesn't work in stylesheets loaded via XMLHttpRequest
      
              This is a partial fix that makes a couple more steps towards fixing the problem.
      
              Test: fast/xsl/transform-xhr-doc.xhtml
      
              * xml/XSLTProcessor.cpp:
              (WebCore::xsltStylesheetPointer): Pass an URL for the stylesheet. I'm not sure why this constructor even needs it, 
              given that it has a Node, but this is a small modifications that makes XSLImportRule try to load from a correct URL.
              (WebCore::XSLTProcessor::transformToString): Fix the crash for real this time.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18644 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      207887a0
    • rwlbuis's avatar
      Reviewed by Darin. · 264e92e1
      rwlbuis authored
              http://bugs.webkit.org/show_bug.cgi?id=12125
              overflow attribute of the symbol element not respected
      
              Copy the attribute map to the cloned node so the overflow on
              the symbol is respected.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18643 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      264e92e1
    • darin's avatar
      Suggested by Mitz. · ba1f8fce
      darin authored
              - disabled 3 tests with results that are too font-dependent to be used as
                part of the test suite; two are tests of Armenian numbering and one is
                a test of some SVG font features which we do not support
      
              * css2.1/t1202-counter-10-b-expected.checksum: Removed.
              * css2.1/t1202-counter-10-b-expected.png: Removed.
              * css2.1/t1202-counter-10-b-expected.txt: Removed.
              * css2.1/t1202-counter-10-b.html: Removed.
              * css2.1/t1202-counters-10-b-expected.checksum: Removed.
              * css2.1/t1202-counters-10-b-expected.png: Removed.
              * css2.1/t1202-counters-10-b-expected.txt: Removed.
              * css2.1/t1202-counters-10-b.html: Removed.
              * svg/W3C-SVG-1.1/text-fonts-03-t-expected.checksum: Removed.
              * svg/W3C-SVG-1.1/text-fonts-03-t-expected.png: Removed.
              * svg/W3C-SVG-1.1/text-fonts-03-t-expected.txt: Removed.
              * svg/W3C-SVG-1.1/text-fonts-03-t.svg: Removed.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18642 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ba1f8fce
    • darin's avatar
      Reviewed and significantly tweaked by Darin. · 25c9e9f8
      darin authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=12103
                LEAK: Fix the leaking ImageBuffer buffers on TOT
      
              * ksvg2/svg/SVGMaskElement.h:
              * ksvg2/svg/SVGMaskElement.cpp:
              (WebCore::SVGMaskElement::drawMaskerContent):
              Changed to return auto_ptr since it returns a newly-created ImageBuffer.
      
              * ksvg2/svg/SVGPatternElement.cpp:
              (WebCore::SVGPatternElement::buildPattern):
              Changed to use auto_ptr since ImageBuffer::create now returns one.
      
              * platform/graphics/GraphicsContext.h: Removed the include of ImageBuffer.h,
              which was never needed, and the declaration of createImageBuffer, which is
              now a class member function of ImageBuffer.
      
              * platform/graphics/ImageBuffer.h: Replaced the constructor with a create
              function. Added a comment about the need to move renderSubtreeToImage
              elsewhere. Added an m_data member to store the data so it can be deleted
              when the object is done, made the m_size member non-platform-specific.
              Added a private constructor for use to create the CG version.
      
              * platform/graphics/cg/GraphicsContextCG.cpp: Removed
              GraphicsContext::createImageBuffer.
      
              * platform/graphics/cg/ImageBufferCG.cpp:
              (WebCore::ImageBuffer::create): Added. Replaces the old
              GraphicsContext::createImageBuffer function.
              (WebCore::ImageBuffer::ImageBuffer): Added m_data and m_context.
              (WebCore::ImageBuffer::~ImageBuffer): Added a fastFree of the data and got
              rid of the unneeded null check before calling CGImageRelease.
      
              * platform/graphics/svg/SVGPaintServerGradient.h: Removed the include of
              ImageBuffer.h and declared the ImageBuffer class instead.
      
              * platform/graphics/svg/SVGPaintServerPattern.h: Removed the include of
              ImageBuffer.h and declared the ImageBuffer class instead, and changed setTile
              to take an auto_ptr since it takes ownership of the ImageBuffer.
              * platform/graphics/svg/SVGPaintServerPattern.cpp:
              (WebCore::SVGPaintServerPattern::setTile): Ditto.
      
              * platform/graphics/svg/SVGResourceMasker.h: Removed the include of
              ImageBuffer.h and declared the ImageBuffer class instead, and changed setMask
              to take an auto_ptr since it takes ownership of the ImageBuffer.
              * platform/graphics/svg/SVGResourceMasker.cpp:
              (WebCore::SVGResourceMasker::setMask): Ditto.
      
              * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
              (WebCore::SVGPaintServerGradient::setup): Updated to use auto_ptr.
      
              * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Updated includes.
      
              * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
              (WebCore::SVGResourceMasker::applyMask): Updated to use auto_ptr.
      
              - other changes
      
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              (WebCore::SVGAnimateTransformElement::handleStartCondition):
              Remove unused variables.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@18641 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      25c9e9f8
  3. 06 Jan, 2007 2 commits