Commit efa37bfb authored by dbates@webkit.org's avatar dbates@webkit.org
Browse files

Remove unused functions from WebCore and WebKit2

https://bugs.webkit.org/show_bug.cgi?id=124739

Reviewed by Alexey Proskuryakov.

Source/WebCore:

* editing/markup.cpp: Remove unused functions isHTMLBlockElement and
ancestorToRetainStructureAndAppearanceWithNoRenderer.
* rendering/InlineElementBox.cpp: Append newline to the end of the file.

Source/WebKit2:

Remove unused functions autoreleased({WKURLRequestRef, WKURLResponseRef}).

* UIProcess/API/mac/WKBrowsingContextController.mm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1ccf4754
2013-11-21 Daniel Bates <dabates@apple.com>
Remove unused functions from WebCore and WebKit2
https://bugs.webkit.org/show_bug.cgi?id=124739
Reviewed by Alexey Proskuryakov.
* editing/markup.cpp: Remove unused functions isHTMLBlockElement and
ancestorToRetainStructureAndAppearanceWithNoRenderer.
* rendering/InlineElementBox.cpp: Append newline to the end of the file.
2013-11-21 Daniel Bates <dabates@apple.com>
 
Only generate isObservable() when IDL specifies GenerateIsReachable
......@@ -430,13 +430,6 @@ Node* StyledMarkupAccumulator::traverseNodesForSerialization(Node* startNode, No
return lastClosed;
}
static bool isHTMLBlockElement(const Node* node)
{
return node->hasTagName(tdTag)
|| node->hasTagName(thTag)
|| isNonTableCellHTMLBlockElement(node);
}
static Node* ancestorToRetainStructureAndAppearanceForBlock(Node* commonAncestorBlock)
{
if (!commonAncestorBlock)
......@@ -461,12 +454,6 @@ static inline Node* ancestorToRetainStructureAndAppearance(Node* commonAncestor)
return ancestorToRetainStructureAndAppearanceForBlock(enclosingBlock(commonAncestor));
}
static inline Node* ancestorToRetainStructureAndAppearanceWithNoRenderer(Node* commonAncestor)
{
Node* commonAncestorBlock = enclosingNodeOfType(firstPositionInOrBeforeNode(commonAncestor), isHTMLBlockElement);
return ancestorToRetainStructureAndAppearanceForBlock(commonAncestorBlock);
}
static bool propertyMissingOrEqualToNone(StylePropertySet* style, CSSPropertyID propertyID)
{
if (!style)
......
......@@ -102,4 +102,4 @@ bool InlineElementBox::nodeAtPoint(const HitTestRequest& request, HitTestResult&
return renderer().hitTest(request, result, locationInContainer, childPoint);
}
}
\ No newline at end of file
}
2013-11-21 Daniel Bates <dabates@apple.com>
Remove unused functions from WebCore and WebKit2
https://bugs.webkit.org/show_bug.cgi?id=124739
Reviewed by Alexey Proskuryakov.
Remove unused functions autoreleased({WKURLRequestRef, WKURLResponseRef}).
* UIProcess/API/mac/WKBrowsingContextController.mm:
2013-11-21 Csaba Osztrogonác <ossy@webkit.org>
Rename PlatformCertificateInfo to CertificateInfo
......
......@@ -64,16 +64,6 @@ static inline NSURL *autoreleased(WKURLRef url)
return url ? CFBridgingRelease(WKURLCopyCFURL(kCFAllocatorDefault, adoptWK(url).get())) : nil;
}
static inline NSURLRequest *autoreleased(WKURLRequestRef urlRequest)
{
return urlRequest ? CFBridgingRelease(WKURLRequestCopyNSURLRequest(adoptWK(urlRequest).get())) : nil;
}
static inline NSURLResponse *autoreleased(WKURLResponseRef urlResponse)
{
return urlResponse ? CFBridgingRelease(WKURLResponseCopyNSURLResponse(adoptWK(urlResponse).get())) : nil;
}
NSString * const WKActionIsMainFrameKey = @"WKActionIsMainFrameKey";
NSString * const WKActionNavigationTypeKey = @"WKActionNavigationTypeKey";
NSString * const WKActionMouseButtonKey = @"WKActionMouseButtonKey";
......
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