Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Unified Diff: Source/WebCore/editing/htmlediting.cpp

Issue 13954003: Remove mail blockquote special case handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/editing/htmlediting.cpp
diff --git a/Source/WebCore/editing/htmlediting.cpp b/Source/WebCore/editing/htmlediting.cpp
index 2aaa73043dd341df0f9bb2ff89bee19851c58750..6c169ec9bc2aaa7b18cd552ceb28f097838974cc 100644
--- a/Source/WebCore/editing/htmlediting.cpp
+++ b/Source/WebCore/editing/htmlediting.cpp
@@ -965,16 +965,6 @@ bool isNodeRendered(const Node *node)
return renderer->style()->visibility() == VISIBLE;
}
-unsigned numEnclosingMailBlockquotes(const Position& p)
-{
- unsigned num = 0;
- for (Node* n = p.deprecatedNode(); n; n = n->parentNode())
- if (isMailBlockquote(n))
- num++;
-
- return num;
-}
-
void updatePositionForNodeRemoval(Position& position, Node* node)
{
if (position.isNull())
@@ -1005,14 +995,6 @@ void updatePositionForNodeRemoval(Position& position, Node* node)
}
}
-bool isMailBlockquote(const Node *node)
-{
- if (!node || !node->hasTagName(blockquoteTag))
- return false;
-
- return static_cast<const Element *>(node)->getAttribute("type") == "cite";
-}
-
int caretMinOffset(const Node* n)
{
RenderObject* r = n->renderer();

Powered by Google App Engine
This is Rietveld 408576698