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

Unified Diff: Source/core/platform/LengthPoint.h

Issue 24077007: Add support for the object-position CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase master again Created 7 years, 3 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 | « Source/core/page/animation/CSSPropertyAnimation.cpp ('k') | Source/core/rendering/RenderImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/LengthPoint.h
diff --git a/Source/core/css/xhtmlmp.css b/Source/core/platform/LengthPoint.h
similarity index 70%
copy from Source/core/css/xhtmlmp.css
copy to Source/core/platform/LengthPoint.h
index 11ea1cf1a031cfbf2694983c810bab1f925d99ae..151a852579cab0d08a1385fc7af89727ea2dc96c 100644
--- a/Source/core/css/xhtmlmp.css
+++ b/Source/core/platform/LengthPoint.h
@@ -27,11 +27,39 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/* Default styles for XHTML Mobile Profile documents where they differ from html.css */
-
-@viewport {
- width: auto;
- /* Ideally these should be removed. Currently here to avoid test result regressions. */
- min-zoom: 0.25;
- max-zoom: 5;
-}
+#ifndef LengthPoint_h
+#define LengthPoint_h
+
+#include "core/platform/Length.h"
+
+namespace WebCore {
+
+struct LengthPoint {
+public:
+ LengthPoint()
+ {
+ }
+
+ LengthPoint(Length x, Length y)
+ : m_x(x)
+ , m_y(y)
+ {
+ }
+
+ bool operator==(const LengthPoint& o) const { return m_x == o.m_x && m_y == o.m_y; }
+ bool operator!=(const LengthPoint& o) const { return m_x != o.m_x || m_y != o.m_y; }
+
+ void setX(Length x) { m_x = x; }
+ Length x() const { return m_x; }
+
+ void setY(Length y) { m_y = y; }
+ Length y() const { return m_y; }
+
+private:
+ Length m_x;
+ Length m_y;
+};
+
+} // namespace WebCore
+
+#endif // LengthPoint_h
« no previous file with comments | « Source/core/page/animation/CSSPropertyAnimation.cpp ('k') | Source/core/rendering/RenderImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698