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

Unified Diff: Source/core/rendering/RenderObject.h

Issue 358603002: Remove StyleEngine.h include from RenderObject.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@rename-style-bool-to-0
Patch Set: Created 6 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/core/rendering/RenderObject.h
diff --git a/Source/core/rendering/RenderObject.h b/Source/core/rendering/RenderObject.h
index b276c47391ce6887944ec862fe0b0c77966a2335..5761e3e8ccb477117a02c461304c41a25808ec25 100644
--- a/Source/core/rendering/RenderObject.h
+++ b/Source/core/rendering/RenderObject.h
@@ -26,10 +26,10 @@
#ifndef RenderObject_h
#define RenderObject_h
+#include "core/dom/Document.h"
#include "core/dom/DocumentLifecycle.h"
#include "core/dom/Element.h"
#include "core/dom/Position.h"
-#include "core/dom/StyleEngine.h"
#include "core/fetch/ImageResourceClient.h"
#include "core/rendering/HitTestRequest.h"
#include "core/rendering/PaintPhase.h"
@@ -765,8 +765,8 @@ public:
virtual LayoutUnit maxPreferredLogicalWidth() const { return 0; }
RenderStyle* style() const { return m_style.get(); }
- RenderStyle* firstLineStyle() const { return document().styleEngine()->usesFirstLineRules() ? cachedFirstLineStyle() : style(); }
- RenderStyle* styleOrFirstLineStyle(bool firstLine) const { return firstLine ? firstLineStyle() : style(); }
+ RenderStyle* firstLineStyle() const;
+ RenderStyle* styleOrFirstLineStyle(bool firstLine) const;
inline Color resolveColor(const RenderStyle* styleToUse, int colorProperty) const
{

Powered by Google App Engine
This is Rietveld 408576698