Commit 75f3a0a9 authored by abarth@webkit.org's avatar abarth@webkit.org

2011-02-08 Adam Barth <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        This code appears to be unused.

        * html/HTMLParserErrorCodes.cpp:
        * html/HTMLParserErrorCodes.h:
        * html/HTMLParserQuirks.h:
        * loader/EmptyClients.h:
        * page/ChromeClient.h:
2011-02-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        * src/ChromeClientImpl.h:
2011-02-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        * WebCoreSupport/ChromeClientEfl.h:
2011-02-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        * WebCoreSupport/ChromeClientGtk.h:
2011-02-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        * WebCoreSupport/ChromeClientHaiku.cpp:
        * WebCoreSupport/ChromeClientHaiku.h:
2011-02-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        * WebCoreSupport/WebChromeClient.h:
2011-02-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        * WebCoreSupport/ChromeClientQt.h:
2011-02-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        * WebCoreSupport/WebChromeClient.h:
2011-02-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        * WebCoreSupport/ChromeClientWinCE.cpp:
        * WebCoreSupport/ChromeClientWinCE.h:
2011-02-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        * WebKitSupport/ChromeClientWx.h:
2011-02-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Remove orphan code from old parser
        https://bugs.webkit.org/show_bug.cgi?id=53984

        * WebProcess/WebCoreSupport/WebChromeClient.cpp
        * WebProcess/WebCoreSupport/WebChromeClient.h

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 35f57642
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
This code appears to be unused.
* html/HTMLParserErrorCodes.cpp:
* html/HTMLParserErrorCodes.h:
* html/HTMLParserQuirks.h:
* loader/EmptyClients.h:
* page/ChromeClient.h:
2011-02-08 Martin Robinson <mrobinson@igalia.com>
Reviewed by Gustavo Noronha Silva.
......@@ -24,47 +24,5 @@
*/
#include "config.h"
#include "HTMLParserErrorCodes.h"
namespace WebCore {
const char* htmlParserErrorMessageTemplate(HTMLParserErrorCode errorCode)
{
static const char* const errors[] = {
"%tag1 is not allowed inside %tag2. Moving %tag1 into the nearest enclosing <table>.",
"<head> must be a child of <html>. Content ignored.",
"%tag1 is not allowed inside %tag2. Moving %tag1 into the <head>.",
"Extra %tag1 encountered. Migrating attributes back to the original %tag1 element and ignoring the tag.",
"<area> is not allowed inside %tag1. Moving the <area> into the nearest enclosing <map>.",
"%tag1 is not allowed inside %tag2. Content ignored.",
"%tag1 is not allowed in a <frameset> page. Content ignored.",
"%tag1 is not allowed inside %tag2. Closing %tag2 and trying the insertion again.",
"%tag1 is not allowed inside <caption>. Closing the <caption> and trying the insertion again.",
"<table> is not allowed inside %tag1. Closing the current <table> and inserting the new <table> as a sibling.",
"%tag1 is not allowed inside %tag2. Inserting %tag1 before the <table> instead.",
"%tag1 misplaced in <table>. Creating %tag2 and putting %tag1 inside it.",
"</br> encountered. Converting </br> into <br>.",
"XML self-closing tag syntax used on %tag1. The tag will not be closed.",
"Unmatched </p> encountered. Converting </p> into <p></p>.",
"Unmatched %tag1 encountered. Ignoring tag.",
"%tag1 misnested or not properly closed. Cloning %tag1 in order to preserve the styles applied by it.",
"<form> cannot act as a container inside %tag1 without disrupting the table. The children of the <form> will be placed inside the %tag1 instead.",
"XML self-closing tag syntax used on <script>. The tag will be closed by WebKit, but not all browsers do this. Change to <script></script> instead for best cross-browser compatibility."
};
if (errorCode >= MisplacedTablePartError && errorCode <= IncorrectXMLCloseScriptWarning)
return errors[errorCode];
return 0;
}
const char* htmlParserDocumentWriteMessage()
{
return "[The HTML that caused this error was generated by a script.] ";
}
bool isWarning(HTMLParserErrorCode code)
{
return code >= IncorrectXMLCloseScriptWarning;
}
}
// FIXME: Delete this file.
......@@ -23,38 +23,4 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef HTMLParserErrorCodes_h
#define HTMLParserErrorCodes_h
namespace WebCore {
enum HTMLParserErrorCode {
MisplacedTablePartError,
MisplacedHeadError,
MisplacedHeadContentError,
RedundantHTMLBodyError,
MisplacedAreaError,
IgnoredContentError,
MisplacedFramesetContentError,
MisplacedContentRetryError,
MisplacedCaptionContentError,
MisplacedTableError,
StrayTableContentError,
TablePartRequiredError,
MalformedBRError,
IncorrectXMLSelfCloseError,
StrayParagraphCloseError,
StrayCloseTagError,
ResidualStyleError,
FormInsideTablePartError,
IncorrectXMLCloseScriptWarning
};
const char* htmlParserErrorMessageTemplate(HTMLParserErrorCode);
const char* htmlParserDocumentWriteMessage();
bool isWarning(HTMLParserErrorCode);
}
#endif
// FIXME: Delete this file.
......@@ -23,27 +23,4 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef HTMLParserQuirks_h
#define HTMLParserQuirks_h
#include <wtf/Forward.h>
namespace WebCore {
class Node;
class HTMLParserQuirks {
WTF_MAKE_NONCOPYABLE(HTMLParserQuirks);
public:
HTMLParserQuirks() { }
virtual ~HTMLParserQuirks() { }
virtual void reset() = 0;
virtual bool shouldInsertNode(Node* parent, Node* newNode) = 0;
virtual bool shouldPopBlock(const AtomicString& tagNameOnStack, const AtomicString& tagNameToPop) = 0;
};
} // namespace WebCore
#endif // HTMLParserQuirks_h
// FIXME: Delete this file.
......@@ -199,8 +199,6 @@ public:
virtual void formDidFocus(const Node*) { }
virtual void formDidBlur(const Node*) { }
virtual PassOwnPtr<HTMLParserQuirks> createHTMLParserQuirks() { return 0; }
virtual void setCursor(const Cursor&) { }
virtual void scrollRectIntoView(const IntRect&, const ScrollView*) const {}
......
......@@ -26,7 +26,6 @@
#include "Cursor.h"
#include "FocusDirection.h"
#include "GraphicsContext.h"
#include "HTMLParserQuirks.h"
#include "HostWindow.h"
#include "PopupMenu.h"
#include "PopupMenuClient.h"
......@@ -53,7 +52,6 @@ namespace WebCore {
class FloatRect;
class Frame;
class Geolocation;
class HTMLParserQuirks;
class HitTestResult;
class IntRect;
class NavigationAction;
......@@ -235,8 +233,6 @@ namespace WebCore {
virtual void formDidFocus(const Node*) { };
virtual void formDidBlur(const Node*) { };
virtual PassOwnPtr<HTMLParserQuirks> createHTMLParserQuirks() = 0;
#if USE(ACCELERATED_COMPOSITING)
// Pass 0 as the GraphicsLayer to detatch the root layer.
virtual void attachRootGraphicsLayer(Frame*, GraphicsLayer*) = 0;
......
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
* src/ChromeClientImpl.h:
2011-02-08 Tony Chang <tony@chromium.org>
Unreviewed, build fix for clobber builds of DRT on mac/linux.
......@@ -39,7 +39,6 @@
namespace WebCore {
class AccessibilityObject;
class FileChooser;
class HTMLParserQuirks;
class PopupContainer;
class PopupMenuClient;
class SecurityOrigin;
......@@ -140,7 +139,6 @@ public:
virtual void chooseIconForFiles(const Vector<WTF::String>&, WebCore::FileChooser*);
virtual void setCursor(const WebCore::Cursor&);
virtual void formStateDidChange(const WebCore::Node*);
virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { return 0; }
#if ENABLE(TOUCH_EVENTS)
// FIXME: All touch events are forwarded regardless of whether or not they are needed.
virtual void needTouchEvents(bool needTouchEvents) { }
......
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
* WebCoreSupport/ChromeClientEfl.h:
2011-02-08 Lucas De Marchi <lucas.demarchi@profusion.mobi>
Unreviewed build fix.
......
......@@ -128,8 +128,6 @@ public:
virtual void chooseIconForFiles(const Vector<String>&, FileChooser*);
virtual void formStateDidChange(const Node*);
virtual PassOwnPtr<HTMLParserQuirks> createHTMLParserQuirks() { return 0; }
virtual void setCursor(const Cursor&);
virtual void scrollRectIntoView(const IntRect&, const ScrollView*) const {}
......
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
* WebCoreSupport/ChromeClientGtk.h:
2011-02-02 Ilya Tikhonovsky <loislo@chromium.org>
Reviewed by Yury Semikhatsky.
......
......@@ -128,8 +128,6 @@ namespace WebKit {
virtual void formStateDidChange(const WebCore::Node*) { }
virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { return 0; }
virtual void setCursor(const WebCore::Cursor&);
virtual void scrollRectIntoView(const WebCore::IntRect&, const WebCore::ScrollView*) const {}
......
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
* WebCoreSupport/ChromeClientHaiku.cpp:
* WebCoreSupport/ChromeClientHaiku.h:
2011-02-07 Enrica Casucci <enrica@apple.com>
Reviewed Adam Roben and Darin Adler.
......
......@@ -388,12 +388,6 @@ void ChromeClientHaiku::formStateDidChange(const Node*)
notImplemented();
}
PassOwnPtr<HTMLParserQuirks> ChromeClientHaiku::createHTMLParserQuirks()
{
notImplemented();
return 0;
}
bool ChromeClientHaiku::selectItemWritingDirectionIsNatural()
{
return false;
......
......@@ -158,8 +158,6 @@ namespace WebCore {
// Notification that the given form element has changed. This function
// will be called frequently, so handling should be very fast.
virtual void formStateDidChange(const Node*);
virtual PassOwnPtr<HTMLParserQuirks> createHTMLParserQuirks();
};
} // namespace WebCore
......
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
* WebCoreSupport/WebChromeClient.h:
2011-02-02 Ilya Tikhonovsky <loislo@chromium.org>
Reviewed by Yury Semikhatsky.
......
......@@ -152,8 +152,6 @@ public:
virtual void formDidFocus(const WebCore::Node*);
virtual void formDidBlur(const WebCore::Node*);
virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { return 0; }
#if USE(ACCELERATED_COMPOSITING)
virtual void attachRootGraphicsLayer(WebCore::Frame*, WebCore::GraphicsLayer*);
virtual void setNeedsOneShotDrawingSynchronization();
......
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
* WebCoreSupport/ChromeClientQt.h:
2011-02-07 Aparna Nandyal <aparna.nand@wipro.com>
Reviewed by Andreas Kling.
......
......@@ -179,8 +179,6 @@ namespace WebCore {
virtual void formStateDidChange(const Node*) { }
virtual PassOwnPtr<HTMLParserQuirks> createHTMLParserQuirks() { return 0; }
virtual void setCursor(const Cursor&);
virtual void scrollRectIntoView(const IntRect&, const ScrollView*) const {}
......
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
* WebCoreSupport/WebChromeClient.h:
2011-02-08 David Hyatt <hyatt@apple.com>
Reviewed by Adam Roben.
......
......@@ -144,8 +144,6 @@ public:
virtual void formStateDidChange(const WebCore::Node*) { }
virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks() { return 0; }
#if USE(ACCELERATED_COMPOSITING)
// Pass 0 as the GraphicsLayer to detatch the root layer.
virtual void attachRootGraphicsLayer(WebCore::Frame*, WebCore::GraphicsLayer*);
......
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
* WebCoreSupport/ChromeClientWinCE.cpp:
* WebCoreSupport/ChromeClientWinCE.h:
2011-02-07 Enrica Casucci <enrica@apple.com>
Reviewed Adam Roben and Darin Adler.
......
......@@ -370,11 +370,6 @@ void ChromeClientWinCE::formStateDidChange(const Node*)
notImplemented();
}
PassOwnPtr<HTMLParserQuirks> ChromeClientWinCE::createHTMLParserQuirks()
{
return 0;
}
void ChromeClientWinCE::requestGeolocationPermissionForFrame(Frame*, Geolocation*)
{
notImplemented();
......
......@@ -154,8 +154,6 @@ public:
// will be called frequently, so handling should be very fast.
virtual void formStateDidChange(const WebCore::Node*);
virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks();
#if USE(ACCELERATED_COMPOSITING)
// Pass 0 as the GraphicsLayer to detatch the root layer.
virtual void attachRootGraphicsLayer(WebCore::Frame*, WebCore::GraphicsLayer*);
......
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
* WebKitSupport/ChromeClientWx.h:
2011-02-07 Enrica Casucci <enrica@apple.com>
Reviewed Adam Roben and Darin Adler.
......
......@@ -139,8 +139,6 @@ public:
virtual void formStateDidChange(const Node*) { }
virtual PassOwnPtr<HTMLParserQuirks> createHTMLParserQuirks() { return 0; }
virtual void setCursor(const Cursor&);
virtual void scrollRectIntoView(const IntRect&, const ScrollView*) const {}
......
2011-02-08 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Remove orphan code from old parser
https://bugs.webkit.org/show_bug.cgi?id=53984
* WebProcess/WebCoreSupport/WebChromeClient.cpp
* WebProcess/WebCoreSupport/WebChromeClient.h
2011-02-08 Anders Carlsson <andersca@apple.com>
Reviewed by Sam Weinig.
......@@ -665,12 +665,6 @@ void WebChromeClient::showContextMenu()
}
#endif
PassOwnPtr<HTMLParserQuirks> WebChromeClient::createHTMLParserQuirks()
{
notImplemented();
return 0;
}
#if USE(ACCELERATED_COMPOSITING)
void WebChromeClient::attachRootGraphicsLayer(Frame*, GraphicsLayer* layer)
{
......
......@@ -164,20 +164,18 @@ private:
// to use Geolococation. The ChromeClient must call Geolocation::setShouldClearCache() appropriately.
virtual void requestGeolocationPermissionForFrame(WebCore::Frame*, WebCore::Geolocation*);
virtual void cancelGeolocationPermissionRequestForFrame(WebCore::Frame*, WebCore::Geolocation*);
virtual void runOpenPanel(WebCore::Frame*, PassRefPtr<WebCore::FileChooser>);
virtual void chooseIconForFiles(const Vector<String>&, WebCore::FileChooser*);
virtual void setCursor(const WebCore::Cursor&);
// Notification that the given form element has changed. This function
// will be called frequently, so handling should be very fast.
virtual void formStateDidChange(const WebCore::Node*);
virtual void formDidFocus(const WebCore::Node*);
virtual void formDidBlur(const WebCore::Node*);
virtual PassOwnPtr<WebCore::HTMLParserQuirks> createHTMLParserQuirks();
virtual bool selectItemWritingDirectionIsNatural();
virtual bool selectItemAlignmentFollowsMenuWritingDirection();
......
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