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

Unified Diff: Source/core/html/HTMLElement.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/html/HTMLDetailsElement.cpp ('k') | Source/core/html/HTMLEmbedElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLElement.cpp
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
index cec4810f53d0f905c998f8a482aeef7fcc1d41ca..23e9cf4f56532688019c1470fc63a0f9a8de7c11 100644
--- a/Source/core/html/HTMLElement.cpp
+++ b/Source/core/html/HTMLElement.cpp
@@ -427,7 +427,7 @@ void HTMLElement::setInnerText(const String& text, ExceptionState& exceptionStat
// FIXME: Do we need to be able to detect preserveNewline style even when there's no renderer?
// FIXME: Can the renderer be out of date here? Do we need to call updateStyleIfNeeded?
// For example, for the contents of textarea elements that are display:none?
- LayoutObject* r = renderer();
+ LayoutObject* r = layoutObject();
if (r && r->style()->preserveNewline()) {
if (!text.contains('\r')) {
replaceChildrenWithText(this, text, exceptionState);
@@ -780,7 +780,7 @@ void HTMLElement::adjustDirectionalityIfNeededAfterChildAttributeChanged(Element
Node* strongDirectionalityTextNode;
TextDirection textDirection = directionality(&strongDirectionalityTextNode);
setHasDirAutoFlagRecursively(child, false);
- if (renderer() && renderer()->style() && renderer()->style()->direction() != textDirection) {
+ if (layoutObject() && layoutObject()->style() && layoutObject()->style()->direction() != textDirection) {
Element* elementToAdjust = this;
for (; elementToAdjust; elementToAdjust = elementToAdjust->parentElement()) {
if (elementAffectsDirectionality(elementToAdjust)) {
@@ -798,7 +798,7 @@ void HTMLElement::calculateAndAdjustDirectionality()
setHasDirAutoFlagRecursively(this, hasDirectionAuto(), strongDirectionalityTextNode);
for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadowRoot())
setHasDirAutoFlagRecursively(root, hasDirectionAuto());
- if (renderer() && renderer()->style() && renderer()->style()->direction() != textDirection)
+ if (layoutObject() && layoutObject()->style() && layoutObject()->style()->direction() != textDirection)
setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::WritingModeChange));
}
« no previous file with comments | « Source/core/html/HTMLDetailsElement.cpp ('k') | Source/core/html/HTMLEmbedElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698