Commit d7d82ce1 authored by darin's avatar darin
Browse files

- Replaced tabs with spaces in source files that had less than 10 lines with tabs.

        - Set allow-tabs Subversion property in source files that have more than 10 lines with tabs.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 36ddd0eb
2006-01-13 Darin Adler <darin@apple.com>
- Replaced tabs with spaces in source files that had less than 10 lines with tabs.
- Set allow-tabs Subversion property in source files that have more than 10 lines with tabs.
2006-01-13 Eric Seidel <eseidel@apple.com>
Reviewed by mjs.
......
......@@ -33,15 +33,15 @@ public:
KHTMLPartBrowserExtension(Frame *);
virtual void openURLRequest(const KURL &,
const KParts::URLArgs &args = KParts::URLArgs());
const KParts::URLArgs &args = KParts::URLArgs());
virtual void openURLNotify();
virtual void createNewWindow(const KURL &url,
const KParts::URLArgs &urlArgs = KParts::URLArgs());
const KParts::URLArgs &urlArgs = KParts::URLArgs());
virtual void createNewWindow(const KURL &url,
const KParts::URLArgs &urlArgs,
const KParts::WindowArgs &winArgs,
ObjectContents *&part);
const KParts::URLArgs &urlArgs,
const KParts::WindowArgs &winArgs,
ObjectContents *&part);
virtual void setIconURL(const KURL &url);
virtual void setTypedIconURL(const KURL &url, const QString &type);
......@@ -55,9 +55,9 @@ public:
private:
void createNewWindow(const KURL &url,
const KParts::URLArgs &urlArgs,
const KParts::WindowArgs &winArgs,
ObjectContents **part);
const KParts::URLArgs &urlArgs,
const KParts::WindowArgs &winArgs,
ObjectContents **part);
MacFrame *m_frame;
};
......@@ -48,7 +48,6 @@
KCanvasItemQuartz::KCanvasItemQuartz(khtml::RenderStyle *style, KSVG::SVGStyledElementImpl *node) : RenderPath(style, node)
{
}
typedef enum {
......
......@@ -91,10 +91,10 @@ static void drawShadingWithStyle(const KRenderingPaintServerGradient *server, CG
//typedef vector unsigned char vUInt8;
//vector float vec_loadAndSplatScalar( float *scalarPtr )
//{
// vUInt8 splatMap = vec_lvsl( 0, scalarPtr );
// vector float result = vec_lde( 0, scalarPtr );
// splatMap = (vUInt8) vec_splat( (vector float) splatMap, 0 );
// return vec_perm( result, result, splatMap );
// vUInt8 splatMap = vec_lvsl( 0, scalarPtr );
// vector float result = vec_lde( 0, scalarPtr );
// splatMap = (vUInt8) vec_splat( (vector float) splatMap, 0 );
// return vec_perm( result, result, splatMap );
//}
static void cgGradientCallback(void *info, const float *inValues, float *outColor)
......
......@@ -61,7 +61,7 @@ void KRenderingPaintServerSolidQuartz::draw(KRenderingDeviceContext *renderingCo
if ( (type & APPLY_TO_STROKE) && canvasStyle->isStroked() ) {
CGColorRef colorCG = cgColor(color());
CGColorRef withAlpha = CGColorCreateCopyWithAlpha(colorCG, canvasStyle->strokePainter()->opacity());
CGColorRef withAlpha = CGColorCreateCopyWithAlpha(colorCG, canvasStyle->strokePainter()->opacity());
CGContextSetStrokeColorWithColor(context, withAlpha);
CGColorRelease(colorCG);
CGColorRelease(withAlpha);
......@@ -75,9 +75,9 @@ void KRenderingPaintServerSolidQuartz::draw(KRenderingDeviceContext *renderingCo
void patternCallback(void *info, CGContextRef context)
{
KCanvasImageQuartz *image = (KCanvasImageQuartz *)info;
CGLayerRef layer = image->cgLayer();
CGContextDrawLayerAtPoint(context, CGPointZero, layer);
KCanvasImageQuartz *image = (KCanvasImageQuartz *)info;
CGLayerRef layer = image->cgLayer();
CGContextDrawLayerAtPoint(context, CGPointZero, layer);
}
void KRenderingPaintServerPatternQuartz::draw(KRenderingDeviceContext *renderingContext, const KCanvasCommonArgs &args, KCPaintTargetType type) const
......@@ -92,7 +92,7 @@ void KRenderingPaintServerPatternQuartz::draw(KRenderingDeviceContext *rendering
KCanvasImage *cell = tile();
if (!cell)
return;
CGContextSaveGState(context);
CGSize cellSize = CGSize(cell->size());
......@@ -106,7 +106,7 @@ void KRenderingPaintServerPatternQuartz::draw(KRenderingDeviceContext *rendering
CGSize phase = CGSizeMake(bbox().x(), bbox().y());
CGContextSetPatternPhase(context, phase);
CGPatternCallbacks callbacks = {0, patternCallback, NULL};
CGPatternRef pattern = CGPatternCreate (
tile(),
......@@ -133,7 +133,7 @@ void KRenderingPaintServerPatternQuartz::draw(KRenderingDeviceContext *rendering
if ( (type & APPLY_TO_STROKE) && canvasStyle->isStroked() ) {
CGContextSetStrokeColorSpace(context, patternSpace);
CGContextSetStrokePattern(context, pattern, &alpha);
CGContextSetStrokePattern(context, pattern, &alpha);
applyStrokeStyleToContext(context, canvasStyle);
CGContextStrokePath(context);
}
......
......@@ -699,7 +699,7 @@ CSSValueImpl *CSSComputedStyleDeclarationImpl::getPropertyCSSValue(int propertyI
return new CSSPrimitiveValueImpl(style->lineClamp(), CSSPrimitiveValue::CSS_PERCENTAGE);
case CSS_PROP_LINE_HEIGHT: {
Length length(style->lineHeight());
if (length.value < 0)
if (length.value < 0)
return new CSSPrimitiveValueImpl(CSS_VAL_NORMAL);
if (length.isPercent()) {
// This is imperfect, because it doesn't include the zoom factor and the real computation
......
......@@ -149,7 +149,7 @@ class MediaListImpl : public StyleBaseImpl
{
public:
MediaListImpl()
: StyleBaseImpl( 0 ) {}
: StyleBaseImpl( 0 ) {}
MediaListImpl( CSSStyleSheetImpl *parentSheet )
: StyleBaseImpl(parentSheet) {}
MediaListImpl( CSSStyleSheetImpl *parentSheet,
......
......@@ -47,7 +47,7 @@ public:
*
*/
enum UnitTypes {
CSS_INHERIT = 0,
CSS_INHERIT = 0,
CSS_PRIMITIVE_VALUE = 1,
CSS_VALUE_LIST = 2,
CSS_CUSTOM = 3,
......
......@@ -116,9 +116,9 @@ public:
*
*/
enum PhaseType {
CAPTURING_PHASE = 1,
AT_TARGET = 2,
BUBBLING_PHASE = 3
CAPTURING_PHASE = 1,
AT_TARGET = 2,
BUBBLING_PHASE = 3
};
};
......@@ -171,9 +171,9 @@ public:
*
*/
enum attrChangeType {
MODIFICATION = 1,
ADDITION = 2,
REMOVAL = 3
MODIFICATION = 1,
ADDITION = 2,
REMOVAL = 3
};
};
......
......@@ -57,10 +57,10 @@ class Range
public:
enum CompareHow {
START_TO_START = 0,
START_TO_END = 1,
END_TO_END = 2,
END_TO_START = 3
START_TO_START = 0,
START_TO_END = 1,
END_TO_END = 2,
END_TO_START = 3
};
};
......
......@@ -241,10 +241,10 @@ void *ScriptInterpreter::createLanguageInstanceForValue (ExecState *exec, int la
#if __APPLE__
// FIXME: Need to implement bindings support.
if (language == Bindings::Instance::ObjectiveCLanguage)
result = createObjcInstanceForValue (exec, value, origin, current);
result = createObjcInstanceForValue (exec, value, origin, current);
if (!result)
result = Interpreter::createLanguageInstanceForValue (exec, language, value, origin, current);
result = Interpreter::createLanguageInstanceForValue (exec, language, value, origin, current);
#endif
return result;
}
......
......@@ -43,10 +43,10 @@ namespace KJS {
const ClassInfo DOMAbstractView::info = { "AbstractView", 0, &DOMAbstractViewTable, 0 };
/*
@begin DOMAbstractViewTable 2
document DOMAbstractView::Document DontDelete|ReadOnly
document DOMAbstractView::Document DontDelete|ReadOnly
@end
@begin DOMAbstractViewProtoTable 1
getComputedStyle DOMAbstractView::GetComputedStyle DontDelete|Function 2
getComputedStyle DOMAbstractView::GetComputedStyle DontDelete|Function 2
getMatchedCSSRules DOMAbstractView::GetMatchedCSSRules DontDelete|Function 2
@end
*/
......
......@@ -186,8 +186,8 @@ namespace KJS {
Focus, GetSelection, Blur, Close, SetInterval, ClearInterval, CaptureEvents,
ReleaseEvents, AddEventListener, RemoveEventListener,
XMLHttpRequest, XMLSerializer, DOMParser, XSLTProcessor,
Onabort, Onblur, Onchange, Onclick, Ondblclick, Ondragdrop, Onerror,
Onfocus, Onkeydown, Onkeypress, Onkeyup, Onload, Onmousedown, Onmousemove,
Onabort, Onblur, Onchange, Onclick, Ondblclick, Ondragdrop, Onerror,
Onfocus, Onkeydown, Onkeypress, Onkeyup, Onload, Onmousedown, Onmousemove,
Onmouseout, Onmouseover, Onmouseup, OnWindowMouseWheel, Onmove, Onreset, Onresize, Onscroll, Onsearch,
Onselect, Onsubmit, Onunload, Onbeforeunload,
Statusbar, Toolbar, FrameElement, ShowModalDialog };
......
......@@ -143,7 +143,7 @@ namespace KJS {
class XMLHttpRequestQObject : public QObject {
Q_OBJECT
public:
XMLHttpRequestQObject(XMLHttpRequest *_jsObject);
......
......@@ -80,11 +80,11 @@ JSValue *XMLSerializerProtoFunc::callAsFunction(ExecState *exec, JSObject *thisO
case XMLSerializer::SerializeToString:
{
if (args.size() != 1) {
return jsUndefined();
return jsUndefined();
}
if (!args[0]->toObject(exec)->inherits(&DOMNode::info)) {
return jsUndefined();
return jsUndefined();
}
NodeImpl *node = static_cast<NodeImpl *>(static_cast<DOMNode *>(args[0]->toObject(exec))->impl());
......
......@@ -43,7 +43,7 @@ public:
ApplyStyleCommand(DOM::DocumentImpl *, DOM::CSSStyleDeclarationImpl *style, EditAction editingAction=EditActionChangeAttributes, EPropertyLevel=PropertyDefault);
ApplyStyleCommand(DOM::DocumentImpl *, DOM::CSSStyleDeclarationImpl *style, const DOM::Position start, const DOM::Position end, EditAction editingAction=EditActionChangeAttributes, EPropertyLevel=PropertyDefault);
virtual ~ApplyStyleCommand();
virtual void doApply();
virtual EditAction editingAction() const;
......
......@@ -35,7 +35,7 @@ class BreakBlockquoteCommand : public CompositeEditCommand
{
public:
BreakBlockquoteCommand(DOM::DocumentImpl *);
virtual void doApply();
};
......
......@@ -42,7 +42,7 @@ class CompositeEditCommand : public EditCommand
{
public:
CompositeEditCommand(DOM::DocumentImpl *);
virtual void doUnapply();
virtual void doReapply();
......
......@@ -41,7 +41,7 @@ class DeleteFromTextNodeCommand : public EditCommand
public:
DeleteFromTextNodeCommand(DOM::DocumentImpl *document, DOM::TextImpl *node, int offset, int count);
virtual ~DeleteFromTextNodeCommand() { }
virtual void doApply();
virtual void doUnapply();
......
......@@ -35,7 +35,7 @@ class DeleteSelectionCommand : public CompositeEditCommand
public:
DeleteSelectionCommand(DOM::DocumentImpl *document, bool smartDelete=false, bool mergeBlocksAfterDelete=true);
DeleteSelectionCommand(DOM::DocumentImpl *document, const SelectionController &selection, bool smartDelete=false, bool mergeBlocksAfterDelete=true);
virtual void doApply();
virtual EditAction editingAction() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment