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

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

Issue 359603002: *** NOT FOR LANDING *** Remove StyleEngine.h include from RenderObject.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@final-step
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
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RootInlineBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index 4728932f4336a8a2e5db0e9762673725d363d0dc..442552fc8726d3348d64abf28e13912704c0f52a 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -31,6 +31,7 @@
#include "core/accessibility/AXObjectCache.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/ElementTraversal.h"
+#include "core/dom/StyleEngine.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/editing/EditingBoundary.h"
#include "core/editing/FrameSelection.h"
@@ -1414,6 +1415,16 @@ LayoutRect RenderObject::paintingRootRect(LayoutRect& topLevelRect)
return result;
}
+RenderStyle* RenderObject::firstLineStyle() const
+{
+ return document().styleEngine()->usesFirstLineRules() ? cachedFirstLineStyle() : style();
+}
+
+RenderStyle* RenderObject::style(bool firstLine) const
+{
+ return firstLine ? firstLineStyle() : style();
+}
+
void RenderObject::paint(PaintInfo&, const LayoutPoint&)
{
}
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RootInlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698