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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/ImageInputType.cpp ('k') | Source/core/html/LinkImport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/InputType.cpp
diff --git a/Source/core/html/InputType.cpp b/Source/core/html/InputType.cpp
index 80949f51e7745f41e40e8d21ef28d168a6f1d0f9..8b2ebc389b867ec04db0da4fa685a01667983a8a 100644
--- a/Source/core/html/InputType.cpp
+++ b/Source/core/html/InputType.cpp
@@ -396,7 +396,7 @@ void InputType::destroyShadowSubtree()
// FIXME: Remove the PasswordGeneratorButtonElement's shadow root and then remove this loop.
while ((root = root->youngerShadowRoot())) {
root->removeChildren();
- root->appendChild(HTMLShadowElement::create(shadowTag, element()->document()));
+ root->appendChild(HTMLShadowElement::create(shadowTag, &element()->document()));
}
}
@@ -432,7 +432,7 @@ void InputType::dispatchSimulatedClickIfActive(KeyboardEvent* event) const
Chrome* InputType::chrome() const
{
- if (Page* page = element()->document()->page())
+ if (Page* page = element()->document().page())
return &page->chrome();
return 0;
}
@@ -827,7 +827,7 @@ void InputType::applyStep(int count, AnyStepHandling anyStepHandling, TextFieldE
setValueAsDecimal(newValue, eventBehavior, es);
- if (AXObjectCache* cache = element()->document()->existingAXObjectCache())
+ if (AXObjectCache* cache = element()->document().existingAXObjectCache())
cache->postNotification(element(), AXObjectCache::AXValueChanged, true);
}
@@ -960,7 +960,7 @@ void InputType::observeFeatureIfVisible(UseCounter::Feature feature) const
{
if (RenderStyle* style = element()->renderStyle()) {
if (style->visibility() != HIDDEN)
- UseCounter::count(element()->document(), feature);
+ UseCounter::count(&element()->document(), feature);
}
}
« no previous file with comments | « Source/core/html/ImageInputType.cpp ('k') | Source/core/html/LinkImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698