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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.h

Issue 1961343002: Adjust constness to avoid const_cast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: LayoutBlock::enclosingFirstLineStyleBlock() also had a const_cast that can be eliminated easily. Created 4 years, 7 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: third_party/WebKit/Source/core/layout/LayoutBlock.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.h b/third_party/WebKit/Source/core/layout/LayoutBlock.h
index 10fb3ac050f007fcc526282aaf44b9835859037c..c0e7e50fc9ad90455c46f65b30712d77cc6dde30 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.h
@@ -276,9 +276,9 @@ public:
// </div>
// Returns the nearest enclosing block (including this block) that contributes a first-line style to our first line.
- LayoutBlock* enclosingFirstLineStyleBlock() const;
+ const LayoutBlock* enclosingFirstLineStyleBlock() const;
// Returns this block or the nearest inner block containing the actual first line.
- LayoutBlockFlow* nearestInnerBlockWithFirstLine() const;
+ LayoutBlockFlow* nearestInnerBlockWithFirstLine();
protected:
void willBeDestroyed() override;

Powered by Google App Engine
This is Rietveld 408576698