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

Unified Diff: Source/common/WebFilterOperations.cpp

Issue 15079005: Create a minimal webkit_common static library for use in browser process (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/common/WebFilterOperations.cpp
diff --git a/Source/core/platform/chromium/support/WebFilterOperations.cpp b/Source/common/WebFilterOperations.cpp
similarity index 93%
rename from Source/core/platform/chromium/support/WebFilterOperations.cpp
rename to Source/common/WebFilterOperations.cpp
index 223caf3a7aac4f51080a2bd3697a0fae4cd82421..91ebbbbb8cb0fbae05dae805d89e6a331195b2b8 100644
--- a/Source/core/platform/chromium/support/WebFilterOperations.cpp
+++ b/Source/common/WebFilterOperations.cpp
@@ -24,11 +24,11 @@
*/
#include "config.h"
+#include "public/common/WebFilterOperations.h"
+#include "public/common/WebFilterOperation.h"
+#include "wtf/Vector.h"
#include <cmath>
-#include "public/platform/WebFilterOperation.h"
-#include "public/platform/WebFilterOperations.h"
-#include <wtf/Vector.h>
namespace WebKit {
@@ -100,10 +100,10 @@ void WebFilterOperations::getOutsets(int& top, int& right, int& bottom, int& lef
bottom += spread;
left += spread;
} else {
- top += spread - op.dropShadowOffset().y;
- right += spread + op.dropShadowOffset().x;
- bottom += spread + op.dropShadowOffset().y;
- left += spread - op.dropShadowOffset().x;
+ top += spread - op.dropShadowOffsetY();
+ right += spread + op.dropShadowOffsetX();
+ bottom += spread + op.dropShadowOffsetY();
+ left += spread - op.dropShadowOffsetX();
}
}
}

Powered by Google App Engine
This is Rietveld 408576698