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

Unified Diff: sky/engine/core/rendering/style/RenderStyle.cpp

Issue 1076623002: Remove our impressive amount of CSS Cursor code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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: sky/engine/core/rendering/style/RenderStyle.cpp
diff --git a/sky/engine/core/rendering/style/RenderStyle.cpp b/sky/engine/core/rendering/style/RenderStyle.cpp
index 841ecc9323bca70956544383f2d07a0433e62194..dd58c088089cef6f09c178e3e9c02a80f241bed8 100644
--- a/sky/engine/core/rendering/style/RenderStyle.cpp
+++ b/sky/engine/core/rendering/style/RenderStyle.cpp
@@ -467,29 +467,11 @@ void RenderStyle::updatePropertySpecificDifferences(const RenderStyle& other, St
}
}
-void RenderStyle::addCursor(PassRefPtr<StyleImage> image, const IntPoint& hotSpot)
-{
- if (!rareInheritedData.access()->cursorData)
- rareInheritedData.access()->cursorData = CursorList::create();
- rareInheritedData.access()->cursorData->append(CursorData(image, hotSpot));
-}
-
-void RenderStyle::setCursorList(PassRefPtr<CursorList> other)
-{
- rareInheritedData.access()->cursorData = other;
-}
-
void RenderStyle::setQuotes(PassRefPtr<QuotesData> q)
{
rareInheritedData.access()->quotes = q;
}
-void RenderStyle::clearCursorList()
-{
- if (rareInheritedData->cursorData)
- rareInheritedData.access()->cursorData = nullptr;
-}
-
inline bool requireTransformOrigin(const Vector<RefPtr<TransformOperation> >& transformOperations, RenderStyle::ApplyTransformOrigin applyOrigin)
{
// transform-origin brackets the transform with translate operations.
« no previous file with comments | « sky/engine/core/rendering/style/RenderStyle.h ('k') | sky/engine/core/rendering/style/RenderStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698