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

Unified Diff: third_party/WebKit/WebCore/editing/htmlediting.cpp

Issue 10670: Do another merge using nifty new merge script (CL for that coming soon). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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: third_party/WebKit/WebCore/editing/htmlediting.cpp
===================================================================
--- third_party/WebKit/WebCore/editing/htmlediting.cpp (revision 5296)
+++ third_party/WebKit/WebCore/editing/htmlediting.cpp (working copy)
@@ -856,6 +856,16 @@
return 0;
}
+unsigned numEnclosingMailBlockquotes(const Position& p)
+{
+ unsigned num = 0;
+ for (Node* n = p.node(); n; n = n->parentNode())
+ if (isMailBlockquote(n))
+ num++;
+
+ return num;
+}
+
bool isMailBlockquote(const Node *node)
{
if (!node || !node->isElementNode() && !node->hasTagName(blockquoteTag))
« no previous file with comments | « third_party/WebKit/WebCore/editing/htmlediting.h ('k') | third_party/WebKit/WebCore/inspector/InspectorController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698