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

Unified Diff: sky/engine/core/editing/ReplaceSelectionCommand.cpp

Issue 867903002: Remove UseCounter (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/editing/Editor.cpp ('k') | sky/engine/core/editing/htmlediting.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/editing/ReplaceSelectionCommand.cpp
diff --git a/sky/engine/core/editing/ReplaceSelectionCommand.cpp b/sky/engine/core/editing/ReplaceSelectionCommand.cpp
index 921b37eb052a4bf6acbeff7c02d82f8c86a26b89..1d178f54382dd46d6f1abe6215d68de8de0425b5 100644
--- a/sky/engine/core/editing/ReplaceSelectionCommand.cpp
+++ b/sky/engine/core/editing/ReplaceSelectionCommand.cpp
@@ -44,7 +44,6 @@
#include "sky/engine/core/editing/htmlediting.h"
#include "sky/engine/core/events/BeforeTextInsertedEvent.h"
#include "sky/engine/core/frame/LocalFrame.h"
-#include "sky/engine/core/frame/UseCounter.h"
#include "sky/engine/core/html/HTMLElement.h"
#include "sky/engine/core/rendering/RenderObject.h"
#include "sky/engine/core/rendering/RenderText.h"
@@ -497,18 +496,12 @@ static bool isInlineHTMLElementWithStyle(const Node* node)
// one of our internal classes.
const HTMLElement* element = toHTMLElement(node);
const AtomicString& classAttributeValue = element->getAttribute(HTMLNames::classAttr);
- if (classAttributeValue == AppleTabSpanClass) {
- UseCounter::count(element->document(), UseCounter::EditingAppleTabSpanClass);
+ if (classAttributeValue == AppleTabSpanClass)
return true;
- }
- if (classAttributeValue == AppleConvertedSpace) {
- UseCounter::count(element->document(), UseCounter::EditingAppleConvertedSpace);
+ if (classAttributeValue == AppleConvertedSpace)
return true;
- }
- if (classAttributeValue == ApplePasteAsQuotation) {
- UseCounter::count(element->document(), UseCounter::EditingApplePasteAsQuotation);
+ if (classAttributeValue == ApplePasteAsQuotation)
return true;
- }
return EditingStyle::elementIsStyledSpanOrHTMLEquivalent(element);
}
« no previous file with comments | « sky/engine/core/editing/Editor.cpp ('k') | sky/engine/core/editing/htmlediting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698