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

Unified Diff: Source/core/rendering/RenderDeprecatedFlexibleBox.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/rendering/RenderBoxModelObject.cpp ('k') | Source/core/rendering/RenderEmbeddedObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderDeprecatedFlexibleBox.cpp
diff --git a/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp b/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp
index d6de88ab86d54624874998f37c9dd7196f00727b..495d0d3016cb50746841441cc76fffab35180876 100644
--- a/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp
+++ b/Source/core/rendering/RenderDeprecatedFlexibleBox.cpp
@@ -126,13 +126,13 @@ RenderDeprecatedFlexibleBox::RenderDeprecatedFlexibleBox(Element* element)
setChildrenInline(false); // All of our children must be block-level
m_stretchingChildren = false;
if (!isAnonymous()) {
- const KURL& url = document()->url();
+ const KURL& url = document().url();
if (url.protocolIs("chrome"))
- UseCounter::count(document(), UseCounter::DeprecatedFlexboxChrome);
+ UseCounter::count(&document(), UseCounter::DeprecatedFlexboxChrome);
else if (url.protocolIs("chrome-extension"))
- UseCounter::count(document(), UseCounter::DeprecatedFlexboxChromeExtension);
+ UseCounter::count(&document(), UseCounter::DeprecatedFlexboxChromeExtension);
else
- UseCounter::count(document(), UseCounter::DeprecatedFlexboxWebContent);
+ UseCounter::count(&document(), UseCounter::DeprecatedFlexboxWebContent);
}
}
@@ -900,7 +900,7 @@ void RenderDeprecatedFlexibleBox::layoutVerticalBox(bool relayoutChildren)
void RenderDeprecatedFlexibleBox::applyLineClamp(FlexBoxIterator& iterator, bool relayoutChildren)
{
- UseCounter::count(document(), UseCounter::LineClamp);
+ UseCounter::count(&document(), UseCounter::LineClamp);
int maxLineCount = 0;
for (RenderBox* child = iterator.first(); child; child = iterator.next()) {
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.cpp ('k') | Source/core/rendering/RenderEmbeddedObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698